	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function audio_write_frame
_audio_write_frame:                     ## @audio_write_frame
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	subq	$16, %rsp
	movq	_AV_WRITE_UNCODED_FRAME_QUERY@GOTPCREL(%rip), %rax
	testl	%ecx, (%rax)
	je	LBB0_4
## %bb.1:
	movq	(%rdi), %rax
	movslq	%esi, %rcx
	movq	(%rax,%rcx,8), %rax
	movq	(%rax), %rax
	movl	(%rax), %edi
	callq	_av_sample_fmt_is_planar
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$16, %rsp
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
LBB0_4:
	movq	8(%rdi), %rax
	movq	(%rdx), %rcx
	movq	16(%rcx), %rdx
	movl	(%rdx), %edx
	movl	%edx, -4(%rbp)
	movl	(%rax), %eax
	imull	(%rcx), %eax
	movl	%eax, -16(%rbp)
	movl	8(%rcx), %eax
	movl	%eax, -8(%rbp)
	movl	4(%rcx), %eax
	movl	%eax, -12(%rbp)
	leaq	-16(%rbp), %rsi
	callq	_audio_write_packet
	jmp	LBB0_5
LBB0_2:
	xorl	%eax, %eax
LBB0_5:
	addq	$16, %rsp
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_WRITE_UNCODED_FRAME_QUERY,4,2 ## @AV_WRITE_UNCODED_FRAME_QUERY
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_audio_write_frame
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function audio_write_frame
_audio_write_frame:                     ; @audio_write_frame
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #32
	.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
Lloh0:
	adrp	x8, _AV_WRITE_UNCODED_FRAME_QUERY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AV_WRITE_UNCODED_FRAME_QUERY@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w3
	b.eq	LBB0_3
; %bb.1:
	ldr	x8, [x0]
	ldr	x8, [x8, w1, sxtw #3]
	ldr	x8, [x8]
	ldr	w0, [x8]
	bl	_av_sample_fmt_is_planar
	cbz	x0, LBB0_4
; %bb.2:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #32
	b	_AVERROR
LBB0_3:
	ldr	x8, [x0, #8]
	ldr	x9, [x2]
	ldr	x10, [x9, #16]
	ldr	w10, [x10]
	str	w10, [sp, #12]
	ldr	w10, [x9]
	ldr	w8, [x8]
	mul	w8, w8, w10
	str	w8, [sp]
	ldur	d0, [x9, #4]
	stur	d0, [sp, #4]
	mov	x1, sp
	bl	_audio_write_packet
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #32
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_WRITE_UNCODED_FRAME_QUERY,4,2 ; @AV_WRITE_UNCODED_FRAME_QUERY
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_audio_write_frame
.subsections_via_symbols
