	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function php_read_APP
_php_read_APP:                          ## @php_read_APP
	.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	%rdx, %r15
	movl	%esi, %r12d
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	callq	_php_read2
	xorl	%r13d, %r13d
	cmpw	$2, %ax
	jb	LBB0_6
## %bb.1:
	movl	%eax, %ebx
	movq	%r15, -72(%rbp)                 ## 8-byte Spill
	addl	$-2, %ebx
	movzwl	%bx, %r15d
	movq	%r15, %rdi
	callq	_emalloc
	movq	%r14, %rdi
	movq	%rax, %r14
	movq	%rax, %rsi
	movq	%r15, %rdx
	callq	_php_stream_read
	cmpw	%bx, %ax
	jne	LBB0_2
## %bb.3:
	movq	_M_APP0@GOTPCREL(%rip), %rax
	subl	(%rax), %r12d
	leaq	L_.str(%rip), %rdx
	movq	%r14, %r13
	leaq	-64(%rbp), %r14
	movq	%r14, %rdi
	movl	$16, %esi
	movl	%r12d, %ecx
	callq	_snprintf
	movq	-72(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rdi
	callq	_Z_ARRVAL_P
	movl	%eax, %r15d
	movq	%r14, %rdi
	callq	_strlen
	movl	%r15d, %edi
	movq	%r14, %rsi
	movq	%r13, %r14
	movl	%eax, %edx
	callq	_zend_hash_str_find
	testq	%rax, %rax
	jne	LBB0_5
## %bb.4:
	movzwl	%bx, %ecx
	leaq	-64(%rbp), %rsi
	movq	%r12, %rdi
	movq	%r14, %rdx
	callq	_add_assoc_stringl
LBB0_5:
	movq	%r14, %rdi
	callq	_efree
	movl	$1, %r13d
	jmp	LBB0_6
LBB0_2:
	movq	%r14, %rdi
	callq	_efree
LBB0_6:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_8
## %bb.7:
	movl	%r13d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"APP%d"

	.comm	_M_APP0,4,2                     ## @M_APP0
	.no_dead_strip	_php_read_APP
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function php_read_APP
_php_read_APP:                          ; @php_read_APP
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
	mov	x19, x2
	mov	x21, x1
	mov	x22, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	bl	_php_read2
	subs	w24, w0, #2
	b.lo	LBB0_6
; %bb.1:
	and	x23, x24, #0xffff
	mov	x0, x23
	bl	_emalloc
	mov	x20, x0
	mov	x0, x22
	mov	x1, x20
	mov	x2, x23
	bl	_php_stream_read
	cmp	w0, w24, uxth
	b.ne	LBB0_5
; %bb.2:
Lloh3:
	adrp	x8, _M_APP0@GOTPAGE
Lloh4:
	ldr	x8, [x8, _M_APP0@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	sub	w3, w21, w8
Lloh6:
	adrp	x2, l_.str@PAGE
Lloh7:
	add	x2, x2, l_.str@PAGEOFF
	add	x0, sp, #8
	mov	w1, #16
	bl	_snprintf
	mov	x0, x19
	bl	_Z_ARRVAL_P
	mov	x21, x0
	add	x0, sp, #8
	bl	_strlen
	mov	x2, x0
	add	x1, sp, #8
	mov	x0, x21
	bl	_zend_hash_str_find
	cbnz	x0, LBB0_4
; %bb.3:
	and	w3, w24, #0xffff
	add	x1, sp, #8
	mov	x0, x19
	mov	x2, x20
	bl	_add_assoc_stringl
LBB0_4:
	mov	x0, x20
	bl	_efree
	mov	w0, #1
	b	LBB0_7
LBB0_5:
	mov	x0, x20
	bl	_efree
LBB0_6:
	mov	w0, #0
LBB0_7:
	ldr	x8, [sp, #24]
Lloh8:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh9:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_9
; %bb.8:
	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
	add	sp, sp, #96
	ret
LBB0_9:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"APP%d"

	.comm	_M_APP0,4,2                     ; @M_APP0
	.no_dead_strip	_php_read_APP
.subsections_via_symbols
