	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_ad1816a_close
_snd_ad1816a_close:                     ## @snd_ad1816a_close
	.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
	movl	%esi, %ebx
	movq	%rdi, %r15
	leaq	4(%rdi), %r14
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	movq	_AD1816A_MODE_OPEN@GOTPCREL(%rip), %r12
	andl	(%r12), %ebx
	leal	-128(%rbx), %eax
	cmpl	$2, %eax
	ja	LBB0_2
## %bb.1:
	cltq
	leaq	l_switch.table.snd_ad1816a_close(%rip), %rcx
	movq	(%rcx,%rax,8), %rcx
	leaq	l_switch.table.snd_ad1816a_close.1(%rip), %rdx
	movq	(%rdx,%rax,8), %r13
	movq	_AD1816A_INTERRUPT_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%rcx), %edx
	movq	%r15, %rdi
	xorl	%ecx, %ecx
	callq	_snd_ad1816a_out_mask
	movq	_AD1816A_INTERRUPT_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r13), %edx
	movq	%r15, %rdi
	xorl	%ecx, %ecx
	callq	_snd_ad1816a_write_mask
LBB0_2:
	notl	%ebx
	andl	(%r15), %ebx
	movl	%ebx, (%r15)
	movl	(%r12), %eax
	andl	%ebx, %eax
	cmovnel	%ebx, %eax
	movl	%eax, (%r15)
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock_irqrestore         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_AD1816A_MODE_OPEN,4,2          ## @AD1816A_MODE_OPEN
	.comm	_AD1816A_INTERRUPT_STATUS,4,2   ## @AD1816A_INTERRUPT_STATUS
	.comm	_AD1816A_PLAYBACK_IRQ_PENDING,4,2 ## @AD1816A_PLAYBACK_IRQ_PENDING
	.comm	_AD1816A_INTERRUPT_ENABLE,4,2   ## @AD1816A_INTERRUPT_ENABLE
	.comm	_AD1816A_PLAYBACK_IRQ_ENABLE,4,2 ## @AD1816A_PLAYBACK_IRQ_ENABLE
	.comm	_AD1816A_CAPTURE_IRQ_PENDING,4,2 ## @AD1816A_CAPTURE_IRQ_PENDING
	.comm	_AD1816A_CAPTURE_IRQ_ENABLE,4,2 ## @AD1816A_CAPTURE_IRQ_ENABLE
	.comm	_AD1816A_TIMER_IRQ_PENDING,4,2  ## @AD1816A_TIMER_IRQ_PENDING
	.comm	_AD1816A_TIMER_IRQ_ENABLE,4,2   ## @AD1816A_TIMER_IRQ_ENABLE
	.no_dead_strip	_snd_ad1816a_close
	.section	__DATA,__const
	.p2align	3                               ## @switch.table.snd_ad1816a_close
l_switch.table.snd_ad1816a_close:
	.quad	_AD1816A_TIMER_IRQ_PENDING
	.quad	_AD1816A_PLAYBACK_IRQ_PENDING
	.quad	_AD1816A_CAPTURE_IRQ_PENDING

	.p2align	3                               ## @switch.table.snd_ad1816a_close.1
l_switch.table.snd_ad1816a_close.1:
	.quad	_AD1816A_TIMER_IRQ_ENABLE
	.quad	_AD1816A_PLAYBACK_IRQ_ENABLE
	.quad	_AD1816A_CAPTURE_IRQ_ENABLE

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function snd_ad1816a_close
_snd_ad1816a_close:                     ; @snd_ad1816a_close
	.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	x21, x1
	mov	x20, x0
	add	x19, x0, #4
	mov	x0, x19
	bl	_spin_lock_irqsave
Lloh0:
	adrp	x22, _AD1816A_MODE_OPEN@GOTPAGE
Lloh1:
	ldr	x22, [x22, _AD1816A_MODE_OPEN@GOTPAGEOFF]
	ldr	w8, [x22]
	and	w21, w8, w21
	sub	w8, w21, #128
	cmp	w8, #2
	b.hi	LBB0_2
; %bb.1:
	sbfiz	x8, x8, #3, #32
Lloh2:
	adrp	x9, l_switch.table.snd_ad1816a_close@PAGE
Lloh3:
	add	x9, x9, l_switch.table.snd_ad1816a_close@PAGEOFF
	ldr	x9, [x9, x8]
Lloh4:
	adrp	x10, l_switch.table.snd_ad1816a_close.1@PAGE
Lloh5:
	add	x10, x10, l_switch.table.snd_ad1816a_close.1@PAGEOFF
	ldr	x23, [x10, x8]
Lloh6:
	adrp	x8, _AD1816A_INTERRUPT_STATUS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _AD1816A_INTERRUPT_STATUS@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	ldr	w2, [x9]
	mov	x0, x20
	mov	w3, #0
	bl	_snd_ad1816a_out_mask
Lloh9:
	adrp	x8, _AD1816A_INTERRUPT_ENABLE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _AD1816A_INTERRUPT_ENABLE@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	ldr	w2, [x23]
	mov	x0, x20
	mov	w3, #0
	bl	_snd_ad1816a_write_mask
LBB0_2:
	ldr	w8, [x20]
	bic	w8, w8, w21
	str	w8, [x20]
	ldr	w9, [x22]
	tst	w9, w8
	csel	w8, wzr, w8, eq
	str	w8, [x20]
	mov	x0, x19
	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
	b	_spin_unlock_irqrestore
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_AD1816A_MODE_OPEN,4,2          ; @AD1816A_MODE_OPEN
	.comm	_AD1816A_INTERRUPT_STATUS,4,2   ; @AD1816A_INTERRUPT_STATUS
	.comm	_AD1816A_PLAYBACK_IRQ_PENDING,4,2 ; @AD1816A_PLAYBACK_IRQ_PENDING
	.comm	_AD1816A_INTERRUPT_ENABLE,4,2   ; @AD1816A_INTERRUPT_ENABLE
	.comm	_AD1816A_PLAYBACK_IRQ_ENABLE,4,2 ; @AD1816A_PLAYBACK_IRQ_ENABLE
	.comm	_AD1816A_CAPTURE_IRQ_PENDING,4,2 ; @AD1816A_CAPTURE_IRQ_PENDING
	.comm	_AD1816A_CAPTURE_IRQ_ENABLE,4,2 ; @AD1816A_CAPTURE_IRQ_ENABLE
	.comm	_AD1816A_TIMER_IRQ_PENDING,4,2  ; @AD1816A_TIMER_IRQ_PENDING
	.comm	_AD1816A_TIMER_IRQ_ENABLE,4,2   ; @AD1816A_TIMER_IRQ_ENABLE
	.no_dead_strip	_snd_ad1816a_close
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.snd_ad1816a_close
l_switch.table.snd_ad1816a_close:
	.quad	_AD1816A_TIMER_IRQ_PENDING
	.quad	_AD1816A_PLAYBACK_IRQ_PENDING
	.quad	_AD1816A_CAPTURE_IRQ_PENDING

	.p2align	3                               ; @switch.table.snd_ad1816a_close.1
l_switch.table.snd_ad1816a_close.1:
	.quad	_AD1816A_TIMER_IRQ_ENABLE
	.quad	_AD1816A_PLAYBACK_IRQ_ENABLE
	.quad	_AD1816A_CAPTURE_IRQ_ENABLE

.subsections_via_symbols
