	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_es18xx_capture_open
_snd_es18xx_capture_open:               ## @snd_es18xx_capture_open
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movq	(%rdi), %r14
	callq	_snd_pcm_substream_chip
	cmpq	$0, 24(%rax)
	je	LBB0_2
LBB0_1:
	movq	_EAGAIN@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_9
LBB0_2:
	movl	(%rax), %ecx
	movq	_ES18XX_DUPLEX_MONO@GOTPCREL(%rip), %rdx
	testl	%ecx, (%rdx)
	je	LBB0_5
## %bb.3:
	movq	16(%rax), %rdx
	testq	%rdx, %rdx
	je	LBB0_5
## %bb.4:
	movq	(%rdx), %rdx
	cmpl	$1, (%rdx)
	jne	LBB0_1
LBB0_5:
	movq	%rbx, 8(%rax)
	movq	_snd_es18xx_capture@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	(%rbx), %rdx
	movl	%eax, (%rdx)
	movq	_SNDRV_PCM_HW_PARAM_RATE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_ES18XX_NEW_RATE@GOTPCREL(%rip), %rax
	andl	(%rax), %ecx
	jne	LBB0_6
## %bb.7:
	movq	_old_hw_constraints_clocks@GOTPCREL(%rip), %rcx
	jmp	LBB0_8
LBB0_6:
	movq	_new_hw_constraints_clocks@GOTPCREL(%rip), %rcx
LBB0_8:
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_snd_pcm_hw_constraint_ratnums
LBB0_9:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EAGAIN,4,2                     ## @EAGAIN
	.comm	_ES18XX_DUPLEX_MONO,4,2         ## @ES18XX_DUPLEX_MONO
	.comm	_snd_es18xx_capture,4,2         ## @snd_es18xx_capture
	.comm	_SNDRV_PCM_HW_PARAM_RATE,4,2    ## @SNDRV_PCM_HW_PARAM_RATE
	.comm	_ES18XX_NEW_RATE,4,2            ## @ES18XX_NEW_RATE
	.comm	_new_hw_constraints_clocks,4,2  ## @new_hw_constraints_clocks
	.comm	_old_hw_constraints_clocks,4,2  ## @old_hw_constraints_clocks
	.no_dead_strip	_snd_es18xx_capture_open
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function snd_es18xx_capture_open
_snd_es18xx_capture_open:               ; @snd_es18xx_capture_open
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x0
	ldr	x19, [x0]
	bl	_snd_pcm_substream_chip
	ldr	x8, [x0, #24]
	cbz	x8, LBB0_2
LBB0_1:
Lloh0:
	adrp	x8, _EAGAIN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EAGAIN@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_6
LBB0_2:
	ldr	w8, [x0]
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_5
; %bb.3:
	ldr	x9, [x0, #16]
	cbz	x9, LBB0_5
; %bb.4:
	ldr	x9, [x9]
	ldr	w9, [x9]
	cmp	w9, #1
	b.ne	LBB0_1
LBB0_5:
	str	x20, [x0, #8]
Lloh6:
	adrp	x9, _snd_es18xx_capture@GOTPAGE
Lloh7:
	ldr	x9, [x9, _snd_es18xx_capture@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	ldr	x10, [x20]
	str	w9, [x10]
Lloh9:
	adrp	x9, _SNDRV_PCM_HW_PARAM_RATE@GOTPAGE
Lloh10:
	ldr	x9, [x9, _SNDRV_PCM_HW_PARAM_RATE@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x9]
Lloh12:
	adrp	x9, _ES18XX_NEW_RATE@GOTPAGE
Lloh13:
	ldr	x9, [x9, _ES18XX_NEW_RATE@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
Lloh15:
	adrp	x10, _new_hw_constraints_clocks@GOTPAGE
Lloh16:
	ldr	x10, [x10, _new_hw_constraints_clocks@GOTPAGEOFF]
Lloh17:
	adrp	x11, _old_hw_constraints_clocks@GOTPAGE
Lloh18:
	ldr	x11, [x11, _old_hw_constraints_clocks@GOTPAGEOFF]
	tst	w9, w8
	csel	x3, x11, x10, eq
	mov	x0, x19
	mov	w1, #0
	bl	_snd_pcm_hw_constraint_ratnums
	mov	w0, #0
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_EAGAIN,4,2                     ; @EAGAIN
	.comm	_ES18XX_DUPLEX_MONO,4,2         ; @ES18XX_DUPLEX_MONO
	.comm	_snd_es18xx_capture,4,2         ; @snd_es18xx_capture
	.comm	_SNDRV_PCM_HW_PARAM_RATE,4,2    ; @SNDRV_PCM_HW_PARAM_RATE
	.comm	_ES18XX_NEW_RATE,4,2            ; @ES18XX_NEW_RATE
	.comm	_new_hw_constraints_clocks,4,2  ; @new_hw_constraints_clocks
	.comm	_old_hw_constraints_clocks,4,2  ; @old_hw_constraints_clocks
	.no_dead_strip	_snd_es18xx_capture_open
.subsections_via_symbols
