	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function install_from_registered_dir
_install_from_registered_dir:           ## @install_from_registered_dir
	.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	_MAX_PATH@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	%rdi, -48(%rbp)
	addq	$8, %rdi
	callq	_heap_alloc
	movq	%rax, %r14
	movq	_HKEY_CURRENT_USER@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	movq	_mshtml_keyA@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	_RRF_RT_ANY@GOTPCREL(%rip), %r13
	movl	(%r13), %ecx
	leaq	-48(%rbp), %rbx
	movq	%rbx, (%rsp)
	leaq	L_.str(%rip), %rdx
	leaq	-56(%rbp), %r8
	movl	%r14d, %r9d
	callq	_RegGetValueA
	movq	_ERROR_MORE_DATA@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	movq	-48(%rbp), %rsi
	addq	$8, %rsi
	movq	%r14, %rdi
	callq	_heap_realloc
	movq	%rax, %r14
	movl	(%r15), %edi
	movl	(%r12), %esi
	movl	(%r13), %ecx
	movq	%rbx, (%rsp)
	leaq	L_.str(%rip), %rdx
	leaq	-56(%rbp), %r8
	movl	%r14d, %r9d
	callq	_RegGetValueA
LBB0_2:
	movq	_ERROR_SUCCESS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.3:
	movq	-56(%rbp), %rax
	movq	_REG_SZ@GOTPCREL(%rip), %rdx
	movq	_REG_EXPAND_SZ@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	(%rdx), %rax
	je	LBB0_6
## %bb.4:
	cmpq	%rcx, %rax
	je	LBB0_6
LBB0_5:
	movq	%r14, %rdi
	callq	_heap_free
	movq	_INSTALL_FAILED@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_10
LBB0_6:
	cmpq	%rcx, %rax
	jne	LBB0_9
## %bb.7:
	movq	%r14, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_ExpandEnvironmentStringsA
	movq	%rax, -48(%rbp)
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	addq	$8, %rax
	movq	%rax, %rdi
	callq	_heap_alloc
	movq	%rax, %rbx
	movq	-48(%rbp), %rdx
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_ExpandEnvironmentStringsA
	movq	%r14, %rdi
	callq	_heap_free
	movq	%rbx, %r14
LBB0_9:
	movq	%r14, %rdi
	callq	_debugstr_a
	movl	%eax, %ebx
	movq	_addon@GOTPCREL(%rip), %r15
	movq	(%r15), %rax
	movq	(%rax), %rdi
	callq	_debugstr_a
	leaq	L_.str.1(%rip), %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_TRACE
	movq	(%r15), %rax
	movq	(%rax), %rdx
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	callq	_install_from_unix_file
	movl	%eax, %ebx
	movq	%r14, %rdi
	callq	_heap_free
LBB0_10:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_PATH,8,3                   ## @MAX_PATH
	.comm	_HKEY_CURRENT_USER,4,2          ## @HKEY_CURRENT_USER
	.comm	_mshtml_keyA,4,2                ## @mshtml_keyA
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"GeckoCabDir"

	.comm	_RRF_RT_ANY,4,2                 ## @RRF_RT_ANY
	.comm	_ERROR_MORE_DATA,8,3            ## @ERROR_MORE_DATA
	.comm	_ERROR_SUCCESS,8,3              ## @ERROR_SUCCESS
	.comm	_REG_SZ,8,3                     ## @REG_SZ
	.comm	_REG_EXPAND_SZ,8,3              ## @REG_EXPAND_SZ
	.comm	_INSTALL_FAILED,4,2             ## @INSTALL_FAILED
L_.str.1:                               ## @.str.1
	.asciz	"Trying %s/%s\n"

	.comm	_addon,8,3                      ## @addon
L_.str.2:                               ## @.str.2
	.space	1

	.no_dead_strip	_install_from_registered_dir
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function install_from_registered_dir
_install_from_registered_dir:           ; @install_from_registered_dir
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
Lloh0:
	adrp	x8, _MAX_PATH@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MAX_PATH@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp]
	add	x0, x8, #8
	bl	_heap_alloc
	mov	x19, x0
Lloh3:
	adrp	x20, _HKEY_CURRENT_USER@GOTPAGE
Lloh4:
	ldr	x20, [x20, _HKEY_CURRENT_USER@GOTPAGEOFF]
	ldr	w0, [x20]
Lloh5:
	adrp	x21, _mshtml_keyA@GOTPAGE
Lloh6:
	ldr	x21, [x21, _mshtml_keyA@GOTPAGEOFF]
	ldr	w1, [x21]
Lloh7:
	adrp	x22, _RRF_RT_ANY@GOTPAGE
Lloh8:
	ldr	x22, [x22, _RRF_RT_ANY@GOTPAGEOFF]
	ldr	w3, [x22]
Lloh9:
	adrp	x2, l_.str@PAGE
Lloh10:
	add	x2, x2, l_.str@PAGEOFF
	add	x4, sp, #8
	mov	x6, sp
	mov	x5, x19
	bl	_RegGetValueA
Lloh11:
	adrp	x8, _ERROR_MORE_DATA@GOTPAGE
Lloh12:
	ldr	x8, [x8, _ERROR_MORE_DATA@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_2
; %bb.1:
	ldr	x8, [sp]
	add	x1, x8, #8
	mov	x0, x19
	bl	_heap_realloc
	mov	x19, x0
	ldr	w0, [x20]
	ldr	w1, [x21]
	ldr	w3, [x22]
Lloh14:
	adrp	x2, l_.str@PAGE
Lloh15:
	add	x2, x2, l_.str@PAGEOFF
	add	x4, sp, #8
	mov	x6, sp
	mov	x5, x19
	bl	_RegGetValueA
LBB0_2:
Lloh16:
	adrp	x8, _ERROR_SUCCESS@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ERROR_SUCCESS@GOTPAGEOFF]
Lloh18:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_8
; %bb.3:
	ldr	x8, [sp, #8]
Lloh19:
	adrp	x9, _REG_SZ@GOTPAGE
Lloh20:
	ldr	x9, [x9, _REG_SZ@GOTPAGEOFF]
Lloh21:
	ldr	x10, [x9]
Lloh22:
	adrp	x9, _REG_EXPAND_SZ@GOTPAGE
Lloh23:
	ldr	x9, [x9, _REG_EXPAND_SZ@GOTPAGEOFF]
Lloh24:
	ldr	x9, [x9]
	cmp	x8, x10
	ccmp	x8, x9, #4, ne
	b.ne	LBB0_8
; %bb.4:
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.5:
	mov	x0, x19
	mov	x1, #0
	mov	x2, #0
	bl	_ExpandEnvironmentStringsA
	str	x0, [sp]
	cbz	x0, LBB0_7
; %bb.6:
	add	x0, x0, #8
	bl	_heap_alloc
	mov	x20, x0
	ldr	x2, [sp]
	mov	x0, x19
	mov	x1, x20
	bl	_ExpandEnvironmentStringsA
	mov	x0, x19
	bl	_heap_free
	mov	x19, x20
LBB0_7:
	mov	x0, x19
	bl	_debugstr_a
	mov	x20, x0
Lloh25:
	adrp	x21, _addon@GOTPAGE
Lloh26:
	ldr	x21, [x21, _addon@GOTPAGEOFF]
	ldr	x8, [x21]
	ldr	x0, [x8]
	bl	_debugstr_a
	mov	x2, x0
Lloh27:
	adrp	x0, l_.str.1@PAGE
Lloh28:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x20
	bl	_TRACE
	ldr	x8, [x21]
	ldr	x2, [x8]
Lloh29:
	adrp	x1, l_.str.2@PAGE
Lloh30:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_install_from_unix_file
	mov	x20, x0
	mov	x0, x19
	bl	_heap_free
	b	LBB0_9
LBB0_8:
	mov	x0, x19
	bl	_heap_free
Lloh31:
	adrp	x8, _INSTALL_FAILED@GOTPAGE
Lloh32:
	ldr	x8, [x8, _INSTALL_FAILED@GOTPAGEOFF]
Lloh33:
	ldr	w20, [x8]
LBB0_9:
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_PATH,8,3                   ; @MAX_PATH
	.comm	_HKEY_CURRENT_USER,4,2          ; @HKEY_CURRENT_USER
	.comm	_mshtml_keyA,4,2                ; @mshtml_keyA
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"GeckoCabDir"

	.comm	_RRF_RT_ANY,4,2                 ; @RRF_RT_ANY
	.comm	_ERROR_MORE_DATA,8,3            ; @ERROR_MORE_DATA
	.comm	_ERROR_SUCCESS,8,3              ; @ERROR_SUCCESS
	.comm	_REG_SZ,8,3                     ; @REG_SZ
	.comm	_REG_EXPAND_SZ,8,3              ; @REG_EXPAND_SZ
	.comm	_INSTALL_FAILED,4,2             ; @INSTALL_FAILED
l_.str.1:                               ; @.str.1
	.asciz	"Trying %s/%s\n"

	.comm	_addon,8,3                      ; @addon
l_.str.2:                               ; @.str.2
	.space	1

	.no_dead_strip	_install_from_registered_dir
.subsections_via_symbols
