	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_ac97_proc_regs_read
_snd_ac97_proc_regs_read:               ## @snd_ac97_proc_regs_read
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	(%rdi), %rbx
	leaq	4(%rbx), %r14
	movq	%r14, %rdi
	callq	_mutex_lock
	movl	$-192, %eax
	andl	(%rbx), %eax
	movq	_AC97_ID_AD1881@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_8
## %bb.1:
	movq	24(%rbx), %rax
	cmpq	$0, (%rax)
	je	LBB0_3
## %bb.2:
	movq	_AC97_AD_SERIAL_CFG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	8(%rbx), %rax
	movq	16(%rbx), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	%rbx, %rdi
	movl	$28672, %edx                    ## imm = 0x7000
	callq	_snd_ac97_update_bits
	movq	%rbx, %rdi
	movq	%r15, %rsi
	xorl	%edx, %edx
	callq	_snd_ac97_proc_regs_read_main
	movq	24(%rbx), %rax
LBB0_3:
	cmpq	$0, 8(%rax)
	je	LBB0_5
## %bb.4:
	movq	_AC97_AD_SERIAL_CFG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	8(%rbx), %rax
	movq	16(%rbx), %rcx
	movl	4(%rcx), %ecx
	orl	4(%rax), %ecx
	movq	%rbx, %rdi
	movl	$28672, %edx                    ## imm = 0x7000
	callq	_snd_ac97_update_bits
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movl	$1, %edx
	callq	_snd_ac97_proc_regs_read_main
	movq	24(%rbx), %rax
LBB0_5:
	cmpq	$0, 16(%rax)
	je	LBB0_7
## %bb.6:
	movq	_AC97_AD_SERIAL_CFG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	8(%rbx), %rax
	movq	16(%rbx), %rcx
	movl	8(%rcx), %ecx
	orl	8(%rax), %ecx
	movq	%rbx, %rdi
	movl	$28672, %edx                    ## imm = 0x7000
	callq	_snd_ac97_update_bits
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movl	$2, %edx
	callq	_snd_ac97_proc_regs_read_main
LBB0_7:
	movq	_AC97_AD_SERIAL_CFG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$28672, %edx                    ## imm = 0x7000
	movl	$28672, %ecx                    ## imm = 0x7000
	callq	_snd_ac97_update_bits
	jmp	LBB0_9
LBB0_8:
	movq	%rbx, %rdi
	movq	%r15, %rsi
	xorl	%edx, %edx
	callq	_snd_ac97_proc_regs_read_main
LBB0_9:
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mutex_unlock                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_AC97_ID_AD1881,4,2             ## @AC97_ID_AD1881
	.comm	_AC97_AD_SERIAL_CFG,4,2         ## @AC97_AD_SERIAL_CFG
	.no_dead_strip	_snd_ac97_proc_regs_read
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function snd_ac97_proc_regs_read
_snd_ac97_proc_regs_read:               ; @snd_ac97_proc_regs_read
	.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	x21, x1
	ldr	x20, [x0]
	add	x19, x20, #4
	mov	x0, x19
	bl	_mutex_lock
	ldr	w8, [x20]
	mov	w9, #-192
	and	w8, w8, w9
Lloh0:
	adrp	x9, _AC97_ID_AD1881@GOTPAGE
Lloh1:
	ldr	x9, [x9, _AC97_ID_AD1881@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_8
; %bb.1:
	ldr	x8, [x20, #24]
	ldr	x9, [x8]
Lloh3:
	adrp	x22, _AC97_AD_SERIAL_CFG@GOTPAGE
Lloh4:
	ldr	x22, [x22, _AC97_AD_SERIAL_CFG@GOTPAGEOFF]
	cbz	x9, LBB0_3
; %bb.2:
	ldr	w1, [x22]
	ldp	x8, x9, [x20, #8]
	ldr	w8, [x8]
	ldr	w9, [x9]
	orr	w3, w9, w8
	mov	x0, x20
	mov	w2, #28672
	bl	_snd_ac97_update_bits
	mov	x0, x20
	mov	x1, x21
	mov	w2, #0
	bl	_snd_ac97_proc_regs_read_main
	ldr	x8, [x20, #24]
LBB0_3:
	ldr	x9, [x8, #8]
	cbz	x9, LBB0_5
; %bb.4:
	ldr	w1, [x22]
	ldp	x8, x9, [x20, #8]
	ldr	w8, [x8, #4]
	ldr	w9, [x9, #4]
	orr	w3, w9, w8
	mov	x0, x20
	mov	w2, #28672
	bl	_snd_ac97_update_bits
	mov	x0, x20
	mov	x1, x21
	mov	w2, #1
	bl	_snd_ac97_proc_regs_read_main
	ldr	x8, [x20, #24]
LBB0_5:
	ldr	x8, [x8, #16]
	cbz	x8, LBB0_7
; %bb.6:
	ldr	w1, [x22]
	ldp	x8, x9, [x20, #8]
	ldr	w8, [x8, #8]
	ldr	w9, [x9, #8]
	orr	w3, w9, w8
	mov	x0, x20
	mov	w2, #28672
	bl	_snd_ac97_update_bits
	mov	x0, x20
	mov	x1, x21
	mov	w2, #2
	bl	_snd_ac97_proc_regs_read_main
LBB0_7:
	ldr	w1, [x22]
	mov	x0, x20
	mov	w2, #28672
	mov	w3, #28672
	bl	_snd_ac97_update_bits
	b	LBB0_9
LBB0_8:
	mov	x0, x20
	mov	x1, x21
	mov	w2, #0
	bl	_snd_ac97_proc_regs_read_main
LBB0_9:
	mov	x0, x19
	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
	b	_mutex_unlock
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_AC97_ID_AD1881,4,2             ; @AC97_ID_AD1881
	.comm	_AC97_AD_SERIAL_CFG,4,2         ; @AC97_AD_SERIAL_CFG
	.no_dead_strip	_snd_ac97_proc_regs_read
.subsections_via_symbols
