	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function jpg_decode_block
_jpg_decode_block:                      ## @jpg_decode_block
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movl	%edx, %r12d
	movq	%rsi, %rbx
	movq	%rdi, %r15
	testl	%edx, %edx
	je	LBB0_1
## %bb.2:
	movq	_chroma_quant@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_luma_quant@GOTPCREL(%rip), %rax
LBB0_3:
	movq	(%rax), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_get_bits_left
	testl	%eax, %eax
	jle	LBB0_4
## %bb.5:
	xorl	%r13d, %r13d
	testl	%r12d, %r12d
	setne	%r13b
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	*32(%r15)
	movq	24(%r15), %rax
	movl	(%rax,%r13,4), %esi
	movq	%rbx, %rdi
	movl	$9, %edx
	movl	$3, %ecx
	callq	_get_vlc2
	testl	%eax, %eax
	js	LBB0_4
## %bb.6:
	movl	%eax, %esi
	xorl	%r14d, %r14d
	movl	$0, %eax
	testl	%esi, %esi
	je	LBB0_8
## %bb.7:
	movq	%rbx, %rdi
	callq	_get_xbits
LBB0_8:
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	imull	(%rcx), %eax
	movq	(%r15), %rcx
	movslq	%r12d, %rdx
	addl	(%rcx,%rdx,4), %eax
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movl	%eax, (%rsi)
	movl	%eax, (%rcx,%rdx,4)
	movq	_ff_zigzag_direct@GOTPCREL(%rip), %r12
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_9 Depth=1
	cmpl	$63, %r14d
	jae	LBB0_15
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%r15), %rax
	movl	(%rax,%r13,4), %esi
	movq	%rbx, %rdi
	movl	$9, %edx
	movl	$3, %ecx
	callq	_get_vlc2
	testl	%eax, %eax
	js	LBB0_4
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	movl	%eax, %ecx
	shrl	$4, %ecx
	addl	%ecx, %r14d
	andl	$15, %eax
	cmpl	$64, %r14d
	jae	LBB0_11
## %bb.12:                              ##   in Loop: Header=BB0_9 Depth=1
	testl	%eax, %eax
	je	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_get_xbits
	movq	(%r12), %rcx
	movl	%r14d, %edx
	movq	(%rcx,%rdx,8), %rcx
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	imull	(%rsi,%rcx,4), %eax
	movq	8(%r15), %rcx
	movq	(%rcx,%rdx,8), %rcx
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movl	%eax, (%rdx,%rcx,4)
	jmp	LBB0_14
LBB0_15:
	xorl	%eax, %eax
	jmp	LBB0_16
LBB0_11:
	testl	%eax, %eax
	je	LBB0_16
LBB0_4:
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_16:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_chroma_quant,8,3               ## @chroma_quant
	.comm	_luma_quant,8,3                 ## @luma_quant
	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
	.comm	_ff_zigzag_direct,8,3           ## @ff_zigzag_direct
	.no_dead_strip	_jpg_decode_block
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function jpg_decode_block
_jpg_decode_block:                      ; @jpg_decode_block
	.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	x19, x3
	mov	x22, x2
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _chroma_quant@GOTPAGE
Lloh1:
	ldr	x8, [x8, _chroma_quant@GOTPAGEOFF]
Lloh2:
	adrp	x9, _luma_quant@GOTPAGE
Lloh3:
	ldr	x9, [x9, _luma_quant@GOTPAGEOFF]
	cmp	w2, #0
	csel	x8, x8, x9, ne
	ldr	x23, [x8]
	mov	x0, x1
	bl	_get_bits_left
	cmp	w0, #0
	b.le	LBB0_11
; %bb.1:
	cmp	w22, #0
	cset	w24, ne
	ldr	x8, [x21, #32]
	mov	x0, x19
	blr	x8
	ldr	x8, [x21, #24]
	ldr	w1, [x8, w24, uxtw #2]
	mov	x0, x20
	mov	w2, #9
	mov	w3, #3
	bl	_get_vlc2
	tbnz	w0, #31, LBB0_11
; %bb.2:
	mov	x1, x0
	cbz	w0, LBB0_4
; %bb.3:
	mov	x0, x20
	bl	_get_xbits
	b	LBB0_5
LBB0_4:
	mov	w0, #0
LBB0_5:
	mov	w25, #0
	ldr	w8, [x23]
	ldr	x9, [x21]
	sbfiz	x10, x22, #2, #32
	ldr	w11, [x9, x10]
	madd	w8, w8, w0, w11
	str	w8, [x19]
	str	w8, [x9, x10]
Lloh4:
	adrp	x22, _ff_zigzag_direct@GOTPAGE
Lloh5:
	ldr	x22, [x22, _ff_zigzag_direct@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	cmp	w25, #63
	b.hs	LBB0_13
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21, #16]
	ldr	w1, [x8, x24, lsl #2]
	mov	x0, x20
	mov	w2, #9
	mov	w3, #3
	bl	_get_vlc2
	tbnz	w0, #31, LBB0_11
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	add	w25, w25, w0, lsr #4
	and	w1, w0, #0xf
	cmp	w25, #64
	b.hs	LBB0_14
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	cbz	w1, LBB0_6
; %bb.10:                               ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x20
	bl	_get_xbits
	ldr	x8, [x22]
	lsl	x9, x25, #3
	ldr	x8, [x8, x9]
	ldr	w8, [x23, x8, lsl #2]
	mul	w8, w8, w0
	ldr	x10, [x21, #8]
	ldr	x9, [x10, x9]
	str	w8, [x19, x9, lsl #2]
	b	LBB0_6
LBB0_11:
Lloh6:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh7:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
LBB0_12:
	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
LBB0_13:
	mov	w0, #0
	b	LBB0_12
LBB0_14:
Lloh9:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh10:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	cmp	w1, #0
	csel	w0, wzr, w8, eq
	b	LBB0_12
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_chroma_quant,8,3               ; @chroma_quant
	.comm	_luma_quant,8,3                 ; @luma_quant
	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.comm	_ff_zigzag_direct,8,3           ; @ff_zigzag_direct
	.no_dead_strip	_jpg_decode_block
.subsections_via_symbols
