	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ac97_fp_rec_volume_put
_ac97_fp_rec_volume_put:                ## @ac97_fp_rec_volume_put
	.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, %rbx
	movq	(%rdi), %r14
	movq	%r14, %rdi
	callq	_mutex_lock
	movq	_AC97_REC_GAIN@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_oxygen_read_ac97
	movl	%eax, %r15d
	andl	$-1800, %eax                    ## imm = 0xF8F8
	movq	(%rbx), %rcx
	movl	(%rcx), %ebx
	andl	$7, %ebx
	orl	%ebx, %eax
	shll	$8, %ebx
	orl	%eax, %ebx
	cmpl	%r15d, %ebx
	je	LBB0_2
## %bb.1:
	movl	(%r12), %edx
	movq	%r14, %rdi
	movl	$1, %esi
	movl	%ebx, %ecx
	callq	_oxygen_write_ac97
LBB0_2:
	xorl	%r12d, %r12d
	cmpl	%r15d, %ebx
	setne	%r12b
	movq	%r14, %rdi
	callq	_mutex_unlock
	movl	%r12d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AC97_REC_GAIN,4,2              ## @AC97_REC_GAIN
	.no_dead_strip	_ac97_fp_rec_volume_put
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ac97_fp_rec_volume_put
_ac97_fp_rec_volume_put:                ; @ac97_fp_rec_volume_put
	.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	x22, x1
	ldr	x19, [x0]
	mov	x0, x19
	bl	_mutex_lock
Lloh0:
	adrp	x23, _AC97_REC_GAIN@GOTPAGE
Lloh1:
	ldr	x23, [x23, _AC97_REC_GAIN@GOTPAGEOFF]
	ldr	w2, [x23]
	mov	x0, x19
	mov	w1, #1
	bl	_oxygen_read_ac97
	mov	x20, x0
	mov	w8, #-1800
	and	w21, w0, w8
	ldr	x8, [x22]
	ldr	w8, [x8]
	and	w9, w8, #0x7
	bfxil	w21, w8, #0, #3
	bfi	w21, w9, #8, #3
	cmp	w21, w0
	b.eq	LBB0_2
; %bb.1:
	ldr	w2, [x23]
	mov	x0, x19
	mov	w1, #1
	mov	x3, x21
	bl	_oxygen_write_ac97
LBB0_2:
	cmp	w21, w20
	cset	w20, ne
	mov	x0, x19
	bl	_mutex_unlock
	mov	x0, x20
	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 AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_AC97_REC_GAIN,4,2              ; @AC97_REC_GAIN
	.no_dead_strip	_ac97_fp_rec_volume_put
.subsections_via_symbols
