	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pulse_write_frame
_pulse_write_frame:                     ## @pulse_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
	pushq	%r15
	pushq	%r14
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_AV_WRITE_UNCODED_FRAME_QUERY@GOTPCREL(%rip), %rax
	testl	%ecx, (%rax)
	je	LBB0_4
## %bb.1:
	movq	(%r14), %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	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
LBB0_4:
	movq	%rdx, %rbx
	movq	(%rdx), %rax
	movq	24(%rax), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, -28(%rbp)
	movl	(%rax), %r15d
	movl	16(%rax), %edi
	callq	_av_get_bytes_per_sample
	imull	%r15d, %eax
	movq	(%rbx), %rcx
	imull	4(%rcx), %eax
	movl	%eax, -40(%rbp)
	movl	12(%rcx), %eax
	movl	%eax, -32(%rbp)
	movl	8(%rcx), %eax
	movl	%eax, -36(%rbp)
	leaq	-40(%rbp), %rsi
	movq	%r14, %rdi
	callq	_pulse_write_packet
	jmp	LBB0_5
LBB0_2:
	xorl	%eax, %eax
LBB0_5:
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	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	_pulse_write_frame
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pulse_write_frame
_pulse_write_frame:                     ; @pulse_write_frame
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x0
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, [x19]
	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, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	b	_AVERROR
LBB0_3:
	mov	x20, x2
	ldr	x8, [x2]
	ldr	x9, [x8, #24]
	ldr	w9, [x9]
	str	w9, [sp, #12]
	ldr	w21, [x8]
	ldr	w0, [x8, #16]
	bl	_av_get_bytes_per_sample
	mul	w8, w0, w21
	ldr	x9, [x20]
	ldr	w10, [x9, #4]
	mul	w8, w8, w10
	str	w8, [sp]
	ldr	d0, [x9, #8]
	stur	d0, [sp, #4]
	mov	x1, sp
	mov	x0, x19
	bl	_pulse_write_packet
LBB0_4:
	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
	add	sp, sp, #64
	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	_pulse_write_frame
.subsections_via_symbols
