	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nvapi_init
_nvapi_init:                            ## @nvapi_init
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %rax
	movq	(%rax), %rbx
	xorl	%r14d, %r14d
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_memset
	leaq	L_.str(%rip), %rdi
	callq	_hc_dlopen
	movq	%rax, (%rbx)
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	_nvapi_QueryInterface@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	_NVAPI_QUERYINTERFACE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_NVAPI@GOTPCREL(%rip), %r12
	movl	(%r12), %ecx
	movq	%rbx, %rdi
	xorl	%r8d, %r8d
	callq	_HC_LOAD_FUNC
	movq	_NvAPI_Initialize@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_NVAPI_INITIALIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	(%r15), %ecx
	movl	(%r12), %r9d
	movl	$0, (%rsp)
	movq	%rbx, %rdi
	movl	$22079528, %r8d                 ## imm = 0x150E828
	callq	_HC_LOAD_ADDR
	movq	_NvAPI_Unload@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_NVAPI_UNLOAD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	(%r15), %ecx
	movl	(%r12), %r9d
	movl	$0, (%rsp)
	movq	%rbx, %rdi
	movl	$-768877186, %r8d               ## imm = 0xD22BDD7E
	callq	_HC_LOAD_ADDR
	movq	_NvAPI_GetErrorMessage@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_NVAPI_GETERRORMESSAGE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	(%r15), %ecx
	movl	(%r12), %r9d
	movl	$0, (%rsp)
	movq	%rbx, %rdi
	movl	$1814889612, %r8d               ## imm = 0x6C2D048C
	callq	_HC_LOAD_ADDR
	movq	_NvAPI_EnumPhysicalGPUs@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_NVAPI_ENUMPHYSICALGPUS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	(%r15), %ecx
	movl	(%r12), %r9d
	movl	$0, (%rsp)
	movq	%rbx, %rdi
	movl	$-441675233, %r8d               ## imm = 0xE5AC921F
	callq	_HC_LOAD_ADDR
	movq	_NvAPI_GPU_GetPerfPoliciesInfo@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_NVAPI_GPU_GETPERFPOLICIESINFO@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	(%r15), %ecx
	movl	(%r12), %r9d
	movl	$0, (%rsp)
	movq	%rbx, %rdi
	movl	$1084069953, %r8d               ## imm = 0x409D9841
	callq	_HC_LOAD_ADDR
	movq	_NvAPI_GPU_GetPerfPoliciesStatus@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_NVAPI_GPU_GETPERFPOLICIESSTATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	(%r15), %ecx
	movl	(%r12), %r9d
	movl	$0, (%rsp)
	movq	%rbx, %rdi
	movl	$1026918924, %r8d               ## imm = 0x3D358A0C
	callq	_HC_LOAD_ADDR
	movq	_NvAPI_GPU_GetBusId@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_NVAPI_GPU_GETBUSID@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	(%r15), %ecx
	movl	(%r12), %r9d
	movl	$0, (%rsp)
	movq	%rbx, %rdi
	movl	$467712229, %r8d                ## imm = 0x1BE0B8E5
	callq	_HC_LOAD_ADDR
	movq	_NvAPI_GPU_GetBusSlotId@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_NVAPI_GPU_GETBUSSLOTID@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	(%r15), %ecx
	movl	(%r12), %r9d
	movl	$0, (%rsp)
	movq	%rbx, %rdi
	movl	$705312015, %r8d                ## imm = 0x2A0A350F
	callq	_HC_LOAD_ADDR
	jmp	LBB0_3
LBB0_1:
	movl	$-1, %r14d
LBB0_3:
	movl	%r14d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"nvapi.so"

	.comm	_nvapi_QueryInterface,4,2       ## @nvapi_QueryInterface
	.comm	_NVAPI_QUERYINTERFACE,4,2       ## @NVAPI_QUERYINTERFACE
	.comm	_NVAPI,4,2                      ## @NVAPI
	.comm	_NvAPI_Initialize,4,2           ## @NvAPI_Initialize
	.comm	_NVAPI_INITIALIZE,4,2           ## @NVAPI_INITIALIZE
	.comm	_NvAPI_Unload,4,2               ## @NvAPI_Unload
	.comm	_NVAPI_UNLOAD,4,2               ## @NVAPI_UNLOAD
	.comm	_NvAPI_GetErrorMessage,4,2      ## @NvAPI_GetErrorMessage
	.comm	_NVAPI_GETERRORMESSAGE,4,2      ## @NVAPI_GETERRORMESSAGE
	.comm	_NvAPI_EnumPhysicalGPUs,4,2     ## @NvAPI_EnumPhysicalGPUs
	.comm	_NVAPI_ENUMPHYSICALGPUS,4,2     ## @NVAPI_ENUMPHYSICALGPUS
	.comm	_NvAPI_GPU_GetPerfPoliciesInfo,4,2 ## @NvAPI_GPU_GetPerfPoliciesInfo
	.comm	_NVAPI_GPU_GETPERFPOLICIESINFO,4,2 ## @NVAPI_GPU_GETPERFPOLICIESINFO
	.comm	_NvAPI_GPU_GetPerfPoliciesStatus,4,2 ## @NvAPI_GPU_GetPerfPoliciesStatus
	.comm	_NVAPI_GPU_GETPERFPOLICIESSTATUS,4,2 ## @NVAPI_GPU_GETPERFPOLICIESSTATUS
	.comm	_NvAPI_GPU_GetBusId,4,2         ## @NvAPI_GPU_GetBusId
	.comm	_NVAPI_GPU_GETBUSID,4,2         ## @NVAPI_GPU_GETBUSID
	.comm	_NvAPI_GPU_GetBusSlotId,4,2     ## @NvAPI_GPU_GetBusSlotId
	.comm	_NVAPI_GPU_GETBUSSLOTID,4,2     ## @NVAPI_GPU_GETBUSSLOTID
	.no_dead_strip	_nvapi_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nvapi_init
_nvapi_init:                            ; @nvapi_init
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	ldr	x8, [x0]
	ldr	x19, [x8]
	mov	x0, x19
	mov	w1, #0
	mov	w2, #8
	bl	_memset
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_hc_dlopen
	str	x0, [x19]
	cbz	x0, LBB0_2
; %bb.1:
Lloh2:
	adrp	x20, _nvapi_QueryInterface@GOTPAGE
Lloh3:
	ldr	x20, [x20, _nvapi_QueryInterface@GOTPAGEOFF]
	ldr	w1, [x20]
Lloh4:
	adrp	x8, _NVAPI_QUERYINTERFACE@GOTPAGE
Lloh5:
	ldr	x8, [x8, _NVAPI_QUERYINTERFACE@GOTPAGEOFF]
Lloh6:
	ldr	w2, [x8]
Lloh7:
	adrp	x21, _NVAPI@GOTPAGE
Lloh8:
	ldr	x21, [x21, _NVAPI@GOTPAGEOFF]
	ldr	w3, [x21]
	mov	x0, x19
	mov	w4, #0
	bl	_HC_LOAD_FUNC
Lloh9:
	adrp	x8, _NvAPI_Initialize@GOTPAGE
Lloh10:
	ldr	x8, [x8, _NvAPI_Initialize@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
Lloh12:
	adrp	x8, _NVAPI_INITIALIZE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _NVAPI_INITIALIZE@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
	ldr	w3, [x20]
	ldr	w5, [x21]
	mov	x0, x19
	mov	w4, #59432
	movk	w4, #336, lsl #16
	mov	w6, #0
	bl	_HC_LOAD_ADDR
Lloh15:
	adrp	x8, _NvAPI_Unload@GOTPAGE
Lloh16:
	ldr	x8, [x8, _NvAPI_Unload@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
Lloh18:
	adrp	x8, _NVAPI_UNLOAD@GOTPAGE
Lloh19:
	ldr	x8, [x8, _NVAPI_UNLOAD@GOTPAGEOFF]
Lloh20:
	ldr	w2, [x8]
	ldr	w3, [x20]
	ldr	w5, [x21]
	mov	x0, x19
	mov	w4, #56702
	movk	w4, #53803, lsl #16
	mov	w6, #0
	bl	_HC_LOAD_ADDR
Lloh21:
	adrp	x8, _NvAPI_GetErrorMessage@GOTPAGE
Lloh22:
	ldr	x8, [x8, _NvAPI_GetErrorMessage@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
Lloh24:
	adrp	x8, _NVAPI_GETERRORMESSAGE@GOTPAGE
Lloh25:
	ldr	x8, [x8, _NVAPI_GETERRORMESSAGE@GOTPAGEOFF]
Lloh26:
	ldr	w2, [x8]
	ldr	w3, [x20]
	ldr	w5, [x21]
	mov	x0, x19
	mov	w4, #1164
	movk	w4, #27693, lsl #16
	mov	w6, #0
	bl	_HC_LOAD_ADDR
Lloh27:
	adrp	x8, _NvAPI_EnumPhysicalGPUs@GOTPAGE
Lloh28:
	ldr	x8, [x8, _NvAPI_EnumPhysicalGPUs@GOTPAGEOFF]
Lloh29:
	ldr	w1, [x8]
Lloh30:
	adrp	x8, _NVAPI_ENUMPHYSICALGPUS@GOTPAGE
Lloh31:
	ldr	x8, [x8, _NVAPI_ENUMPHYSICALGPUS@GOTPAGEOFF]
Lloh32:
	ldr	w2, [x8]
	ldr	w3, [x20]
	ldr	w5, [x21]
	mov	x0, x19
	mov	w4, #37407
	movk	w4, #58796, lsl #16
	mov	w6, #0
	bl	_HC_LOAD_ADDR
Lloh33:
	adrp	x8, _NvAPI_GPU_GetPerfPoliciesInfo@GOTPAGE
Lloh34:
	ldr	x8, [x8, _NvAPI_GPU_GetPerfPoliciesInfo@GOTPAGEOFF]
Lloh35:
	ldr	w1, [x8]
Lloh36:
	adrp	x8, _NVAPI_GPU_GETPERFPOLICIESINFO@GOTPAGE
Lloh37:
	ldr	x8, [x8, _NVAPI_GPU_GETPERFPOLICIESINFO@GOTPAGEOFF]
Lloh38:
	ldr	w2, [x8]
	ldr	w3, [x20]
	ldr	w5, [x21]
	mov	x0, x19
	mov	w4, #38977
	movk	w4, #16541, lsl #16
	mov	w6, #0
	bl	_HC_LOAD_ADDR
Lloh39:
	adrp	x8, _NvAPI_GPU_GetPerfPoliciesStatus@GOTPAGE
Lloh40:
	ldr	x8, [x8, _NvAPI_GPU_GetPerfPoliciesStatus@GOTPAGEOFF]
Lloh41:
	ldr	w1, [x8]
Lloh42:
	adrp	x8, _NVAPI_GPU_GETPERFPOLICIESSTATUS@GOTPAGE
Lloh43:
	ldr	x8, [x8, _NVAPI_GPU_GETPERFPOLICIESSTATUS@GOTPAGEOFF]
Lloh44:
	ldr	w2, [x8]
	ldr	w3, [x20]
	ldr	w5, [x21]
	mov	x0, x19
	mov	w4, #35340
	movk	w4, #15669, lsl #16
	mov	w6, #0
	bl	_HC_LOAD_ADDR
Lloh45:
	adrp	x8, _NvAPI_GPU_GetBusId@GOTPAGE
Lloh46:
	ldr	x8, [x8, _NvAPI_GPU_GetBusId@GOTPAGEOFF]
Lloh47:
	ldr	w1, [x8]
Lloh48:
	adrp	x8, _NVAPI_GPU_GETBUSID@GOTPAGE
Lloh49:
	ldr	x8, [x8, _NVAPI_GPU_GETBUSID@GOTPAGEOFF]
Lloh50:
	ldr	w2, [x8]
	ldr	w3, [x20]
	ldr	w5, [x21]
	mov	x0, x19
	mov	w4, #47333
	movk	w4, #7136, lsl #16
	mov	w6, #0
	bl	_HC_LOAD_ADDR
Lloh51:
	adrp	x8, _NvAPI_GPU_GetBusSlotId@GOTPAGE
Lloh52:
	ldr	x8, [x8, _NvAPI_GPU_GetBusSlotId@GOTPAGEOFF]
Lloh53:
	ldr	w1, [x8]
Lloh54:
	adrp	x8, _NVAPI_GPU_GETBUSSLOTID@GOTPAGE
Lloh55:
	ldr	x8, [x8, _NVAPI_GPU_GETBUSSLOTID@GOTPAGEOFF]
Lloh56:
	ldr	w2, [x8]
	ldr	w3, [x20]
	ldr	w5, [x21]
	mov	x0, x19
	mov	w4, #13583
	movk	w4, #10762, lsl #16
	mov	w6, #0
	bl	_HC_LOAD_ADDR
	mov	w0, #0
	b	LBB0_3
LBB0_2:
	mov	w0, #-1
LBB0_3:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"nvapi.so"

	.comm	_nvapi_QueryInterface,4,2       ; @nvapi_QueryInterface
	.comm	_NVAPI_QUERYINTERFACE,4,2       ; @NVAPI_QUERYINTERFACE
	.comm	_NVAPI,4,2                      ; @NVAPI
	.comm	_NvAPI_Initialize,4,2           ; @NvAPI_Initialize
	.comm	_NVAPI_INITIALIZE,4,2           ; @NVAPI_INITIALIZE
	.comm	_NvAPI_Unload,4,2               ; @NvAPI_Unload
	.comm	_NVAPI_UNLOAD,4,2               ; @NVAPI_UNLOAD
	.comm	_NvAPI_GetErrorMessage,4,2      ; @NvAPI_GetErrorMessage
	.comm	_NVAPI_GETERRORMESSAGE,4,2      ; @NVAPI_GETERRORMESSAGE
	.comm	_NvAPI_EnumPhysicalGPUs,4,2     ; @NvAPI_EnumPhysicalGPUs
	.comm	_NVAPI_ENUMPHYSICALGPUS,4,2     ; @NVAPI_ENUMPHYSICALGPUS
	.comm	_NvAPI_GPU_GetPerfPoliciesInfo,4,2 ; @NvAPI_GPU_GetPerfPoliciesInfo
	.comm	_NVAPI_GPU_GETPERFPOLICIESINFO,4,2 ; @NVAPI_GPU_GETPERFPOLICIESINFO
	.comm	_NvAPI_GPU_GetPerfPoliciesStatus,4,2 ; @NvAPI_GPU_GetPerfPoliciesStatus
	.comm	_NVAPI_GPU_GETPERFPOLICIESSTATUS,4,2 ; @NVAPI_GPU_GETPERFPOLICIESSTATUS
	.comm	_NvAPI_GPU_GetBusId,4,2         ; @NvAPI_GPU_GetBusId
	.comm	_NVAPI_GPU_GETBUSID,4,2         ; @NVAPI_GPU_GETBUSID
	.comm	_NvAPI_GPU_GetBusSlotId,4,2     ; @NvAPI_GPU_GetBusSlotId
	.comm	_NVAPI_GPU_GETBUSSLOTID,4,2     ; @NVAPI_GPU_GETBUSSLOTID
	.no_dead_strip	_nvapi_init
.subsections_via_symbols
