	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_av_read_image_line2            ## -- Begin function av_read_image_line2
	.p2align	4, 0x90
_av_read_image_line2:                   ## @av_read_image_line2
	.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
	movl	%r9d, -96(%rbp)                 ## 4-byte Spill
	movq	%rcx, %rax
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r15
	movslq	16(%rbp), %r11
	movq	8(%rcx), %rbx
	leaq	(%r11,%r11,4), %rdi
	movl	4(%rbx,%rdi,4), %ecx
	movq	$-1, %r12
	movl	%ecx, %r10d
                                        ## kill: def $cl killed $cl killed $ecx
	shlq	%cl, %r12
	notl	%r12d
	movl	(%rax), %r9d
	movl	24(%rbp), %r14d
	movslq	(%rbx,%rdi,4), %rax
	movslq	12(%rbx,%rdi,4), %r13
	movslq	16(%rbx,%rdi,4), %rdx
	movq	_AV_PIX_FMT_FLAG_BITSTREAM@GOTPCREL(%rip), %rcx
	testl	%r9d, (%rcx)
	je	LBB0_6
## %bb.1:
	testl	%r14d, %r14d
	je	LBB0_21
## %bb.2:
	imull	%r13d, %r8d
	addl	%edx, %r8d
	movl	%r8d, %ecx
	andl	$7, %ecx
	addl	%ecx, %r10d
	movl	$8, %ecx
	subl	%r10d, %ecx
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movslq	(%rdx,%rax,4), %rdx
	movslq	-96(%rbp), %rdi                 ## 4-byte Folded Reload
	imulq	%rdx, %rdi
	shlq	$2, %rdi
	addq	(%rsi,%rax,8), %rdi
	sarl	$3, %r8d
	movslq	%r8d, %rax
	leaq	(%rdi,%rax,4), %r10
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	cmpl	$4, 40(%rbp)
	setne	%r8b
	sete	%r9b
	shlq	$2, %r8
	shlq	$2, %r9
	movq	%r15, %rax
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	subl	%r13d, %ecx
	movl	%ecx, %ebx
	sarl	$3, %ebx
	negl	%ebx
	andl	$7, %ecx
	cmpl	$4, 40(%rbp)
	movslq	%ebx, %rdi
	leaq	(%r10,%rdi,4), %r10
	movq	%rax, %rdi
	cmoveq	%r15, %rdi
	movl	%edx, (%rdi)
	addq	%r8, %rax
	addq	%r9, %r15
	testl	%r14d, %r14d
	je	LBB0_21
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r10), %edx
	sarl	%cl, %edx
	decl	%r14d
	andl	%r12d, %edx
	cmpl	$0, 32(%rbp)
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	8(%rsi), %rdi
	leal	(%r11,%rdx,4), %edx
	movslq	%edx, %rdx
	movl	(%rdi,%rdx,4), %edx
	jmp	LBB0_5
LBB0_6:
	movl	%r9d, -60(%rbp)                 ## 4-byte Spill
	testl	%r14d, %r14d
	je	LBB0_21
## %bb.7:
	movl	8(%rbx,%rdi,4), %ecx
	addl	%ecx, %r10d
	movl	%r10d, -100(%rbp)               ## 4-byte Spill
	cmpl	$9, %r10d
	setl	%r9b
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movslq	(%rdi,%rax,4), %rbx
	movslq	-96(%rbp), %rdi                 ## 4-byte Folded Reload
	imulq	%rbx, %rdi
	shlq	$2, %rdi
	addq	(%rsi,%rax,8), %rdi
	movq	%r13, %rbx
	imull	%ebx, %r8d
	movslq	%r8d, %rax
	leaq	(%rdi,%rax,4), %rax
	leaq	(%rax,%rdx,4), %rax
	movq	_AV_PIX_FMT_FLAG_BE@GOTPCREL(%rip), %rdi
	movl	-60(%rbp), %edx                 ## 4-byte Reload
	testl	%edx, (%rdi)
	setne	%dl
	andb	%r9b, %dl
	movzbl	%dl, %edx
	leaq	(%rax,%rdx,4), %r13
	xorl	%r8d, %r8d
	xorl	%edi, %edi
	cmpl	$4, 40(%rbp)
	setne	%r8b
	sete	%dil
	shlq	$2, %r8
	shlq	$2, %rbx
	movq	%rbx, -96(%rbp)                 ## 8-byte Spill
	shlq	$2, %rdi
	movq	%r15, %rbx
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	%r11, -88(%rbp)                 ## 8-byte Spill
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movq	%r8, -80(%rbp)                  ## 8-byte Spill
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_20:                                ##   in Loop: Header=BB0_8 Depth=1
	cmpl	$4, 40(%rbp)
	movq	%rbx, %rdx
	cmoveq	%r15, %rdx
	movl	%eax, (%rdx)
	addq	%r8, %rbx
	addq	-96(%rbp), %r13                 ## 8-byte Folded Reload
	addq	%rdi, %r15
	testl	%r14d, %r14d
	je	LBB0_21
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movl	-100(%rbp), %edx                ## 4-byte Reload
	cmpl	$8, %edx
	jg	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movl	(%r13), %eax
	jmp	LBB0_18
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	_AV_PIX_FMT_FLAG_BE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	$16, %edx
	jg	LBB0_14
## %bb.11:                              ##   in Loop: Header=BB0_8 Depth=1
	testl	%eax, -60(%rbp)                 ## 4-byte Folded Reload
	je	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	%r13, %rdi
	callq	_AV_RB16
	jmp	LBB0_17
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_8 Depth=1
	testl	%eax, -60(%rbp)                 ## 4-byte Folded Reload
	je	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	%r13, %rdi
	callq	_AV_RB32
	jmp	LBB0_17
LBB0_13:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	%r13, %rdi
	callq	_AV_RL16
	jmp	LBB0_17
LBB0_16:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	%r13, %rdi
	callq	_AV_RL32
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movq	-80(%rbp), %r8                  ## 8-byte Reload
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movq	-88(%rbp), %r11                 ## 8-byte Reload
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
                                        ## kill: def $eax killed $eax def $rax
LBB0_18:                                ##   in Loop: Header=BB0_8 Depth=1
	shrl	%cl, %eax
	decl	%r14d
	andl	%r12d, %eax
	cmpl	$0, 32(%rbp)
	je	LBB0_20
## %bb.19:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	8(%rsi), %rdx
	leal	(%r11,%rax,4), %eax
	movl	(%rdx,%rax,4), %eax
	jmp	LBB0_20
LBB0_21:
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_PIX_FMT_FLAG_BITSTREAM,4,2  ## @AV_PIX_FMT_FLAG_BITSTREAM
	.comm	_AV_PIX_FMT_FLAG_BE,4,2         ## @AV_PIX_FMT_FLAG_BE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_av_read_image_line2            ; -- Begin function av_read_image_line2
	.p2align	2
_av_read_image_line2:                   ; @av_read_image_line2
	.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
	mov	x19, x7
	mov	x22, x0
	ldp	w25, w24, [x29, #16]
	ldr	x8, [x3, #8]
	mov	w9, #20
	smaddl	x12, w6, w9, x8
	ldp	w10, w9, [x12]
                                        ; kill: def $w10 killed $w10 def $x10
	sxtw	x10, w10
	ldpsw	x8, x11, [x12, #12]
	mov	x13, #-1
	lsl	x13, x13, x9
	mvn	w26, w13
	ldr	w14, [x3]
Lloh0:
	adrp	x13, _AV_PIX_FMT_FLAG_BITSTREAM@GOTPAGE
Lloh1:
	ldr	x13, [x13, _AV_PIX_FMT_FLAG_BITSTREAM@GOTPAGEOFF]
Lloh2:
	ldr	w13, [x13]
	tst	w13, w14
	b.eq	LBB0_6
; %bb.1:
	cbz	w19, LBB0_21
; %bb.2:
	madd	w11, w8, w4, w11
	and	w12, w11, #0x7
	mov	w13, #8
	add	w9, w9, w12
	sub	w9, w13, w9
	ldr	x12, [x1, x10, lsl #3]
	ldr	w10, [x2, x10, lsl #2]
	mul	w10, w10, w5
	add	x10, x12, w10, sxtw #2
	asr	w11, w11, #3
	add	x10, x10, w11, sxtw #2
	cmp	w24, #4
	cset	w11, ne
	cset	w12, eq
	lsl	x11, x11, #2
	lsl	x12, x12, #2
	mov	x13, x22
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	sub	w9, w9, w8
	neg	w15, w9, asr #3
	add	x10, x10, w15, sxtw #2
	and	w9, w9, #0x7
	cmp	w24, #4
	csel	x15, x22, x13, eq
	str	w14, [x15]
	add	x13, x13, x11
	add	x22, x22, x12
	cbz	w19, LBB0_21
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	sub	w19, w19, #1
	ldr	w14, [x10]
	asr	w14, w14, w9
	and	w14, w14, w26
	cbz	w25, LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x15, [x1, #8]
	add	w14, w6, w14, lsl #2
	ldr	w14, [x15, w14, sxtw #2]
	b	LBB0_3
LBB0_6:
	cbz	w19, LBB0_21
; %bb.7:
	ldr	w12, [x12, #8]
	add	w27, w12, w9
	ldr	x9, [x1, x10, lsl #3]
	ldr	w10, [x2, x10, lsl #2]
	mul	w10, w10, w5
	add	x9, x9, w10, sxtw #2
	mul	w10, w8, w4
	add	x9, x9, w10, sxtw #2
	add	x9, x9, x11, lsl #2
Lloh3:
	adrp	x10, _AV_PIX_FMT_FLAG_BE@GOTPAGE
Lloh4:
	ldr	x10, [x10, _AV_PIX_FMT_FLAG_BE@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	tst	w10, w14
	ccmp	w27, #9, #0, ne
	cset	w10, lt
	add	x23, x9, w10, uxtw #2
	cmp	w24, #4
	cset	w9, ne
	cset	w10, eq
	lsl	x11, x9, #2
	lsl	x21, x8, #2
	lsl	x20, x10, #2
	mov	x28, x22
	str	w6, [sp, #28]                   ; 4-byte Folded Spill
	str	x1, [sp, #16]                   ; 8-byte Folded Spill
	stp	w12, w14, [sp, #8]              ; 8-byte Folded Spill
	str	x11, [sp]                       ; 8-byte Folded Spill
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	cmp	w24, #4
	csel	x9, x22, x28, eq
	str	w8, [x9]
	add	x28, x28, x11
	add	x23, x23, x21
	add	x22, x22, x20
	cbz	w19, LBB0_21
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	cmp	w27, #8
	b.gt	LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	w0, [x23]
	b	LBB0_19
LBB0_11:                                ;   in Loop: Header=BB0_9 Depth=1
Lloh6:
	adrp	x8, _AV_PIX_FMT_FLAG_BE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _AV_PIX_FMT_FLAG_BE@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	and	w8, w8, w14
	mov	x0, x23
	cmp	w27, #16
	b.gt	LBB0_14
; %bb.12:                               ;   in Loop: Header=BB0_9 Depth=1
	cbz	w8, LBB0_16
; %bb.13:                               ;   in Loop: Header=BB0_9 Depth=1
	bl	_AV_RB16
	b	LBB0_18
LBB0_14:                                ;   in Loop: Header=BB0_9 Depth=1
	cbz	w8, LBB0_17
; %bb.15:                               ;   in Loop: Header=BB0_9 Depth=1
	bl	_AV_RB32
	b	LBB0_18
LBB0_16:                                ;   in Loop: Header=BB0_9 Depth=1
	bl	_AV_RL16
	b	LBB0_18
LBB0_17:                                ;   in Loop: Header=BB0_9 Depth=1
	bl	_AV_RL32
LBB0_18:                                ;   in Loop: Header=BB0_9 Depth=1
	ldr	x11, [sp]                       ; 8-byte Folded Reload
	ldp	w12, w14, [sp, #8]              ; 8-byte Folded Reload
	ldr	x1, [sp, #16]                   ; 8-byte Folded Reload
	ldr	w6, [sp, #28]                   ; 4-byte Folded Reload
LBB0_19:                                ;   in Loop: Header=BB0_9 Depth=1
	sub	w19, w19, #1
	lsr	w8, w0, w12
	and	w8, w8, w26
	cbz	w25, LBB0_8
; %bb.20:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	x9, [x1, #8]
	add	w8, w6, w8, lsl #2
	ldr	w8, [x9, w8, uxtw #2]
	b	LBB0_8
LBB0_21:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_PIX_FMT_FLAG_BITSTREAM,4,2  ; @AV_PIX_FMT_FLAG_BITSTREAM
	.comm	_AV_PIX_FMT_FLAG_BE,4,2         ; @AV_PIX_FMT_FLAG_BE
.subsections_via_symbols
