	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pcm_prepare
_pcm_prepare:                           ## @pcm_prepare
	.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, %rbx
	callq	_snd_pcm_substream_chip
	movq	%rax, %r14
	movq	(%rbx), %rbx
	movq	16(%rbx), %rax
	movl	(%rax), %r15d
	movslq	4(%rbx), %rdi
	callq	_DE_HWP
	movl	4(%rbx), %eax
	movl	%eax, -32(%rbp)
	movl	$0, -48(%rbp)
	movq	$0, -40(%rbp)
	movslq	(%rbx), %rdi
	leal	-128(%rdi), %ecx
	cmpl	$4, %ecx
	ja	LBB0_5
## %bb.1:
	movl	$8, %eax
	leaq	LJTI0_0(%rip), %rdx
	movslq	(%rdx,%rcx,4), %rcx
	addq	%rdx, %rcx
	jmpq	*%rcx
LBB0_3:
	movl	$1, -48(%rbp)
LBB0_4:
	movl	$32, %eax
	jmp	LBB0_7
LBB0_5:
	callq	_DE_HWP
	jmp	LBB0_8
LBB0_2:
	movl	$24, %eax
	jmp	LBB0_7
LBB0_6:
	movl	$16, %eax
LBB0_7:
	movl	%eax, -44(%rbp)
	movq	%r14, %rdi
	callq	_px_num
	xorl	%edi, %edi
	cmpl	%eax, %r15d
	setge	%dil
	callq	_snd_BUG_ON
	testq	%rax, %rax
	jne	LBB0_8
## %bb.9:
	movq	%r14, %rdi
	movl	%r15d, %esi
	callq	_is_pipe_allocated
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_snd_BUG_ON
	testq	%rax, %rax
	je	LBB0_10
LBB0_8:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_11:
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	leaq	-48(%rbp), %rdx
	movq	%r14, %rdi
	movl	%r15d, %esi
	callq	_set_audio_format
	xorl	%eax, %eax
	jmp	LBB0_11
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
LJTI0_0:
	.long	L0_0_set_7
	.long	L0_0_set_4
	.long	L0_0_set_3
	.long	L0_0_set_2
	.long	L0_0_set_6
	.end_data_region
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_pcm_prepare
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pcm_prepare
_pcm_prepare:                           ; @pcm_prepare
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x20, x0
	bl	_snd_pcm_substream_chip
	mov	x19, x0
	ldr	x21, [x20]
	ldr	x8, [x21, #16]
	ldr	w20, [x8]
	ldrsw	x0, [x21, #4]
	bl	_DE_HWP
	ldr	w8, [x21, #4]
	str	w8, [sp, #24]
	str	wzr, [sp, #8]
	str	xzr, [sp, #16]
	ldrsw	x0, [x21]
	sub	w9, w0, #128
	cmp	w9, #4
	b.hi	LBB0_4
; %bb.1:
	mov	w8, #8
Lloh0:
	adrp	x10, lJTI0_0@PAGE
Lloh1:
	add	x10, x10, lJTI0_0@PAGEOFF
	adr	x11, LBB0_2
	ldrb	w12, [x10, x9]
	add	x11, x11, x12, lsl #2
	br	x11
LBB0_2:
	mov	w8, #1
	str	w8, [sp, #8]
LBB0_3:
	mov	w8, #32
	b	LBB0_7
LBB0_4:
	bl	_DE_HWP
	b	LBB0_9
LBB0_5:
	mov	w8, #24
	b	LBB0_7
LBB0_6:
	mov	w8, #16
LBB0_7:
	str	w8, [sp, #12]
	mov	x0, x19
	bl	_px_num
	cmp	w20, w0
	cset	w0, ge
	bl	_snd_BUG_ON
	cbnz	x0, LBB0_9
; %bb.8:
	mov	x0, x19
	mov	x1, x20
	bl	_is_pipe_allocated
	cmp	w0, #0
	cset	w0, eq
	bl	_snd_BUG_ON
	cbz	x0, LBB0_11
LBB0_9:
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_10:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_11:
	add	x2, sp, #8
	mov	x0, x19
	mov	x1, x20
	bl	_set_audio_format
	mov	w0, #0
	b	LBB0_10
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_7-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_pcm_prepare
.subsections_via_symbols
