	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function yuv4_read_seek
_yuv4_read_seek:                        ## @yuv4_read_seek
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	_AVSEEK_FLAG_BACKWARD@GOTPCREL(%rip), %rax
	testl	%ecx, (%rax)
	je	LBB0_2
## %bb.1:
	decl	%edx
	xorl	%edi, %edi
	movl	%edx, %esi
	callq	_FFMAX
	movl	%eax, %edx
LBB0_2:
	testl	%edx, %edx
	js	LBB0_3
## %bb.4:
	movslq	(%rbx), %rax
	movslq	%edx, %rsi
	imulq	%rax, %rsi
	movl	16(%rbx), %edi
	movq	8(%rbx), %rax
	addq	(%rax), %rsi
	movq	_SEEK_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_avio_seek
	sarq	$63, %rax
	jmp	LBB0_5
LBB0_3:
	movl	$-1, %eax
LBB0_5:
                                        ## kill: def $eax killed $eax killed $rax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AVSEEK_FLAG_BACKWARD,4,2       ## @AVSEEK_FLAG_BACKWARD
	.comm	_SEEK_SET,4,2                   ## @SEEK_SET
	.no_dead_strip	_yuv4_read_seek
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function yuv4_read_seek
_yuv4_read_seek:                        ; @yuv4_read_seek
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
                                        ; kill: def $w2 killed $w2 def $x2
	mov	x19, x0
Lloh0:
	adrp	x8, _AVSEEK_FLAG_BACKWARD@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AVSEEK_FLAG_BACKWARD@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w3
	b.eq	LBB0_2
; %bb.1:
	sub	w1, w2, #1
	mov	w0, #0
	bl	_FFMAX
	mov	x2, x0
LBB0_2:
	tbnz	w2, #31, LBB0_4
; %bb.3:
	ldrsw	x8, [x19]
	sxtw	x9, w2
	ldr	w0, [x19, #16]
	ldr	x10, [x19, #8]
	ldr	x10, [x10]
	madd	x1, x8, x9, x10
Lloh3:
	adrp	x8, _SEEK_SET@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SEEK_SET@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	bl	_avio_seek
	asr	x0, x0, #63
	b	LBB0_5
LBB0_4:
	mov	w0, #-1
LBB0_5:
                                        ; kill: def $w0 killed $w0 killed $x0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_AVSEEK_FLAG_BACKWARD,4,2       ; @AVSEEK_FLAG_BACKWARD
	.comm	_SEEK_SET,4,2                   ; @SEEK_SET
	.no_dead_strip	_yuv4_read_seek
.subsections_via_symbols
