	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cbs_jpeg_split_fragment
_cbs_jpeg_split_fragment:               ## @cbs_jpeg_split_fragment
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	(%rsi), %eax
	cmpl	$4, %eax
	jl	LBB0_63
## %bb.1:
	movq	%rsi, %r14
	movq	%rdi, %r15
	leal	-1(%rax), %ecx
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%rdx, %rcx
	je	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	leaq	1(%rdx), %rbx
	movq	8(%r14), %rsi
	cmpl	$255, (%rsi,%rdx,4)
	movq	%rbx, %rdx
	jne	LBB0_2
## %bb.4:
	leal	-1(%rbx), %ecx
	testl	%ecx, %ecx
	jne	LBB0_6
	jmp	LBB0_7
LBB0_5:
	movl	%eax, %ebx
	testl	%ecx, %ecx
	je	LBB0_7
LBB0_6:
	movl	(%r15), %edi
	movq	_AV_LOG_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
                                        ## kill: def $ecx killed $ecx killed $rcx
	xorl	%eax, %eax
	callq	_av_log
	movl	(%r14), %eax
LBB0_7:
	movl	%ebx, %ecx
	movq	8(%r14), %rdx
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rcx, %r13
	incl	%ecx
	cmpl	%ecx, %eax
	jle	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	leaq	1(%r13), %rcx
	cmpl	$255, (%rdx,%r13,4)
	je	LBB0_8
## %bb.10:
	decl	%ecx
	movl	(%rdx,%rcx,4), %ecx
	jmp	LBB0_14
LBB0_11:
	movl	%r13d, %ecx
	cmpl	$0, (%rdx,%rcx,4)
	je	LBB0_13
## %bb.12:
	movl	(%r15), %edi
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	jmp	LBB0_62
LBB0_13:
	xorl	%ecx, %ecx
LBB0_14:
	movq	_JPEG_MARKER_SOI@GOTPCREL(%rip), %rsi
	cmpl	(%rsi), %ecx
	jne	LBB0_59
## %bb.15:
	incq	%r13
	movl	%r13d, %ecx
	decq	%rcx
	.p2align	4, 0x90
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	incl	%r13d
	cmpl	%r13d, %eax
	jle	LBB0_61
## %bb.17:                              ##   in Loop: Header=BB0_16 Depth=1
	leaq	1(%rcx), %rsi
	cmpl	$255, 4(%rdx,%rcx,4)
	movq	%rsi, %rcx
	je	LBB0_16
## %bb.18:
	movl	%esi, %eax
	movl	(%rdx,%rax,4), %ecx
	movq	_JPEG_MARKER_EOI@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	cmpl	(%rax), %ecx
	je	LBB0_64
## %bb.19:
	movq	%r15, -80(%rbp)                 ## 8-byte Spill
	movl	$0, -60(%rbp)                   ## 4-byte Folded Spill
	movq	-56(%rbp), %r15
                                        ## implicit-def: $r11d
                                        ## implicit-def: $eax
                                        ## kill: killed $eax
                                        ## implicit-def: $ebx
	.p2align	4, 0x90
LBB0_20:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_34 Depth 2
                                        ##     Child Loop BB0_24 Depth 2
                                        ##       Child Loop BB0_26 Depth 3
                                        ##     Child Loop BB0_47 Depth 2
                                        ##       Child Loop BB0_49 Depth 3
	movslq	%r13d, %rdx
	movq	_JPEG_MARKER_SOS@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ecx
	jne	LBB0_30
## %bb.21:                              ##   in Loop: Header=BB0_20 Depth=1
	movslq	(%r14), %r8
	leal	1(%r13), %esi
	cmpl	%r8d, %esi
	jge	LBB0_42
## %bb.22:                              ##   in Loop: Header=BB0_20 Depth=1
	movq	%rdx, %r15
	movq	8(%r14), %r10
	movl	%r13d, %edx
	movabsq	$4294967296, %r9                ## imm = 0x100000000
	jmp	LBB0_24
	.p2align	4, 0x90
LBB0_23:                                ##   in Loop: Header=BB0_24 Depth=2
	leal	1(%rdx), %edi
	addl	$2, %edx
	movl	%edx, %esi
	cmpl	%r8d, %edx
	movl	%edi, %edx
	jge	LBB0_41
LBB0_24:                                ##   Parent Loop BB0_20 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_26 Depth 3
	movslq	%edx, %rdi
	cmpl	$255, (%r10,%rdi,4)
	jne	LBB0_23
## %bb.25:                              ##   in Loop: Header=BB0_24 Depth=2
	movslq	%esi, %rdi
	movq	%rdi, %rbx
	shlq	$32, %rbx
	movabsq	$-4294967296, %rax              ## imm = 0xFFFFFFFF00000000
	addq	%rax, %rbx
	incq	%rdi
	.p2align	4, 0x90
LBB0_26:                                ##   Parent Loop BB0_20 Depth=1
                                        ##     Parent Loop BB0_24 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	cmpq	%r8, %rdi
	jge	LBB0_40
## %bb.27:                              ##   in Loop: Header=BB0_26 Depth=3
	addq	%r9, %rbx
	incl	%esi
	cmpl	$255, -4(%r10,%rdi,4)
	leaq	1(%rdi), %rdi
	je	LBB0_26
## %bb.28:                              ##   in Loop: Header=BB0_24 Depth=2
	sarq	$30, %rbx
	movl	(%r10,%rbx), %edi
	testl	%edi, %edi
	jne	LBB0_58
## %bb.29:                              ##   in Loop: Header=BB0_24 Depth=2
	decl	%esi
	movl	%edx, %ebx
	movl	%esi, %edx
	jmp	LBB0_23
LBB0_30:                                ##   in Loop: Header=BB0_20 Depth=1
	leal	2(%r13), %eax
	cmpl	(%r14), %eax
	jg	LBB0_66
## %bb.31:                              ##   in Loop: Header=BB0_20 Depth=1
	movl	%ecx, %r12d
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	leaq	(,%rdx,4), %rdi
	addq	8(%r14), %rdi
	callq	_AV_RB16
	movl	%eax, %ebx
	addl	%r13d, %ebx
	movslq	(%r14), %rax
	cmpl	%eax, %ebx
	jg	LBB0_67
## %bb.32:                              ##   in Loop: Header=BB0_20 Depth=1
	movq	8(%r14), %r8
	movslq	%ebx, %rdx
	movl	$-1, %r11d
	cmpl	$255, (%r8,%rdx,4)
	jne	LBB0_38
## %bb.33:                              ##   in Loop: Header=BB0_20 Depth=1
	movq	%rbx, %r9
	leal	1(%rbx), %edx
	movslq	%edx, %rdi
	movq	%rdi, %rsi
	shlq	$32, %rsi
	movabsq	$-4294967296, %rbx              ## imm = 0xFFFFFFFF00000000
	addq	%rbx, %rsi
	incq	%rdi
	movabsq	$4294967296, %rbx               ## imm = 0x100000000
	movl	%r12d, %ecx
	.p2align	4, 0x90
LBB0_34:                                ##   Parent Loop BB0_20 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpq	%rax, %rdi
	jge	LBB0_37
## %bb.35:                              ##   in Loop: Header=BB0_34 Depth=2
	addq	%rbx, %rsi
	incl	%edx
	cmpl	$255, -4(%r8,%rdi,4)
	leaq	1(%rdi), %rdi
	je	LBB0_34
## %bb.36:                              ##   in Loop: Header=BB0_20 Depth=1
	sarq	$30, %rsi
	movl	(%r8,%rsi), %r11d
	movl	%edx, -64(%rbp)                 ## 4-byte Spill
LBB0_37:                                ##   in Loop: Header=BB0_20 Depth=1
	movq	%r9, %rbx
	jmp	LBB0_39
LBB0_38:                                ##   in Loop: Header=BB0_20 Depth=1
	movl	%r12d, %ecx
LBB0_39:                                ##   in Loop: Header=BB0_20 Depth=1
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	jmp	LBB0_42
LBB0_40:                                ##   in Loop: Header=BB0_20 Depth=1
	movl	$-1, %r11d
	movl	%edx, %ebx
LBB0_41:                                ##   in Loop: Header=BB0_20 Depth=1
	movq	%r15, %rdx
LBB0_42:                                ##   in Loop: Header=BB0_20 Depth=1
	movl	%r11d, -68(%rbp)                ## 4-byte Spill
	shlq	$2, %rdx
	movq	8(%r14), %r15
	addq	%rdx, %r15
	movq	_JPEG_MARKER_SOS@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ecx
	jne	LBB0_51
## %bb.43:                              ##   in Loop: Header=BB0_20 Depth=1
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	movl	%ecx, -84(%rbp)                 ## 4-byte Spill
	movq	%r15, %rdi
	callq	_AV_RB16
	movl	%eax, %r12d
	movl	%ebx, %eax
	subl	%r13d, %eax
	movslq	%eax, %rdi
	movq	_AV_INPUT_BUFFER_PADDING_SIZE@GOTPCREL(%rip), %rax
	addq	(%rax), %rdi
	callq	_av_malloc
	movq	%rax, %r15
	testq	%rax, %rax
	je	LBB0_68
## %bb.44:                              ##   in Loop: Header=BB0_20 Depth=1
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	addq	8(%r14), %rsi
	movq	%r15, %rdi
	movl	%r12d, %edx
	callq	_memcpy
	addl	%r12d, %r13d
	cmpl	%ebx, %r13d
	jge	LBB0_53
## %bb.45:                              ##   in Loop: Header=BB0_20 Depth=1
	movq	8(%r14), %rax
	movslq	%r12d, %r12
	leaq	4(%rax), %rcx
	jmp	LBB0_47
	.p2align	4, 0x90
LBB0_46:                                ##   in Loop: Header=BB0_47 Depth=2
	movl	%edx, (%r15,%r12,4)
	incl	%r13d
	incq	%r12
	cmpl	%ebx, %r13d
	jge	LBB0_53
LBB0_47:                                ##   Parent Loop BB0_20 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_49 Depth 3
	movslq	%r13d, %rsi
	movl	(%rax,%rsi,4), %edx
	cmpl	$255, %edx
	jne	LBB0_46
## %bb.48:                              ##   in Loop: Header=BB0_47 Depth=2
	leaq	(%rcx,%rsi,4), %rdx
	.p2align	4, 0x90
LBB0_49:                                ##   Parent Loop BB0_20 Depth=1
                                        ##     Parent Loop BB0_47 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	incl	%r13d
	cmpl	$255, (%rdx)
	leaq	4(%rdx), %rdx
	je	LBB0_49
## %bb.50:                              ##   in Loop: Header=BB0_47 Depth=2
	movl	$255, %edx
	jmp	LBB0_46
LBB0_51:                                ##   in Loop: Header=BB0_20 Depth=1
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movl	%ebx, %eax
	subl	%r13d, %eax
	movslq	%eax, %r9
	movq	16(%r14), %r12
	movq	%r12, (%rsp)
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	movq	%r14, %rsi
	movl	-60(%rbp), %edx                 ## 4-byte Reload
	movq	%r15, %r8
	callq	_ff_cbs_insert_unit_data
	testl	%eax, %eax
	js	LBB0_69
## %bb.52:                              ##   in Loop: Header=BB0_20 Depth=1
	movl	-68(%rbp), %r11d                ## 4-byte Reload
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_55
LBB0_53:                                ##   in Loop: Header=BB0_20 Depth=1
	movq	%rbx, %r13
	movslq	%r12d, %rbx
	leaq	(%r15,%rbx,4), %rdi
	movq	_AV_INPUT_BUFFER_PADDING_SIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	xorl	%esi, %esi
	callq	_memset
	movq	$0, (%rsp)
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	movq	%r14, %rsi
	movl	-60(%rbp), %edx                 ## 4-byte Reload
	movl	-84(%rbp), %ecx                 ## 4-byte Reload
	movq	%r15, %r8
	movq	%rbx, %r9
	callq	_ff_cbs_insert_unit_data
	testl	%eax, %eax
	js	LBB0_70
## %bb.54:                              ##   in Loop: Header=BB0_20 Depth=1
	movl	-68(%rbp), %r11d                ## 4-byte Reload
	movq	%r13, %rbx
LBB0_55:                                ##   in Loop: Header=BB0_20 Depth=1
	cmpl	$-1, %r11d
	je	LBB0_65
## %bb.56:                              ##   in Loop: Header=BB0_20 Depth=1
	incl	-60(%rbp)                       ## 4-byte Folded Spill
	movl	%r11d, %ecx
	movl	-64(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, %r13d
	movq	_JPEG_MARKER_EOI@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r11d
	jne	LBB0_20
	jmp	LBB0_65
LBB0_58:                                ##   in Loop: Header=BB0_20 Depth=1
	movl	%edx, %ebx
	movl	%esi, -64(%rbp)                 ## 4-byte Spill
	movl	%edi, %r11d
	jmp	LBB0_41
LBB0_59:
	movl	(%r15), %edi
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.2(%rip), %rdx
LBB0_60:
	xorl	%eax, %eax
	callq	_av_log
	jmp	LBB0_63
LBB0_61:
	movl	(%r15), %edi
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.3(%rip), %rdx
LBB0_62:
	xorl	%eax, %eax
	callq	_av_log
LBB0_63:
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_64:
	movl	%ebx, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_65:
	movq	%r15, -56(%rbp)
	xorl	%ebx, %ebx
	jmp	LBB0_64
LBB0_66:
	movq	%r15, -56(%rbp)
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.4(%rip), %rdx
	jmp	LBB0_60
LBB0_67:
	movq	%r15, -56(%rbp)
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.5(%rip), %rdx
	movl	%r12d, %ecx
	jmp	LBB0_60
LBB0_68:
	movq	%r15, -56(%rbp)
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
LBB0_69:
	movl	%eax, %ebx
	movq	%r15, -56(%rbp)
	testq	%r12, %r12
	jne	LBB0_64
	jmp	LBB0_71
LBB0_70:
	movl	%eax, %ebx
	movq	%r15, -56(%rbp)
LBB0_71:
	leaq	-56(%rbp), %rdi
	callq	_av_freep
	jmp	LBB0_64
	.cfi_endproc
                                        ## -- End function
	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
	.comm	_AV_LOG_WARNING,4,2             ## @AV_LOG_WARNING
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Discarding %d bytes at beginning of image.\n"

	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
L_.str.1:                               ## @.str.1
	.asciz	"Invalid JPEG image: no SOI marker found.\n"

	.comm	_JPEG_MARKER_SOI,4,2            ## @JPEG_MARKER_SOI
L_.str.2:                               ## @.str.2
	.asciz	"Invalid JPEG image: first marker is %02x, should be SOI.\n"

L_.str.3:                               ## @.str.3
	.asciz	"Invalid JPEG image: no image content found.\n"

	.comm	_JPEG_MARKER_EOI,4,2            ## @JPEG_MARKER_EOI
	.comm	_JPEG_MARKER_SOS,4,2            ## @JPEG_MARKER_SOS
L_.str.4:                               ## @.str.4
	.asciz	"Invalid JPEG image: truncated at %02x marker.\n"

L_.str.5:                               ## @.str.5
	.asciz	"Invalid JPEG image: truncated at %02x marker segment.\n"

	.comm	_AV_INPUT_BUFFER_PADDING_SIZE,8,3 ## @AV_INPUT_BUFFER_PADDING_SIZE
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_cbs_jpeg_split_fragment
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cbs_jpeg_split_fragment
_cbs_jpeg_split_fragment:               ; @cbs_jpeg_split_fragment
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	ldr	w8, [x1]
	cmp	w8, #4
	b.lt	LBB0_22
; %bb.1:
	mov	x20, x1
	mov	x19, x0
	mov	x10, #0
	sub	w9, w8, #1
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	cmp	x9, x10
	b.eq	LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x21, x10, #1
	ldr	x11, [x20, #8]
	ldr	w11, [x11, x10, lsl #2]
	mov	x10, x21
	cmp	w11, #255
	b.ne	LBB0_2
; %bb.4:
	sub	w9, w21, #1
	cbnz	w9, LBB0_6
	b	LBB0_7
LBB0_5:
	mov	x21, x8
	cbz	w9, LBB0_7
LBB0_6:
	ldr	w0, [x19]
Lloh0:
	adrp	x8, _AV_LOG_WARNING@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AV_LOG_WARNING@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
                                        ; kill: def $w9 killed $w9 killed $x9 def $x9
	str	x9, [sp]
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	bl	_av_log
	ldr	w8, [x20]
LBB0_7:
	mov	w11, w21
	ldr	x10, [x20, #8]
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	mov	x9, x11
	add	w11, w9, #1
	cmp	w8, w11
	b.le	LBB0_11
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	w12, [x10, x9, lsl #2]
	add	x11, x9, #1
	cmp	w12, #255
	b.eq	LBB0_8
; %bb.10:
	sub	w11, w11, #1
	ldr	w11, [x10, w11, uxtw #2]
	b	LBB0_13
LBB0_11:
	ldr	w11, [x10, w9, uxtw #2]
	cbz	w11, LBB0_13
; %bb.12:
	ldr	w0, [x19]
Lloh5:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh6:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
Lloh8:
	adrp	x2, l_.str.1@PAGE
Lloh9:
	add	x2, x2, l_.str.1@PAGEOFF
	b	LBB0_21
LBB0_13:
Lloh10:
	adrp	x12, _JPEG_MARKER_SOI@GOTPAGE
Lloh11:
	ldr	x12, [x12, _JPEG_MARKER_SOI@GOTPAGEOFF]
Lloh12:
	ldr	w12, [x12]
	cmp	w11, w12
	b.ne	LBB0_19
; %bb.14:
	mov	x11, #0
	add	x12, x9, #1
	add	x13, x10, w12, uxtw #2
LBB0_15:                                ; =>This Inner Loop Header: Depth=1
	add	w14, w9, w11
	add	w14, w14, #2
	cmp	w8, w14
	b.le	LBB0_20
; %bb.16:                               ;   in Loop: Header=BB0_15 Depth=1
	ldr	w14, [x13, x11, lsl #2]
	add	x11, x11, #1
	cmp	w14, #255
	b.eq	LBB0_15
; %bb.17:
	add	w8, w12, w11
	sub	w8, w8, #1
	ldr	w22, [x10, w8, uxtw #2]
Lloh13:
	adrp	x8, _JPEG_MARKER_EOI@GOTPAGE
Lloh14:
	ldr	x8, [x8, _JPEG_MARKER_EOI@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	cmp	w22, w8
	b.ne	LBB0_24
; %bb.18:
	mov	w22, #0
	b	LBB0_23
LBB0_19:
	ldr	w0, [x19]
Lloh16:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh17:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	str	x11, [sp]
Lloh19:
	adrp	x2, l_.str.2@PAGE
Lloh20:
	add	x2, x2, l_.str.2@PAGEOFF
	b	LBB0_21
LBB0_20:
	ldr	w0, [x19]
Lloh21:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh22:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
Lloh24:
	adrp	x2, l_.str.3@PAGE
Lloh25:
	add	x2, x2, l_.str.3@PAGEOFF
LBB0_21:
	bl	_av_log
LBB0_22:
Lloh26:
	adrp	x8, _AVERROR_INVALIDDATA@GOTPAGE
Lloh27:
	ldr	x8, [x8, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh28:
	ldr	w22, [x8]
LBB0_23:
	mov	x0, x22
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_24:
	mov	w21, #0
	ldr	x23, [sp, #24]
	add	w8, w9, w11
	add	w25, w8, #1
Lloh29:
	adrp	x24, _JPEG_MARKER_SOS@GOTPAGE
Lloh30:
	ldr	x24, [x24, _JPEG_MARKER_SOS@GOTPAGEOFF]
	mov	x28, #4294967296
                                        ; implicit-def: $w15
                                        ; implicit-def: $w0
                                        ; kill: killed $w0
                                        ; implicit-def: $w27
LBB0_25:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_39 Depth 2
                                        ;     Child Loop BB0_29 Depth 2
                                        ;       Child Loop BB0_31 Depth 3
                                        ;     Child Loop BB0_49 Depth 2
                                        ;       Child Loop BB0_51 Depth 3
	ldr	w8, [x24]
	cmp	w22, w8
	b.ne	LBB0_35
; %bb.26:                               ;   in Loop: Header=BB0_25 Depth=1
	ldrsw	x8, [x20]
	add	w11, w25, #1
	cmp	w11, w8
	b.ge	LBB0_44
; %bb.27:                               ;   in Loop: Header=BB0_25 Depth=1
	ldr	x9, [x20, #8]
	mov	x10, x25
	b	LBB0_29
LBB0_28:                                ;   in Loop: Header=BB0_29 Depth=2
	add	w11, w10, #2
	add	w10, w10, #1
	cmp	w11, w8
	b.ge	LBB0_44
LBB0_29:                                ;   Parent Loop BB0_25 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_31 Depth 3
	ldr	w12, [x9, w10, sxtw #2]
	cmp	w12, #255
	b.ne	LBB0_28
; %bb.30:                               ;   in Loop: Header=BB0_29 Depth=2
	sxtw	x13, w11
	mov	x11, #-4294967296
	add	x12, x11, x13, lsl #32
LBB0_31:                                ;   Parent Loop BB0_25 Depth=1
                                        ;     Parent Loop BB0_29 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	add	x11, x13, #1
	cmp	x11, x8
	b.ge	LBB0_43
; %bb.32:                               ;   in Loop: Header=BB0_31 Depth=3
	ldr	w14, [x9, x13, lsl #2]
	add	x12, x12, x28
	mov	x13, x11
	cmp	w14, #255
	b.eq	LBB0_31
; %bb.33:                               ;   in Loop: Header=BB0_29 Depth=2
	asr	x12, x12, #30
	ldr	w12, [x9, x12]
	cbnz	w12, LBB0_58
; %bb.34:                               ;   in Loop: Header=BB0_29 Depth=2
	mov	x27, x10
	sub	w10, w11, #1
	b	LBB0_28
LBB0_35:                                ;   in Loop: Header=BB0_25 Depth=1
	add	w8, w25, #2
	ldr	w9, [x20]
	cmp	w8, w9
	b.gt	LBB0_60
; %bb.36:                               ;   in Loop: Header=BB0_25 Depth=1
	ldr	x8, [x20, #8]
	add	x0, x8, w25, sxtw #2
	bl	_AV_RB16
	ldrsw	x8, [x20]
	add	w27, w0, w25
	cmp	w27, w8
	b.gt	LBB0_61
; %bb.37:                               ;   in Loop: Header=BB0_25 Depth=1
	ldr	x9, [x20, #8]
	ldr	w10, [x9, w27, sxtw #2]
	cmp	w10, #255
	b.ne	LBB0_42
; %bb.38:                               ;   in Loop: Header=BB0_25 Depth=1
	add	w10, w27, #1
	sxtw	x12, w10
	mov	x10, #-4294967296
	add	x10, x10, x12, lsl #32
LBB0_39:                                ;   Parent Loop BB0_25 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	add	x11, x12, #1
	cmp	x11, x8
	b.ge	LBB0_42
; %bb.40:                               ;   in Loop: Header=BB0_39 Depth=2
	ldr	w13, [x9, x12, lsl #2]
	add	x10, x10, x28
	mov	x12, x11
	cmp	w13, #255
	b.eq	LBB0_39
; %bb.41:                               ;   in Loop: Header=BB0_25 Depth=1
	asr	x8, x10, #30
	ldr	w15, [x9, x8]
	mov	x8, x11
	str	w11, [sp, #16]                  ; 4-byte Folded Spill
	b	LBB0_44
LBB0_42:                                ;   in Loop: Header=BB0_25 Depth=1
	mov	w15, #-1
	b	LBB0_44
LBB0_43:                                ;   in Loop: Header=BB0_25 Depth=1
	mov	w15, #-1
	mov	x27, x10
LBB0_44:                                ;   in Loop: Header=BB0_25 Depth=1
	str	w15, [sp, #20]                  ; 4-byte Folded Spill
	mov	x26, x24
	ldr	w8, [x24]
	ldr	x9, [x20, #8]
	add	x23, x9, w25, sxtw #2
	cmp	w22, w8
	b.ne	LBB0_53
; %bb.45:                               ;   in Loop: Header=BB0_25 Depth=1
	mov	x0, x23
	bl	_AV_RB16
	mov	x24, x0
	sub	w8, w27, w25
Lloh31:
	adrp	x9, _AV_INPUT_BUFFER_PADDING_SIZE@GOTPAGE
Lloh32:
	ldr	x9, [x9, _AV_INPUT_BUFFER_PADDING_SIZE@GOTPAGEOFF]
Lloh33:
	ldr	x9, [x9]
	add	x0, x9, w8, sxtw
	bl	_av_malloc
	mov	x23, x0
	cbz	x0, LBB0_62
; %bb.46:                               ;   in Loop: Header=BB0_25 Depth=1
	sxtw	x8, w25
	ldr	x9, [x20, #8]
	add	x1, x9, x8, lsl #2
	mov	x0, x23
	mov	x2, x24
	bl	_memcpy
	add	w8, w24, w25
	cmp	w8, w27
	b.ge	LBB0_55
; %bb.47:                               ;   in Loop: Header=BB0_25 Depth=1
	ldr	x9, [x20, #8]
                                        ; kill: def $w24 killed $w24 killed $x24 def $x24
	sxtw	x24, w24
	add	x10, x9, #4
	b	LBB0_49
LBB0_48:                                ;   in Loop: Header=BB0_49 Depth=2
	str	w11, [x23, x24, lsl #2]
	add	w8, w8, #1
	add	x24, x24, #1
	cmp	w8, w27
	b.ge	LBB0_54
LBB0_49:                                ;   Parent Loop BB0_25 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_51 Depth 3
	ldr	w11, [x9, w8, sxtw #2]
	cmp	w11, #255
	b.ne	LBB0_48
; %bb.50:                               ;   in Loop: Header=BB0_49 Depth=2
	sxtw	x11, w8
	add	x11, x10, x11, lsl #2
LBB0_51:                                ;   Parent Loop BB0_25 Depth=1
                                        ;     Parent Loop BB0_49 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	ldr	w12, [x11], #4
	add	w8, w8, #1
	cmp	w12, #255
	b.eq	LBB0_51
; %bb.52:                               ;   in Loop: Header=BB0_49 Depth=2
	mov	w11, #255
	b	LBB0_48
LBB0_53:                                ;   in Loop: Header=BB0_25 Depth=1
	sub	w8, w27, w25
	sxtw	x5, w8
	ldr	x24, [x20, #16]
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	mov	x3, x22
	mov	x4, x23
	mov	x6, x24
	bl	_ff_cbs_insert_unit_data
	tbz	w0, #31, LBB0_56
	b	LBB0_63
LBB0_54:                                ;   in Loop: Header=BB0_25 Depth=1
                                        ; kill: def $w24 killed $w24 killed $x24 def $x24
LBB0_55:                                ;   in Loop: Header=BB0_25 Depth=1
	sxtw	x25, w24
Lloh34:
	adrp	x8, _AV_INPUT_BUFFER_PADDING_SIZE@GOTPAGE
Lloh35:
	ldr	x8, [x8, _AV_INPUT_BUFFER_PADDING_SIZE@GOTPAGEOFF]
Lloh36:
	ldr	x2, [x8]
	add	x0, x23, w24, sxtw #2
	mov	w1, #0
	bl	_memset
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	mov	x3, x22
	mov	x4, x23
	mov	x5, x25
	mov	x6, #0
	bl	_ff_cbs_insert_unit_data
	tbnz	w0, #31, LBB0_64
LBB0_56:                                ;   in Loop: Header=BB0_25 Depth=1
	mov	x24, x26
	ldr	w15, [sp, #20]                  ; 4-byte Folded Reload
	cmn	w15, #1
	b.eq	LBB0_59
; %bb.57:                               ;   in Loop: Header=BB0_25 Depth=1
	add	w21, w21, #1
Lloh37:
	adrp	x8, _JPEG_MARKER_EOI@GOTPAGE
Lloh38:
	ldr	x8, [x8, _JPEG_MARKER_EOI@GOTPAGEOFF]
Lloh39:
	ldr	w8, [x8]
	mov	x22, x15
	ldr	w25, [sp, #16]                  ; 4-byte Folded Reload
	cmp	w15, w8
	b.ne	LBB0_25
	b	LBB0_59
LBB0_58:                                ;   in Loop: Header=BB0_25 Depth=1
	mov	x27, x10
	mov	x8, x11
	str	w11, [sp, #16]                  ; 4-byte Folded Spill
	mov	x15, x12
	b	LBB0_44
LBB0_59:
	mov	w22, #0
	str	x23, [sp, #24]
	b	LBB0_23
LBB0_60:
	str	x23, [sp, #24]
	ldr	w0, [x19]
Lloh40:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh41:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh42:
	ldr	w1, [x8]
	str	x22, [sp]
Lloh43:
	adrp	x2, l_.str.4@PAGE
Lloh44:
	add	x2, x2, l_.str.4@PAGEOFF
	b	LBB0_21
LBB0_61:
	str	x23, [sp, #24]
	ldr	w0, [x19]
Lloh45:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh46:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
Lloh47:
	ldr	w1, [x8]
                                        ; kill: def $w22 killed $w22 killed $x22 def $x22
	str	x22, [sp]
Lloh48:
	adrp	x2, l_.str.5@PAGE
Lloh49:
	add	x2, x2, l_.str.5@PAGEOFF
	b	LBB0_21
LBB0_62:
	str	x23, [sp, #24]
Lloh50:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh51:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh52:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	b	_AVERROR
LBB0_63:
	mov	x22, x0
	str	x23, [sp, #24]
	cbnz	x24, LBB0_23
	b	LBB0_65
LBB0_64:
	mov	x22, x0
	str	x23, [sp, #24]
LBB0_65:
	add	x0, sp, #24
	bl	_av_freep
	b	LBB0_23
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpAdd	Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpAdd	Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.cfi_endproc
                                        ; -- End function
	.comm	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
	.comm	_AV_LOG_WARNING,4,2             ; @AV_LOG_WARNING
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Discarding %d bytes at beginning of image.\n"

	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
l_.str.1:                               ; @.str.1
	.asciz	"Invalid JPEG image: no SOI marker found.\n"

	.comm	_JPEG_MARKER_SOI,4,2            ; @JPEG_MARKER_SOI
l_.str.2:                               ; @.str.2
	.asciz	"Invalid JPEG image: first marker is %02x, should be SOI.\n"

l_.str.3:                               ; @.str.3
	.asciz	"Invalid JPEG image: no image content found.\n"

	.comm	_JPEG_MARKER_EOI,4,2            ; @JPEG_MARKER_EOI
	.comm	_JPEG_MARKER_SOS,4,2            ; @JPEG_MARKER_SOS
l_.str.4:                               ; @.str.4
	.asciz	"Invalid JPEG image: truncated at %02x marker.\n"

l_.str.5:                               ; @.str.5
	.asciz	"Invalid JPEG image: truncated at %02x marker segment.\n"

	.comm	_AV_INPUT_BUFFER_PADDING_SIZE,8,3 ; @AV_INPUT_BUFFER_PADDING_SIZE
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_cbs_jpeg_split_fragment
.subsections_via_symbols
