	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mxpeg_decode_frame
_mxpeg_decode_frame:                    ## @mxpeg_decode_frame
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, -88(%rbp)                 ## 8-byte Spill
	movq	%rsi, -104(%rbp)                ## 8-byte Spill
	movq	8(%rcx), %rdx
	movslq	(%rcx), %rax
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movq	8(%rdi), %r13
	movq	%rdx, -96(%rbp)                 ## 8-byte Spill
	movq	%rdx, -72(%rbp)
	movl	$0, 48(%r13)
	movq	$0, 16(%r13)
	testq	%rax, %rax
	jle	LBB0_47
## %bb.1:
	leaq	48(%r13), %rcx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	-96(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rcx,%rax,4), %r14
	leaq	64(%r13), %r12
	jmp	LBB0_4
LBB0_2:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	cmpl	$0, (%rax)
	jne	LBB0_35
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	%r12, %rdi
	callq	_get_bits_count
	addl	$7, %eax
	sarl	$3, %eax
	cltq
	shlq	$2, %rax
	addq	-72(%rbp), %rax
	movq	%rax, -72(%rbp)
	cmpq	%r14, %rax
	jae	LBB0_34
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	leaq	-72(%rbp), %rsi
	movq	%r14, %rdx
	leaq	-80(%rbp), %rcx
	leaq	-60(%rbp), %r8
	callq	_ff_mjpeg_find_marker
	testl	%eax, %eax
	js	LBB0_34
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	%eax, %ebx
	movq	-80(%rbp), %rsi
	movl	-60(%rbp), %edx
	shll	$3, %edx
	movq	%r12, %rdi
	callq	_init_get_bits
	movq	_APP0@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jl	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	_APP15@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jg	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	-80(%rbp), %rsi
	movl	-60(%rbp), %edx
	movq	%r13, %rdi
	callq	_mxpeg_decode_app
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=1
	addl	$-128, %ebx
	cmpl	$6, %ebx
	ja	LBB0_3
## %bb.9:                               ##   in Loop: Header=BB0_4 Depth=1
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rbx,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_10:                                ##   in Loop: Header=BB0_4 Depth=1
	cmpl	$0, (%r13)
	je	LBB0_24
## %bb.11:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	cmpl	$0, (%rax)
	je	LBB0_25
## %bb.12:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	_AV_PICTURE_TYPE_I@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	56(%r13), %rax
	movl	%ecx, 16(%rax)
LBB0_13:                                ##   in Loop: Header=BB0_4 Depth=1
	movl	$1, (%rax)
	cmpq	$0, 16(%r13)
	je	LBB0_27
## %bb.14:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	24(%r13), %rax
	movslq	4(%r13), %rcx
	xorq	$1, %rcx
	movq	(%rax,%rcx,8), %rbx
	movq	%r13, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movq	%rbx, %rdx
	callq	_mxpeg_check_dimensions
	testl	%eax, %eax
	js	LBB0_3
## %bb.15:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	8(%rbx), %rax
	cmpl	$0, (%rax)
	jne	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	_AV_GET_BUFFER_FLAG_REF@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rsi
	callq	_ff_get_buffer
	testl	%eax, %eax
	js	LBB0_44
LBB0_17:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	40(%r13), %rsi
	movl	32(%r13), %edx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rcx
	jmp	LBB0_28
LBB0_18:                                ##   in Loop: Header=BB0_4 Depth=1
	movl	$0, (%r13)
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_ff_mjpeg_decode_sof
	testl	%eax, %eax
	js	LBB0_40
## %bb.19:                              ##   in Loop: Header=BB0_4 Depth=1
	cmpl	$0, 72(%r13)
	jne	LBB0_45
## %bb.20:                              ##   in Loop: Header=BB0_4 Depth=1
	movl	$1, (%r13)
	jmp	LBB0_3
LBB0_21:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_ff_mjpeg_decode_dqt
	testl	%eax, %eax
	jns	LBB0_3
	jmp	LBB0_41
LBB0_22:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_ff_mjpeg_decode_dht
	testl	%eax, %eax
	jns	LBB0_3
	jmp	LBB0_42
LBB0_23:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	-80(%rbp), %rsi
	movl	-60(%rbp), %edx
	movq	%r13, %rdi
	callq	_mxpeg_decode_com
	testl	%eax, %eax
	jns	LBB0_3
	jmp	LBB0_44
LBB0_24:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	_AV_LOG_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	leaq	L_.str.4(%rip), %rdx
	callq	_av_log
	jmp	LBB0_3
LBB0_25:                                ##   in Loop: Header=BB0_4 Depth=1
	cmpl	$0, 68(%r13)
	je	LBB0_30
## %bb.26:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	_AV_LOG_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	leaq	L_.str.5(%rip), %rdx
	callq	_av_log
	jmp	LBB0_3
LBB0_27:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	xorl	%esi, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
LBB0_28:                                ##   in Loop: Header=BB0_4 Depth=1
	callq	_ff_mjpeg_decode_sos
	testl	%eax, %eax
	jns	LBB0_3
## %bb.29:                              ##   in Loop: Header=BB0_4 Depth=1
	movl	%eax, %r15d
	movq	_AV_EF_EXPLODE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	testl	%eax, (%rcx)
	je	LBB0_3
	jmp	LBB0_48
LBB0_30:                                ##   in Loop: Header=BB0_4 Depth=1
	cmpq	$0, 16(%r13)
	je	LBB0_33
## %bb.31:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	56(%r13), %rdi
	callq	_av_frame_unref
	movq	56(%r13), %rsi
	movq	_AV_GET_BUFFER_FLAG_REF@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_ff_get_buffer
	testl	%eax, %eax
	js	LBB0_44
## %bb.32:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	_AV_PICTURE_TYPE_P@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	56(%r13), %rcx
	movl	%eax, 16(%rcx)
	movl	$0, (%rcx)
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	jmp	LBB0_13
LBB0_33:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	_AV_LOG_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	leaq	L_.str.6(%rip), %rdx
	callq	_av_log
	jmp	LBB0_3
LBB0_34:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	cmpl	$0, (%rax)
	je	LBB0_47
LBB0_35:
	movq	56(%r13), %rsi
	movq	-104(%rbp), %rdi                ## 8-byte Reload
	callq	_av_frame_ref
	testl	%eax, %eax
	js	LBB0_44
## %bb.36:
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	movl	$1, (%rax)
	movslq	4(%r13), %rax
	xorq	$1, %rax
	movl	%eax, 4(%r13)
	movq	24(%r13), %rcx
	movq	(%rcx,%rax,8), %rax
	movq	%rax, 56(%r13)
	cmpl	$0, 8(%r13)
	jne	LBB0_47
## %bb.37:
	cmpq	$0, 16(%r13)
	je	LBB0_46
## %bb.38:
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	movl	$0, (%rax)
	jmp	LBB0_47
LBB0_44:
	movl	%eax, %r15d
	jmp	LBB0_48
LBB0_40:
	movl	%eax, %r15d
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rdx
	jmp	LBB0_43
LBB0_41:
	movl	%eax, %r15d
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	jmp	LBB0_43
LBB0_42:
	movl	%eax, %r15d
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
LBB0_43:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_av_log
	jmp	LBB0_48
LBB0_45:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.3(%rip), %rdx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_av_log
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_AVERROR
	movl	%eax, %r15d
	jmp	LBB0_48
LBB0_46:
	movl	$1, 8(%r13)
LBB0_47:
	movq	-72(%rbp), %r15
	subq	-96(%rbp), %r15                 ## 8-byte Folded Reload
	shrq	$2, %r15
LBB0_48:
	movl	%r15d, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_18, LBB0_18-LJTI0_0
.set L0_0_set_34, LBB0_34-LJTI0_0
.set L0_0_set_21, LBB0_21-LJTI0_0
.set L0_0_set_22, LBB0_22-LJTI0_0
.set L0_0_set_23, LBB0_23-LJTI0_0
LJTI0_0:
	.long	L0_0_set_10
	.long	L0_0_set_2
	.long	L0_0_set_18
	.long	L0_0_set_34
	.long	L0_0_set_21
	.long	L0_0_set_22
	.long	L0_0_set_23
	.end_data_region
                                        ## -- End function
	.comm	_APP0,4,2                       ## @APP0
	.comm	_APP15,4,2                      ## @APP15
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"quantization table decode error\n"

L_.str.1:                               ## @.str.1
	.asciz	"huffman table decode error\n"

L_.str.2:                               ## @.str.2
	.asciz	"SOF data decode error\n"

L_.str.3:                               ## @.str.3
	.asciz	"Interlaced mode not supported in MxPEG\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_AV_LOG_WARNING,4,2             ## @AV_LOG_WARNING
L_.str.4:                               ## @.str.4
	.asciz	"Can not process SOS without SOF data, skipping\n"

L_.str.5:                               ## @.str.5
	.asciz	"First picture has no SOF, skipping\n"

L_.str.6:                               ## @.str.6
	.asciz	"Non-key frame has no MXM, skipping\n"

	.comm	_AV_GET_BUFFER_FLAG_REF,4,2     ## @AV_GET_BUFFER_FLAG_REF
	.comm	_AV_PICTURE_TYPE_P,4,2          ## @AV_PICTURE_TYPE_P
	.comm	_AV_PICTURE_TYPE_I,4,2          ## @AV_PICTURE_TYPE_I
	.comm	_AV_EF_EXPLODE,4,2              ## @AV_EF_EXPLODE
	.no_dead_strip	_mxpeg_decode_frame
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mxpeg_decode_frame
_mxpeg_decode_frame:                    ; @mxpeg_decode_frame
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	stp	x2, x1, [sp]                    ; 16-byte Folded Spill
	ldr	x25, [x3, #8]
	ldrsw	x8, [x3]
	str	x0, [sp, #16]                   ; 8-byte Folded Spill
	ldr	x20, [x0, #8]
	mov	x23, x20
	str	wzr, [x23, #48]!
	str	x25, [sp, #40]
	str	xzr, [x20, #16]
	cmp	w8, #1
	b.lt	LBB0_44
; %bb.1:
	add	x24, x20, #64
Lloh0:
	adrp	x19, _APP0@GOTPAGE
Lloh1:
	ldr	x19, [x19, _APP0@GOTPAGEOFF]
Lloh2:
	adrp	x22, _APP15@GOTPAGE
Lloh3:
	ldr	x22, [x22, _APP15@GOTPAGEOFF]
Lloh4:
	adrp	x21, lJTI0_0@PAGE
Lloh5:
	add	x21, x21, lJTI0_0@PAGEOFF
	add	x27, x25, x8, lsl #2
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x23]
	cbnz	w8, LBB0_33
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x24
	bl	_get_bits_count
	add	w8, w0, #7
	asr	w8, w8, #3
	ldr	x9, [sp, #40]
	add	x8, x9, w8, sxtw #2
	str	x8, [sp, #40]
	cmp	x8, x27
	b.hs	LBB0_32
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	add	x1, sp, #40
	add	x3, sp, #32
	add	x4, sp, #28
	mov	x0, x23
	mov	x2, x27
	bl	_ff_mjpeg_find_marker
	tbnz	w0, #31, LBB0_32
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x26, x0
	ldr	x1, [sp, #32]
	ldr	w8, [sp, #28]
	lsl	w2, w8, #3
	mov	x0, x24
	bl	_init_get_bits
	ldr	w8, [x19]
	ldr	w9, [x22]
	cmp	w26, w8
	ccmp	w26, w9, #0, ge
	b.gt	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x1, [sp, #32]
	ldr	w2, [sp, #28]
	mov	x0, x20
	bl	_mxpeg_decode_app
LBB0_7:                                 ;   in Loop: Header=BB0_4 Depth=1
	sub	w8, w26, #128
	cmp	w8, #6
	b.hi	LBB0_3
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	adr	x9, LBB0_2
	ldrb	w10, [x21, x8]
	add	x9, x9, x10, lsl #2
	br	x9
LBB0_9:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x20]
	cbz	w8, LBB0_23
; %bb.10:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x23]
	cbz	w8, LBB0_24
; %bb.11:                               ;   in Loop: Header=BB0_4 Depth=1
Lloh6:
	adrp	x8, _AV_PICTURE_TYPE_I@GOTPAGE
Lloh7:
	ldr	x8, [x8, _AV_PICTURE_TYPE_I@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x8]
	ldr	x8, [x20, #56]
	str	w9, [x8, #16]
LBB0_12:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	w9, #1
	str	w9, [x8]
	ldr	x8, [x20, #16]
	cbz	x8, LBB0_26
; %bb.13:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x20, #24]
	ldrsw	x9, [x20, #4]
	eor	x9, x9, #0x1
	ldr	x28, [x8, x9, lsl #3]
	mov	x0, x20
	mov	x1, x23
	mov	x2, x28
	bl	_mxpeg_check_dimensions
	tbnz	w0, #31, LBB0_3
; %bb.14:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x28, #8]
	ldr	w8, [x8]
	cbnz	w8, LBB0_16
; %bb.15:                               ;   in Loop: Header=BB0_4 Depth=1
Lloh9:
	adrp	x8, _AV_GET_BUFFER_FLAG_REF@GOTPAGE
Lloh10:
	ldr	x8, [x8, _AV_GET_BUFFER_FLAG_REF@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	ldr	x0, [sp, #16]                   ; 8-byte Folded Reload
	mov	x1, x28
	bl	_ff_get_buffer
	tbnz	w0, #31, LBB0_37
LBB0_16:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x1, [x20, #40]
	ldr	w2, [x20, #32]
	mov	x0, x23
	mov	x3, x28
	bl	_ff_mjpeg_decode_sos
	tbz	w0, #31, LBB0_3
	b	LBB0_27
LBB0_17:                                ;   in Loop: Header=BB0_4 Depth=1
	str	wzr, [x20]
	mov	x0, x23
	bl	_ff_mjpeg_decode_sof
	tbnz	w0, #31, LBB0_38
; %bb.18:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x20, #72]
	cbnz	w8, LBB0_42
; %bb.19:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	w8, #1
	str	w8, [x20]
	b	LBB0_3
LBB0_20:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x23
	bl	_ff_mjpeg_decode_dqt
	tbz	w0, #31, LBB0_3
	b	LBB0_39
LBB0_21:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x23
	bl	_ff_mjpeg_decode_dht
	tbz	w0, #31, LBB0_3
	b	LBB0_40
LBB0_22:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x1, [sp, #32]
	ldr	w2, [sp, #28]
	mov	x0, x20
	bl	_mxpeg_decode_com
	tbz	w0, #31, LBB0_3
	b	LBB0_37
LBB0_23:                                ;   in Loop: Header=BB0_4 Depth=1
Lloh12:
	adrp	x8, _AV_LOG_WARNING@GOTPAGE
Lloh13:
	ldr	x8, [x8, _AV_LOG_WARNING@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	ldr	x0, [sp, #16]                   ; 8-byte Folded Reload
Lloh15:
	adrp	x2, l_.str.4@PAGE
Lloh16:
	add	x2, x2, l_.str.4@PAGEOFF
	bl	_av_log
	b	LBB0_3
LBB0_24:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x20, #68]
	cbz	w8, LBB0_28
; %bb.25:                               ;   in Loop: Header=BB0_4 Depth=1
Lloh17:
	adrp	x8, _AV_LOG_WARNING@GOTPAGE
Lloh18:
	ldr	x8, [x8, _AV_LOG_WARNING@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	ldr	x0, [sp, #16]                   ; 8-byte Folded Reload
Lloh20:
	adrp	x2, l_.str.5@PAGE
Lloh21:
	add	x2, x2, l_.str.5@PAGEOFF
	bl	_av_log
	b	LBB0_3
LBB0_26:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x23
	mov	x1, #0
	mov	w2, #0
	mov	x3, #0
	bl	_ff_mjpeg_decode_sos
	tbz	w0, #31, LBB0_3
LBB0_27:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [sp, #16]                   ; 8-byte Folded Reload
	ldr	w8, [x8]
Lloh22:
	adrp	x9, _AV_EF_EXPLODE@GOTPAGE
Lloh23:
	ldr	x9, [x9, _AV_EF_EXPLODE@GOTPAGEOFF]
Lloh24:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_3
	b	LBB0_37
LBB0_28:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x20, #16]
	cbz	x8, LBB0_31
; %bb.29:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	x0, [x20, #56]
	bl	_av_frame_unref
	ldr	x1, [x20, #56]
Lloh25:
	adrp	x8, _AV_GET_BUFFER_FLAG_REF@GOTPAGE
Lloh26:
	ldr	x8, [x8, _AV_GET_BUFFER_FLAG_REF@GOTPAGEOFF]
Lloh27:
	ldr	w2, [x8]
	ldr	x0, [sp, #16]                   ; 8-byte Folded Reload
	bl	_ff_get_buffer
	tbnz	w0, #31, LBB0_37
; %bb.30:                               ;   in Loop: Header=BB0_4 Depth=1
Lloh28:
	adrp	x8, _AV_PICTURE_TYPE_P@GOTPAGE
Lloh29:
	ldr	x8, [x8, _AV_PICTURE_TYPE_P@GOTPAGEOFF]
Lloh30:
	ldr	w8, [x8]
	ldr	x9, [x20, #56]
	str	w8, [x9, #16]
	str	wzr, [x9]
	mov	x8, x23
	b	LBB0_12
LBB0_31:                                ;   in Loop: Header=BB0_4 Depth=1
Lloh31:
	adrp	x8, _AV_LOG_WARNING@GOTPAGE
Lloh32:
	ldr	x8, [x8, _AV_LOG_WARNING@GOTPAGEOFF]
Lloh33:
	ldr	w1, [x8]
	ldr	x0, [sp, #16]                   ; 8-byte Folded Reload
Lloh34:
	adrp	x2, l_.str.6@PAGE
Lloh35:
	add	x2, x2, l_.str.6@PAGEOFF
	bl	_av_log
	b	LBB0_3
LBB0_32:
	ldr	w8, [x23]
	cbz	w8, LBB0_44
LBB0_33:
	ldr	x1, [x20, #56]
	ldr	x0, [sp, #8]                    ; 8-byte Folded Reload
	bl	_av_frame_ref
	tbnz	w0, #31, LBB0_37
; %bb.34:
	mov	w8, #1
	ldr	x9, [sp]                        ; 8-byte Folded Reload
	str	w8, [x9]
	ldp	w8, w9, [x20, #4]
                                        ; kill: def $w8 killed $w8 def $x8
	sxtw	x8, w8
	eor	x8, x8, #0x1
	str	w8, [x20, #4]
	ldr	x10, [x20, #24]
	ldr	x8, [x10, x8, lsl #3]
	str	x8, [x20, #56]
	cbnz	w9, LBB0_44
; %bb.35:
	ldr	x8, [x20, #16]
	cbz	x8, LBB0_43
; %bb.36:
	ldr	x8, [sp]                        ; 8-byte Folded Reload
	str	wzr, [x8]
	b	LBB0_44
LBB0_37:
	mov	x26, x0
	b	LBB0_45
LBB0_38:
	mov	x26, x0
Lloh36:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh37:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh38:
	ldr	w1, [x8]
Lloh39:
	adrp	x2, l_.str.2@PAGE
Lloh40:
	add	x2, x2, l_.str.2@PAGEOFF
	b	LBB0_41
LBB0_39:
	mov	x26, x0
Lloh41:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh42:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh43:
	ldr	w1, [x8]
Lloh44:
	adrp	x2, l_.str@PAGE
Lloh45:
	add	x2, x2, l_.str@PAGEOFF
	b	LBB0_41
LBB0_40:
	mov	x26, x0
Lloh46:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh47:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh48:
	ldr	w1, [x8]
Lloh49:
	adrp	x2, l_.str.1@PAGE
Lloh50:
	add	x2, x2, l_.str.1@PAGEOFF
LBB0_41:
	ldr	x0, [sp, #16]                   ; 8-byte Folded Reload
	bl	_av_log
	b	LBB0_45
LBB0_42:
Lloh51:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh52:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh53:
	ldr	w1, [x8]
Lloh54:
	adrp	x2, l_.str.3@PAGE
Lloh55:
	add	x2, x2, l_.str.3@PAGEOFF
	ldr	x0, [sp, #16]                   ; 8-byte Folded Reload
	bl	_av_log
Lloh56:
	adrp	x8, _EINVAL@GOTPAGE
Lloh57:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh58:
	ldr	w0, [x8]
	bl	_AVERROR
	mov	x26, x0
	b	LBB0_45
LBB0_43:
	mov	w8, #1
	str	w8, [x20, #8]
LBB0_44:
	ldr	x8, [sp, #40]
	sub	x8, x8, x25
	lsr	x26, x8, #2
LBB0_45:
	mov	x0, x26
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpAdd	Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpAdd	Lloh49, Lloh50
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh56, Lloh57, Lloh58
	.loh AdrpAdd	Lloh54, Lloh55
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_9-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_17-LBB0_2)>>2
	.byte	(LBB0_32-LBB0_2)>>2
	.byte	(LBB0_20-LBB0_2)>>2
	.byte	(LBB0_21-LBB0_2)>>2
	.byte	(LBB0_22-LBB0_2)>>2
                                        ; -- End function
	.comm	_APP0,4,2                       ; @APP0
	.comm	_APP15,4,2                      ; @APP15
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"quantization table decode error\n"

l_.str.1:                               ; @.str.1
	.asciz	"huffman table decode error\n"

l_.str.2:                               ; @.str.2
	.asciz	"SOF data decode error\n"

l_.str.3:                               ; @.str.3
	.asciz	"Interlaced mode not supported in MxPEG\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_AV_LOG_WARNING,4,2             ; @AV_LOG_WARNING
l_.str.4:                               ; @.str.4
	.asciz	"Can not process SOS without SOF data, skipping\n"

l_.str.5:                               ; @.str.5
	.asciz	"First picture has no SOF, skipping\n"

l_.str.6:                               ; @.str.6
	.asciz	"Non-key frame has no MXM, skipping\n"

	.comm	_AV_GET_BUFFER_FLAG_REF,4,2     ; @AV_GET_BUFFER_FLAG_REF
	.comm	_AV_PICTURE_TYPE_P,4,2          ; @AV_PICTURE_TYPE_P
	.comm	_AV_PICTURE_TYPE_I,4,2          ; @AV_PICTURE_TYPE_I
	.comm	_AV_EF_EXPLODE,4,2              ; @AV_EF_EXPLODE
	.no_dead_strip	_mxpeg_decode_frame
.subsections_via_symbols
