	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_es18xx_interrupt
_snd_es18xx_interrupt:                  ## @snd_es18xx_interrupt
	.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, %rbx
	movl	%edi, %r14d
	movq	_ES18XX_CONTROL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rsi)
	je	LBB0_2
## %bb.1:
	movq	80(%rbx), %rdi
	addq	$6, %rdi
	callq	_inb
	movl	%eax, %r15d
	jmp	LBB0_3
LBB0_2:
	movq	%rbx, %rdi
	movl	$127, %esi
	callq	_snd_es18xx_mixer_read
	movl	%eax, %r15d
	shrl	$4, %r15d
LBB0_3:
	movq	_AUDIO2_IRQ@GOTPCREL(%rip), %rax
	movzbl	(%rax), %eax
	testl	%eax, %r15d
	je	LBB0_7
## %bb.4:
	movq	_DAC2@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 4(%rbx)
	je	LBB0_6
## %bb.5:
	movl	72(%rbx), %edi
	callq	_snd_pcm_period_elapsed
LBB0_6:
	movq	%rbx, %rdi
	movl	$122, %esi
	movl	$128, %edx
	xorl	%ecx, %ecx
	callq	_snd_es18xx_mixer_bits
LBB0_7:
	movq	_AUDIO1_IRQ@GOTPCREL(%rip), %rax
	movzbl	(%rax), %eax
	testl	%eax, %r15d
	je	LBB0_12
## %bb.8:
	movl	4(%rbx), %ecx
	movq	_ADC1@GOTPCREL(%rip), %rdx
	movl	$68, %eax
	testl	%ecx, (%rdx)
	jne	LBB0_10
## %bb.9:
	movq	_DAC1@GOTPCREL(%rip), %rdx
	movl	$64, %eax
	testl	%ecx, (%rdx)
	je	LBB0_11
LBB0_10:
	movl	(%rbx,%rax), %edi
	callq	_snd_pcm_period_elapsed
LBB0_11:
	movq	56(%rbx), %rdi
	addq	$14, %rdi
	callq	_inb
LBB0_12:
	movq	_MPU_IRQ@GOTPCREL(%rip), %rax
	movzbl	(%rax), %eax
	testl	%eax, %r15d
	je	LBB0_15
## %bb.13:
	movq	48(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_15
## %bb.14:
	movl	(%rax), %esi
	movl	%r14d, %edi
	callq	_snd_mpu401_uart_interrupt
LBB0_15:
	movq	_HWV_IRQ@GOTPCREL(%rip), %rax
	movzbl	(%rax), %eax
	testl	%eax, %r15d
	je	LBB0_20
## %bb.16:
	movq	_ES18XX_HWV@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	je	LBB0_18
## %bb.17:
	movq	%rbx, %rdi
	movl	$100, %esi
	callq	_snd_es18xx_mixer_read
	movl	%eax, %r14d
	movl	16(%rbx), %edi
	movq	_SNDRV_CTL_EVENT_MASK_VALUE@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	40(%rbx), %rdx
	callq	_snd_ctl_notify
	movl	16(%rbx), %edi
	movl	(%r15), %esi
	movq	32(%rbx), %rdx
	callq	_snd_ctl_notify
	testb	$-128, %r14b
	jne	LBB0_19
LBB0_18:
	movl	16(%rbx), %edi
	movq	_SNDRV_CTL_EVENT_MASK_VALUE@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	24(%rbx), %rdx
	callq	_snd_ctl_notify
	movl	16(%rbx), %edi
	movl	(%r14), %esi
	movq	8(%rbx), %rdx
	callq	_snd_ctl_notify
LBB0_19:
	movq	%rbx, %rdi
	movl	$102, %esi
	xorl	%edx, %edx
	callq	_snd_es18xx_mixer_write
LBB0_20:
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ES18XX_CONTROL,4,2             ## @ES18XX_CONTROL
	.comm	_AUDIO2_IRQ,1,0                 ## @AUDIO2_IRQ
	.comm	_DAC2,4,2                       ## @DAC2
	.comm	_AUDIO1_IRQ,1,0                 ## @AUDIO1_IRQ
	.comm	_ADC1,4,2                       ## @ADC1
	.comm	_DAC1,4,2                       ## @DAC1
	.comm	_MPU_IRQ,1,0                    ## @MPU_IRQ
	.comm	_HWV_IRQ,1,0                    ## @HWV_IRQ
	.comm	_ES18XX_HWV,4,2                 ## @ES18XX_HWV
	.comm	_SNDRV_CTL_EVENT_MASK_VALUE,4,2 ## @SNDRV_CTL_EVENT_MASK_VALUE
	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.no_dead_strip	_snd_es18xx_interrupt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function snd_es18xx_interrupt
_snd_es18xx_interrupt:                  ; @snd_es18xx_interrupt
	.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	x19, x1
	mov	x20, x0
	ldr	w8, [x1]
Lloh0:
	adrp	x9, _ES18XX_CONTROL@GOTPAGE
Lloh1:
	ldr	x9, [x9, _ES18XX_CONTROL@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
	ldr	x8, [x19, #80]
	add	x0, x8, #6
	bl	_inb
	mov	x21, x0
	b	LBB0_3
LBB0_2:
	mov	x0, x19
	mov	w1, #127
	bl	_snd_es18xx_mixer_read
	lsr	w21, w0, #4
LBB0_3:
Lloh3:
	adrp	x8, _AUDIO2_IRQ@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AUDIO2_IRQ@GOTPAGEOFF]
	ldrb	w8, [x8]
	tst	w21, w8
	b.eq	LBB0_7
; %bb.4:
	ldr	w8, [x19, #4]
Lloh5:
	adrp	x9, _DAC2@GOTPAGE
Lloh6:
	ldr	x9, [x9, _DAC2@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_6
; %bb.5:
	ldr	w0, [x19, #72]
	bl	_snd_pcm_period_elapsed
LBB0_6:
	mov	x0, x19
	mov	w1, #122
	mov	w2, #128
	mov	w3, #0
	bl	_snd_es18xx_mixer_bits
LBB0_7:
Lloh8:
	adrp	x8, _AUDIO1_IRQ@GOTPAGE
Lloh9:
	ldr	x8, [x8, _AUDIO1_IRQ@GOTPAGEOFF]
	ldrb	w8, [x8]
	tst	w21, w8
	b.eq	LBB0_14
; %bb.8:
	ldr	w8, [x19, #4]
Lloh10:
	adrp	x9, _ADC1@GOTPAGE
Lloh11:
	ldr	x9, [x9, _ADC1@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_10
; %bb.9:
	mov	w8, #68
	b	LBB0_12
LBB0_10:
Lloh13:
	adrp	x9, _DAC1@GOTPAGE
Lloh14:
	ldr	x9, [x9, _DAC1@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_13
; %bb.11:
	mov	w8, #64
LBB0_12:
	ldr	w0, [x19, x8]
	bl	_snd_pcm_period_elapsed
LBB0_13:
	ldr	x8, [x19, #56]
	add	x0, x8, #14
	bl	_inb
LBB0_14:
Lloh16:
	adrp	x8, _MPU_IRQ@GOTPAGE
Lloh17:
	ldr	x8, [x8, _MPU_IRQ@GOTPAGEOFF]
	ldrb	w8, [x8]
	tst	w21, w8
	b.eq	LBB0_17
; %bb.15:
	ldr	x8, [x19, #48]
	cbz	x8, LBB0_17
; %bb.16:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_snd_mpu401_uart_interrupt
LBB0_17:
Lloh18:
	adrp	x8, _HWV_IRQ@GOTPAGE
Lloh19:
	ldr	x8, [x8, _HWV_IRQ@GOTPAGEOFF]
	ldrb	w8, [x8]
	tst	w21, w8
	b.eq	LBB0_22
; %bb.18:
	ldr	w8, [x19]
Lloh20:
	adrp	x9, _ES18XX_HWV@GOTPAGE
Lloh21:
	ldr	x9, [x9, _ES18XX_HWV@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
Lloh23:
	adrp	x21, _SNDRV_CTL_EVENT_MASK_VALUE@GOTPAGE
Lloh24:
	ldr	x21, [x21, _SNDRV_CTL_EVENT_MASK_VALUE@GOTPAGEOFF]
	tst	w9, w8
	b.eq	LBB0_20
; %bb.19:
	mov	x0, x19
	mov	w1, #100
	bl	_snd_es18xx_mixer_read
	mov	x20, x0
	ldr	w0, [x19, #16]
	ldr	w1, [x21]
	ldr	x2, [x19, #40]
	bl	_snd_ctl_notify
	ldr	w0, [x19, #16]
	ldr	w1, [x21]
	ldr	x2, [x19, #32]
	bl	_snd_ctl_notify
	tbnz	w20, #7, LBB0_21
LBB0_20:
	ldr	w0, [x19, #16]
	ldr	w1, [x21]
	ldr	x2, [x19, #24]
	bl	_snd_ctl_notify
	ldr	w0, [x19, #16]
	ldr	w1, [x21]
	ldr	x2, [x19, #8]
	bl	_snd_ctl_notify
LBB0_21:
	mov	x0, x19
	mov	w1, #102
	mov	w2, #0
	bl	_snd_es18xx_mixer_write
LBB0_22:
Lloh25:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh26:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
Lloh27:
	ldr	w0, [x8]
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_ES18XX_CONTROL,4,2             ; @ES18XX_CONTROL
	.comm	_AUDIO2_IRQ,1,0                 ; @AUDIO2_IRQ
	.comm	_DAC2,4,2                       ; @DAC2
	.comm	_AUDIO1_IRQ,1,0                 ; @AUDIO1_IRQ
	.comm	_ADC1,4,2                       ; @ADC1
	.comm	_DAC1,4,2                       ; @DAC1
	.comm	_MPU_IRQ,1,0                    ; @MPU_IRQ
	.comm	_HWV_IRQ,1,0                    ; @HWV_IRQ
	.comm	_ES18XX_HWV,4,2                 ; @ES18XX_HWV
	.comm	_SNDRV_CTL_EVENT_MASK_VALUE,4,2 ; @SNDRV_CTL_EVENT_MASK_VALUE
	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.no_dead_strip	_snd_es18xx_interrupt
.subsections_via_symbols
