	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_pcm_hw_params
_snd_pcm_hw_params:                     ## @snd_pcm_hw_params
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r12
	callq	_PCM_RUNTIME_CHECK
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	_ENXIO@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_3:
	movq	16(%r12), %r14
	movq	%r12, %rdi
	callq	_snd_pcm_stream_lock_irq
	movq	112(%r14), %rax
	movl	(%rax), %ebx
	addl	$-128, %ebx
	movq	%r12, %rdi
	callq	_snd_pcm_stream_unlock_irq
	cmpl	$3, %ebx
	jae	LBB0_4
## %bb.5:
	leaq	12(%r12), %rdi
	callq	_atomic_read
	testq	%rax, %rax
	je	LBB0_6
LBB0_4:
	movq	_EBADFD@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_19:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movl	$-1, (%r15)
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_snd_pcm_hw_refine
	testl	%eax, %eax
	js	LBB0_7
## %bb.9:
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_snd_pcm_hw_params_choose
	testl	%eax, %eax
	js	LBB0_7
## %bb.10:
	movq	(%r12), %rax
	movq	(%rax), %rax
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	*%rax
	testl	%eax, %eax
	js	LBB0_7
LBB0_12:
	movq	%r15, %rdi
	callq	_params_access
	movl	%eax, 104(%r14)
	movq	%r15, %rdi
	callq	_params_format
	movl	%eax, 76(%r14)
	movq	%r15, %rdi
	callq	_params_subformat
	movl	%eax, 100(%r14)
	movq	%r15, %rdi
	callq	_params_channels
	movl	%eax, (%r14)
	movq	%r15, %rdi
	callq	_params_rate
	movl	%eax, 96(%r14)
	movq	%r15, %rdi
	callq	_params_period_size
	movl	%eax, 56(%r14)
	movq	%r15, %rdi
	callq	_params_periods
	movl	%eax, 92(%r14)
	movq	%r15, %rdi
	callq	_params_buffer_size
	movl	%eax, 4(%r14)
	movl	12(%r15), %eax
	movl	%eax, 88(%r14)
	movl	8(%r15), %eax
	movl	%eax, 84(%r14)
	movl	4(%r15), %eax
	movl	%eax, 80(%r14)
	movl	76(%r14), %edi
	callq	_snd_pcm_format_physical_width
	movl	%eax, 8(%r14)
	imull	(%r14), %eax
	movl	%eax, 12(%r14)
	movl	$1, %ecx
	testb	$7, %al
	je	LBB0_15
## %bb.13:
	movl	%eax, %edx
	.p2align	4, 0x90
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	leal	(%rdx,%rdx), %eax
	addl	%ecx, %ecx
	testb	$3, %dl
	movl	%eax, %edx
	jne	LBB0_14
LBB0_15:
	shrl	$3, %eax
	movl	%eax, 16(%r14)
	movl	%ecx, 20(%r14)
	movq	_SNDRV_PCM_TSTAMP_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 72(%r14)
	movl	$1, 24(%r14)
	movl	56(%r14), %eax
	movq	64(%r14), %rcx
	movl	%eax, (%rcx)
	movl	$1, 28(%r14)
	movl	4(%r14), %eax
	movl	%eax, 32(%r14)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 40(%r14)
	movq	_LONG_MAX@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	subl	%eax, %ecx
	.p2align	4, 0x90
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	movl	%eax, %edx
	leal	(%rdx,%rdx), %eax
	cmpl	%ecx, %eax
	jle	LBB0_16
## %bb.17:
	movl	%edx, 36(%r14)
	movq	%r12, %rdi
	callq	_snd_pcm_timer_resolution_change
	movq	%r12, %rdi
	movl	$128, %esi
	callq	_snd_pcm_set_state
	movq	_PM_QOS_CPU_DMA_LATENCY@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	movl	8(%r12), %esi
	callq	_pm_qos_remove_requirement
	movq	%r14, %rdi
	callq	_period_to_usecs
	xorl	%ebx, %ebx
	testl	%eax, %eax
	js	LBB0_19
## %bb.18:
	movl	(%r15), %edi
	movl	8(%r12), %esi
	movl	%eax, %edx
	callq	_pm_qos_add_requirement
	jmp	LBB0_19
LBB0_7:
	movl	%eax, %ebx
	movq	%r12, %rdi
	movl	$130, %esi
	callq	_snd_pcm_set_state
	movq	(%r12), %rax
	movq	8(%rax), %rcx
	testq	%rcx, %rcx
	je	LBB0_19
## %bb.8:
	movq	%r12, %rdi
	callq	*%rcx
	jmp	LBB0_19
	.cfi_endproc
                                        ## -- End function
	.comm	_ENXIO,4,2                      ## @ENXIO
	.comm	_EBADFD,4,2                     ## @EBADFD
	.comm	_SNDRV_PCM_TSTAMP_NONE,4,2      ## @SNDRV_PCM_TSTAMP_NONE
	.comm	_LONG_MAX,4,2                   ## @LONG_MAX
	.comm	_PM_QOS_CPU_DMA_LATENCY,4,2     ## @PM_QOS_CPU_DMA_LATENCY
	.no_dead_strip	_snd_pcm_hw_params
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function snd_pcm_hw_params
_snd_pcm_hw_params:                     ; @snd_pcm_hw_params
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x21, x1
	mov	x19, x0
	bl	_PCM_RUNTIME_CHECK
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _ENXIO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
	b	LBB0_5
LBB0_2:
	ldr	x20, [x19, #16]
	mov	x0, x19
	bl	_snd_pcm_stream_lock_irq
	ldr	x8, [x20, #112]
	ldr	w8, [x8]
	sub	w22, w8, #128
	mov	x0, x19
	bl	_snd_pcm_stream_unlock_irq
	cmp	w22, #3
	b.hs	LBB0_4
; %bb.3:
	add	x0, x19, #12
	bl	_atomic_read
	cbz	x0, LBB0_7
LBB0_4:
Lloh2:
	adrp	x8, _EBADFD@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EBADFD@GOTPAGEOFF]
LBB0_5:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_6:
	mov	x0, x22
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_7:
	mov	w8, #-1
	str	w8, [x21]
	mov	x0, x19
	mov	x1, x21
	bl	_snd_pcm_hw_refine
	tbnz	w0, #31, LBB0_19
; %bb.8:
	mov	x0, x19
	mov	x1, x21
	bl	_snd_pcm_hw_params_choose
	tbnz	w0, #31, LBB0_19
; %bb.9:
	ldr	x8, [x19]
	ldr	x8, [x8]
	cbz	x8, LBB0_11
; %bb.10:
	mov	x0, x19
	mov	x1, x21
	blr	x8
	tbnz	w0, #31, LBB0_19
LBB0_11:
	mov	x0, x21
	bl	_params_access
	str	w0, [x20, #104]
	mov	x0, x21
	bl	_params_format
	str	w0, [x20, #76]
	mov	x0, x21
	bl	_params_subformat
	str	w0, [x20, #100]
	mov	x0, x21
	bl	_params_channels
	str	w0, [x20]
	mov	x0, x21
	bl	_params_rate
	str	w0, [x20, #96]
	mov	x0, x21
	bl	_params_period_size
	str	w0, [x20, #56]
	mov	x0, x21
	bl	_params_periods
	str	w0, [x20, #92]
	mov	x0, x21
	bl	_params_buffer_size
	str	w0, [x20, #4]
	ldr	w8, [x21, #12]
	str	w8, [x20, #88]
	ldur	d0, [x21, #4]
	str	d0, [x20, #80]
	ldr	w0, [x20, #76]
	bl	_snd_pcm_format_physical_width
	ldr	w8, [x20]
	mul	w8, w8, w0
	stp	w0, w8, [x20, #8]
	mov	w9, #1
	tst	w8, #0x7
	b.eq	LBB0_14
; %bb.12:
	mov	x10, x8
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	lsl	w8, w10, #1
	lsl	w9, w9, #1
	tst	w10, #0x3
	mov	x10, x8
	b.ne	LBB0_13
LBB0_14:
	lsr	w8, w8, #3
	stp	w8, w9, [x20, #16]
Lloh4:
	adrp	x8, _SNDRV_PCM_TSTAMP_NONE@GOTPAGE
Lloh5:
	ldr	x8, [x8, _SNDRV_PCM_TSTAMP_NONE@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	str	w8, [x20, #72]
	ldr	w8, [x20, #56]
	ldr	x9, [x20, #64]
	str	w8, [x9]
	movi.2s	v0, #1
	str	d0, [x20, #24]
	ldr	w8, [x20, #4]
	str	w8, [x20, #32]
	stp	xzr, xzr, [x20, #40]
Lloh7:
	adrp	x9, _LONG_MAX@GOTPAGE
Lloh8:
	ldr	x9, [x9, _LONG_MAX@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	sub	w9, w9, w8
LBB0_15:                                ; =>This Inner Loop Header: Depth=1
	mov	x10, x8
	lsl	w8, w8, #1
	cmp	w8, w9
	b.le	LBB0_15
; %bb.16:
	str	w10, [x20, #36]
	mov	x0, x19
	bl	_snd_pcm_timer_resolution_change
	mov	x0, x19
	mov	w1, #128
	bl	_snd_pcm_set_state
Lloh10:
	adrp	x21, _PM_QOS_CPU_DMA_LATENCY@GOTPAGE
Lloh11:
	ldr	x21, [x21, _PM_QOS_CPU_DMA_LATENCY@GOTPAGEOFF]
	ldr	w0, [x21]
	ldr	w1, [x19, #8]
	bl	_pm_qos_remove_requirement
	mov	x0, x20
	bl	_period_to_usecs
	tbnz	w0, #31, LBB0_18
; %bb.17:
	mov	x2, x0
	ldr	w0, [x21]
	ldr	w1, [x19, #8]
	bl	_pm_qos_add_requirement
LBB0_18:
	mov	w22, #0
	b	LBB0_6
LBB0_19:
	mov	x22, x0
	mov	x0, x19
	mov	w1, #130
	bl	_snd_pcm_set_state
	ldr	x8, [x19]
	ldr	x8, [x8, #8]
	cbz	x8, LBB0_6
; %bb.20:
	mov	x0, x19
	blr	x8
	b	LBB0_6
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_ENXIO,4,2                      ; @ENXIO
	.comm	_EBADFD,4,2                     ; @EBADFD
	.comm	_SNDRV_PCM_TSTAMP_NONE,4,2      ; @SNDRV_PCM_TSTAMP_NONE
	.comm	_LONG_MAX,4,2                   ; @LONG_MAX
	.comm	_PM_QOS_CPU_DMA_LATENCY,4,2     ; @PM_QOS_CPU_DMA_LATENCY
	.no_dead_strip	_snd_pcm_hw_params
.subsections_via_symbols
