	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function php_binary_init
_php_binary_init:                       ## @php_binary_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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_sapi_module@GOTPCREL(%rip), %r12
	cmpq	$0, (%r12)
	je	LBB0_18
## %bb.1:
	movq	_MAXPATHLEN@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	callq	_malloc
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_13
## %bb.2:
	movq	(%r12), %rdi
	movl	$47, %esi
	callq	_strchr
	testl	%eax, %eax
	je	LBB0_3
LBB0_13:
	movq	(%r12), %rdi
	movq	%rbx, %rsi
	callq	_VCWD_REALPATH
	testq	%rax, %rax
	je	LBB0_15
## %bb.14:
	movq	_X_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_VCWD_ACCESS
	testq	%rax, %rax
	je	LBB0_18
LBB0_15:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_20
## %bb.16:
	movq	%rbx, %rdi
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_free                           ## TAILCALL
LBB0_3:
	leaq	L_.str(%rip), %rdi
	callq	_getenv
	testq	%rax, %rax
	je	LBB0_12
## %bb.4:
	movq	%rax, %r15
	movq	%rsp, -72(%rbp)                 ## 8-byte Spill
	movl	(%r13), %eax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r14
	movq	$0, -80(%rbp)
	movq	%r15, %rdi
	callq	_estrdup
	leaq	L_.str.1(%rip), %rsi
	leaq	-80(%rbp), %rdx
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	%rax, %rdi
	callq	_php_strtok_r
	testq	%rax, %rax
	je	LBB0_11
## %bb.5:
	leaq	-80(%rbp), %r15
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_6 Depth=1
	xorl	%edi, %edi
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdx
	callq	_php_strtok_r
	testq	%rax, %rax
	je	LBB0_11
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r13), %esi
	movq	(%r12), %r8
	movq	%r14, %rdi
	leaq	L_.str.2(%rip), %rdx
	movq	%rax, %rcx
	callq	_snprintf
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_VCWD_REALPATH
	testq	%rax, %rax
	je	LBB0_10
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	_X_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_VCWD_ACCESS
	testq	%rax, %rax
	jne	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	%rbx, %rdi
	leaq	-56(%rbp), %rsi
	callq	_VCWD_STAT
	testq	%rax, %rax
	jne	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_6 Depth=1
	movl	-56(%rbp), %edi
	callq	_S_ISREG
	testq	%rax, %rax
	je	LBB0_10
## %bb.17:
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_efree
	movq	-72(%rbp), %rsp                 ## 8-byte Reload
	jmp	LBB0_18
LBB0_11:
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_efree
	movq	-72(%rbp), %rsp                 ## 8-byte Reload
LBB0_12:
	movq	%rbx, %rdi
	callq	_free
LBB0_18:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_20
## %bb.19:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_20:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_sapi_module,8,3                ## @sapi_module
	.comm	_MAXPATHLEN,4,2                 ## @MAXPATHLEN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"PATH"

L_.str.1:                               ## @.str.1
	.asciz	":"

L_.str.2:                               ## @.str.2
	.asciz	"%s/%s"

	.comm	_X_OK,4,2                       ## @X_OK
	.no_dead_strip	_php_binary_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function php_binary_init
_php_binary_init:                       ; @php_binary_init
	.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
	sub	sp, sp, #32
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh3:
	adrp	x24, _sapi_module@GOTPAGE
Lloh4:
	ldr	x24, [x24, _sapi_module@GOTPAGEOFF]
	ldr	x8, [x24]
	cbz	x8, LBB0_18
; %bb.1:
Lloh5:
	adrp	x25, _MAXPATHLEN@GOTPAGE
Lloh6:
	ldr	x25, [x25, _MAXPATHLEN@GOTPAGEOFF]
	ldr	w0, [x25]
	bl	_malloc
	mov	x19, x0
	cbz	x0, LBB0_3
; %bb.2:
	ldr	x0, [x24]
	mov	w1, #47
	bl	_strchr
	cbz	w0, LBB0_7
LBB0_3:
	ldr	x0, [x24]
	mov	x1, x19
	bl	_VCWD_REALPATH
	cbz	x0, LBB0_5
; %bb.4:
Lloh7:
	adrp	x8, _X_OK@GOTPAGE
Lloh8:
	ldr	x8, [x8, _X_OK@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_VCWD_ACCESS
	cbz	x0, LBB0_18
LBB0_5:
	ldur	x8, [x29, #-88]
Lloh10:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh11:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_20
; %bb.6:
	mov	x0, x19
	sub	sp, x29, #80
	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
	b	_free
LBB0_7:
Lloh13:
	adrp	x0, l_.str@PAGE
Lloh14:
	add	x0, x0, l_.str@PAGEOFF
	bl	_getenv
	cbz	x0, LBB0_17
; %bb.8:
	mov	x26, sp
	ldr	w8, [x25]
	mov	x9, x8
Lloh15:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh16:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x1fffffff0
	sub	x20, x9, x8
	mov	sp, x20
	stur	xzr, [x29, #-96]
	bl	_estrdup
	mov	x21, x0
Lloh17:
	adrp	x1, l_.str.1@PAGE
Lloh18:
	add	x1, x1, l_.str.1@PAGEOFF
	sub	x2, x29, #96
	bl	_php_strtok_r
	cbz	x0, LBB0_16
; %bb.9:
	mov	x3, x0
Lloh19:
	adrp	x22, l_.str.2@PAGE
Lloh20:
	add	x22, x22, l_.str.2@PAGEOFF
Lloh21:
	adrp	x27, _X_OK@GOTPAGE
Lloh22:
	ldr	x27, [x27, _X_OK@GOTPAGEOFF]
Lloh23:
	adrp	x23, l_.str.1@PAGE
Lloh24:
	add	x23, x23, l_.str.1@PAGEOFF
	b	LBB0_11
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=1
	sub	x2, x29, #96
	mov	x0, #0
	mov	x1, x23
	bl	_php_strtok_r
	mov	x3, x0
	cbz	x0, LBB0_16
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x25]
	ldr	x4, [x24]
	mov	x0, x20
	mov	x2, x22
	bl	_snprintf
	mov	x0, x20
	mov	x1, x19
	bl	_VCWD_REALPATH
	cbz	x0, LBB0_10
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	w1, [x27]
	mov	x0, x19
	bl	_VCWD_ACCESS
	cbnz	x0, LBB0_10
; %bb.13:                               ;   in Loop: Header=BB0_11 Depth=1
	sub	x1, x29, #104
	mov	x0, x19
	bl	_VCWD_STAT
	cbnz	x0, LBB0_10
; %bb.14:                               ;   in Loop: Header=BB0_11 Depth=1
	ldur	w0, [x29, #-104]
	bl	_S_ISREG
	cbz	x0, LBB0_10
; %bb.15:
	mov	x0, x21
	bl	_efree
	mov	sp, x26
	b	LBB0_18
LBB0_16:
	mov	x0, x21
	bl	_efree
	mov	sp, x26
LBB0_17:
	mov	x0, x19
	bl	_free
LBB0_18:
	ldur	x8, [x29, #-88]
Lloh25:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh26:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh27:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_20
; %bb.19:
	sub	sp, x29, #80
	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
LBB0_20:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_sapi_module,8,3                ; @sapi_module
	.comm	_MAXPATHLEN,4,2                 ; @MAXPATHLEN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"PATH"

l_.str.1:                               ; @.str.1
	.asciz	":"

l_.str.2:                               ; @.str.2
	.asciz	"%s/%s"

	.comm	_X_OK,4,2                       ; @X_OK
	.no_dead_strip	_php_binary_init
.subsections_via_symbols
