	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function headphone_frame
_headphone_frame:                       ## @headphone_frame
	.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
	movq	%rdx, %r14
	movq	%rsi, %rbx
	movq	%rdi, %r13
	movq	%rsi, -56(%rbp)
	movq	(%rdx), %r15
	movq	$0, -48(%rbp)
	movl	(%rsi), %esi
	movq	%rdx, %rdi
	callq	_ff_get_audio_buffer
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r12
	movl	4(%rbx), %eax
	movl	%eax, 4(%r12)
	movq	%rbx, -64(%rbp)
	movq	%r12, -72(%rbp)
	movl	32(%r13), %eax
	movl	%eax, -80(%rbp)
	movl	28(%r13), %eax
	movl	%eax, -84(%rbp)
	movl	24(%r13), %eax
	movl	%eax, -88(%rbp)
	leaq	-48(%rbp), %rax
	movq	%rax, -112(%rbp)
	movups	8(%r13), %xmm0
	movups	%xmm0, -104(%rbp)
	movq	(%r13), %rcx
	movq	_TIME_DOMAIN@GOTPCREL(%rip), %rdx
	movq	(%r15), %rax
	cmpq	(%rdx), %rcx
	jne	LBB0_3
## %bb.4:
	movq	_headphone_convolute@GOTPCREL(%rip), %rcx
	jmp	LBB0_5
LBB0_1:
	leaq	-56(%rbp), %rdi
	callq	_av_frame_free
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_AVERROR
	jmp	LBB0_8
LBB0_3:
	movq	_headphone_fast_convolute@GOTPCREL(%rip), %rcx
LBB0_5:
	movl	(%rcx), %esi
	leaq	-112(%rbp), %rdx
	movq	%r15, %rdi
	xorl	%ecx, %ecx
	movl	$2, %r8d
	callq	*(%rax)
	xorl	%eax, %eax
	callq	_emms_c
	movl	-44(%rbp), %ecx
	addl	-48(%rbp), %ecx
	jle	LBB0_7
## %bb.6:
	movq	_AV_LOG_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r12), %r8d
	addl	%r8d, %r8d
	leaq	L_.str(%rip), %rdx
	movq	%r15, %rdi
	callq	_av_log
LBB0_7:
	leaq	-56(%rbp), %rdi
	callq	_av_frame_free
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_ff_filter_frame
LBB0_8:
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_TIME_DOMAIN,8,3                ## @TIME_DOMAIN
	.comm	_headphone_convolute,4,2        ## @headphone_convolute
	.comm	_headphone_fast_convolute,4,2   ## @headphone_fast_convolute
	.comm	_AV_LOG_WARNING,4,2             ## @AV_LOG_WARNING
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%d of %d samples clipped. Please reduce gain.\n"

	.no_dead_strip	_headphone_frame
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function headphone_frame
_headphone_frame:                       ; @headphone_frame
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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	x19, x2
	mov	x23, x1
	mov	x22, x0
	stur	x1, [x29, #-56]
	ldr	x21, [x2]
	str	xzr, [sp, #64]
	ldr	w1, [x1]
	mov	x0, x2
	bl	_ff_get_audio_buffer
	cbz	x0, LBB0_4
; %bb.1:
	mov	x20, x0
	ldr	w8, [x23, #4]
	str	w8, [x0, #4]
	stp	x0, x23, [sp, #48]
	ldr	w8, [x22, #32]
	str	w8, [sp, #40]
	ldr	d0, [x22, #24]
	str	d0, [sp, #32]
	add	x8, sp, #64
	str	x8, [sp, #8]
	ldur	q0, [x22, #8]
	stur	q0, [sp, #16]
	ldr	x8, [x22]
Lloh0:
	adrp	x9, _TIME_DOMAIN@GOTPAGE
Lloh1:
	ldr	x9, [x9, _TIME_DOMAIN@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	ldr	x10, [x21]
Lloh3:
	adrp	x11, _headphone_convolute@GOTPAGE
Lloh4:
	ldr	x11, [x11, _headphone_convolute@GOTPAGEOFF]
	ldr	x10, [x10]
Lloh5:
	adrp	x12, _headphone_fast_convolute@GOTPAGE
Lloh6:
	ldr	x12, [x12, _headphone_fast_convolute@GOTPAGEOFF]
	cmp	x8, x9
	csel	x8, x11, x12, eq
	ldr	w1, [x8]
	add	x2, sp, #8
	mov	x0, x21
	mov	x3, #0
	mov	w4, #2
	blr	x10
	bl	_emms_c
	ldp	w8, w9, [sp, #64]
	add	w3, w9, w8
	cmp	w3, #1
	b.lt	LBB0_3
; %bb.2:
Lloh7:
	adrp	x8, _AV_LOG_WARNING@GOTPAGE
Lloh8:
	ldr	x8, [x8, _AV_LOG_WARNING@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	ldr	w8, [x20]
	lsl	w4, w8, #1
Lloh10:
	adrp	x2, l_.str@PAGE
Lloh11:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x21
	bl	_av_log
LBB0_3:
	sub	x0, x29, #56
	bl	_av_frame_free
	mov	x0, x19
	mov	x1, x20
	bl	_ff_filter_frame
	b	LBB0_5
LBB0_4:
	sub	x0, x29, #56
	bl	_av_frame_free
Lloh12:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	bl	_AVERROR
LBB0_5:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_TIME_DOMAIN,8,3                ; @TIME_DOMAIN
	.comm	_headphone_convolute,4,2        ; @headphone_convolute
	.comm	_headphone_fast_convolute,4,2   ; @headphone_fast_convolute
	.comm	_AV_LOG_WARNING,4,2             ; @AV_LOG_WARNING
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%d of %d samples clipped. Please reduce gain.\n"

	.no_dead_strip	_headphone_frame
.subsections_via_symbols
