github.com/Code-Hex/battery@v1.0.0/internal/macos/corefoundation.s (about)

     1  //go:build darwin
     2  
     3  #include "textflag.h"
     4  
     5  // The trampolines are ABIInternal as they are address-taken in
     6  // Go code.
     7  
     8  TEXT ·battery_CFArrayGetCount_trampoline(SB),NOSPLIT,$0-0
     9  	JMP	battery_CFArrayGetCount(SB)
    10  TEXT ·battery_CFArrayGetValueAtIndex_trampoline(SB),NOSPLIT,$0-0
    11  	JMP	battery_CFArrayGetValueAtIndex(SB)
    12  TEXT ·battery_CFDataGetBytePtr_trampoline(SB),NOSPLIT,$0-0
    13  	JMP	battery_CFDataGetBytePtr(SB)
    14  TEXT ·battery_CFDataGetLength_trampoline(SB),NOSPLIT,$0-0
    15  	JMP	battery_CFDataGetLength(SB)
    16  TEXT ·battery_CFRelease_trampoline(SB),NOSPLIT,$0-0
    17  	JMP	battery_CFRelease(SB)
    18  TEXT ·battery_CFDictionaryGetValueIfPresent_trampoline(SB),NOSPLIT,$0-0
    19  	JMP	battery_CFDictionaryGetValueIfPresent(SB)
    20  TEXT ·battery_CFNumberGetValue_trampoline(SB),NOSPLIT,$0-0
    21  	JMP	battery_CFNumberGetValue(SB)
    22  TEXT ·battery_CFStringCreateExternalRepresentation_trampoline(SB),NOSPLIT,$0-0
    23  	JMP battery_CFStringCreateExternalRepresentation(SB)
    24  TEXT ·battery_CFStringCreateWithBytes_trampoline(SB),NOSPLIT,$0-0
    25      JMP battery_CFStringCreateWithBytes(SB)