	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function decode_block
_decode_block:                          ## @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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %r13
	movl	%r8d, %r14d
	movl	%edx, %ebx
	movq	%rsi, %r12
	movq	%rdi, %r15
	movl	%ecx, %esi
	callq	_mjpeg_decode_dc
	cmpl	$1048575, %eax                  ## imm = 0xFFFFF
	jne	LBB0_1
## %bb.3:
	movl	24(%r15), %edi
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	xorl	%eax, %eax
	callq	_av_log
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	imull	(%r13), %eax
	movq	(%r15), %rcx
	movslq	%ebx, %rbx
	addl	(%rcx,%rbx,4), %eax
	movl	%eax, %edi
	callq	_av_clip_int16
	movq	(%r15), %rcx
	movl	%eax, (%rcx,%rbx,4)
	movl	%eax, (%r12)
	movq	_re@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	leaq	8(%r15), %rbx
	movq	%rbx, %rsi
	callq	_OPEN_READER
	movslq	%r14d, %r14
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r12), %edi
	movq	%rbx, %rsi
	callq	_UPDATE_CACHE
	movl	(%r12), %esi
	movq	32(%r15), %rax
	movq	8(%rax), %rax
	movl	(%rax,%r14,4), %ecx
	xorl	%edi, %edi
	movq	%rbx, %rdx
	movl	$9, %r8d
	movl	$2, %r9d
	callq	_GET_VLC
	jmp	LBB0_2
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"error dc\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
	.comm	_re,4,2                         ## @re
	.comm	_MIN_CACHE_BITS,4,2             ## @MIN_CACHE_BITS
	.no_dead_strip	_decode_block
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function decode_block
_decode_block:                          ; @decode_block
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x21, x5
	mov	x20, x4
	mov	x23, x2
	mov	x22, x1
	mov	x19, x0
	mov	x1, x3
	bl	_mjpeg_decode_dc
	mov	w8, #1048575
	cmp	w0, w8
	b.ne	LBB0_2
; %bb.1:
	ldr	w0, [x19, #24]
Lloh0:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	bl	_av_log
Lloh5:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh6:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_2:
	ldr	w8, [x21]
	ldr	x9, [x19]
	sbfiz	x23, x23, #2, #32
	ldr	w9, [x9, x23]
	madd	w0, w8, w0, w9
	bl	_av_clip_int16
	mov	x21, x19
	ldr	x8, [x21], #8
	str	w0, [x8, x23]
	str	w0, [x22]
Lloh8:
	adrp	x22, _re@GOTPAGE
Lloh9:
	ldr	x22, [x22, _re@GOTPAGEOFF]
	ldr	w0, [x22]
	mov	x1, x21
	bl	_OPEN_READER
	sxtw	x20, w20
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x22]
	mov	x1, x21
	bl	_UPDATE_CACHE
	ldr	w1, [x22]
	ldr	x8, [x19, #32]
	ldr	x8, [x8, #8]
	ldr	w3, [x8, x20, lsl #2]
	mov	w0, #0
	mov	x2, x21
	mov	w4, #9
	mov	w5, #2
	bl	_GET_VLC
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"error dc\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.comm	_re,4,2                         ; @re
	.comm	_MIN_CACHE_BITS,4,2             ; @MIN_CACHE_BITS
	.no_dead_strip	_decode_block
.subsections_via_symbols
