	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function oxygen_rec_b_hw_params
_oxygen_rec_b_hw_params:                ## @oxygen_rec_b_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, %r14
	movq	%rdi, %rbx
	callq	_snd_pcm_substream_chip
	movq	%rax, %r15
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_oxygen_hw_params
	testl	%eax, %eax
	js	LBB0_8
## %bb.1:
	movq	%r15, %r13
	cmpq	$0, 32(%r15)
	je	LBB0_2
## %bb.3:
	movq	_CAPTURE_2_FROM_AC97_1@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 8(%r13)
	setne	%r12b
	jmp	LBB0_4
LBB0_2:
	xorl	%r12d, %r12d
LBB0_4:
	addq	$24, %r15
	movq	%r15, %rdi
	callq	_spin_lock_irq
	movq	_OXYGEN_REC_FORMAT@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%r14, %rdi
	callq	_oxygen_format
	movq	_OXYGEN_REC_FORMAT_B_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %eax
	movq	_OXYGEN_REC_FORMAT_B_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	%r13, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_oxygen_write8_masked
	testb	%r12b, %r12b
	je	LBB0_5
## %bb.6:
	movq	%r15, %rdi
	callq	_spin_unlock_irq
	jmp	LBB0_7
LBB0_5:
	movq	_OXYGEN_I2S_B_FORMAT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	%r14, %rdi
	callq	_oxygen_rate
	movl	%eax, %ebx
	orl	12(%r13), %ebx
	movq	_PCM_B@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r13, %rdi
	movq	%r14, %rdx
	callq	_get_mclk
	movl	%eax, %r12d
	movq	%r14, %rdi
	callq	_oxygen_i2s_bits
	movq	_OXYGEN_I2S_RATE_MASK@GOTPCREL(%rip), %rdx
	movq	_OXYGEN_I2S_FORMAT_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rdx), %ecx
	orl	%eax, %ebx
	movq	_OXYGEN_I2S_MCLK_MASK@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	orl	%r12d, %ebx
	movq	_OXYGEN_I2S_BITS_MASK@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	%r13, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movl	%ebx, %edx
	callq	_oxygen_write16_masked
	movq	%r15, %rdi
	callq	_spin_unlock_irq
	movq	%r13, %rdi
	callq	_mutex_lock
	movq	%r13, %rdi
	movq	%r14, %rsi
	callq	*16(%r13)
	movq	%r13, %rdi
	callq	_mutex_unlock
LBB0_7:
	xorl	%eax, %eax
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CAPTURE_2_FROM_AC97_1,4,2      ## @CAPTURE_2_FROM_AC97_1
	.comm	_OXYGEN_REC_FORMAT,4,2          ## @OXYGEN_REC_FORMAT
	.comm	_OXYGEN_REC_FORMAT_B_SHIFT,4,2  ## @OXYGEN_REC_FORMAT_B_SHIFT
	.comm	_OXYGEN_REC_FORMAT_B_MASK,4,2   ## @OXYGEN_REC_FORMAT_B_MASK
	.comm	_OXYGEN_I2S_B_FORMAT,4,2        ## @OXYGEN_I2S_B_FORMAT
	.comm	_PCM_B,4,2                      ## @PCM_B
	.comm	_OXYGEN_I2S_RATE_MASK,4,2       ## @OXYGEN_I2S_RATE_MASK
	.comm	_OXYGEN_I2S_FORMAT_MASK,4,2     ## @OXYGEN_I2S_FORMAT_MASK
	.comm	_OXYGEN_I2S_MCLK_MASK,4,2       ## @OXYGEN_I2S_MCLK_MASK
	.comm	_OXYGEN_I2S_BITS_MASK,4,2       ## @OXYGEN_I2S_BITS_MASK
	.no_dead_strip	_oxygen_rec_b_hw_params
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function oxygen_rec_b_hw_params
_oxygen_rec_b_hw_params:                ; @oxygen_rec_b_hw_params
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x1
	mov	x21, x0
	bl	_snd_pcm_substream_chip
	mov	x20, x0
	mov	x0, x21
	mov	x1, x19
	bl	_oxygen_hw_params
	tbnz	w0, #31, LBB0_8
; %bb.1:
	ldr	x8, [x20, #32]
	cbz	x8, LBB0_3
; %bb.2:
	ldr	w8, [x20, #8]
Lloh0:
	adrp	x9, _CAPTURE_2_FROM_AC97_1@GOTPAGE
Lloh1:
	ldr	x9, [x9, _CAPTURE_2_FROM_AC97_1@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	cset	w23, ne
	b	LBB0_4
LBB0_3:
	mov	w23, #0
LBB0_4:
	add	x21, x20, #24
	mov	x0, x21
	bl	_spin_lock_irq
Lloh3:
	adrp	x8, _OXYGEN_REC_FORMAT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _OXYGEN_REC_FORMAT@GOTPAGEOFF]
Lloh5:
	ldr	w22, [x8]
	mov	x0, x19
	bl	_oxygen_format
Lloh6:
	adrp	x8, _OXYGEN_REC_FORMAT_B_SHIFT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _OXYGEN_REC_FORMAT_B_SHIFT@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	lsl	w2, w0, w8
Lloh9:
	adrp	x8, _OXYGEN_REC_FORMAT_B_MASK@GOTPAGE
Lloh10:
	ldr	x8, [x8, _OXYGEN_REC_FORMAT_B_MASK@GOTPAGEOFF]
Lloh11:
	ldr	w3, [x8]
	mov	x0, x20
	mov	x1, x22
	bl	_oxygen_write8_masked
	tbz	w23, #0, LBB0_6
; %bb.5:
	mov	x0, x21
	bl	_spin_unlock_irq
	b	LBB0_7
LBB0_6:
Lloh12:
	adrp	x8, _OXYGEN_I2S_B_FORMAT@GOTPAGE
Lloh13:
	ldr	x8, [x8, _OXYGEN_I2S_B_FORMAT@GOTPAGEOFF]
Lloh14:
	ldr	w22, [x8]
	mov	x0, x19
	bl	_oxygen_rate
	ldr	w8, [x20, #12]
	orr	w23, w8, w0
Lloh15:
	adrp	x8, _PCM_B@GOTPAGE
Lloh16:
	ldr	x8, [x8, _PCM_B@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	mov	x0, x20
	mov	x2, x19
	bl	_get_mclk
	orr	w23, w23, w0
	mov	x0, x19
	bl	_oxygen_i2s_bits
	orr	w2, w23, w0
Lloh18:
	adrp	x8, _OXYGEN_I2S_RATE_MASK@GOTPAGE
Lloh19:
	ldr	x8, [x8, _OXYGEN_I2S_RATE_MASK@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
Lloh21:
	adrp	x9, _OXYGEN_I2S_FORMAT_MASK@GOTPAGE
Lloh22:
	ldr	x9, [x9, _OXYGEN_I2S_FORMAT_MASK@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh24:
	adrp	x9, _OXYGEN_I2S_MCLK_MASK@GOTPAGE
Lloh25:
	ldr	x9, [x9, _OXYGEN_I2S_MCLK_MASK@GOTPAGEOFF]
Lloh26:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh27:
	adrp	x9, _OXYGEN_I2S_BITS_MASK@GOTPAGE
Lloh28:
	ldr	x9, [x9, _OXYGEN_I2S_BITS_MASK@GOTPAGEOFF]
Lloh29:
	ldr	w9, [x9]
	orr	w3, w8, w9
	mov	x0, x20
	mov	x1, x22
	bl	_oxygen_write16_masked
	mov	x0, x21
	bl	_spin_unlock_irq
	mov	x0, x20
	bl	_mutex_lock
	ldr	x8, [x20, #16]
	mov	x0, x20
	mov	x1, x19
	blr	x8
	mov	x0, x20
	bl	_mutex_unlock
LBB0_7:
	mov	w0, #0
LBB0_8:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_CAPTURE_2_FROM_AC97_1,4,2      ; @CAPTURE_2_FROM_AC97_1
	.comm	_OXYGEN_REC_FORMAT,4,2          ; @OXYGEN_REC_FORMAT
	.comm	_OXYGEN_REC_FORMAT_B_SHIFT,4,2  ; @OXYGEN_REC_FORMAT_B_SHIFT
	.comm	_OXYGEN_REC_FORMAT_B_MASK,4,2   ; @OXYGEN_REC_FORMAT_B_MASK
	.comm	_OXYGEN_I2S_B_FORMAT,4,2        ; @OXYGEN_I2S_B_FORMAT
	.comm	_PCM_B,4,2                      ; @PCM_B
	.comm	_OXYGEN_I2S_RATE_MASK,4,2       ; @OXYGEN_I2S_RATE_MASK
	.comm	_OXYGEN_I2S_FORMAT_MASK,4,2     ; @OXYGEN_I2S_FORMAT_MASK
	.comm	_OXYGEN_I2S_MCLK_MASK,4,2       ; @OXYGEN_I2S_MCLK_MASK
	.comm	_OXYGEN_I2S_BITS_MASK,4,2       ; @OXYGEN_I2S_BITS_MASK
	.no_dead_strip	_oxygen_rec_b_hw_params
.subsections_via_symbols
