	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_ac97_ad18xx_update_pcm_bits
_snd_ac97_ad18xx_update_pcm_bits:       ## @snd_ac97_ad18xx_update_pcm_bits
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r15d
	movl	%edx, %r13d
	movl	%esi, %r12d
	movq	%rdi, %r14
	callq	_mutex_lock
	movq	16(%r14), %rax
	movslq	%r12d, %rbx
	movzwl	(%rax,%rbx,2), %eax
	andl	%r13d, %r15d
	notl	%r13d
	andl	%eax, %r13d
	orl	%r15d, %r13d
	cmpw	%r13w, %ax
	je	LBB0_2
## %bb.1:
	leaq	4(%r14), %rdi
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	callq	_mutex_lock
	movq	_AC97_AD_SERIAL_CFG@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%r14, %rdi
	callq	_snd_ac97_read_cache
	movl	%eax, %r12d
	movq	16(%r14), %rax
	movw	%r13w, (%rax,%rbx,2)
	movq	8(%r14), %rax
	movq	24(%r14), %rcx
	movq	(%rax), %rax
	movl	(%r15), %esi
	movl	%r12d, %edx
	andl	$36863, %edx                    ## imm = 0x8FFF
	orw	(%rcx,%rbx,2), %dx
	movq	32(%r14), %rcx
	orw	(%rcx,%rbx,2), %dx
	movzwl	%dx, %edx
	movq	%r14, %rdi
	callq	*(%rax)
	movq	8(%r14), %rax
	movq	(%rax), %rax
	movq	_AC97_PCM@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movzwl	%r13w, %edx
	movq	%r14, %rdi
	callq	*(%rax)
	movq	8(%r14), %rax
	movq	(%rax), %rax
	movl	(%r15), %esi
	orl	$28672, %r12d                   ## imm = 0x7000
	movzwl	%r12w, %edx
	movq	%r14, %rdi
	callq	*(%rax)
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_mutex_unlock
	movl	-44(%rbp), %eax                 ## 4-byte Reload
LBB0_2:
	xorl	%ebx, %ebx
	cmpw	%r13w, %ax
	setne	%bl
	movq	%r14, %rdi
	callq	_mutex_unlock
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AC97_AD_SERIAL_CFG,4,2         ## @AC97_AD_SERIAL_CFG
	.comm	_AC97_PCM,4,2                   ## @AC97_PCM
	.no_dead_strip	_snd_ac97_ad18xx_update_pcm_bits
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function snd_ac97_ad18xx_update_pcm_bits
_snd_ac97_ad18xx_update_pcm_bits:       ; @snd_ac97_ad18xx_update_pcm_bits
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x3
	mov	x22, x2
	mov	x21, x1
	mov	x19, x0
	bl	_mutex_lock
	ldr	x8, [x19, #16]
	ldrh	w23, [x8, w21, sxtw #1]
	bic	w8, w23, w22
	and	w9, w20, w22
	orr	w20, w8, w9
	cmp	w23, w20
	b.eq	LBB0_2
; %bb.1:
	sxtw	x24, w21
	add	x21, x19, #4
	mov	x0, x21
	bl	_mutex_lock
Lloh0:
	adrp	x25, _AC97_AD_SERIAL_CFG@GOTPAGE
Lloh1:
	ldr	x25, [x25, _AC97_AD_SERIAL_CFG@GOTPAGEOFF]
	ldr	w1, [x25]
	mov	x0, x19
	bl	_snd_ac97_read_cache
	mov	x22, x0
	lsl	x8, x24, #1
	ldp	x10, x9, [x19, #8]
	strh	w20, [x9, x8]
	ldr	x9, [x10]
	ldr	x9, [x9]
	and	w10, w0, #0xffff8fff
	ldp	x11, x12, [x19, #24]
	ldrh	w11, [x11, x8]
	and	w10, w10, #0xffff
	orr	w10, w11, w10
	ldr	w1, [x25]
	ldrh	w8, [x12, x8]
	orr	w2, w10, w8
	mov	x0, x19
	blr	x9
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	ldr	x8, [x8]
Lloh2:
	adrp	x9, _AC97_PCM@GOTPAGE
Lloh3:
	ldr	x9, [x9, _AC97_PCM@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x9]
	mov	x0, x19
	mov	x2, x20
	blr	x8
	ldr	x8, [x19, #8]
	ldr	x8, [x8]
	ldr	x8, [x8]
	ldr	w1, [x25]
	orr	w2, w22, #0x7000
	mov	x0, x19
	blr	x8
	mov	x0, x21
	bl	_mutex_unlock
LBB0_2:
	cmp	w23, w20
	cset	w20, ne
	mov	x0, x19
	bl	_mutex_unlock
	mov	x0, x20
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_AC97_AD_SERIAL_CFG,4,2         ; @AC97_AD_SERIAL_CFG
	.comm	_AC97_PCM,4,2                   ; @AC97_PCM
	.no_dead_strip	_snd_ac97_ad18xx_update_pcm_bits
.subsections_via_symbols
