	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_mjpeg_decode_sos            ## -- Begin function ff_mjpeg_decode_sos
	.p2align	4, 0x90
_ff_mjpeg_decode_sos:                   ## @ff_mjpeg_decode_sos
	.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
	movl	%edx, %r13d
	movq	%rdi, %r15
	cmpq	$0, 200(%rdi)
	movl	$8, %eax
	movl	$1, %edx
	cmovel	%eax, %edx
	cmpl	$0, 256(%rdi)
	je	LBB0_35
## %bb.1:
	movq	%rcx, %rbx
	testq	%rcx, %rcx
	je	LBB0_5
## %bb.2:
	movq	(%rbx), %rcx
	movq	160(%r15), %rax
	cmpq	(%rax), %rcx
	jne	LBB0_36
## %bb.3:
	movq	8(%rbx), %rcx
	cmpq	8(%rax), %rcx
	jne	LBB0_36
## %bb.4:
	movq	16(%rbx), %rcx
	cmpq	16(%rax), %rcx
	jne	LBB0_36
LBB0_5:
	movq	%rdx, -88(%rbp)                 ## 8-byte Spill
	movq	%rsi, -176(%rbp)                ## 8-byte Spill
	leaq	136(%r15), %r12
	movq	%r12, %rdi
	movl	$16, %esi
	callq	_get_bits
	movl	%eax, %r14d
	movq	%r12, -72(%rbp)                 ## 8-byte Spill
	movq	%r12, %rdi
	movl	$8, %esi
	callq	_get_bits
	movl	%eax, %edx
	testl	%eax, %eax
	je	LBB0_38
## %bb.6:
	movq	_MAX_COMPONENTS@GOTPCREL(%rip), %rax
	cmpl	(%rax), %edx
	jg	LBB0_38
## %bb.7:
	leal	(%rdx,%rdx), %eax
	addl	$6, %eax
	cmpl	%eax, %r14d
	jne	LBB0_39
## %bb.8:
	movl	%r13d, -116(%rbp)               ## 4-byte Spill
	movq	%rbx, -168(%rbp)                ## 8-byte Spill
	movl	%edx, %eax
	movq	%rax, -112(%rbp)                ## 8-byte Spill
	movq	%rdx, -104(%rbp)                ## 8-byte Spill
	testl	%edx, %edx
	jle	LBB0_31
## %bb.9:
	movq	-104(%rbp), %rax                ## 8-byte Reload
                                        ## kill: def $eax killed $eax killed $rax
	andl	$-3, %eax
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	movq	_AV_LOG_DEBUG@GOTPCREL(%rip), %r13
	leaq	L_.str.4(%rip), %r12
	xorl	%r14d, %r14d
LBB0_10:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_12 Depth 2
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movl	$8, %esi
	callq	_get_bits
	movl	%eax, %ebx
	decl	%ebx
	movq	128(%r15), %rdi
	movl	(%r13), %esi
	movq	%r12, %rdx
	movl	%ebx, %ecx
	xorl	%eax, %eax
	callq	_av_log
	movl	(%r15), %ecx
	movl	$0, %r13d
	testl	%ecx, %ecx
	jle	LBB0_14
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	8(%r15), %rax
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_12:                                ##   Parent Loop BB0_10 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpl	(%rax,%r13,4), %ebx
	je	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=2
	incq	%r13
	cmpq	%r13, %rcx
	jne	LBB0_12
	jmp	LBB0_40
LBB0_14:                                ##   in Loop: Header=BB0_10 Depth=1
	cmpl	%ecx, %r13d
	je	LBB0_40
## %bb.15:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	128(%r15), %rax
	movq	(%rax), %rbx
	movl	$77, %edi
	movl	$84, %esi
	movl	$83, %edx
	movl	$74, %ecx
	callq	_MKTAG
	cmpq	%rax, %rbx
	jne	LBB0_18
## %bb.16:                              ##   in Loop: Header=BB0_10 Depth=1
	cmpl	$3, -104(%rbp)                  ## 4-byte Folded Reload
	jne	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_10 Depth=1
	movl	$3, %eax
	subl	%r14d, %eax
	testq	%r14, %r14
	cmovel	%r13d, %eax
	cmpl	$3, (%r15)
	cmovnel	%r13d, %eax
	movl	%eax, %r13d
LBB0_18:                                ##   in Loop: Header=BB0_10 Depth=1
	movslq	%r13d, %rax
	movq	240(%r15), %rcx
	movq	248(%r15), %rdx
	movl	(%rcx,%rax,4), %ecx
	movl	%ecx, (%rdx,%r14,4)
	movq	16(%r15), %rcx
	movq	24(%r15), %rdx
	movq	32(%r15), %rsi
	movl	(%rsi,%rax,4), %edi
	imull	(%rdx,%rax,4), %edi
	movl	%edi, (%rcx,%r14,4)
	movl	(%rdx,%rax,4), %ecx
	movq	40(%r15), %rdx
	movl	%ecx, (%rdx,%r14,4)
	movl	(%rsi,%rax,4), %eax
	movq	48(%r15), %rcx
	movl	%eax, (%rcx,%r14,4)
	cmpl	$1, -56(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_22
## %bb.19:                              ##   in Loop: Header=BB0_10 Depth=1
	cmpl	$3, (%r15)
	jne	LBB0_22
## %bb.20:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	128(%r15), %rax
	movq	8(%rax), %rax
	movq	_AV_PIX_FMT_GBR24P@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_22
## %bb.21:                              ##   in Loop: Header=BB0_10 Depth=1
	addl	$2, %r13d
	movslq	%r13d, %r13
	imulq	$1431655766, %r13, %rax         ## imm = 0x55555556
	movq	%rax, %rcx
	shrq	$63, %rcx
	shrq	$32, %rax
	addl	%ecx, %eax
	leal	(%rax,%rax,2), %eax
	subl	%eax, %r13d
LBB0_22:                                ##   in Loop: Header=BB0_10 Depth=1
	movq	56(%r15), %rax
	movl	%r13d, (%rax,%r14,4)
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movl	$4, %esi
	callq	_get_bits
	movq	64(%r15), %rcx
	movl	%eax, (%rcx,%r14,4)
	movq	%rbx, %rdi
	movl	$4, %esi
	callq	_get_bits
	movq	72(%r15), %rcx
	movl	%eax, (%rcx,%r14,4)
	movq	64(%r15), %rdx
	movl	(%rdx,%r14,4), %edx
	testl	%edx, %edx
	movq	-112(%rbp), %rbx                ## 8-byte Reload
	movq	_AV_LOG_DEBUG@GOTPCREL(%rip), %r13
	js	LBB0_50
## %bb.23:                              ##   in Loop: Header=BB0_10 Depth=1
	cmpl	$3, %eax
	jg	LBB0_50
## %bb.24:                              ##   in Loop: Header=BB0_10 Depth=1
	testl	%eax, %eax
	js	LBB0_50
## %bb.25:                              ##   in Loop: Header=BB0_10 Depth=1
	cmpl	$3, %edx
	ja	LBB0_50
## %bb.26:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	232(%r15), %rsi
	movq	(%rsi), %rdi
	cmpl	$0, (%rdi,%rdx,4)
	je	LBB0_50
## %bb.27:                              ##   in Loop: Header=BB0_10 Depth=1
	cmpq	$0, 168(%r15)
	je	LBB0_29
## %bb.28:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	16(%rsi), %rax
	movslq	(%rcx), %rcx
	cmpl	$0, (%rax,%rcx,4)
	jne	LBB0_30
	jmp	LBB0_50
LBB0_29:                                ##   in Loop: Header=BB0_10 Depth=1
	movq	8(%rsi), %rcx
	movl	%eax, %eax
	cmpl	$0, (%rcx,%rax,4)
	je	LBB0_50
LBB0_30:                                ##   in Loop: Header=BB0_10 Depth=1
	incq	%r14
	cmpq	%rbx, %r14
	leaq	L_.str.4(%rip), %r12
	jne	LBB0_10
LBB0_31:
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movl	$8, %esi
	callq	_get_bits
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	%rbx, %rdi
	movl	$8, %esi
	callq	_get_bits
                                        ## kill: def $eax killed $eax def $rax
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	movq	128(%r15), %rax
	movq	(%rax), %rbx
	leaq	L_.str.6(%rip), %rdi
	callq	_AV_RL32
	xorl	%ecx, %ecx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movl	$0, -60(%rbp)                   ## 4-byte Folded Spill
	cmpq	%rax, %rbx
	je	LBB0_33
## %bb.32:
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	movl	$4, %esi
	callq	_get_bits
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	movq	%rbx, %rdi
	movl	$4, %esi
	callq	_get_bits
                                        ## kill: def $eax killed $eax def $rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
LBB0_33:
	movq	-104(%rbp), %r13                ## 8-byte Reload
	cmpl	$2, %r13d
	jl	LBB0_45
## %bb.34:
	movl	88(%r15), %ecx
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	imull	%edi, %ecx
	movl	84(%r15), %eax
	movl	96(%r15), %esi
	addl	%ecx, %eax
	decl	%eax
	cltd
	idivl	%ecx
	movl	%eax, 80(%r15)
	imull	100(%r15), %edi
	leal	(%rsi,%rdi), %eax
	decl	%eax
	cltd
	idivl	%edi
	movl	%eax, 92(%r15)
	jmp	LBB0_47
LBB0_35:
	movq	128(%r15), %rdi
	movq	_AV_LOG_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	xorl	%eax, %eax
	callq	_av_log
	movl	$-1, %r12d
	jmp	LBB0_44
LBB0_36:
	movq	128(%r15), %rdi
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
LBB0_37:
	xorl	%eax, %eax
	callq	_av_log
	jmp	LBB0_42
LBB0_38:
	movq	128(%r15), %rdi
	leaq	L_.str.2(%rip), %rsi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_avpriv_report_missing_feature
	movq	_AVERROR_PATCHWELCOME@GOTPCREL(%rip), %rax
	jmp	LBB0_43
LBB0_39:
	movq	128(%r15), %rdi
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.3(%rip), %rdx
	movl	%r14d, %ecx
	jmp	LBB0_41
LBB0_40:
	movq	128(%r15), %rdi
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.5(%rip), %rdx
                                        ## kill: def $ecx killed $ecx killed $rcx
LBB0_41:
	xorl	%eax, %eax
	callq	_av_log
LBB0_42:
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
LBB0_43:
	movl	(%rax), %r12d
LBB0_44:
	movl	%r12d, %eax
	addq	$152, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_45:
	cmpq	$0, 192(%r15)
	jne	LBB0_47
## %bb.46:
	movl	88(%r15), %eax
	movq	16(%r15), %r8
	movq	40(%r15), %r9
	cltd
	idivl	(%r9)
	movl	%eax, %ecx
	movl	100(%r15), %eax
	movq	48(%r15), %rdi
	cltd
	idivl	(%rdi)
	movl	%eax, %esi
	movl	84(%r15), %eax
	movq	-88(%rbp), %rbx                 ## 8-byte Reload
	imull	%ebx, %ecx
	addl	%ecx, %eax
	decl	%eax
	cltd
	idivl	%ecx
	movl	%eax, 80(%r15)
	movl	96(%r15), %eax
	imull	%ebx, %esi
	addl	%esi, %eax
	decl	%eax
	cltd
	idivl	%esi
	movl	%eax, 92(%r15)
	movl	$1, (%r8)
	movl	$1, (%r9)
	movl	$1, (%rdi)
LBB0_47:
	movq	128(%r15), %rdi
	movq	_FF_DEBUG_PICT_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 16(%rdi)
	movq	-72(%rbp), %r12                 ## 8-byte Reload
	je	LBB0_53
## %bb.48:
	movq	_AV_LOG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	cmpq	$0, 200(%r15)
	leaq	L_.str.9(%rip), %rax
	leaq	L_.str.8(%rip), %rcx
	cmoveq	%rax, %rcx
	cmpq	$0, 184(%r15)
	leaq	L_.str.11(%rip), %rax
	leaq	L_.str.10(%rip), %r8
	cmoveq	%rax, %r8
	movl	104(%r15), %r10d
	movl	108(%r15), %r11d
	cmpq	$0, 224(%r15)
	je	LBB0_51
## %bb.49:
	leaq	L_.str.12(%rip), %rbx
	jmp	LBB0_52
LBB0_50:
	movq	128(%r15), %rdi
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.15(%rip), %rdx
	jmp	LBB0_37
LBB0_51:
	cmpq	$0, 216(%r15)
	leaq	L_.str.13(%rip), %rbx
	cmoveq	%rax, %rbx
LBB0_52:
	leaq	L_.str.7(%rip), %rdx
	movl	-44(%rbp), %r9d                 ## 4-byte Reload
	xorl	%eax, %eax
	pushq	%r13
	pushq	%rbx
	pushq	%r11
	pushq	%r10
	pushq	-96(%rbp)                       ## 8-byte Folded Reload
	pushq	-56(%rbp)                       ## 8-byte Folded Reload
	callq	_av_log
	addq	$48, %rsp
LBB0_53:
	movl	108(%r15), %ebx
	testl	%ebx, %ebx
	jle	LBB0_56
## %bb.54:
	incl	%ebx
	.p2align	4, 0x90
LBB0_55:                                ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	movl	$8, %esi
	callq	_skip_bits
	decl	%ebx
	cmpl	$1, %ebx
	ja	LBB0_55
LBB0_56:
	leaq	104(%r15), %rax
	movq	%rax, -160(%rbp)                ## 8-byte Spill
	leaq	108(%r15), %rax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movq	-112(%rbp), %r8                 ## 8-byte Reload
	movl	%r8d, %eax
	andl	$-8, %eax
	movq	%rax, -152(%rbp)                ## 8-byte Spill
	addq	$-8, %rax
	movq	%rax, -144(%rbp)                ## 8-byte Spill
	movq	%rax, %rcx
	shrq	$3, %rcx
	incq	%rcx
	movq	%rcx, %rax
	movq	%rcx, -136(%rbp)                ## 8-byte Spill
	andq	$-2, %rcx
	movq	%rcx, -128(%rbp)                ## 8-byte Spill
	movl	%r8d, %r14d
	andl	$3, %r14d
	movl	$4, %eax
	movd	%eax, %xmm0
	movdqa	%xmm0, -192(%rbp)               ## 16-byte Spill
	testl	%r13d, %r13d
	jle	LBB0_74
LBB0_57:
	movq	112(%r15), %rax
	cmpl	$8, %r13d
	jb	LBB0_58
## %bb.59:
	cmpq	-88(%rbp), %rax                 ## 8-byte Folded Reload
	jae	LBB0_62
## %bb.60:
	leaq	(%rax,%r8,4), %rcx
	cmpq	%rcx, -160(%rbp)                ## 8-byte Folded Reload
	jae	LBB0_62
LBB0_58:
	xorl	%edx, %edx
LBB0_69:
	movq	%rdx, %rsi
	notq	%rsi
	addq	%r8, %rsi
	testq	%r14, %r14
	je	LBB0_72
## %bb.70:
	movq	%r14, %rdi
	.p2align	4, 0x90
LBB0_71:                                ## =>This Inner Loop Header: Depth=1
	movzbl	104(%r15), %ecx
	movl	$4, %ebx
	shll	%cl, %ebx
	movl	%ebx, (%rax,%rdx,4)
	incq	%rdx
	decq	%rdi
	jne	LBB0_71
LBB0_72:
	cmpq	$3, %rsi
	jb	LBB0_74
	.p2align	4, 0x90
LBB0_73:                                ## =>This Inner Loop Header: Depth=1
	movzbl	104(%r15), %ecx
	movl	$4, %esi
	shll	%cl, %esi
	movl	%esi, (%rax,%rdx,4)
	movzbl	104(%r15), %ecx
	movl	$4, %esi
	shll	%cl, %esi
	movl	%esi, 4(%rax,%rdx,4)
	movzbl	104(%r15), %ecx
	movl	$4, %esi
	shll	%cl, %esi
	movl	%esi, 8(%rax,%rdx,4)
	movzbl	104(%r15), %ecx
	movl	$4, %esi
	shll	%cl, %esi
	movl	%esi, 12(%rax,%rdx,4)
	addq	$4, %rdx
	cmpq	%rdx, %r8
	jne	LBB0_73
	jmp	LBB0_74
LBB0_62:
	cmpq	$0, -144(%rbp)                  ## 8-byte Folded Reload
	je	LBB0_65
## %bb.63:
	movd	104(%r15), %xmm0                ## xmm0 = mem[0],zero,zero,zero
	movdqa	-192(%rbp), %xmm1               ## 16-byte Reload
	pslld	%xmm0, %xmm1
	pshufd	$0, %xmm1, %xmm0                ## xmm0 = xmm1[0,0,0,0]
	movq	-128(%rbp), %rdx                ## 8-byte Reload
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_64:                                ## =>This Inner Loop Header: Depth=1
	movdqu	%xmm0, (%rax,%rcx,4)
	movdqu	%xmm0, 16(%rax,%rcx,4)
	movdqu	%xmm0, 32(%rax,%rcx,4)
	movdqu	%xmm0, 48(%rax,%rcx,4)
	addq	$16, %rcx
	addq	$-2, %rdx
	jne	LBB0_64
	jmp	LBB0_66
LBB0_65:
	xorl	%ecx, %ecx
LBB0_66:
	testb	$1, -136(%rbp)                  ## 1-byte Folded Reload
	je	LBB0_68
## %bb.67:
	movd	104(%r15), %xmm0                ## xmm0 = mem[0],zero,zero,zero
	movdqa	-192(%rbp), %xmm1               ## 16-byte Reload
	pslld	%xmm0, %xmm1
	pshufd	$0, %xmm1, %xmm0                ## xmm0 = xmm1[0,0,0,0]
	movdqu	%xmm0, (%rax,%rcx,4)
	movdqu	%xmm0, 16(%rax,%rcx,4)
LBB0_68:
	movq	-152(%rbp), %rcx                ## 8-byte Reload
	movq	%rcx, %rdx
	cmpq	%r8, %rcx
	jne	LBB0_69
LBB0_74:                                ## =>This Inner Loop Header: Depth=1
	movq	128(%r15), %rax
	cmpq	$0, 24(%rax)
	je	LBB0_77
## %bb.75:                              ##   in Loop: Header=BB0_74 Depth=1
	movq	%r12, %rdi
	callq	_get_bits_count
                                        ## kill: def $eax killed $eax def $rax
	leal	7(%rax), %ebx
	testl	%eax, %eax
	cmovnsl	%eax, %ebx
	sarl	$3, %ebx
	cmpl	$-7, %eax
	jl	LBB0_81
## %bb.76:                              ##   in Loop: Header=BB0_74 Depth=1
	cmpl	%ebx, 120(%r15)
	setge	%al
	jmp	LBB0_82
LBB0_77:                                ##   in Loop: Header=BB0_74 Depth=1
	cmpq	$0, 200(%r15)
	je	LBB0_91
## %bb.78:                              ##   in Loop: Header=BB0_74 Depth=1
	movq	160(%r15), %rax
	xorl	%edi, %edi
	cmpq	152(%r15), %rax
	sete	%dil
	callq	_av_assert0
	movq	_CONFIG_JPEGLS_DECODER@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	movq	%r13, %rcx
	je	LBB0_88
## %bb.79:                              ##   in Loop: Header=BB0_74 Depth=1
	cmpq	$0, 192(%r15)
	je	LBB0_88
## %bb.80:                              ##   in Loop: Header=BB0_74 Depth=1
	movq	%r15, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
                                        ## kill: def $edx killed $edx killed $rdx
	movq	-96(%rbp), %rcx                 ## 8-byte Reload
                                        ## kill: def $ecx killed $ecx killed $rcx
	callq	_ff_jpegls_decode_picture
	testl	%eax, %eax
	jns	LBB0_83
	jmp	LBB0_98
LBB0_81:                                ##   in Loop: Header=BB0_74 Depth=1
	xorl	%eax, %eax
LBB0_82:                                ##   in Loop: Header=BB0_74 Depth=1
	movzbl	%al, %edi
	callq	_av_assert0
	movq	128(%r15), %rdi
	movq	24(%rdi), %rax
	movslq	%ebx, %rcx
	movq	208(%r15), %rsi
	addq	%rcx, %rsi
	movl	120(%r15), %edx
	subl	%ecx, %edx
	callq	*(%rax)
	testl	%eax, %eax
	js	LBB0_98
LBB0_83:                                ##   in Loop: Header=BB0_74 Depth=1
	cmpq	$0, 144(%r15)
	movq	-72(%rbp), %r12                 ## 8-byte Reload
	je	LBB0_97
## %bb.84:                              ##   in Loop: Header=BB0_74 Depth=1
	movq	%r12, %rdi
	callq	_get_bits_left
	cmpl	$33, %eax
	jl	LBB0_97
## %bb.85:                              ##   in Loop: Header=BB0_74 Depth=1
	movq	%r12, %rdi
	movl	$8, %esi
	callq	_show_bits
	cmpl	$255, %eax
	jne	LBB0_97
## %bb.86:                              ##   in Loop: Header=BB0_74 Depth=1
	movl	(%r12), %eax
	movl	%eax, -76(%rbp)
	leaq	-76(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_align_get_bits
	movq	%rbx, %rdi
	movl	$16, %esi
	callq	_show_bits
	cmpl	$65489, %eax                    ## imm = 0xFFD1
	jne	LBB0_97
## %bb.87:                              ##   in Loop: Header=BB0_74 Depth=1
	movq	128(%r15), %rdi
	movq	_AV_LOG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.14(%rip), %rdx
	xorl	%eax, %eax
	callq	_av_log
	movl	-76(%rbp), %eax
	movl	%eax, 136(%r15)
	movq	%r12, %rdi
	movl	$16, %esi
	callq	_skip_bits
	xorb	$1, 124(%r15)
	movq	-112(%rbp), %r8                 ## 8-byte Reload
	testl	%r13d, %r13d
	jg	LBB0_57
	jmp	LBB0_74
LBB0_88:                                ##   in Loop: Header=BB0_74 Depth=1
	cmpq	$0, 184(%r15)
	jne	LBB0_90
## %bb.89:                              ##   in Loop: Header=BB0_74 Depth=1
	cmpq	$0, 176(%r15)
	je	LBB0_95
LBB0_90:                                ##   in Loop: Header=BB0_74 Depth=1
	movq	%r15, %rdi
	movl	%ecx, %esi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
                                        ## kill: def $ecx killed $ecx killed $rcx
	callq	_ljpeg_decode_rgb_scan
	testl	%eax, %eax
	jns	LBB0_83
	jmp	LBB0_98
LBB0_91:                                ##   in Loop: Header=BB0_74 Depth=1
	cmpq	$0, 168(%r15)
	je	LBB0_94
## %bb.92:                              ##   in Loop: Header=BB0_74 Depth=1
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_94
## %bb.93:                              ##   in Loop: Header=BB0_74 Depth=1
	movq	160(%r15), %rax
	xorl	%edi, %edi
	cmpq	152(%r15), %rax
	sete	%dil
	callq	_av_assert0
	movq	%r15, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movq	-96(%rbp), %rdx                 ## 8-byte Reload
                                        ## kill: def $edx killed $edx killed $rdx
	movl	-60(%rbp), %ecx                 ## 4-byte Reload
	movq	-56(%rbp), %r8                  ## 8-byte Reload
                                        ## kill: def $r8d killed $r8d killed $r8
	callq	_mjpeg_decode_scan_progressive_ac
	testl	%eax, %eax
	jns	LBB0_83
	jmp	LBB0_98
LBB0_94:                                ##   in Loop: Header=BB0_74 Depth=1
	subq	$8, %rsp
	movq	%r15, %rdi
	movl	%r13d, %esi
	movl	-60(%rbp), %edx                 ## 4-byte Reload
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
                                        ## kill: def $ecx killed $ecx killed $rcx
	movq	-176(%rbp), %r8                 ## 8-byte Reload
	movl	-116(%rbp), %r9d                ## 4-byte Reload
	pushq	-168(%rbp)                      ## 8-byte Folded Reload
	callq	_mjpeg_decode_scan
	addq	$16, %rsp
	testl	%eax, %eax
	jns	LBB0_83
	jmp	LBB0_98
LBB0_95:                                ##   in Loop: Header=BB0_74 Depth=1
	movq	%r15, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
                                        ## kill: def $edx killed $edx killed $rdx
                                        ## kill: def $ecx killed $ecx killed $rcx
	callq	_ljpeg_decode_yuv_scan
	testl	%eax, %eax
	jns	LBB0_83
LBB0_98:
	movl	%eax, %r12d
	jmp	LBB0_44
LBB0_97:
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	callq	_emms_c
	jmp	LBB0_44
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_LOG_WARNING,4,2             ## @AV_LOG_WARNING
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Can not process SOS before SOF, skipping\n"

	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
L_.str.1:                               ## @.str.1
	.asciz	"Reference mismatching\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
	.comm	_MAX_COMPONENTS,4,2             ## @MAX_COMPONENTS
L_.str.2:                               ## @.str.2
	.asciz	"decode_sos: nb_components (%d)"

	.comm	_AVERROR_PATCHWELCOME,4,2       ## @AVERROR_PATCHWELCOME
L_.str.3:                               ## @.str.3
	.asciz	"decode_sos: invalid len (%d)\n"

	.comm	_AV_LOG_DEBUG,4,2               ## @AV_LOG_DEBUG
L_.str.4:                               ## @.str.4
	.asciz	"component: %d\n"

L_.str.5:                               ## @.str.5
	.asciz	"decode_sos: index(%d) out of components\n"

	.comm	_AV_PIX_FMT_GBR24P,8,3          ## @AV_PIX_FMT_GBR24P
L_.str.6:                               ## @.str.6
	.asciz	"CJPG"

	.comm	_FF_DEBUG_PICT_INFO,4,2         ## @FF_DEBUG_PICT_INFO
L_.str.7:                               ## @.str.7
	.asciz	"%s %s p:%d >>:%d ilv:%d bits:%d skip:%d %s comp:%d\n"

L_.str.8:                               ## @.str.8
	.asciz	"lossless"

L_.str.9:                               ## @.str.9
	.asciz	"sequential DCT"

L_.str.10:                              ## @.str.10
	.asciz	"RGB"

L_.str.11:                              ## @.str.11
	.space	1

L_.str.12:                              ## @.str.12
	.asciz	"PRCT"

L_.str.13:                              ## @.str.13
	.asciz	"RCT"

	.comm	_CONFIG_JPEGLS_DECODER,8,3      ## @CONFIG_JPEGLS_DECODER
L_.str.14:                              ## @.str.14
	.asciz	"AVRn interlaced picture marker found\n"

L_.str.15:                              ## @.str.15
	.asciz	"decode_sos: ac/dc index out of range\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_mjpeg_decode_sos            ; -- Begin function ff_mjpeg_decode_sos
	.p2align	2
_ff_mjpeg_decode_sos:                   ; @ff_mjpeg_decode_sos
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #240
	.cfi_def_cfa_offset 240
	stp	x28, x27, [sp, #144]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #160]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #176]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #192]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #208]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #224]            ; 16-byte Folded Spill
	add	x29, sp, #224
	.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
	mov	x19, x0
	ldr	x8, [x0, #200]
	cmp	x8, #0
	mov	w8, #8
	csinc	w27, w8, wzr, eq
	ldr	w8, [x0, #256]
	cbz	w8, LBB0_34
; %bb.1:
	mov	x20, x3
	mov	x21, x2
	mov	x22, x1
	cbz	x3, LBB0_5
; %bb.2:
	ldr	x9, [x20]
	ldr	x8, [x19, #160]
	ldr	x10, [x8]
	cmp	x9, x10
	b.ne	LBB0_35
; %bb.3:
	ldr	x9, [x20, #8]
	ldr	x10, [x8, #8]
	cmp	x9, x10
	b.ne	LBB0_35
; %bb.4:
	ldr	x9, [x20, #16]
	ldr	x8, [x8, #16]
	cmp	x9, x8
	b.ne	LBB0_35
LBB0_5:
	add	x23, x19, #136
	mov	x0, x23
	mov	w1, #16
	bl	_get_bits
	mov	x25, x0
	mov	x0, x23
	mov	w1, #8
	bl	_get_bits
	mov	x24, x0
	cbz	w0, LBB0_37
; %bb.6:
Lloh0:
	adrp	x8, _MAX_COMPONENTS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MAX_COMPONENTS@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w24, w8
	b.gt	LBB0_37
; %bb.7:
	lsl	w8, w24, #1
	add	w8, w8, #6
	cmp	w25, w8
	b.ne	LBB0_40
; %bb.8:
	mov	w8, w24
	stur	x8, [x29, #-96]                 ; 8-byte Folded Spill
	cmp	w24, #1
	b.lt	LBB0_32
; %bb.9:
	mov	x28, #0
	and	w8, w24, #0xfffffffd
	stur	w8, [x29, #-104]                ; 4-byte Folded Spill
Lloh3:
	adrp	x26, l_.str.4@PAGE
Lloh4:
	add	x26, x26, l_.str.4@PAGEOFF
LBB0_10:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_12 Depth 2
	mov	x0, x23
	mov	w1, #8
	bl	_get_bits
	sub	w25, w0, #1
	ldr	x0, [x19, #128]
Lloh5:
	adrp	x8, _AV_LOG_DEBUG@GOTPAGE
Lloh6:
	ldr	x8, [x8, _AV_LOG_DEBUG@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	str	x25, [sp]
	mov	x2, x26
	bl	_av_log
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_14
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	mov	x9, #0
	ldr	x10, [x19, #8]
LBB0_12:                                ;   Parent Loop BB0_10 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w11, [x10, x9, lsl #2]
	cmp	w25, w11
	b.eq	LBB0_15
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=2
	add	x9, x9, #1
	cmp	x8, x9
	b.ne	LBB0_12
	b	LBB0_41
LBB0_14:                                ;   in Loop: Header=BB0_10 Depth=1
	mov	w25, #0
	b	LBB0_16
LBB0_15:                                ;   in Loop: Header=BB0_10 Depth=1
	mov	x25, x9
LBB0_16:                                ;   in Loop: Header=BB0_10 Depth=1
	cmp	w25, w8
	b.eq	LBB0_41
; %bb.17:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	x8, [x19, #128]
	ldr	x26, [x8]
	mov	w0, #77
	mov	w1, #84
	mov	w2, #83
	mov	w3, #74
	bl	_MKTAG
	cmp	x26, x0
	ccmp	w24, #3, #0, eq
	b.ne	LBB0_19
; %bb.18:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	w8, [x19]
	mov	w9, #3
	sub	w9, w9, w28
	cmp	x28, #0
	ccmp	w8, #3, #0, ne
	csel	w25, w9, w25, eq
LBB0_19:                                ;   in Loop: Header=BB0_10 Depth=1
	sbfiz	x8, x25, #2, #32
	ldp	x9, x10, [x19, #240]
	ldr	w9, [x9, x8]
	lsl	x26, x28, #2
	str	w9, [x10, x26]
	ldp	x10, x9, [x19, #16]
	ldr	w11, [x9, x8]
	ldp	x12, x13, [x19, #32]
	ldr	w14, [x12, x8]
	mul	w11, w14, w11
	str	w11, [x10, x26]
	ldr	w9, [x9, x8]
	str	w9, [x13, x26]
	ldr	w8, [x12, x8]
	ldr	x9, [x19, #48]
	str	w8, [x9, x26]
	ldur	w8, [x29, #-104]                ; 4-byte Folded Reload
	cmp	w8, #1
	b.ne	LBB0_23
; %bb.20:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	w8, [x19]
	cmp	w8, #3
	b.ne	LBB0_23
; %bb.21:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	x8, [x19, #128]
	ldr	x8, [x8, #8]
Lloh8:
	adrp	x9, _AV_PIX_FMT_GBR24P@GOTPAGE
Lloh9:
	ldr	x9, [x9, _AV_PIX_FMT_GBR24P@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_23
; %bb.22:                               ;   in Loop: Header=BB0_10 Depth=1
	add	w8, w25, #2
	mov	w9, #21846
	movk	w9, #21845, lsl #16
	smull	x9, w8, w9
	lsr	x10, x9, #63
	lsr	x9, x9, #32
	add	w9, w9, w10
	add	w9, w9, w9, lsl #1
	sub	w25, w8, w9
LBB0_23:                                ;   in Loop: Header=BB0_10 Depth=1
	ldr	x8, [x19, #56]
	str	w25, [x8, x26]
	mov	x0, x23
	mov	w1, #4
	bl	_get_bits
	ldr	x8, [x19, #64]
	str	w0, [x8, x26]
	mov	x0, x23
	mov	w1, #4
	bl	_get_bits
	ldp	x9, x8, [x19, #64]
	str	w0, [x8, x26]
	ldr	w9, [x9, x26]
Lloh11:
	adrp	x26, l_.str.4@PAGE
Lloh12:
	add	x26, x26, l_.str.4@PAGEOFF
	tbnz	w9, #31, LBB0_50
; %bb.24:                               ;   in Loop: Header=BB0_10 Depth=1
	cmp	w0, #3
	b.gt	LBB0_50
; %bb.25:                               ;   in Loop: Header=BB0_10 Depth=1
	tbnz	w0, #31, LBB0_50
; %bb.26:                               ;   in Loop: Header=BB0_10 Depth=1
	cmp	w9, #3
	b.hi	LBB0_50
; %bb.27:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	x10, [x19, #232]
	ldr	x11, [x10]
	ldr	w9, [x11, x9, lsl #2]
	cbz	w9, LBB0_50
; %bb.28:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	x9, [x19, #168]
	cbz	x9, LBB0_30
; %bb.29:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	x9, [x10, #16]
	ldrsw	x8, [x8]
	ldr	w8, [x9, x8, lsl #2]
	cbnz	w8, LBB0_31
	b	LBB0_50
LBB0_30:                                ;   in Loop: Header=BB0_10 Depth=1
	ldr	x8, [x10, #8]
	ldr	w8, [x8, w0, uxtw #2]
	cbz	w8, LBB0_50
LBB0_31:                                ;   in Loop: Header=BB0_10 Depth=1
	add	x28, x28, #1
	ldur	x8, [x29, #-96]                 ; 8-byte Folded Reload
	cmp	x28, x8
	b.ne	LBB0_10
LBB0_32:
	mov	x0, x23
	mov	w1, #8
	bl	_get_bits
	stur	x0, [x29, #-104]                ; 8-byte Folded Spill
	mov	x0, x23
	mov	w1, #8
	bl	_get_bits
	str	x0, [sp, #88]                   ; 8-byte Folded Spill
	ldr	x8, [x19, #128]
	ldr	x25, [x8]
Lloh13:
	adrp	x0, l_.str.6@PAGE
Lloh14:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	_AV_RL32
	cmp	x25, x0
	b.ne	LBB0_42
; %bb.33:
	str	xzr, [sp, #112]                 ; 8-byte Folded Spill
	str	wzr, [sp, #84]                  ; 4-byte Folded Spill
	b	LBB0_43
LBB0_34:
	ldr	x0, [x19, #128]
Lloh15:
	adrp	x8, _AV_LOG_WARNING@GOTPAGE
Lloh16:
	ldr	x8, [x8, _AV_LOG_WARNING@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
Lloh18:
	adrp	x2, l_.str@PAGE
Lloh19:
	add	x2, x2, l_.str@PAGEOFF
	bl	_av_log
	mov	w0, #-1
	b	LBB0_39
LBB0_35:
	ldr	x0, [x19, #128]
Lloh20:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh21:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
Lloh23:
	adrp	x2, l_.str.1@PAGE
Lloh24:
	add	x2, x2, l_.str.1@PAGEOFF
LBB0_36:
	bl	_av_log
Lloh25:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh26:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
	b	LBB0_38
LBB0_37:
	ldr	x0, [x19, #128]
Lloh27:
	adrp	x1, l_.str.2@PAGE
Lloh28:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x2, x24
	bl	_avpriv_report_missing_feature
Lloh29:
	adrp	x8, _AVERROR_PATCHWELCOME@GOTPAGE
Lloh30:
	ldr	x8, [x8, _AVERROR_PATCHWELCOME@GOTPAGEOFF]
LBB0_38:
	ldr	w0, [x8]
LBB0_39:
	ldp	x29, x30, [sp, #224]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #208]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #192]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #176]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #160]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #144]            ; 16-byte Folded Reload
	add	sp, sp, #240
	ret
LBB0_40:
	ldr	x0, [x19, #128]
Lloh31:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh32:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh33:
	ldr	w1, [x8]
	str	x25, [sp]
Lloh34:
	adrp	x2, l_.str.3@PAGE
Lloh35:
	add	x2, x2, l_.str.3@PAGEOFF
	b	LBB0_36
LBB0_41:
	ldr	x0, [x19, #128]
Lloh36:
	adrp	x9, _AV_LOG_ERROR@GOTPAGE
Lloh37:
	ldr	x9, [x9, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh38:
	ldr	w1, [x9]
	str	x8, [sp]
Lloh39:
	adrp	x2, l_.str.5@PAGE
Lloh40:
	add	x2, x2, l_.str.5@PAGEOFF
	b	LBB0_36
LBB0_42:
	mov	x0, x23
	mov	w1, #4
	bl	_get_bits
	str	w0, [sp, #84]                   ; 4-byte Folded Spill
	mov	x0, x23
	mov	w1, #4
	bl	_get_bits
	str	x0, [sp, #112]                  ; 8-byte Folded Spill
LBB0_43:
	cmp	w24, #2
	b.lt	LBB0_45
; %bb.44:
	ldp	w8, w9, [x19, #84]
	mul	w9, w9, w27
	add	w8, w8, w9
	sub	w8, w8, #1
	sdiv	w8, w8, w9
	str	w8, [x19, #80]
	ldp	w8, w9, [x19, #96]
	mul	w9, w9, w27
	add	w8, w8, w9
	sub	w8, w8, #1
	sdiv	w8, w8, w9
	str	w8, [x19, #92]
	b	LBB0_47
LBB0_45:
	ldr	x8, [x19, #192]
	cbnz	x8, LBB0_47
; %bb.46:
	ldp	x8, x9, [x19, #40]
	ldr	w10, [x8]
	ldp	w12, w11, [x19, #84]
	sdiv	w10, w11, w10
	ldr	w11, [x9]
	ldp	w14, w13, [x19, #96]
	sdiv	w11, w13, w11
	mul	w10, w10, w27
	add	w12, w10, w12
	sub	w12, w12, #1
	sdiv	w10, w12, w10
	str	w10, [x19, #80]
	mul	w10, w11, w27
	add	w11, w10, w14
	sub	w11, w11, #1
	sdiv	w10, w11, w10
	str	w10, [x19, #92]
	ldr	x10, [x19, #16]
	mov	w11, #1
	str	w11, [x10]
	str	w11, [x8]
	str	w11, [x9]
LBB0_47:
	ldr	x0, [x19, #128]
	ldr	w8, [x0, #16]
Lloh41:
	adrp	x9, _FF_DEBUG_PICT_INFO@GOTPAGE
Lloh42:
	ldr	x9, [x9, _FF_DEBUG_PICT_INFO@GOTPAGEOFF]
Lloh43:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_53
; %bb.48:
Lloh44:
	adrp	x8, _AV_LOG_DEBUG@GOTPAGE
Lloh45:
	ldr	x8, [x8, _AV_LOG_DEBUG@GOTPAGEOFF]
Lloh46:
	ldr	w1, [x8]
	ldr	x8, [x19, #200]
Lloh47:
	adrp	x9, l_.str.8@PAGE
Lloh48:
	add	x9, x9, l_.str.8@PAGEOFF
Lloh49:
	adrp	x10, l_.str.9@PAGE
Lloh50:
	add	x10, x10, l_.str.9@PAGEOFF
	cmp	x8, #0
	csel	x8, x10, x9, eq
Lloh51:
	adrp	x9, l_.str.10@PAGE
Lloh52:
	add	x9, x9, l_.str.10@PAGEOFF
Lloh53:
	adrp	x12, l_.str.11@PAGE
Lloh54:
	add	x12, x12, l_.str.11@PAGEOFF
	ldr	x10, [x19, #184]
	cmp	x10, #0
	csel	x9, x12, x9, eq
	ldp	w10, w11, [x19, #104]
	ldr	x13, [x19, #224]
	cbz	x13, LBB0_51
; %bb.49:
Lloh55:
	adrp	x12, l_.str.12@PAGE
Lloh56:
	add	x12, x12, l_.str.12@PAGEOFF
	b	LBB0_52
LBB0_50:
	ldr	x0, [x19, #128]
Lloh57:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh58:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh59:
	ldr	w1, [x8]
Lloh60:
	adrp	x2, l_.str.15@PAGE
Lloh61:
	add	x2, x2, l_.str.15@PAGEOFF
	b	LBB0_36
LBB0_51:
	ldr	x13, [x19, #216]
Lloh62:
	adrp	x14, l_.str.13@PAGE
Lloh63:
	add	x14, x14, l_.str.13@PAGEOFF
	cmp	x13, #0
	csel	x12, x12, x14, eq
LBB0_52:
	stp	x12, x24, [sp, #56]
	stp	x10, x11, [sp, #40]
	ldr	x10, [sp, #88]                  ; 8-byte Folded Reload
	str	x10, [sp, #32]
Lloh64:
	adrp	x2, l_.str.7@PAGE
Lloh65:
	add	x2, x2, l_.str.7@PAGEOFF
	ldr	x10, [sp, #112]                 ; 8-byte Folded Reload
	str	x10, [sp, #24]
	ldur	x10, [x29, #-104]               ; 8-byte Folded Reload
	stp	x9, x10, [sp, #8]
	str	x8, [sp]
	bl	_av_log
LBB0_53:
	ldr	w8, [x19, #108]
	cmp	w8, #1
	b.lt	LBB0_56
; %bb.54:
	add	w25, w8, #1
LBB0_55:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x23
	mov	w1, #8
	bl	_skip_bits
	sub	w25, w25, #1
	cmp	w25, #1
	b.hi	LBB0_55
LBB0_56:
	add	x9, x19, #104
	add	x8, x19, #108
	stp	x8, x9, [sp, #96]               ; 16-byte Folded Spill
	ldur	x8, [x29, #-96]                 ; 8-byte Folded Reload
	and	x25, x8, #0xfffffff0
	mov	w28, #4
	mov	w27, #65489
	cmp	w24, #1
	b.lt	LBB0_65
LBB0_57:
	ldr	x8, [x19, #112]
	cmp	w24, #16
	b.lo	LBB0_62
; %bb.58:
	ldur	x9, [x29, #-96]                 ; 8-byte Folded Reload
	add	x9, x8, x9, lsl #2
	ldr	x10, [sp, #96]                  ; 8-byte Folded Reload
	cmp	x8, x10
	ldr	x10, [sp, #104]                 ; 8-byte Folded Reload
	ccmp	x10, x9, #2, lo
	b.lo	LBB0_62
; %bb.59:
	ldr	s0, [x19, #104]
	movi.4s	v1, #4
	ushl.4s	v0, v1, v0
	dup.4s	v0, v0[0]
	add	x9, x8, #32
	mov	x10, x25
LBB0_60:                                ; =>This Inner Loop Header: Depth=1
	stp	q0, q0, [x9, #-32]
	stp	q0, q0, [x9], #64
	subs	x10, x10, #16
	b.ne	LBB0_60
; %bb.61:
	mov	x9, x25
	ldur	x10, [x29, #-96]                ; 8-byte Folded Reload
	cmp	x25, x10
	b.ne	LBB0_63
	b	LBB0_65
LBB0_62:
	mov	x9, #0
LBB0_63:
	add	x8, x8, x9, lsl #2
	ldur	x10, [x29, #-96]                ; 8-byte Folded Reload
	sub	x9, x10, x9
LBB0_64:                                ; =>This Inner Loop Header: Depth=1
	ldr	w10, [x19, #104]
	lsl	w10, w28, w10
	str	w10, [x8], #4
	subs	x9, x9, #1
	b.ne	LBB0_64
LBB0_65:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #128]
	ldr	x8, [x8, #24]
	cbz	x8, LBB0_68
; %bb.66:                               ;   in Loop: Header=BB0_65 Depth=1
	mov	x0, x23
	bl	_get_bits_count
	add	w8, w0, #7
	cmp	w0, #0
	csel	w8, w8, w0, lt
	asr	w26, w8, #3
	cmn	w0, #7
	b.lt	LBB0_72
; %bb.67:                               ;   in Loop: Header=BB0_65 Depth=1
	ldr	w8, [x19, #120]
	cmp	w8, w26
	cset	w0, ge
	b	LBB0_73
LBB0_68:                                ;   in Loop: Header=BB0_65 Depth=1
	ldr	x8, [x19, #200]
	cbz	x8, LBB0_79
; %bb.69:                               ;   in Loop: Header=BB0_65 Depth=1
	ldp	x9, x8, [x19, #152]
	cmp	x8, x9
	cset	w0, eq
	bl	_av_assert0
Lloh66:
	adrp	x8, _CONFIG_JPEGLS_DECODER@GOTPAGE
Lloh67:
	ldr	x8, [x8, _CONFIG_JPEGLS_DECODER@GOTPAGEOFF]
Lloh68:
	ldr	x8, [x8]
	cbz	x8, LBB0_82
; %bb.70:                               ;   in Loop: Header=BB0_65 Depth=1
	ldr	x8, [x19, #192]
	cbz	x8, LBB0_82
; %bb.71:                               ;   in Loop: Header=BB0_65 Depth=1
	mov	x0, x19
	ldur	x1, [x29, #-104]                ; 8-byte Folded Reload
                                        ; kill: def $w1 killed $w1 killed $x1
	ldr	x2, [sp, #112]                  ; 8-byte Folded Reload
                                        ; kill: def $w2 killed $w2 killed $x2
	ldr	x3, [sp, #88]                   ; 8-byte Folded Reload
                                        ; kill: def $w3 killed $w3 killed $x3
	bl	_ff_jpegls_decode_picture
	tbz	w0, #31, LBB0_74
	b	LBB0_39
LBB0_72:                                ;   in Loop: Header=BB0_65 Depth=1
	mov	w0, #0
LBB0_73:                                ;   in Loop: Header=BB0_65 Depth=1
	bl	_av_assert0
	ldr	x0, [x19, #128]
	ldr	x8, [x0, #24]
	ldr	x8, [x8]
	ldr	x9, [x19, #208]
	add	x1, x9, w26, sxtw
	ldr	w9, [x19, #120]
	sub	w2, w9, w26
	blr	x8
	tbnz	w0, #31, LBB0_39
LBB0_74:                                ;   in Loop: Header=BB0_65 Depth=1
	ldr	x8, [x19, #144]
	cbz	x8, LBB0_87
; %bb.75:                               ;   in Loop: Header=BB0_65 Depth=1
	mov	x0, x23
	bl	_get_bits_left
	cmp	w0, #33
	b.lt	LBB0_87
; %bb.76:                               ;   in Loop: Header=BB0_65 Depth=1
	mov	x0, x23
	mov	w1, #8
	bl	_show_bits
	cmp	w0, #255
	b.ne	LBB0_87
; %bb.77:                               ;   in Loop: Header=BB0_65 Depth=1
	ldr	w8, [x23]
	stur	w8, [x29, #-84]
	sub	x0, x29, #84
	bl	_align_get_bits
	sub	x0, x29, #84
	mov	w1, #16
	bl	_show_bits
	cmp	w0, w27
	b.ne	LBB0_87
; %bb.78:                               ;   in Loop: Header=BB0_65 Depth=1
	ldr	x0, [x19, #128]
Lloh69:
	adrp	x8, _AV_LOG_DEBUG@GOTPAGE
Lloh70:
	ldr	x8, [x8, _AV_LOG_DEBUG@GOTPAGEOFF]
Lloh71:
	ldr	w1, [x8]
Lloh72:
	adrp	x2, l_.str.14@PAGE
Lloh73:
	add	x2, x2, l_.str.14@PAGEOFF
	bl	_av_log
	ldur	w8, [x29, #-84]
	str	w8, [x19, #136]
	mov	x0, x23
	mov	w1, #16
	bl	_skip_bits
	ldr	w8, [x19, #124]
	eor	w8, w8, #0x1
	str	w8, [x19, #124]
	cmp	w24, #1
	b.ge	LBB0_57
	b	LBB0_65
LBB0_79:                                ;   in Loop: Header=BB0_65 Depth=1
	ldr	x8, [x19, #168]
	cbz	x8, LBB0_85
; %bb.80:                               ;   in Loop: Header=BB0_65 Depth=1
	ldur	x8, [x29, #-104]                ; 8-byte Folded Reload
	cbz	w8, LBB0_85
; %bb.81:                               ;   in Loop: Header=BB0_65 Depth=1
	ldp	x9, x8, [x19, #152]
	cmp	x8, x9
	cset	w0, eq
	bl	_av_assert0
	mov	x0, x19
	ldur	x1, [x29, #-104]                ; 8-byte Folded Reload
                                        ; kill: def $w1 killed $w1 killed $x1
	ldr	x2, [sp, #88]                   ; 8-byte Folded Reload
                                        ; kill: def $w2 killed $w2 killed $x2
	ldr	w3, [sp, #84]                   ; 4-byte Folded Reload
	ldr	x4, [sp, #112]                  ; 8-byte Folded Reload
                                        ; kill: def $w4 killed $w4 killed $x4
	bl	_mjpeg_decode_scan_progressive_ac
	tbz	w0, #31, LBB0_74
	b	LBB0_39
LBB0_82:                                ;   in Loop: Header=BB0_65 Depth=1
	ldr	x8, [x19, #184]
	cbnz	x8, LBB0_84
; %bb.83:                               ;   in Loop: Header=BB0_65 Depth=1
	ldr	x8, [x19, #176]
	cbz	x8, LBB0_86
LBB0_84:                                ;   in Loop: Header=BB0_65 Depth=1
	mov	x0, x19
	mov	x1, x24
	ldur	x2, [x29, #-104]                ; 8-byte Folded Reload
                                        ; kill: def $w2 killed $w2 killed $x2
	ldr	x3, [sp, #112]                  ; 8-byte Folded Reload
                                        ; kill: def $w3 killed $w3 killed $x3
	bl	_ljpeg_decode_rgb_scan
	tbz	w0, #31, LBB0_74
	b	LBB0_39
LBB0_85:                                ;   in Loop: Header=BB0_65 Depth=1
	mov	x0, x19
	mov	x1, x24
	ldr	w2, [sp, #84]                   ; 4-byte Folded Reload
	ldr	x3, [sp, #112]                  ; 8-byte Folded Reload
                                        ; kill: def $w3 killed $w3 killed $x3
	mov	x4, x22
	mov	x5, x21
	mov	x6, x20
	bl	_mjpeg_decode_scan
	tbz	w0, #31, LBB0_74
	b	LBB0_39
LBB0_86:                                ;   in Loop: Header=BB0_65 Depth=1
	mov	x0, x19
	ldur	x1, [x29, #-104]                ; 8-byte Folded Reload
                                        ; kill: def $w1 killed $w1 killed $x1
	ldr	x2, [sp, #112]                  ; 8-byte Folded Reload
                                        ; kill: def $w2 killed $w2 killed $x2
	mov	x3, x24
	bl	_ljpeg_decode_yuv_scan
	tbz	w0, #31, LBB0_74
	b	LBB0_39
LBB0_87:
	bl	_emms_c
	mov	w0, #0
	b	LBB0_39
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpAdd	Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpAdd	Lloh53, Lloh54
	.loh AdrpAdd	Lloh51, Lloh52
	.loh AdrpAdd	Lloh49, Lloh50
	.loh AdrpAdd	Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpAdd	Lloh55, Lloh56
	.loh AdrpAdd	Lloh60, Lloh61
	.loh AdrpLdrGotLdr	Lloh57, Lloh58, Lloh59
	.loh AdrpAdd	Lloh62, Lloh63
	.loh AdrpAdd	Lloh64, Lloh65
	.loh AdrpLdrGotLdr	Lloh66, Lloh67, Lloh68
	.loh AdrpAdd	Lloh72, Lloh73
	.loh AdrpLdrGotLdr	Lloh69, Lloh70, Lloh71
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_LOG_WARNING,4,2             ; @AV_LOG_WARNING
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Can not process SOS before SOF, skipping\n"

	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
l_.str.1:                               ; @.str.1
	.asciz	"Reference mismatching\n"

	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.comm	_MAX_COMPONENTS,4,2             ; @MAX_COMPONENTS
l_.str.2:                               ; @.str.2
	.asciz	"decode_sos: nb_components (%d)"

	.comm	_AVERROR_PATCHWELCOME,4,2       ; @AVERROR_PATCHWELCOME
l_.str.3:                               ; @.str.3
	.asciz	"decode_sos: invalid len (%d)\n"

	.comm	_AV_LOG_DEBUG,4,2               ; @AV_LOG_DEBUG
l_.str.4:                               ; @.str.4
	.asciz	"component: %d\n"

l_.str.5:                               ; @.str.5
	.asciz	"decode_sos: index(%d) out of components\n"

	.comm	_AV_PIX_FMT_GBR24P,8,3          ; @AV_PIX_FMT_GBR24P
l_.str.6:                               ; @.str.6
	.asciz	"CJPG"

	.comm	_FF_DEBUG_PICT_INFO,4,2         ; @FF_DEBUG_PICT_INFO
l_.str.7:                               ; @.str.7
	.asciz	"%s %s p:%d >>:%d ilv:%d bits:%d skip:%d %s comp:%d\n"

l_.str.8:                               ; @.str.8
	.asciz	"lossless"

l_.str.9:                               ; @.str.9
	.asciz	"sequential DCT"

l_.str.10:                              ; @.str.10
	.asciz	"RGB"

l_.str.11:                              ; @.str.11
	.space	1

l_.str.12:                              ; @.str.12
	.asciz	"PRCT"

l_.str.13:                              ; @.str.13
	.asciz	"RCT"

	.comm	_CONFIG_JPEGLS_DECODER,8,3      ; @CONFIG_JPEGLS_DECODER
l_.str.14:                              ; @.str.14
	.asciz	"AVRn interlaced picture marker found\n"

l_.str.15:                              ; @.str.15
	.asciz	"decode_sos: ac/dc index out of range\n"

.subsections_via_symbols
