	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hm_NvAPI_Initialize
_hm_NvAPI_Initialize:                   ## @hm_NvAPI_Initialize
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	(%rdi), %rax
	movq	(%rax), %r15
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	*(%r15)
	movslq	%eax, %rsi
	movq	_NVAPI_LIBRARY_NOT_FOUND@GOTPCREL(%rip), %rax
	cmpq	%rsi, (%rax)
	je	LBB0_3
## %bb.1:
	movq	_NVAPI_OK@GOTPCREL(%rip), %rax
	cmpq	%rsi, (%rax)
	je	LBB0_4
## %bb.2:
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_hm_NvAPI_GetErrorMessage
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_event_log_error
LBB0_3:
	movl	$-1, %ebx
LBB0_4:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NVAPI_LIBRARY_NOT_FOUND,8,3    ## @NVAPI_LIBRARY_NOT_FOUND
	.comm	_NVAPI_OK,8,3                   ## @NVAPI_OK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"NvAPI_Initialize(): %s"

	.no_dead_strip	_hm_NvAPI_Initialize
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hm_NvAPI_Initialize
_hm_NvAPI_Initialize:                   ; @hm_NvAPI_Initialize
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	ldr	x8, [x0]
	ldr	x20, [x8]
	ldr	x8, [x20]
	blr	x8
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x1, w0
Lloh0:
	adrp	x8, _NVAPI_LIBRARY_NOT_FOUND@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NVAPI_LIBRARY_NOT_FOUND@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x8, x1
	b.eq	LBB0_4
; %bb.1:
Lloh3:
	adrp	x8, _NVAPI_OK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NVAPI_OK@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x8, x1
	b.ne	LBB0_3
; %bb.2:
	mov	w0, #0
	b	LBB0_5
LBB0_3:
	mov	x0, x20
	mov	x2, #0
	bl	_hm_NvAPI_GetErrorMessage
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x2, #0
	bl	_event_log_error
LBB0_4:
	mov	w0, #-1
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_NVAPI_LIBRARY_NOT_FOUND,8,3    ; @NVAPI_LIBRARY_NOT_FOUND
	.comm	_NVAPI_OK,8,3                   ; @NVAPI_OK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"NvAPI_Initialize(): %s"

	.no_dead_strip	_hm_NvAPI_Initialize
.subsections_via_symbols
