	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function php_handle_ico
_php_handle_ico:                        ## @php_handle_ico
	.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	%r12
	pushq	%rbx
	subq	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	leaq	-64(%rbp), %rsi
	movl	$2, %edx
	callq	_php_stream_read
	cmpl	$2, %eax
	jne	LBB0_3
## %bb.1:
	movzwl	-64(%rbp), %ebx
	leal	-256(%rbx), %eax
	cmpl	$-255, %eax
	jae	LBB0_6
LBB0_3:
	xorl	%r12d, %r12d
LBB0_4:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-40(%rbp), %rax
	jne	LBB0_11
## %bb.5:
	movq	%r12, %rax
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movl	$1, %edi
	movl	$12, %esi
	callq	_ecalloc
	movq	%rax, %r12
	incl	%ebx
	leaq	-64(%rbp), %r15
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_8 Depth=1
	decl	%ebx
	cmpl	$1, %ebx
	jle	LBB0_4
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movq	%r15, %rsi
	movl	$16, %edx
	callq	_php_stream_read
	cmpl	$16, %eax
	jne	LBB0_4
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movzwl	-58(%rbp), %eax
	cmpl	(%r12), %eax
	jb	LBB0_7
## %bb.10:                              ##   in Loop: Header=BB0_8 Depth=1
	movzbl	-64(%rbp), %eax
	movl	%eax, 4(%r12)
	movzbl	-63(%rbp), %eax
	movl	%eax, 8(%r12)
	movzwl	-58(%rbp), %eax
	movl	%eax, (%r12)
	jmp	LBB0_7
LBB0_11:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_php_handle_ico
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function php_handle_ico
_php_handle_ico:                        ; @php_handle_ico
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	add	x1, sp, #8
	mov	w2, #2
	bl	_php_stream_read
	cmp	w0, #2
	b.ne	LBB0_2
; %bb.1:
	ldrh	w21, [sp, #8]
	sub	w8, w21, #256
	cmn	w8, #255
	b.hs	LBB0_5
LBB0_2:
	mov	x20, #0
LBB0_3:
	ldr	x8, [sp, #24]
Lloh3:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh4:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_10
; %bb.4:
	mov	x0, x20
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_5:
	mov	w0, #1
	mov	w1, #12
	bl	_ecalloc
	mov	x20, x0
	add	w21, w21, #1
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	sub	w21, w21, #1
	cmp	w21, #1
	b.le	LBB0_3
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	add	x1, sp, #8
	mov	x0, x19
	mov	w2, #16
	bl	_php_stream_read
	cmp	w0, #16
	b.ne	LBB0_3
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	ldrh	w8, [sp, #14]
	ldr	w9, [x20]
	cmp	w8, w9
	b.lo	LBB0_6
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	ldrb	w8, [sp, #8]
	ldrb	w9, [sp, #9]
	stp	w8, w9, [x20, #4]
	ldrh	w8, [sp, #14]
	str	w8, [x20]
	b	LBB0_6
LBB0_10:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_php_handle_ico
.subsections_via_symbols
