	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_es18xx_playback_hw_params
_snd_es18xx_playback_hw_params:         ## @snd_es18xx_playback_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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	%rdi, %r14
	callq	_snd_pcm_substream_chip
	movq	%rax, %r15
	movq	%r12, %rdi
	callq	_params_channels
	xorl	%ebx, %ebx
	cmpl	$2, %eax
	sete	%bl
	movq	%r12, %rdi
	callq	_params_format
	movl	%eax, %edi
	callq	_snd_pcm_format_width
	leal	1(%rbx), %r13d
	cmpl	$16, %eax
	cmovnel	%ebx, %r13d
	cmpq	$0, (%r14)
	je	LBB0_1
LBB0_8:
	movl	%r13d, 8(%r15)
LBB0_9:
	movq	%r12, %rdi
	callq	_params_buffer_bytes
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_snd_pcm_lib_malloc_pages
	movl	%eax, %ecx
	sarl	$31, %ecx
	andl	%ecx, %eax
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movl	(%r15), %eax
	movq	_ES18XX_PCM2@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_8
## %bb.2:
	movq	_ES18XX_DUPLEX_MONO@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_7
## %bb.3:
	cmpq	$0, 16(%r15)
	je	LBB0_7
## %bb.4:
	movq	%r12, %rdi
	callq	_params_channels
	cmpl	$1, %eax
	jne	LBB0_5
LBB0_7:
	movl	%r13d, 4(%r15)
	jmp	LBB0_9
LBB0_5:
	movq	_SNDRV_PCM_HW_PARAM_CHANNELS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	__snd_pcm_hw_param_setempty
	movq	_EBUSY@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_ES18XX_PCM2,4,2                ## @ES18XX_PCM2
	.comm	_ES18XX_DUPLEX_MONO,4,2         ## @ES18XX_DUPLEX_MONO
	.comm	_SNDRV_PCM_HW_PARAM_CHANNELS,4,2 ## @SNDRV_PCM_HW_PARAM_CHANNELS
	.comm	_EBUSY,4,2                      ## @EBUSY
	.no_dead_strip	_snd_es18xx_playback_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_es18xx_playback_hw_params
_snd_es18xx_playback_hw_params:         ; @snd_es18xx_playback_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	x19, x1
	mov	x20, x0
	bl	_snd_pcm_substream_chip
	mov	x21, x0
	mov	x0, x19
	bl	_params_channels
	mov	x22, x0
	mov	x0, x19
	bl	_params_format
	bl	_snd_pcm_format_width
	cmp	w22, #2
	cset	w8, eq
	mov	w9, #1
	cinc	w9, w9, eq
	cmp	w0, #16
	csel	w22, w9, w8, eq
	ldr	x8, [x20]
	cbz	x8, LBB0_4
LBB0_1:
	str	w22, [x21, #8]
LBB0_2:
	mov	x0, x19
	bl	_params_buffer_bytes
	mov	x1, x0
	mov	x0, x20
	bl	_snd_pcm_lib_malloc_pages
	cmp	w0, #0
	csel	w0, w0, wzr, lt
LBB0_3:
	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_4:
	ldr	w8, [x21]
Lloh0:
	adrp	x9, _ES18XX_PCM2@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ES18XX_PCM2@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_1
; %bb.5:
Lloh3:
	adrp	x9, _ES18XX_DUPLEX_MONO@GOTPAGE
Lloh4:
	ldr	x9, [x9, _ES18XX_DUPLEX_MONO@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_8
; %bb.6:
	ldr	x8, [x21, #16]
	cbz	x8, LBB0_8
; %bb.7:
	mov	x0, x19
	bl	_params_channels
	cmp	w0, #1
	b.ne	LBB0_9
LBB0_8:
	str	w22, [x21, #4]
	b	LBB0_2
LBB0_9:
Lloh6:
	adrp	x8, _SNDRV_PCM_HW_PARAM_CHANNELS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SNDRV_PCM_HW_PARAM_CHANNELS@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	bl	__snd_pcm_hw_param_setempty
Lloh9:
	adrp	x8, _EBUSY@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_ES18XX_PCM2,4,2                ; @ES18XX_PCM2
	.comm	_ES18XX_DUPLEX_MONO,4,2         ; @ES18XX_DUPLEX_MONO
	.comm	_SNDRV_PCM_HW_PARAM_CHANNELS,4,2 ; @SNDRV_PCM_HW_PARAM_CHANNELS
	.comm	_EBUSY,4,2                      ; @EBUSY
	.no_dead_strip	_snd_es18xx_playback_hw_params
.subsections_via_symbols
