	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_GetIniPathFromRegistry         ## -- Begin function GetIniPathFromRegistry
	.p2align	4, 0x90
_GetIniPathFromRegistry:                ## @GetIniPathFromRegistry
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	xorl	%ebx, %ebx
	leaq	-28(%rbp), %rsi
	xorl	%edi, %edi
	callq	_OpenPhpRegistryKey
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	_MAXPATHLEN@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	%rdi, -40(%rbp)
	incq	%rdi
	callq	_emalloc
	movq	%rax, %rbx
	movl	-28(%rbp), %edi
	movq	_PHPRC_REGISTRY_NAME@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-40(%rbp), %r9
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	movq	%rbx, %r8
	callq	_RegQueryValueEx
	movq	%rax, %r14
	movq	_ERROR_SUCCESS@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	movl	-28(%rbp), %edi
	callq	_RegCloseKey
	cmpq	%r15, %r14
	je	LBB0_3
## %bb.2:
	movq	%rbx, %rdi
	callq	_efree
	xorl	%ebx, %ebx
LBB0_3:
	movq	%rbx, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAXPATHLEN,8,3                 ## @MAXPATHLEN
	.comm	_PHPRC_REGISTRY_NAME,4,2        ## @PHPRC_REGISTRY_NAME
	.comm	_ERROR_SUCCESS,8,3              ## @ERROR_SUCCESS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_GetIniPathFromRegistry         ; -- Begin function GetIniPathFromRegistry
	.p2align	2
_GetIniPathFromRegistry:                ; @GetIniPathFromRegistry
	.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
	add	x1, sp, #12
	mov	x0, #0
	bl	_OpenPhpRegistryKey
	cbz	x0, LBB0_3
; %bb.1:
Lloh0:
	adrp	x8, _MAXPATHLEN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MAXPATHLEN@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp]
	add	x0, x8, #1
	bl	_emalloc
	mov	x19, x0
	ldr	w0, [sp, #12]
Lloh3:
	adrp	x8, _PHPRC_REGISTRY_NAME@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PHPRC_REGISTRY_NAME@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x5, sp
	mov	w2, #0
	mov	x3, #0
	mov	x4, x19
	bl	_RegQueryValueEx
	mov	x20, x0
Lloh6:
	adrp	x8, _ERROR_SUCCESS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ERROR_SUCCESS@GOTPAGEOFF]
Lloh8:
	ldr	x21, [x8]
	ldr	w0, [sp, #12]
	bl	_RegCloseKey
	cmp	x20, x21
	b.eq	LBB0_4
; %bb.2:
	mov	x0, x19
	bl	_efree
LBB0_3:
	mov	x19, #0
LBB0_4:
	mov	x0, x19
	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	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_MAXPATHLEN,8,3                 ; @MAXPATHLEN
	.comm	_PHPRC_REGISTRY_NAME,4,2        ; @PHPRC_REGISTRY_NAME
	.comm	_ERROR_SUCCESS,8,3              ; @ERROR_SUCCESS
.subsections_via_symbols
