	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function php_handle_webp
_php_handle_webp:                       ## @php_handle_webp
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	subq	$56, %rsp
	.cfi_offset %rbx, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -16(%rbp)
	movb	$56, -50(%rbp)
	movw	$20566, -52(%rbp)               ## imm = 0x5056
	leaq	-48(%rbp), %rsi
	movl	$18, %edx
	callq	_php_stream_read
	cmpl	$18, %eax
	jne	LBB0_3
## %bb.1:
	leaq	-48(%rbp), %rdi
	leaq	-52(%rbp), %rsi
	movl	$3, %edx
	callq	_memcmp
	testq	%rax, %rax
	je	LBB0_4
LBB0_3:
	xorl	%eax, %eax
LBB0_15:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-16(%rbp), %rcx
	jne	LBB0_17
## %bb.16:
	addq	$56, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_4:
	movb	-45(%rbp), %bl
	xorl	%eax, %eax
	leal	-32(%rbx), %ecx
	cmpb	$56, %cl
	ja	LBB0_15
## %bb.5:
	movzbl	%cl, %ecx
	movabsq	$72075186223972353, %rdx        ## imm = 0x100100000000001
	btq	%rcx, %rdx
	jae	LBB0_15
## %bb.6:
	movl	$1, %edi
	movl	$8, %esi
	callq	_ecalloc
	cmpb	$88, %bl
	je	LBB0_10
## %bb.7:
	cmpb	$76, %bl
	je	LBB0_11
## %bb.8:
	cmpb	$32, %bl
	jne	LBB0_14
## %bb.9:
	movb	-34(%rbp), %cl
	movb	%cl, (%rax)
	movb	-32(%rbp), %cl
	jmp	LBB0_13
LBB0_10:
	movb	-36(%rbp), %cl
	incb	%cl
	movb	%cl, (%rax)
	movb	-33(%rbp), %cl
	jmp	LBB0_12
LBB0_11:
	movb	-39(%rbp), %cl
	incb	%cl
	movb	%cl, (%rax)
	movb	-38(%rbp), %dl
	movb	-37(%rbp), %cl
	shrb	$6, %dl
	shlb	$2, %cl
	orb	%dl, %cl
LBB0_12:
	incb	%cl
LBB0_13:
	movb	%cl, 1(%rax)
LBB0_14:
	movl	$8, 4(%rax)
	jmp	LBB0_15
LBB0_17:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
l___const.php_handle_webp.sig:          ## @__const.php_handle_webp.sig
	.ascii	"VP8"

	.no_dead_strip	_php_handle_webp
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function php_handle_webp
_php_handle_webp:                       ; @php_handle_webp
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	mov	w8, #56
	strb	w8, [sp, #4]
	mov	w8, #20566
	strh	w8, [sp, #2]
	add	x1, sp, #6
	mov	w2, #18
	bl	_php_stream_read
	cmp	w0, #18
	b.ne	LBB0_2
; %bb.1:
	add	x0, sp, #6
	add	x1, sp, #2
	mov	w2, #3
	bl	_memcmp
	cbz	x0, LBB0_5
LBB0_2:
	mov	x0, #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_15
; %bb.4:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_5:
	ldrb	w19, [sp, #9]
	sub	w8, w19, #32
	cmp	w8, #56
	mov	w9, #1
	lsl	x8, x9, x8
	mov	x9, #1
	movk	x9, #4096, lsl #32
	movk	x9, #256, lsl #48
	and	x8, x8, x9
	ccmp	x8, #0, #4, ls
	b.eq	LBB0_2
; %bb.6:
	mov	w0, #1
	mov	w1, #8
	bl	_ecalloc
	cmp	w19, #88
	b.eq	LBB0_10
; %bb.7:
	cmp	w19, #76
	b.eq	LBB0_11
; %bb.8:
	cmp	w19, #32
	b.ne	LBB0_14
; %bb.9:
	ldrb	w8, [sp, #20]
	strb	w8, [x0]
	ldrb	w8, [sp, #22]
	b	LBB0_13
LBB0_10:
	ldrb	w8, [sp, #18]
	add	w8, w8, #1
	strb	w8, [x0]
	ldrb	w8, [sp, #21]
	b	LBB0_12
LBB0_11:
	ldrb	w8, [sp, #15]
	add	w8, w8, #1
	strb	w8, [x0]
	ldrb	w8, [sp, #16]
	ldrb	w9, [sp, #17]
	lsl	w8, w8, #24
	extr	w8, w9, w8, #30
LBB0_12:
	add	w8, w8, #1
LBB0_13:
	strb	w8, [x0, #1]
LBB0_14:
	mov	w8, #8
	str	w8, [x0, #4]
	b	LBB0_3
LBB0_15:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
l___const.php_handle_webp.sig:          ; @__const.php_handle_webp.sig
	.ascii	"VP8"

	.no_dead_strip	_php_handle_webp
.subsections_via_symbols
