	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_ac97_page_save
_snd_ac97_page_save:                    ## @snd_ac97_page_save
	.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
	movl	(%rdx), %ebx
	movl	$-1, %r15d
	testl	$33554432, %ebx                 ## imm = 0x2000000
	je	LBB0_4
## %bb.1:
	andl	$-16, %esi
	cmpl	$96, %esi
	jne	LBB0_4
## %bb.2:
	movq	%rdi, %r14
	movq	_AC97_EI_REV_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	(%rdi), %eax
	movq	_AC97_EI_REV_23@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jl	LBB0_4
## %bb.3:
	shrl	$26, %ebx
	leaq	4(%r14), %rdi
	callq	_mutex_lock
	movq	_AC97_INT_PAGING@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	%r14, %rdi
	callq	_snd_ac97_read
	movl	%eax, %r15d
	movq	_AC97_PAGE_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	andl	%edx, %r15d
	movl	(%r12), %esi
	andl	$15, %ebx
	movq	%r14, %rdi
	movl	%ebx, %ecx
	callq	_snd_ac97_update_bits
LBB0_4:
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AC97_EI_REV_MASK,4,2           ## @AC97_EI_REV_MASK
	.comm	_AC97_EI_REV_23,4,2             ## @AC97_EI_REV_23
	.comm	_AC97_INT_PAGING,4,2            ## @AC97_INT_PAGING
	.comm	_AC97_PAGE_MASK,4,2             ## @AC97_PAGE_MASK
	.no_dead_strip	_snd_ac97_page_save
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function snd_ac97_page_save
_snd_ac97_page_save:                    ; @snd_ac97_page_save
	.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
	ldr	w21, [x2]
	tbnz	w21, #25, LBB0_2
; %bb.1:
	mov	w20, #-1
	b	LBB0_5
LBB0_2:
	and	w8, w1, #0xfffffff0
	mov	w20, #-1
	cmp	w8, #96
	b.ne	LBB0_5
; %bb.3:
	mov	x19, x0
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _AC97_EI_REV_MASK@GOTPAGE
Lloh1:
	ldr	x9, [x9, _AC97_EI_REV_MASK@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	and	w8, w9, w8
Lloh3:
	adrp	x9, _AC97_EI_REV_23@GOTPAGE
Lloh4:
	ldr	x9, [x9, _AC97_EI_REV_23@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	w8, w9
	b.lt	LBB0_5
; %bb.4:
	add	x0, x19, #4
	bl	_mutex_lock
Lloh6:
	adrp	x22, _AC97_INT_PAGING@GOTPAGE
Lloh7:
	ldr	x22, [x22, _AC97_INT_PAGING@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x19
	bl	_snd_ac97_read
Lloh8:
	adrp	x8, _AC97_PAGE_MASK@GOTPAGE
Lloh9:
	ldr	x8, [x8, _AC97_PAGE_MASK@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
	and	w20, w2, w0
	ldr	w1, [x22]
	ubfx	w3, w21, #26, #4
	mov	x0, x19
	bl	_snd_ac97_update_bits
LBB0_5:
	mov	x0, x20
	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	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_AC97_EI_REV_MASK,4,2           ; @AC97_EI_REV_MASK
	.comm	_AC97_EI_REV_23,4,2             ; @AC97_EI_REV_23
	.comm	_AC97_INT_PAGING,4,2            ; @AC97_INT_PAGING
	.comm	_AC97_PAGE_MASK,4,2             ; @AC97_PAGE_MASK
	.no_dead_strip	_snd_ac97_page_save
.subsections_via_symbols
