	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function php_handle_jpeg
_php_handle_jpeg:                       ## @php_handle_jpeg
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r12
	movq	_M_PSEUDO@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movw	$1, %cx
	xorl	%r14d, %r14d
	movl	$2147450880, %r13d              ## imm = 0x7FFF8000
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	%r12, %rdi
LBB0_13:                                ##   in Loop: Header=BB0_1 Depth=1
	callq	_php_skip_variable
LBB0_11:                                ##   in Loop: Header=BB0_1 Depth=1
	xorl	%ecx, %ecx
	testl	%eax, %eax
	je	LBB0_8
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movzwl	%cx, %edx
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_php_next_marker
	movl	%eax, %ebx
	addl	$-128, %eax
	cmpl	$30, %eax
	ja	LBB0_12
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	btl	%eax, %r13d
	jae	LBB0_3
## %bb.9:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%r12, %rdi
	testq	%r15, %r15
	je	LBB0_13
## %bb.10:                              ##   in Loop: Header=BB0_1 Depth=1
	movl	%ebx, %esi
	movq	%r15, %rdx
	callq	_php_read_APP
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_1 Depth=1
	movl	$16382, %ecx                    ## imm = 0x3FFE
	btl	%eax, %ecx
	jae	LBB0_8
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	testq	%r14, %r14
	jne	LBB0_12
## %bb.5:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	$1, %edi
	movl	$32, %esi
	callq	_ecalloc
	movq	%rax, %r14
	movq	%r12, %rdi
	callq	_php_read2
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%r12, %rdi
	callq	_php_stream_getc
	movq	%rax, 24(%r14)
	movq	%r12, %rdi
	callq	_php_read2
	movq	%rax, 16(%r14)
	movq	%r12, %rdi
	callq	_php_read2
	movq	%rax, 8(%r14)
	movq	%r12, %rdi
	callq	_php_stream_getc
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, (%r14)
	testq	%r15, %r15
	je	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	%ecx, %eax
	andl	$65528, %eax                    ## imm = 0xFFF8
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_1 Depth=1
	addl	$-8, %ecx
	movq	_SEEK_CUR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movzwl	%cx, %esi
	movq	%r12, %rdi
	callq	_php_stream_seek
	xorl	%ecx, %ecx
	testl	%eax, %eax
	je	LBB0_1
LBB0_8:
	movq	%r14, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_M_PSEUDO,4,2                   ## @M_PSEUDO
	.comm	_SEEK_CUR,4,2                   ## @SEEK_CUR
	.no_dead_strip	_php_handle_jpeg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function php_handle_jpeg
_php_handle_jpeg:                       ; @php_handle_jpeg
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x1
	mov	x21, x0
	mov	x19, #0
Lloh0:
	adrp	x8, _M_PSEUDO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _M_PSEUDO@GOTPAGEOFF]
Lloh2:
	ldr	w22, [x8]
	mov	w24, #1
Lloh3:
	adrp	x25, _SEEK_CUR@GOTPAGE
Lloh4:
	ldr	x25, [x25, _SEEK_CUR@GOTPAGEOFF]
	mov	w8, #1
	b	LBB0_4
LBB0_1:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x21
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	bl	_php_skip_variable
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	w8, #0
	cbz	w0, LBB0_13
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	and	w2, w8, #0xffff
	mov	x0, x21
	mov	x1, x22
	bl	_php_next_marker
	mov	x22, x0
	sub	w8, w0, #128
	cmp	w8, #30
	b.hi	LBB0_1
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	lsl	w8, w24, w8
	tst	w8, #0x7fff8000
	b.eq	LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x21
	cbz	x20, LBB0_2
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x1, x22
	mov	x2, x20
	bl	_php_read_APP
	b	LBB0_3
LBB0_8:                                 ;   in Loop: Header=BB0_4 Depth=1
	tst	w8, #0x3ffe
	b.eq	LBB0_13
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
	cbnz	x19, LBB0_1
; %bb.10:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	w0, #1
	mov	w1, #32
	bl	_ecalloc
	mov	x19, x0
	mov	x0, x21
	bl	_php_read2
	mov	x23, x0
	mov	x0, x21
	bl	_php_stream_getc
	str	x0, [x19, #24]
	mov	x0, x21
	bl	_php_read2
	str	x0, [x19, #16]
	mov	x0, x21
	bl	_php_read2
	str	x0, [x19, #8]
	mov	x0, x21
	bl	_php_stream_getc
	str	x0, [x19]
	cbz	x20, LBB0_13
; %bb.11:                               ;   in Loop: Header=BB0_4 Depth=1
	and	x8, x23, #0xfff8
	cbz	x8, LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_4 Depth=1
	sub	w8, w23, #8
	ldr	w2, [x25]
	and	w1, w8, #0xffff
	mov	x0, x21
	bl	_php_stream_seek
	mov	w8, #0
	cbz	w0, LBB0_4
LBB0_13:
	mov	x0, x19
	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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_M_PSEUDO,4,2                   ; @M_PSEUDO
	.comm	_SEEK_CUR,4,2                   ; @SEEK_CUR
	.no_dead_strip	_php_handle_jpeg
.subsections_via_symbols
