	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_pcm_read_seek               ## -- Begin function ff_pcm_read_seek
	.p2align	4, 0x90
_ff_pcm_read_seek:                      ## @ff_pcm_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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r15d
	movl	%edx, %r13d
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movq	16(%rdi), %rax
	movq	(%rax), %r14
	movq	24(%r14), %rax
	movl	(%rax), %r12d
	testl	%r12d, %r12d
	jne	LBB0_2
## %bb.1:
	movl	16(%rax), %edi
	callq	_av_get_bits_per_sample
	movl	%eax, %r12d
	movq	24(%r14), %rax
	imull	4(%rax), %r12d
	sarl	$3, %r12d
LBB0_2:
	movl	8(%rax), %ebx
	testl	%ebx, %ebx
	je	LBB0_4
## %bb.3:
	sarl	$3, %ebx
	testl	%r12d, %r12d
	jg	LBB0_6
	jmp	LBB0_11
LBB0_4:
	movl	12(%rax), %ebx
	imull	%r12d, %ebx
	testl	%r12d, %r12d
	jle	LBB0_11
LBB0_6:
	testl	%ebx, %ebx
	jle	LBB0_11
## %bb.7:
	xorl	%edi, %edi
	testl	%r13d, %r13d
	cmovgl	%r13d, %edi
	imull	%ebx, %edi
	movq	8(%r14), %rsi
	movl	(%r14), %edx
	imull	%r12d, %edx
	movq	_AVSEEK_FLAG_BACKWARD@GOTPCREL(%rip), %rax
	andl	(%rax), %r15d
	jne	LBB0_8
## %bb.9:
	movq	_AV_ROUND_UP@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_11:
	movl	$-1, %eax
	jmp	LBB0_12
LBB0_8:
	movq	_AV_ROUND_DOWN@GOTPCREL(%rip), %rax
LBB0_10:
	movl	(%rax), %ecx
	callq	_av_rescale_rnd
	movl	%eax, %r15d
	imull	%r12d, %r15d
	movl	(%r14), %esi
	imull	8(%r14), %ebx
	movl	%r15d, %edi
	movl	%ebx, %edx
	callq	_av_rescale
	movl	%eax, 16(%r14)
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	8(%rax), %edi
	movslq	%r15d, %rsi
	movq	(%rax), %rax
	addq	(%rax), %rsi
	movq	_SEEK_SET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_avio_seek
	movl	%eax, %ecx
	sarl	$31, %ecx
	andl	%ecx, %eax
LBB0_12:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AVSEEK_FLAG_BACKWARD,4,2       ## @AVSEEK_FLAG_BACKWARD
	.comm	_AV_ROUND_DOWN,4,2              ## @AV_ROUND_DOWN
	.comm	_AV_ROUND_UP,4,2                ## @AV_ROUND_UP
	.comm	_SEEK_SET,4,2                   ## @SEEK_SET
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_pcm_read_seek               ; -- Begin function ff_pcm_read_seek
	.p2align	2
_ff_pcm_read_seek:                      ; @ff_pcm_read_seek
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x20, x3
	mov	x21, x2
	mov	x19, x0
	ldr	x8, [x0, #16]
	ldr	x22, [x8]
	ldr	x8, [x22, #24]
	ldr	w23, [x8]
	cbz	w23, LBB0_3
; %bb.1:
	ldr	w9, [x8, #8]
	cbz	w9, LBB0_4
LBB0_2:
	asr	w24, w9, #3
	b	LBB0_5
LBB0_3:
	ldr	w0, [x8, #16]
	bl	_av_get_bits_per_sample
	ldr	x8, [x22, #24]
	ldr	w9, [x8, #4]
	mul	w9, w9, w0
	asr	w23, w9, #3
	ldr	w9, [x8, #8]
	cbnz	w9, LBB0_2
LBB0_4:
	ldr	w8, [x8, #12]
	mul	w24, w8, w23
LBB0_5:
	cmp	w23, #1
	ccmp	w24, #1, #8, ge
	b.ge	LBB0_7
; %bb.6:
	mov	w0, #-1
	b	LBB0_8
LBB0_7:
	cmp	w21, #0
	csel	w8, w21, wzr, gt
	mul	w0, w24, w8
	ldr	x1, [x22, #8]
	ldr	w8, [x22]
	mul	w2, w8, w23
Lloh0:
	adrp	x8, _AVSEEK_FLAG_BACKWARD@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AVSEEK_FLAG_BACKWARD@GOTPAGEOFF]
Lloh2:
	adrp	x9, _AV_ROUND_DOWN@GOTPAGE
Lloh3:
	ldr	x9, [x9, _AV_ROUND_DOWN@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x10, _AV_ROUND_UP@GOTPAGE
Lloh6:
	ldr	x10, [x10, _AV_ROUND_UP@GOTPAGEOFF]
	tst	w8, w20
	csel	x8, x10, x9, eq
	ldr	w3, [x8]
	bl	_av_rescale_rnd
	mul	w20, w0, w23
	ldr	w1, [x22]
	ldr	w8, [x22, #8]
	mul	w2, w24, w8
	mov	x0, x20
	bl	_av_rescale
	str	w0, [x22, #16]
	ldr	w0, [x19, #8]
	ldr	x8, [x19]
	ldr	x8, [x8]
	add	x1, x8, w20, sxtw
Lloh7:
	adrp	x8, _SEEK_SET@GOTPAGE
Lloh8:
	ldr	x8, [x8, _SEEK_SET@GOTPAGEOFF]
Lloh9:
	ldr	w2, [x8]
	bl	_avio_seek
	cmp	w0, #0
	csel	w0, w0, wzr, lt
LBB0_8:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_AVSEEK_FLAG_BACKWARD,4,2       ; @AVSEEK_FLAG_BACKWARD
	.comm	_AV_ROUND_DOWN,4,2              ; @AV_ROUND_DOWN
	.comm	_AV_ROUND_UP,4,2                ; @AV_ROUND_UP
	.comm	_SEEK_SET,4,2                   ; @SEEK_SET
.subsections_via_symbols
