	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function spapi_install
_spapi_install:                         ## @spapi_install
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$48, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	_INVALID_HANDLE_VALUE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edi, %edi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_SetupInitDefaultQueueCallbackEx
	testq	%rax, %rax
	je	LBB0_6
## %bb.1:
	movq	%rax, %r14
	movl	(%rbx), %edx
	movl	4(%rbx), %esi
	movq	_SPINST_FILES@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	8(%rbx), %r9
	movq	_SP_COPY_NEWER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_SetupDefaultQueueCallbackW@GOTPCREL(%rip), %rdi
	movq	(%rdi), %rdi
	xorps	%xmm0, %xmm0
	movups	%xmm0, 24(%rsp)
	movq	%r14, 16(%rsp)
	movq	%rdi, 8(%rsp)
	movl	%eax, (%rsp)
	xorl	%edi, %edi
	xorl	%r8d, %r8d
	callq	_SetupInstallFromInfSectionW
	testl	%eax, %eax
	je	LBB0_2
## %bb.3:
	movq	%r14, %rdi
	callq	_SetupTermDefaultQueueCallback
	movl	(%rbx), %edx
	movl	4(%rbx), %esi
	movq	_SPINST_INIFILES@GOTPCREL(%rip), %rax
	movq	_SPINST_REGISTRY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_SPINST_REGSVR@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	_HKEY_LOCAL_MACHINE@GOTPCREL(%rip), %rax
	movq	(%rax), %r8
	xorps	%xmm0, %xmm0
	movups	%xmm0, 24(%rsp)
	movups	%xmm0, 8(%rsp)
	movl	$0, (%rsp)
	xorl	%edi, %edi
	xorl	%r9d, %r9d
	callq	_SetupInstallFromInfSectionW
	testl	%eax, %eax
	je	LBB0_6
## %bb.4:
	movq	_S_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_5
LBB0_6:
	xorl	%eax, %eax
	callq	_GetLastError
	movl	%eax, %edi
	addq	$48, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_ADV_HRESULT                    ## TAILCALL
LBB0_2:
	xorl	%eax, %eax
	callq	_GetLastError
	movl	%eax, %edi
	callq	_ADV_HRESULT
	movl	%eax, %ebx
	movq	%r14, %rdi
	callq	_SetupTermDefaultQueueCallback
	movl	%ebx, %eax
LBB0_5:
	addq	$48, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_INVALID_HANDLE_VALUE,4,2       ## @INVALID_HANDLE_VALUE
	.comm	_SPINST_FILES,4,2               ## @SPINST_FILES
	.comm	_SP_COPY_NEWER,4,2              ## @SP_COPY_NEWER
	.comm	_SetupDefaultQueueCallbackW,8,3 ## @SetupDefaultQueueCallbackW
	.comm	_SPINST_INIFILES,4,2            ## @SPINST_INIFILES
	.comm	_SPINST_REGISTRY,4,2            ## @SPINST_REGISTRY
	.comm	_SPINST_REGSVR,4,2              ## @SPINST_REGSVR
	.comm	_HKEY_LOCAL_MACHINE,8,3         ## @HKEY_LOCAL_MACHINE
	.comm	_S_OK,4,2                       ## @S_OK
	.no_dead_strip	_spapi_install
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function spapi_install
_spapi_install:                         ; @spapi_install
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x8, _INVALID_HANDLE_VALUE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _INVALID_HANDLE_VALUE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, #0
	mov	w2, #0
	mov	w3, #0
	mov	x4, #0
	bl	_SetupInitDefaultQueueCallbackEx
	cbz	x0, LBB0_4
; %bb.1:
	mov	x20, x0
	ldp	w2, w1, [x19]
Lloh3:
	adrp	x8, _SPINST_FILES@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SPINST_FILES@GOTPAGEOFF]
Lloh5:
	ldr	w3, [x8]
	ldr	x5, [x19, #8]
Lloh6:
	adrp	x8, _SP_COPY_NEWER@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SP_COPY_NEWER@GOTPAGEOFF]
Lloh8:
	ldr	w6, [x8]
Lloh9:
	adrp	x8, _SetupDefaultQueueCallbackW@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SetupDefaultQueueCallbackW@GOTPAGEOFF]
Lloh11:
	ldr	x7, [x8]
	stp	xzr, xzr, [sp, #8]
	str	x0, [sp]
	mov	x0, #0
	mov	x4, #0
	bl	_SetupInstallFromInfSectionW
	cbz	w0, LBB0_5
; %bb.2:
	mov	x0, x20
	bl	_SetupTermDefaultQueueCallback
	ldp	w2, w1, [x19]
Lloh12:
	adrp	x8, _SPINST_INIFILES@GOTPAGE
Lloh13:
	ldr	x8, [x8, _SPINST_INIFILES@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
Lloh15:
	adrp	x9, _SPINST_REGISTRY@GOTPAGE
Lloh16:
	ldr	x9, [x9, _SPINST_REGISTRY@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
Lloh18:
	adrp	x10, _SPINST_REGSVR@GOTPAGE
Lloh19:
	ldr	x10, [x10, _SPINST_REGSVR@GOTPAGEOFF]
	orr	w8, w9, w8
Lloh20:
	ldr	w9, [x10]
	orr	w3, w8, w9
Lloh21:
	adrp	x8, _HKEY_LOCAL_MACHINE@GOTPAGE
Lloh22:
	ldr	x8, [x8, _HKEY_LOCAL_MACHINE@GOTPAGEOFF]
Lloh23:
	ldr	x4, [x8]
	stp	xzr, xzr, [sp]
	str	xzr, [sp, #16]
	mov	x0, #0
	mov	x5, #0
	mov	w6, #0
	mov	x7, #0
	bl	_SetupInstallFromInfSectionW
	cbz	w0, LBB0_4
; %bb.3:
Lloh24:
	adrp	x8, _S_OK@GOTPAGE
Lloh25:
	ldr	x8, [x8, _S_OK@GOTPAGEOFF]
Lloh26:
	ldr	w0, [x8]
	b	LBB0_6
LBB0_4:
	bl	_GetLastError
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	b	_ADV_HRESULT
LBB0_5:
	bl	_GetLastError
	bl	_ADV_HRESULT
	mov	x19, x0
	mov	x0, x20
	bl	_SetupTermDefaultQueueCallback
	mov	x0, x19
LBB0_6:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_INVALID_HANDLE_VALUE,4,2       ; @INVALID_HANDLE_VALUE
	.comm	_SPINST_FILES,4,2               ; @SPINST_FILES
	.comm	_SP_COPY_NEWER,4,2              ; @SP_COPY_NEWER
	.comm	_SetupDefaultQueueCallbackW,8,3 ; @SetupDefaultQueueCallbackW
	.comm	_SPINST_INIFILES,4,2            ; @SPINST_INIFILES
	.comm	_SPINST_REGISTRY,4,2            ; @SPINST_REGISTRY
	.comm	_SPINST_REGSVR,4,2              ; @SPINST_REGSVR
	.comm	_HKEY_LOCAL_MACHINE,8,3         ; @HKEY_LOCAL_MACHINE
	.comm	_S_OK,4,2                       ; @S_OK
	.no_dead_strip	_spapi_install
.subsections_via_symbols
