	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function atmel_ac97c_capture_hw_params
_atmel_ac97c_capture_hw_params:         ## @atmel_ac97c_capture_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, %rbx
	callq	_snd_pcm_substream_chip
	movq	%rax, %r14
	movq	%r15, %rdi
	callq	_params_buffer_bytes
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_snd_pcm_lib_malloc_pages
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_5
## %bb.1:
	cmpl	$1, %ebx
	jne	LBB0_4
## %bb.2:
	movq	_DMA_RX_READY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r14, %rsi
	addq	$12, %rsi
	callq	_test_and_clear_bit
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movl	8(%r14), %edi
	callq	_dw_dma_cyclic_free
LBB0_4:
	movq	_opened_mutex@GOTPCREL(%rip), %r12
	movq	%r12, %rdi
	callq	_mutex_lock
	movq	%r15, %rdi
	callq	_params_rate
	movl	%eax, 4(%r14)
	movq	%r15, %rdi
	callq	_params_format
	movl	%eax, (%r14)
	movq	%r12, %rdi
	callq	_mutex_unlock
LBB0_5:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DMA_RX_READY,4,2               ## @DMA_RX_READY
	.comm	_opened_mutex,4,2               ## @opened_mutex
	.no_dead_strip	_atmel_ac97c_capture_hw_params
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function atmel_ac97c_capture_hw_params
_atmel_ac97c_capture_hw_params:         ; @atmel_ac97c_capture_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	x21, x0
	bl	_snd_pcm_substream_chip
	mov	x20, x0
	mov	x0, x19
	bl	_params_buffer_bytes
	mov	x1, x0
	mov	x0, x21
	bl	_snd_pcm_lib_malloc_pages
	mov	x21, x0
	tbnz	w0, #31, LBB0_5
; %bb.1:
	cmp	w21, #1
	b.ne	LBB0_4
; %bb.2:
Lloh0:
	adrp	x8, _DMA_RX_READY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DMA_RX_READY@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	add	x1, x20, #12
	bl	_test_and_clear_bit
	cbz	x0, LBB0_4
; %bb.3:
	ldr	w0, [x20, #8]
	bl	_dw_dma_cyclic_free
LBB0_4:
Lloh3:
	adrp	x22, _opened_mutex@GOTPAGE
Lloh4:
	ldr	x22, [x22, _opened_mutex@GOTPAGEOFF]
	mov	x0, x22
	bl	_mutex_lock
	mov	x0, x19
	bl	_params_rate
	str	w0, [x20, #4]
	mov	x0, x19
	bl	_params_format
	str	w0, [x20]
	mov	x0, x22
	bl	_mutex_unlock
LBB0_5:
	mov	x0, x21
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_DMA_RX_READY,4,2               ; @DMA_RX_READY
	.comm	_opened_mutex,4,2               ; @opened_mutex
	.no_dead_strip	_atmel_ac97c_capture_hw_params
.subsections_via_symbols
