	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function install_init
_install_init:                          ## @install_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r13
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r14
	movq	%rdi, %r15
	movl	$92, %esi
	callq	_wcsrchr
	movq	%rax, %r12
	testq	%rax, %rax
	cmoveq	%r15, %r12
	movq	%r12, %rdi
	callq	_lstrlenW
	movl	%eax, %ebx
	xorl	%eax, %eax
	callq	_GetProcessHeap
	incl	%ebx
	movl	%eax, %edi
	xorl	%esi, %esi
	movl	%ebx, %edx
	callq	_HeapAlloc
	movq	%rax, (%r13)
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rdi
	movq	%r12, %rsi
	callq	_lstrcpyW
	leaq	_install_init.default_install(%rip), %rbx
	movl	$15, %r12d
	testq	%r14, %r14
	je	LBB0_5
## %bb.3:
	cmpb	$0, (%r14)
	je	LBB0_5
## %bb.4:
	movq	%r14, %rdi
	callq	_lstrlenW
	movl	%eax, %r12d
	incl	%r12d
	movq	%r14, %rbx
LBB0_5:
	xorl	%eax, %eax
	callq	_GetProcessHeap
	movl	%eax, %edi
	xorl	%esi, %esi
	movl	%r12d, %edx
	callq	_HeapAlloc
	movq	%rax, 8(%r13)
	testq	%rax, %rax
	je	LBB0_1
## %bb.6:
	movq	%rax, %rdi
	movq	%rbx, %rsi
	callq	_lstrcpyW
	movq	%r13, %rdi
	movq	%r15, %rsi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	callq	_get_working_dir
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_FAILED
	testq	%rax, %rax
	jne	LBB0_13
## %bb.7:
	movq	16(%r13), %rdi
	callq	_lstrlenW
	movl	%eax, %ebx
	movq	(%r13), %rdi
	callq	_lstrlenW
                                        ## kill: def $eax killed $eax def $rax
	addl	%eax, %ebx
	addl	$2, %ebx
	xorl	%eax, %eax
	callq	_GetProcessHeap
	movl	%eax, %edi
	xorl	%esi, %esi
	movl	%ebx, %edx
	callq	_HeapAlloc
	movq	%rax, 24(%r13)
	testq	%rax, %rax
	je	LBB0_1
## %bb.8:
	movq	16(%r13), %rsi
	movq	%rax, %rdi
	callq	_lstrcpyW
	movq	24(%r13), %rdi
	leaq	_install_init.backslash(%rip), %rsi
	callq	_lstrcatW
	movq	(%r13), %rsi
	movq	24(%r13), %rdi
	callq	_lstrcatW
	movq	_RSC_FLAG_INF@GOTPCREL(%rip), %rax
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	testl	%ebx, (%rax)
	jne	LBB0_10
## %bb.9:
	movq	24(%r13), %r15
LBB0_10:
	movq	_INF_STYLE_WIN4@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	xorl	%esi, %esi
	xorl	%ecx, %ecx
	callq	_SetupOpenInfFileW
	movq	%rax, 32(%r13)
	movq	_INVALID_HANDLE_VALUE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_11
## %bb.14:
	xorl	%eax, %eax
	callq	_GetLastError
	movl	%eax, %edi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ADV_HRESULT                    ## TAILCALL
LBB0_1:
	movq	_E_OUTOFMEMORY@GOTPCREL(%rip), %rax
LBB0_12:
	movl	(%rax), %ebx
LBB0_13:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	movq	8(%r13), %rsi
	movq	16(%r13), %rdx
	movq	%rax, %rdi
	callq	_set_ldids
	movl	%ebx, 40(%r13)
	movq	_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 44(%r13)
	movq	_S_OK@GOTPCREL(%rip), %rax
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
_install_init.backslash:                ## @install_init.backslash
	.asciz	"\\"

_install_init.default_install:          ## @install_init.default_install
	.asciz	"DefaultInstall"

	.comm	_E_OUTOFMEMORY,4,2              ## @E_OUTOFMEMORY
	.comm	_RSC_FLAG_INF,4,2               ## @RSC_FLAG_INF
	.comm	_INF_STYLE_WIN4,4,2             ## @INF_STYLE_WIN4
	.comm	_INVALID_HANDLE_VALUE,8,3       ## @INVALID_HANDLE_VALUE
	.comm	_FALSE,4,2                      ## @FALSE
	.comm	_S_OK,4,2                       ## @S_OK
	.no_dead_strip	_install_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function install_init
_install_init:                          ; @install_init
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x4
	mov	x20, x3
	mov	x22, x2
	mov	x23, x1
	mov	x21, x0
	mov	w1, #92
	bl	_wcsrchr
	cmp	x0, #0
	csel	x24, x21, x0, eq
	mov	x0, x24
	bl	_lstrlenW
	mov	x25, x0
	bl	_GetProcessHeap
	add	w2, w25, #1
	mov	w1, #0
	bl	_HeapAlloc
	str	x0, [x19]
	cbz	x0, LBB0_12
; %bb.1:
	mov	x1, x24
	bl	_lstrcpyW
	cbz	x23, LBB0_4
; %bb.2:
	ldrb	w8, [x23]
	cbz	w8, LBB0_4
; %bb.3:
	mov	x0, x23
	bl	_lstrlenW
	add	w24, w0, #1
	b	LBB0_5
LBB0_4:
Lloh0:
	adrp	x23, _install_init.default_install@PAGE
Lloh1:
	add	x23, x23, _install_init.default_install@PAGEOFF
	mov	w24, #15
LBB0_5:
	bl	_GetProcessHeap
	mov	w1, #0
	mov	x2, x24
	bl	_HeapAlloc
	str	x0, [x19, #8]
	cbz	x0, LBB0_12
; %bb.6:
	mov	x1, x23
	bl	_lstrcpyW
	mov	x0, x19
	mov	x1, x21
	mov	x2, x22
	bl	_get_working_dir
	mov	x22, x0
	bl	_FAILED
	cbnz	x0, LBB0_14
; %bb.7:
	ldr	x0, [x19, #16]
	bl	_lstrlenW
	mov	x22, x0
	ldr	x0, [x19]
	bl	_lstrlenW
	add	w8, w22, w0
	add	w22, w8, #2
	bl	_GetProcessHeap
	mov	w1, #0
	mov	x2, x22
	bl	_HeapAlloc
	str	x0, [x19, #24]
	cbz	x0, LBB0_12
; %bb.8:
	ldr	x1, [x19, #16]
	bl	_lstrcpyW
	ldr	x0, [x19, #24]
Lloh2:
	adrp	x1, _install_init.backslash@PAGE
Lloh3:
	add	x1, x1, _install_init.backslash@PAGEOFF
	bl	_lstrcatW
	ldr	x0, [x19, #24]
	ldr	x1, [x19]
	bl	_lstrcatW
Lloh4:
	adrp	x8, _RSC_FLAG_INF@GOTPAGE
Lloh5:
	ldr	x8, [x8, _RSC_FLAG_INF@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	tst	w8, w20
	b.ne	LBB0_10
; %bb.9:
	ldr	x21, [x19, #24]
LBB0_10:
Lloh7:
	adrp	x8, _INF_STYLE_WIN4@GOTPAGE
Lloh8:
	ldr	x8, [x8, _INF_STYLE_WIN4@GOTPAGEOFF]
Lloh9:
	ldr	w2, [x8]
	mov	x0, x21
	mov	x1, #0
	mov	x3, #0
	bl	_SetupOpenInfFileW
	str	x0, [x19, #32]
Lloh10:
	adrp	x8, _INVALID_HANDLE_VALUE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _INVALID_HANDLE_VALUE@GOTPAGEOFF]
Lloh12:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_15
; %bb.11:
	bl	_GetLastError
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_ADV_HRESULT
LBB0_12:
Lloh13:
	adrp	x8, _E_OUTOFMEMORY@GOTPAGE
Lloh14:
	ldr	x8, [x8, _E_OUTOFMEMORY@GOTPAGEOFF]
LBB0_13:
	ldr	w22, [x8]
LBB0_14:
	mov	x0, x22
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_15:
	ldp	x1, x2, [x19, #8]
	bl	_set_ldids
Lloh15:
	adrp	x8, _FALSE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	stp	w20, w8, [x19, #40]
Lloh18:
	adrp	x8, _S_OK@GOTPAGE
Lloh19:
	ldr	x8, [x8, _S_OK@GOTPAGEOFF]
	b	LBB0_13
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
_install_init.backslash:                ; @install_init.backslash
	.asciz	"\\"

_install_init.default_install:          ; @install_init.default_install
	.asciz	"DefaultInstall"

	.comm	_E_OUTOFMEMORY,4,2              ; @E_OUTOFMEMORY
	.comm	_RSC_FLAG_INF,4,2               ; @RSC_FLAG_INF
	.comm	_INF_STYLE_WIN4,4,2             ; @INF_STYLE_WIN4
	.comm	_INVALID_HANDLE_VALUE,8,3       ; @INVALID_HANDLE_VALUE
	.comm	_FALSE,4,2                      ; @FALSE
	.comm	_S_OK,4,2                       ; @S_OK
	.no_dead_strip	_install_init
.subsections_via_symbols
