github.com/Code-Hex/battery@v1.0.0/internal/macos/iokit.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_IOPSCopyPowerSourcesInfo_trampoline(SB),NOSPLIT,$0-0 9 JMP battery_IOPSCopyPowerSourcesInfo(SB) 10 TEXT ·battery_IOPSCopyPowerSourcesList_trampoline(SB),NOSPLIT,$0-0 11 JMP battery_IOPSCopyPowerSourcesList(SB) 12 TEXT ·battery_IOPSGetPowerSourceDescription_trampoline(SB),NOSPLIT,$0-0 13 JMP battery_IOPSGetPowerSourceDescription(SB)