	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function oma_read_seek
_oma_read_seek:                         ## @oma_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	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	8(%rdi), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	movq	(%rax), %rax
	movq	_AV_CODEC_ID_ATRAC3PAL@GOTPCREL(%rip), %rdi
	movl	$-1, %ebx
	cmpq	(%rdi), %rax
	je	LBB0_11
## %bb.1:
	movq	_AV_CODEC_ID_ATRAC3AL@GOTPCREL(%rip), %rdi
	cmpq	(%rdi), %rax
	je	LBB0_11
## %bb.2:
	movq	16(%r14), %r15
	movq	%r14, %rdi
	callq	_ff_pcm_read_seek
	movl	%eax, %ebx
	cmpl	$0, 12(%r15)
	je	LBB0_11
## %bb.3:
	testl	%ebx, %ebx
	jne	LBB0_10
## %bb.4:
	movl	(%r14), %edi
	callq	_avio_tell
	xorl	%ebx, %ebx
	cmpq	(%r15), %rax
	jl	LBB0_10
## %bb.5:
	movl	(%r14), %edi
	movq	_SEEK_CUR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$-8, %esi
	callq	_avio_seek
	testl	%eax, %eax
	js	LBB0_9
## %bb.6:
	movl	(%r14), %edi
	movl	8(%r15), %esi
	movl	$8, %edx
	callq	_avio_read
	xorl	%ebx, %ebx
	cmpl	$7, %eax
	jg	LBB0_11
## %bb.7:
	testl	%eax, %eax
	js	LBB0_9
## %bb.8:
	movq	_AVERROR_EOF@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_9:
	movl	%eax, %ebx
LBB0_10:
	movl	8(%r15), %edi
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_memset
LBB0_11:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_CODEC_ID_ATRAC3PAL,8,3      ## @AV_CODEC_ID_ATRAC3PAL
	.comm	_AV_CODEC_ID_ATRAC3AL,8,3       ## @AV_CODEC_ID_ATRAC3AL
	.comm	_SEEK_CUR,4,2                   ## @SEEK_CUR
	.comm	_AVERROR_EOF,4,2                ## @AVERROR_EOF
	.no_dead_strip	_oma_read_seek
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function oma_read_seek
_oma_read_seek:                         ; @oma_read_seek
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	ldr	x8, [x0, #8]
	ldr	x8, [x8]
	ldr	x8, [x8]
	ldr	x8, [x8]
Lloh0:
	adrp	x9, _AV_CODEC_ID_ATRAC3PAL@GOTPAGE
Lloh1:
	ldr	x9, [x9, _AV_CODEC_ID_ATRAC3PAL@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
Lloh3:
	adrp	x10, _AV_CODEC_ID_ATRAC3AL@GOTPAGE
Lloh4:
	ldr	x10, [x10, _AV_CODEC_ID_ATRAC3AL@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_2
; %bb.1:
	mov	w20, #-1
	b	LBB0_11
LBB0_2:
	mov	x19, x0
	ldr	x21, [x0, #16]
	bl	_ff_pcm_read_seek
	mov	x20, x0
	ldr	w8, [x21, #12]
	cbz	w8, LBB0_11
; %bb.3:
	cbnz	w20, LBB0_10
; %bb.4:
	ldr	w0, [x19]
	bl	_avio_tell
	ldr	x8, [x21]
	cmp	x0, x8
	b.ge	LBB0_6
; %bb.5:
	mov	w20, #0
	b	LBB0_10
LBB0_6:
	ldr	w0, [x19]
Lloh6:
	adrp	x8, _SEEK_CUR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SEEK_CUR@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	mov	w1, #-8
	bl	_avio_seek
	tbnz	w0, #31, LBB0_9
; %bb.7:
	ldr	w0, [x19]
	ldr	w1, [x21, #8]
	mov	w2, #8
	bl	_avio_read
	cmp	w0, #7
	b.gt	LBB0_12
; %bb.8:
Lloh9:
	adrp	x8, _AVERROR_EOF@GOTPAGE
Lloh10:
	ldr	x8, [x8, _AVERROR_EOF@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	cmp	w0, #0
	csel	w20, w0, w8, lt
	b	LBB0_10
LBB0_9:
	mov	x20, x0
LBB0_10:
	ldr	w0, [x21, #8]
	mov	w1, #0
	mov	w2, #8
	bl	_memset
LBB0_11:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_12:
	mov	w20, #0
	b	LBB0_11
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_CODEC_ID_ATRAC3PAL,8,3      ; @AV_CODEC_ID_ATRAC3PAL
	.comm	_AV_CODEC_ID_ATRAC3AL,8,3       ; @AV_CODEC_ID_ATRAC3AL
	.comm	_SEEK_CUR,4,2                   ; @SEEK_CUR
	.comm	_AVERROR_EOF,4,2                ; @AVERROR_EOF
	.no_dead_strip	_oma_read_seek
.subsections_via_symbols
