	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function OpenPhpRegistryKey
_OpenPhpRegistryKey:                    ## @OpenPhpRegistryKey
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movq	_registry_keys@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	testq	%rdi, %rdi
	je	LBB0_5
## %bb.1:
	movq	%rdi, %r12
	callq	_strlen
	movq	%rax, %r13
	incq	%r13
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_11
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	callq	_strlen
	movq	%rax, %rbx
	leaq	(%rax,%r13), %rdi
	callq	_emalloc
	movq	%rax, %r15
	movq	(%r14), %rsi
	movq	%rax, %rdi
	movq	%rbx, %rdx
	callq	_memcpy
	addq	%r15, %rbx
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movq	%r13, %rdx
	callq	_memcpy
	movq	_HKEY_LOCAL_MACHINE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_KEY_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r15, %rsi
	xorl	%edx, %edx
	movq	-48(%rbp), %r8                  ## 8-byte Reload
	callq	_RegOpenKeyEx
	movq	%rax, %rbx
	movq	%r15, %rdi
	callq	_efree
	addq	$8, %r14
	movq	_ERROR_SUCCESS@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	jne	LBB0_2
LBB0_4:
	movl	$1, %eax
	jmp	LBB0_12
LBB0_5:
	movq	(%r14), %rsi
	testq	%rsi, %rsi
	je	LBB0_11
## %bb.6:
	addq	$8, %r14
	movq	_HKEY_LOCAL_MACHINE@GOTPCREL(%rip), %r15
	movq	_KEY_READ@GOTPCREL(%rip), %r12
	movq	_ERROR_SUCCESS@GOTPCREL(%rip), %rbx
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r15), %edi
	movl	(%r12), %ecx
	xorl	%edx, %edx
	movq	-48(%rbp), %r8                  ## 8-byte Reload
	callq	_RegOpenKeyEx
	cmpq	(%rbx), %rax
	je	LBB0_4
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	(%r14), %rsi
	addq	$8, %r14
	testq	%rsi, %rsi
	jne	LBB0_7
LBB0_11:
	xorl	%eax, %eax
LBB0_12:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_registry_keys,8,3              ## @registry_keys
	.comm	_HKEY_LOCAL_MACHINE,4,2         ## @HKEY_LOCAL_MACHINE
	.comm	_KEY_READ,4,2                   ## @KEY_READ
	.comm	_ERROR_SUCCESS,8,3              ## @ERROR_SUCCESS
	.no_dead_strip	_OpenPhpRegistryKey
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function OpenPhpRegistryKey
_OpenPhpRegistryKey:                    ; @OpenPhpRegistryKey
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x1
Lloh0:
	adrp	x8, _registry_keys@GOTPAGE
Lloh1:
	ldr	x8, [x8, _registry_keys@GOTPAGEOFF]
Lloh2:
	ldr	x24, [x8]
	cbz	x0, LBB0_5
; %bb.1:
	mov	x20, x0
	bl	_strlen
	add	x21, x0, #1
Lloh3:
	adrp	x25, _HKEY_LOCAL_MACHINE@GOTPAGE
Lloh4:
	ldr	x25, [x25, _HKEY_LOCAL_MACHINE@GOTPAGEOFF]
Lloh5:
	adrp	x26, _KEY_READ@GOTPAGE
Lloh6:
	ldr	x26, [x26, _KEY_READ@GOTPAGEOFF]
Lloh7:
	adrp	x27, _ERROR_SUCCESS@GOTPAGE
Lloh8:
	ldr	x27, [x27, _ERROR_SUCCESS@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x24]
	cbz	x0, LBB0_10
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	bl	_strlen
	mov	x22, x0
	add	x0, x21, x0
	bl	_emalloc
	mov	x23, x0
	ldr	x1, [x24], #8
	mov	x2, x22
	bl	_memcpy
	add	x0, x23, x22
	mov	x1, x20
	mov	x2, x21
	bl	_memcpy
	ldr	w0, [x25]
	ldr	w3, [x26]
	mov	x1, x23
	mov	w2, #0
	mov	x4, x19
	bl	_RegOpenKeyEx
	mov	x22, x0
	mov	x0, x23
	bl	_efree
	ldr	x8, [x27]
	cmp	x22, x8
	b.ne	LBB0_2
LBB0_4:
	mov	w0, #1
	b	LBB0_10
LBB0_5:
	ldr	x1, [x24]
	cbz	x1, LBB0_9
; %bb.6:
	add	x20, x24, #8
Lloh9:
	adrp	x21, _HKEY_LOCAL_MACHINE@GOTPAGE
Lloh10:
	ldr	x21, [x21, _HKEY_LOCAL_MACHINE@GOTPAGEOFF]
Lloh11:
	adrp	x22, _KEY_READ@GOTPAGE
Lloh12:
	ldr	x22, [x22, _KEY_READ@GOTPAGEOFF]
Lloh13:
	adrp	x23, _ERROR_SUCCESS@GOTPAGE
Lloh14:
	ldr	x23, [x23, _ERROR_SUCCESS@GOTPAGEOFF]
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x21]
	ldr	w3, [x22]
	mov	w2, #0
	mov	x4, x19
	bl	_RegOpenKeyEx
	ldr	x8, [x23]
	cmp	x0, x8
	b.eq	LBB0_4
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	x1, [x20], #8
	cbnz	x1, LBB0_7
LBB0_9:
	mov	w0, #0
LBB0_10:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_registry_keys,8,3              ; @registry_keys
	.comm	_HKEY_LOCAL_MACHINE,4,2         ; @HKEY_LOCAL_MACHINE
	.comm	_KEY_READ,4,2                   ; @KEY_READ
	.comm	_ERROR_SUCCESS,8,3              ; @ERROR_SUCCESS
	.no_dead_strip	_OpenPhpRegistryKey
.subsections_via_symbols
