	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function jpg_decode_data
_jpg_decode_data:                       ## @jpg_decode_data
	.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	$152, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %r12
	movl	%r8d, %r13d
	movq	%rcx, -104(%rbp)                ## 8-byte Spill
	movl	%edx, -52(%rbp)                 ## 4-byte Spill
	movl	%esi, -96(%rbp)                 ## 4-byte Spill
	cmpl	$0, 48(%rbp)
	setne	-88(%rbp)                       ## 1-byte Folded Spill
	movq	%rdi, -80(%rbp)                 ## 8-byte Spill
	leaq	32(%rdi), %rbx
	movslq	%r8d, %rsi
	movq	_AV_INPUT_BUFFER_PADDING_SIZE@GOTPCREL(%rip), %r15
	addq	(%r15), %rsi
	movq	%rbx, %rdi
	callq	_av_reallocp
	testl	%eax, %eax
	js	LBB0_34
## %bb.1:
	movl	(%rbx), %edx
	leaq	-56(%rbp), %rcx
	movq	-104(%rbp), %rdi                ## 8-byte Reload
	movl	%r13d, %esi
	callq	_jpg_unescape
	movl	-56(%rbp), %edi
	addl	(%rbx), %edi
	movq	(%r15), %rdx
	xorl	%r14d, %r14d
	xorl	%esi, %esi
	callq	_memset
	movl	(%rbx), %esi
	movl	-56(%rbp), %edx
	leaq	-48(%rbp), %rdi
	callq	_init_get_bits8
	testl	%eax, %eax
	js	LBB0_34
## %bb.2:
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	movl	-96(%rbp), %edi                 ## 4-byte Reload
	movl	$16, %esi
	callq	_FFALIGN
	movl	%eax, %r15d
	movq	-80(%rbp), %r12                 ## 8-byte Reload
	movq	(%r12), %rdi
	leaq	L_.memset_pattern(%rip), %rsi
	movl	$12, %edx
	callq	_memset_pattern16
	movq	8(%r12), %rax
	movq	(%rax), %rdi
	callq	*24(%r12)
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	testl	%ecx, %ecx
	movl	$0, %edx
	jle	LBB0_35
## %bb.3:
	movl	40(%rbp), %eax
	movl	32(%rbp), %esi
	movq	24(%rbp), %r13
	movb	-88(%rbp), %bl                  ## 1-byte Reload
	movb	%bl, %dl
	addl	%edx, %edx
	movl	%edx, -112(%rbp)                ## 4-byte Spill
	addl	$15, %ecx
	shrl	$4, %ecx
	movl	%ecx, -52(%rbp)                 ## 4-byte Spill
	movl	%r15d, %edx
	sarl	$4, %edx
	imull	%edx, %ecx
	shll	$2, %ecx
	testl	%eax, %eax
	cmovnel	%eax, %ecx
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	leal	(%rsi,%rsi), %eax
	cltq
	movq	%rax, -136(%rbp)                ## 8-byte Spill
	movslq	16(%rbp), %rcx
	movslq	%esi, %rax
	movq	%rax, -120(%rbp)                ## 8-byte Spill
	cmpl	$2, %edx
	movl	$1, %eax
	cmovll	%eax, %edx
	movq	%rdx, -152(%rbp)                ## 8-byte Spill
	movq	%rcx, %rax
	shlq	$6, %rax
	movq	%rax, -128(%rbp)                ## 8-byte Spill
	shlq	$2, %rcx
	movq	%rcx, -176(%rbp)                ## 8-byte Spill
	xorl	%eax, %eax
	movl	%r15d, -108(%rbp)               ## 4-byte Spill
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_6 Depth=1
	testq	%r13, %r13
	movq	-136(%rbp), %rax                ## 8-byte Reload
	leaq	(%r13,%rax,4), %rax
	cmovneq	%rax, %r13
	movq	-144(%rbp), %rax                ## 8-byte Reload
	incl	%eax
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	addq	-128(%rbp), %rcx                ## 8-byte Folded Reload
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	xorl	%r14d, %r14d
	cmpl	-52(%rbp), %eax                 ## 4-byte Folded Reload
	movl	-108(%rbp), %r15d               ## 4-byte Reload
	je	LBB0_35
LBB0_6:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_8 Depth 2
                                        ##       Child Loop BB0_29 Depth 3
                                        ##         Child Loop BB0_30 Depth 4
	cmpl	$16, %r15d
	movq	%rax, -144(%rbp)                ## 8-byte Spill
	jl	LBB0_5
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	xorl	%eax, %eax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	xorl	%edx, %edx
	movq	%r13, -160(%rbp)                ## 8-byte Spill
	.p2align	4, 0x90
LBB0_8:                                 ##   Parent Loop BB0_6 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_29 Depth 3
                                        ##         Child Loop BB0_30 Depth 4
	leaq	(%rdx,%rdx), %r15
	testq	%r13, %r13
	movq	%rdx, -168(%rbp)                ## 8-byte Spill
	je	LBB0_14
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=2
	cmpl	$0, (%r13,%r15,4)
	jne	LBB0_13
## %bb.10:                              ##   in Loop: Header=BB0_8 Depth=2
	movq	%r15, %rax
	orq	$1, %rax
	cmpl	$0, (%r13,%rax,4)
	jne	LBB0_13
## %bb.11:                              ##   in Loop: Header=BB0_8 Depth=2
	movq	-120(%rbp), %rcx                ## 8-byte Reload
	addq	%r15, %rcx
	cmpl	$0, (%r13,%rcx,4)
	jne	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_8 Depth=2
	addq	-120(%rbp), %rax                ## 8-byte Folded Reload
	cmpl	$0, (%r13,%rax,4)
	je	LBB0_33
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_8 Depth=2
	cmpl	$0, (%r13,%r15,4)
	je	LBB0_16
LBB0_14:                                ##   in Loop: Header=BB0_8 Depth=2
	movq	8(%r12), %rax
	movq	(%rax), %rcx
	movq	%r12, %rdi
	leaq	-48(%rbp), %rsi
	xorl	%edx, %edx
	callq	_jpg_decode_block
	testl	%eax, %eax
	jne	LBB0_34
## %bb.15:                              ##   in Loop: Header=BB0_8 Depth=2
	decl	-44(%rbp)                       ## 4-byte Folded Spill
	movq	8(%r12), %rax
	movq	(%rax), %rdi
	callq	*16(%r12)
	testq	%r13, %r13
	je	LBB0_17
LBB0_16:                                ##   in Loop: Header=BB0_8 Depth=2
	leaq	(,%r15,4), %rax
	orq	$4, %rax
	cmpl	$0, (%r13,%rax)
	je	LBB0_19
LBB0_17:                                ##   in Loop: Header=BB0_8 Depth=2
	movq	8(%r12), %rax
	movq	8(%rax), %rcx
	movq	%r12, %rdi
	leaq	-48(%rbp), %rsi
	xorl	%edx, %edx
	callq	_jpg_decode_block
	testl	%eax, %eax
	jne	LBB0_34
## %bb.18:                              ##   in Loop: Header=BB0_8 Depth=2
	decl	-44(%rbp)                       ## 4-byte Folded Spill
	movq	8(%r12), %rax
	movq	8(%rax), %rdi
	callq	*16(%r12)
	movl	32(%rbp), %eax
	addl	%eax, %r15d
	testq	%r13, %r13
	jne	LBB0_20
	jmp	LBB0_21
	.p2align	4, 0x90
LBB0_19:                                ##   in Loop: Header=BB0_8 Depth=2
	movl	32(%rbp), %eax
	addl	%eax, %r15d
LBB0_20:                                ##   in Loop: Header=BB0_8 Depth=2
	movslq	%r15d, %rax
	cmpl	$0, (%r13,%rax,4)
	je	LBB0_23
LBB0_21:                                ##   in Loop: Header=BB0_8 Depth=2
	movq	8(%r12), %rax
	movq	16(%rax), %rcx
	movq	%r12, %rdi
	leaq	-48(%rbp), %rsi
	xorl	%edx, %edx
	callq	_jpg_decode_block
	testl	%eax, %eax
	jne	LBB0_34
## %bb.22:                              ##   in Loop: Header=BB0_8 Depth=2
	decl	-44(%rbp)                       ## 4-byte Folded Spill
	movq	8(%r12), %rax
	movq	16(%rax), %rdi
	callq	*16(%r12)
	testq	%r13, %r13
	je	LBB0_24
LBB0_23:                                ##   in Loop: Header=BB0_8 Depth=2
	incl	%r15d
	movslq	%r15d, %rax
	cmpl	$0, (%r13,%rax,4)
	je	LBB0_26
LBB0_24:                                ##   in Loop: Header=BB0_8 Depth=2
	movq	8(%r12), %rax
	movq	24(%rax), %rcx
	movq	%r12, %rdi
	leaq	-48(%rbp), %rsi
	xorl	%edx, %edx
	callq	_jpg_decode_block
	testl	%eax, %eax
	jne	LBB0_34
## %bb.25:                              ##   in Loop: Header=BB0_8 Depth=2
	decl	-44(%rbp)                       ## 4-byte Folded Spill
	movq	8(%r12), %rax
	movq	24(%rax), %rdi
	callq	*16(%r12)
LBB0_26:                                ##   in Loop: Header=BB0_8 Depth=2
	movq	8(%r12), %rax
	movq	32(%rax), %rcx
	movq	%r12, %rdi
	leaq	-48(%rbp), %r15
	movq	%r15, %rsi
	movl	$1, %edx
	callq	_jpg_decode_block
	testl	%eax, %eax
	jne	LBB0_34
## %bb.27:                              ##   in Loop: Header=BB0_8 Depth=2
	movq	8(%r12), %rax
	movq	32(%rax), %rdi
	callq	*16(%r12)
	movq	8(%r12), %rax
	movq	40(%rax), %rcx
	movq	%r12, %rdi
	movq	%r15, %rsi
	movl	$2, %edx
	callq	_jpg_decode_block
	testl	%eax, %eax
	jne	LBB0_34
## %bb.28:                              ##   in Loop: Header=BB0_8 Depth=2
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movl	%eax, %ebx
	andl	$268435455, %ebx                ## imm = 0xFFFFFFF
	shlq	$6, %rbx
	addq	-64(%rbp), %rbx                 ## 8-byte Folded Reload
	movq	8(%r12), %rax
	movq	40(%rax), %rdi
	callq	*16(%r12)
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_29:                                ##   Parent Loop BB0_6 Depth=1
                                        ##     Parent Loop BB0_8 Depth=2
                                        ## =>    This Loop Header: Depth=3
                                        ##         Child Loop BB0_30 Depth 4
	movl	%eax, %ecx
	shrl	$2, %ecx
	andl	$536870910, %ecx                ## imm = 0x1FFFFFFE
	movl	%ecx, -104(%rbp)                ## 4-byte Spill
	leal	(,%rax,8), %ecx
	andl	$56, %ecx
	movq	%rcx, -96(%rbp)                 ## 8-byte Spill
	movq	%rax, -184(%rbp)                ## 8-byte Spill
	leal	(,%rax,4), %r15d
	andl	$2147483640, %r15d              ## imm = 0x7FFFFFF8
	movq	%rbx, -88(%rbp)                 ## 8-byte Spill
	xorl	%r13d, %r13d
	movq	-80(%rbp), %r14                 ## 8-byte Reload
	movl	-112(%rbp), %r12d               ## 4-byte Reload
	.p2align	4, 0x90
LBB0_30:                                ##   Parent Loop BB0_6 Depth=1
                                        ##     Parent Loop BB0_8 Depth=2
                                        ##       Parent Loop BB0_29 Depth=3
                                        ## =>      This Inner Loop Header: Depth=4
	movq	8(%r14), %rax
	movl	%r13d, %ecx
	shrl	$3, %ecx
	addl	-104(%rbp), %ecx                ## 4-byte Folded Reload
	movq	(%rax,%rcx,8), %rcx
	movl	%r13d, %edx
	andl	$7, %edx
	orq	-96(%rbp), %rdx                 ## 8-byte Folded Reload
	movl	(%rcx,%rdx,4), %edx
	movl	%r13d, %esi
	shrl	%esi
	addl	%r15d, %esi
	movq	32(%rax), %rcx
	movq	40(%rax), %rax
	movl	(%rcx,%rsi,4), %ecx
	addl	$-128, %ecx
	movl	(%rax,%rsi,4), %r8d
	addl	$-128, %r8d
	movq	%rbx, %rdi
	movl	%r12d, %esi
	callq	_yuv2rgb
	incq	%r13
	addq	$12, %rbx
	cmpq	$16, %r13
	jne	LBB0_30
## %bb.31:                              ##   in Loop: Header=BB0_29 Depth=3
	movq	-184(%rbp), %rax                ## 8-byte Reload
	incq	%rax
	movq	-88(%rbp), %rbx                 ## 8-byte Reload
	addq	-176(%rbp), %rbx                ## 8-byte Folded Reload
	cmpq	$16, %rax
	jne	LBB0_29
## %bb.32:                              ##   in Loop: Header=BB0_8 Depth=2
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_38
LBB0_33:                                ##   in Loop: Header=BB0_8 Depth=2
	movq	-168(%rbp), %rdx                ## 8-byte Reload
	incq	%rdx
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	addl	$3, %eax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	cmpq	-152(%rbp), %rdx                ## 8-byte Folded Reload
	movq	-80(%rbp), %r12                 ## 8-byte Reload
	movq	-160(%rbp), %r13                ## 8-byte Reload
	jne	LBB0_8
	jmp	LBB0_5
LBB0_34:
	movl	%eax, %r14d
LBB0_35:
	movl	%r14d, %eax
	addq	$152, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_38:
	xorl	%r14d, %r14d
	jmp	LBB0_35
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_INPUT_BUFFER_PADDING_SIZE,8,3 ## @AV_INPUT_BUFFER_PADDING_SIZE
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## @.memset_pattern
L_.memset_pattern:
	.long	1024                            ## 0x400
	.long	1024                            ## 0x400
	.long	1024                            ## 0x400
	.long	1024                            ## 0x400

	.no_dead_strip	_jpg_decode_data
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function jpg_decode_data
_jpg_decode_data:                       ; @jpg_decode_data
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #208
	.cfi_def_cfa_offset 208
	stp	x28, x27, [sp, #112]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #128]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #144]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #160]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #176]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #192]            ; 16-byte Folded Spill
	add	x29, sp, #192
	.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
	str	x7, [sp, #96]                   ; 8-byte Folded Spill
	mov	x24, x6
	mov	x20, x5
	mov	x26, x4
	mov	x27, x3
	mov	x25, x2
	mov	x22, x1
	mov	x21, x0
	ldr	w8, [x29, #24]
	cmp	w8, #0
	cset	w28, ne
	add	x23, x0, #32
Lloh0:
	adrp	x19, _AV_INPUT_BUFFER_PADDING_SIZE@GOTPAGE
Lloh1:
	ldr	x19, [x19, _AV_INPUT_BUFFER_PADDING_SIZE@GOTPAGEOFF]
	ldr	x8, [x19]
	add	x1, x8, w4, sxtw
	mov	x0, x23
	bl	_av_reallocp
	tbnz	w0, #31, LBB0_35
; %bb.1:
	ldr	w2, [x23]
	sub	x3, x29, #88
	mov	x0, x27
	mov	x1, x26
	bl	_jpg_unescape
	ldr	w8, [x23]
	ldur	w9, [x29, #-88]
	add	w0, w9, w8
	ldr	x2, [x19]
	mov	w1, #0
	bl	_memset
	ldr	w1, [x23]
	ldur	w2, [x29, #-88]
	sub	x0, x29, #84
	bl	_init_get_bits8
	tbnz	w0, #31, LBB0_35
; %bb.2:
	mov	x0, x22
	mov	w1, #16
	bl	_FFALIGN
	mov	x19, x0
	ldr	x0, [x21]
Lloh2:
	adrp	x1, l_.memset_pattern@PAGE
Lloh3:
	add	x1, x1, l_.memset_pattern@PAGEOFF
	mov	w2, #12
	bl	_memset_pattern16
	ldr	x8, [x21, #24]
	ldr	x9, [x21, #8]
	ldr	x0, [x9]
	blr	x8
	cmp	w25, #1
	b.lt	LBB0_34
; %bb.3:
	str	wzr, [sp, #44]                  ; 4-byte Folded Spill
	ldp	w12, w8, [x29, #16]
	lsl	w23, w28, #1
	add	w9, w25, #15
	lsr	w10, w9, #4
	asr	w9, w19, #4
	stp	w10, w19, [sp, #36]             ; 8-byte Folded Spill
	mul	w10, w10, w9
	lsl	w10, w10, #2
	lsl	w11, w12, #1
	cmp	w8, #0
	csel	w26, w10, w8, eq
	sxtw	x10, w11
	str	x12, [sp, #64]                  ; 8-byte Folded Spill
	sxtw	x8, w12
	str	x8, [sp, #8]                    ; 8-byte Folded Spill
	cmp	w9, #1
	csinc	w8, w9, wzr, gt
	str	x8, [sp, #48]                   ; 8-byte Folded Spill
	sbfiz	x8, x24, #6, #32
	stp	x8, x10, [sp, #16]              ; 16-byte Folded Spill
	sbfiz	x22, x24, #2, #32
	ldr	x25, [sp, #96]                  ; 8-byte Folded Reload
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	w0, #0
	ldp	x9, x8, [sp, #16]               ; 16-byte Folded Reload
	add	x8, x25, x8, lsl #2
	cmp	x25, #0
	csel	x25, xzr, x8, eq
	ldp	w19, w8, [sp, #40]              ; 8-byte Folded Reload
	add	w8, w8, #1
	add	x20, x20, x9
	str	w8, [sp, #44]                   ; 4-byte Folded Spill
	ldr	w9, [sp, #36]                   ; 4-byte Folded Reload
	cmp	w8, w9
	b.eq	LBB0_35
LBB0_5:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
                                        ;       Child Loop BB0_28 Depth 3
                                        ;         Child Loop BB0_29 Depth 4
	cmp	w19, #16
	b.lt	LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	w27, #0
	mov	x28, #0
	str	x25, [sp, #96]                  ; 8-byte Folded Spill
	str	x20, [sp, #56]                  ; 8-byte Folded Spill
LBB0_7:                                 ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_28 Depth 3
                                        ;         Child Loop BB0_29 Depth 4
	lsl	x24, x28, #1
	cbz	x25, LBB0_13
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=2
	ldr	w8, [x25, x24, lsl #2]
	cbnz	w8, LBB0_12
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=2
	orr	x8, x24, #0x1
	ldr	w9, [x25, x8, lsl #2]
	cbnz	w9, LBB0_12
; %bb.10:                               ;   in Loop: Header=BB0_7 Depth=2
	ldr	x9, [sp, #8]                    ; 8-byte Folded Reload
	add	x9, x24, x9
	ldr	w9, [x25, x9, lsl #2]
	cbnz	w9, LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_7 Depth=2
	ldr	x9, [sp, #8]                    ; 8-byte Folded Reload
	add	x8, x8, x9
	ldr	w8, [x25, x8, lsl #2]
	cbz	w8, LBB0_33
LBB0_12:                                ;   in Loop: Header=BB0_7 Depth=2
	ldr	w8, [x25, x24, lsl #2]
	cbz	w8, LBB0_15
LBB0_13:                                ;   in Loop: Header=BB0_7 Depth=2
	ldr	x8, [x21, #8]
	ldr	x3, [x8]
	sub	x1, x29, #84
	mov	x0, x21
	mov	w2, #0
	bl	_jpg_decode_block
	cbnz	w0, LBB0_35
; %bb.14:                               ;   in Loop: Header=BB0_7 Depth=2
	sub	w26, w26, #1
	ldp	x9, x8, [x21, #8]
	ldr	x0, [x9]
	blr	x8
	cbz	x25, LBB0_16
LBB0_15:                                ;   in Loop: Header=BB0_7 Depth=2
	lsl	x8, x24, #2
	orr	x8, x8, #0x4
	ldr	w8, [x25, x8]
	cbz	w8, LBB0_19
LBB0_16:                                ;   in Loop: Header=BB0_7 Depth=2
	ldr	x8, [x21, #8]
	ldr	x3, [x8, #8]
	sub	x1, x29, #84
	mov	x0, x21
	mov	w2, #0
	bl	_jpg_decode_block
	cbnz	w0, LBB0_35
; %bb.17:                               ;   in Loop: Header=BB0_7 Depth=2
	sub	w26, w26, #1
	ldp	x9, x8, [x21, #8]
	ldr	x0, [x9, #8]
	blr	x8
	ldr	x8, [sp, #64]                   ; 8-byte Folded Reload
	add	w19, w24, w8
	cbz	x25, LBB0_20
; %bb.18:                               ;   in Loop: Header=BB0_7 Depth=2
	ldr	w8, [x25, w19, sxtw #2]
	cbnz	w8, LBB0_20
	b	LBB0_22
LBB0_19:                                ;   in Loop: Header=BB0_7 Depth=2
	ldr	x8, [sp, #64]                   ; 8-byte Folded Reload
	add	w19, w24, w8
	ldr	w8, [x25, w19, sxtw #2]
	cbz	w8, LBB0_22
LBB0_20:                                ;   in Loop: Header=BB0_7 Depth=2
	ldr	x8, [x21, #8]
	ldr	x3, [x8, #16]
	sub	x1, x29, #84
	mov	x0, x21
	mov	w2, #0
	bl	_jpg_decode_block
	cbnz	w0, LBB0_35
; %bb.21:                               ;   in Loop: Header=BB0_7 Depth=2
	sub	w26, w26, #1
	ldp	x9, x8, [x21, #8]
	ldr	x0, [x9, #16]
	blr	x8
	cbz	x25, LBB0_23
LBB0_22:                                ;   in Loop: Header=BB0_7 Depth=2
	add	w8, w19, #1
	ldr	w8, [x25, w8, sxtw #2]
	cbz	w8, LBB0_25
LBB0_23:                                ;   in Loop: Header=BB0_7 Depth=2
	ldr	x8, [x21, #8]
	ldr	x3, [x8, #24]
	sub	x1, x29, #84
	mov	x0, x21
	mov	w2, #0
	bl	_jpg_decode_block
	cbnz	w0, LBB0_35
; %bb.24:                               ;   in Loop: Header=BB0_7 Depth=2
	sub	w26, w26, #1
	ldp	x9, x8, [x21, #8]
	ldr	x0, [x9, #24]
	blr	x8
LBB0_25:                                ;   in Loop: Header=BB0_7 Depth=2
	ldr	x8, [x21, #8]
	ldr	x3, [x8, #32]
	sub	x1, x29, #84
	mov	x0, x21
	mov	w2, #1
	bl	_jpg_decode_block
	cbnz	w0, LBB0_35
; %bb.26:                               ;   in Loop: Header=BB0_7 Depth=2
	ldp	x9, x8, [x21, #8]
	ldr	x0, [x9, #32]
	blr	x8
	ldr	x8, [x21, #8]
	ldr	x3, [x8, #40]
	sub	x1, x29, #84
	mov	x0, x21
	mov	w2, #2
	bl	_jpg_decode_block
	cbnz	w0, LBB0_35
; %bb.27:                               ;   in Loop: Header=BB0_7 Depth=2
	stp	x28, x27, [sp, #72]             ; 16-byte Folded Spill
	str	w26, [sp, #92]                  ; 4-byte Folded Spill
	and	x8, x27, #0xfffffff
	add	x26, x20, x8, lsl #6
	ldp	x9, x8, [x21, #8]
	ldr	x0, [x9, #40]
	blr	x8
	mov	x19, #0
LBB0_28:                                ;   Parent Loop BB0_5 Depth=1
                                        ;     Parent Loop BB0_7 Depth=2
                                        ; =>    This Loop Header: Depth=3
                                        ;         Child Loop BB0_29 Depth 4
	mov	x28, #0
	ubfx	x8, x19, #2, #30
	and	w20, w8, #0x1ffffffe
	lsl	w8, w19, #3
	and	x25, x8, #0x38
	lsl	w8, w19, #2
	and	w27, w8, #0x7ffffff8
	mov	x24, x26
LBB0_29:                                ;   Parent Loop BB0_5 Depth=1
                                        ;     Parent Loop BB0_7 Depth=2
                                        ;       Parent Loop BB0_28 Depth=3
                                        ; =>      This Inner Loop Header: Depth=4
	ldr	x8, [x21, #8]
	add	w9, w20, w28, lsr #3
	ldr	x9, [x8, w9, uxtw #3]
	and	x10, x28, #0x7
	orr	x10, x10, x25
	ldr	w2, [x9, x10, lsl #2]
	add	w9, w27, w28, lsr #1
	lsl	x9, x9, #2
	ldp	x10, x8, [x8, #32]
	ldr	w10, [x10, x9]
	sub	w3, w10, #128
	ldr	w8, [x8, x9]
	sub	w4, w8, #128
	mov	x0, x24
	mov	x1, x23
	bl	_yuv2rgb
	add	x28, x28, #1
	add	x24, x24, #12
	cmp	x28, #16
	b.ne	LBB0_29
; %bb.30:                               ;   in Loop: Header=BB0_28 Depth=3
	add	x19, x19, #1
	add	x26, x26, x22
	cmp	x19, #16
	b.ne	LBB0_28
; %bb.31:                               ;   in Loop: Header=BB0_7 Depth=2
	ldr	w26, [sp, #92]                  ; 4-byte Folded Reload
	cbz	w26, LBB0_34
LBB0_32:                                ;   in Loop: Header=BB0_7 Depth=2
	ldp	x28, x27, [sp, #72]             ; 16-byte Folded Reload
	add	x28, x28, #1
	add	w27, w27, #3
	ldp	x8, x20, [sp, #48]              ; 16-byte Folded Reload
	cmp	x28, x8
	ldr	x25, [sp, #96]                  ; 8-byte Folded Reload
	b.ne	LBB0_7
	b	LBB0_4
LBB0_33:                                ;   in Loop: Header=BB0_7 Depth=2
	stp	x28, x27, [sp, #72]             ; 16-byte Folded Spill
	b	LBB0_32
LBB0_34:
	mov	w0, #0
LBB0_35:
	ldp	x29, x30, [sp, #192]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #176]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #160]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #144]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #128]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #112]            ; 16-byte Folded Reload
	add	sp, sp, #208
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_INPUT_BUFFER_PADDING_SIZE,8,3 ; @AV_INPUT_BUFFER_PADDING_SIZE
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ; @.memset_pattern
l_.memset_pattern:
	.long	1024                            ; 0x400
	.long	1024                            ; 0x400
	.long	1024                            ; 0x400
	.long	1024                            ; 0x400

	.no_dead_strip	_jpg_decode_data
.subsections_via_symbols
