	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_emu10k1x_interrupt
_snd_emu10k1x_interrupt:                ## @snd_emu10k1x_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	%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
	movq	%rsi, %r12
	movq	24(%rsi), %r15
	movq	_IPR@GOTPCREL(%rip), %r13
	movq	(%r13), %rdi
	addq	(%rsi), %rdi
	callq	_inl
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movl	%eax, %r14d
	movq	_IPR_CAP_0_LOOP@GOTPCREL(%rip), %rax
	movq	_IPR_CAP_0_HALF_LOOP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	testl	%r14d, %ecx
	je	LBB0_6
## %bb.3:
	cmpq	$0, 16(%r12)
	je	LBB0_5
## %bb.4:
	leaq	16(%r12), %rsi
	movq	%r12, %rdi
	callq	_snd_emu10k1x_pcm_interrupt
	jmp	LBB0_6
LBB0_1:
	movq	_IRQ_NONE@GOTPCREL(%rip), %rax
	jmp	LBB0_23
LBB0_5:
	movq	_INTE_CAP_0_LOOP@GOTPCREL(%rip), %rax
	movq	_INTE_CAP_0_HALF_LOOP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movq	%r12, %rdi
	callq	_snd_emu10k1x_intr_disable
LBB0_6:
	movq	_IPR_CH_0_LOOP@GOTPCREL(%rip), %rax
	movq	_IPR_CH_0_HALF_LOOP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	orl	(%rax), %ebx
	testl	%r14d, %ebx
	je	LBB0_10
## %bb.7:
	cmpq	$0, (%r15)
	je	LBB0_9
## %bb.8:
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_snd_emu10k1x_pcm_interrupt
	jmp	LBB0_10
LBB0_9:
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_snd_emu10k1x_intr_disable
LBB0_10:
	leal	(%rbx,%rbx), %esi
	testl	%r14d, %esi
	je	LBB0_14
## %bb.11:
	leaq	8(%r15), %rax
	cmpq	$0, (%rax)
	je	LBB0_13
## %bb.12:
	movq	%r12, %rdi
	movq	%rax, %rsi
	callq	_snd_emu10k1x_pcm_interrupt
	jmp	LBB0_14
LBB0_13:
	movq	%r12, %rdi
	callq	_snd_emu10k1x_intr_disable
LBB0_14:
	shll	$2, %ebx
	testl	%r14d, %ebx
	je	LBB0_18
## %bb.15:
	addq	$16, %r15
	cmpq	$0, (%r15)
	je	LBB0_17
## %bb.16:
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_snd_emu10k1x_pcm_interrupt
	jmp	LBB0_18
LBB0_17:
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_snd_emu10k1x_intr_disable
LBB0_18:
	movq	_IPR_MIDITRANSBUFEMPTY@GOTPCREL(%rip), %rax
	movq	_IPR_MIDIRECVBUFEMPTY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	testl	%r14d, %ecx
	je	LBB0_22
## %bb.19:
	movq	8(%r12), %rax
	testq	%rax, %rax
	je	LBB0_21
## %bb.20:
	movq	%r12, %rdi
	movl	%r14d, %esi
	callq	*%rax
	jmp	LBB0_22
LBB0_21:
	movq	_INTE_MIDITXENABLE@GOTPCREL(%rip), %rax
	movq	_INTE_MIDIRXENABLE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movq	%r12, %rdi
	callq	_snd_emu10k1x_intr_disable
LBB0_22:
	movq	(%r13), %rsi
	addq	(%r12), %rsi
	movl	%r14d, %edi
	callq	_outl
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
LBB0_23:
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IPR,8,3                        ## @IPR
	.comm	_IRQ_NONE,4,2                   ## @IRQ_NONE
	.comm	_IPR_CAP_0_LOOP,4,2             ## @IPR_CAP_0_LOOP
	.comm	_IPR_CAP_0_HALF_LOOP,4,2        ## @IPR_CAP_0_HALF_LOOP
	.comm	_INTE_CAP_0_LOOP,4,2            ## @INTE_CAP_0_LOOP
	.comm	_INTE_CAP_0_HALF_LOOP,4,2       ## @INTE_CAP_0_HALF_LOOP
	.comm	_IPR_CH_0_LOOP,4,2              ## @IPR_CH_0_LOOP
	.comm	_IPR_CH_0_HALF_LOOP,4,2         ## @IPR_CH_0_HALF_LOOP
	.comm	_IPR_MIDITRANSBUFEMPTY,4,2      ## @IPR_MIDITRANSBUFEMPTY
	.comm	_IPR_MIDIRECVBUFEMPTY,4,2       ## @IPR_MIDIRECVBUFEMPTY
	.comm	_INTE_MIDITXENABLE,4,2          ## @INTE_MIDITXENABLE
	.comm	_INTE_MIDIRXENABLE,4,2          ## @INTE_MIDIRXENABLE
	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.no_dead_strip	_snd_emu10k1x_interrupt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function snd_emu10k1x_interrupt
_snd_emu10k1x_interrupt:                ; @snd_emu10k1x_interrupt
	.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	x19, x1
	ldr	x21, [x1, #24]
	ldr	x8, [x1]
Lloh0:
	adrp	x23, _IPR@GOTPAGE
Lloh1:
	ldr	x23, [x23, _IPR@GOTPAGEOFF]
	ldr	x9, [x23]
	add	x0, x9, x8
	bl	_inl
	cbz	w0, LBB0_4
; %bb.1:
	mov	x20, x0
Lloh2:
	adrp	x8, _IPR_CAP_0_LOOP@GOTPAGE
Lloh3:
	ldr	x8, [x8, _IPR_CAP_0_LOOP@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x9, _IPR_CAP_0_HALF_LOOP@GOTPAGE
Lloh6:
	ldr	x9, [x9, _IPR_CAP_0_HALF_LOOP@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	orr	w8, w9, w8
	tst	w8, w0
	b.eq	LBB0_6
; %bb.2:
	mov	x1, x19
	ldr	x8, [x1, #16]!
	cbz	x8, LBB0_5
; %bb.3:
	mov	x0, x19
	bl	_snd_emu10k1x_pcm_interrupt
	b	LBB0_6
LBB0_4:
Lloh8:
	adrp	x8, _IRQ_NONE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _IRQ_NONE@GOTPAGEOFF]
	b	LBB0_23
LBB0_5:
Lloh10:
	adrp	x8, _INTE_CAP_0_LOOP@GOTPAGE
Lloh11:
	ldr	x8, [x8, _INTE_CAP_0_LOOP@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
Lloh13:
	adrp	x9, _INTE_CAP_0_HALF_LOOP@GOTPAGE
Lloh14:
	ldr	x9, [x9, _INTE_CAP_0_HALF_LOOP@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
	orr	w1, w9, w8
	mov	x0, x19
	bl	_snd_emu10k1x_intr_disable
LBB0_6:
Lloh16:
	adrp	x8, _IPR_CH_0_LOOP@GOTPAGE
Lloh17:
	ldr	x8, [x8, _IPR_CH_0_LOOP@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
Lloh19:
	adrp	x9, _IPR_CH_0_HALF_LOOP@GOTPAGE
Lloh20:
	ldr	x9, [x9, _IPR_CH_0_HALF_LOOP@GOTPAGEOFF]
Lloh21:
	ldr	w9, [x9]
	orr	w22, w9, w8
	tst	w22, w20
	b.eq	LBB0_10
; %bb.7:
	ldr	x8, [x21]
	cbz	x8, LBB0_9
; %bb.8:
	mov	x0, x19
	mov	x1, x21
	bl	_snd_emu10k1x_pcm_interrupt
	b	LBB0_10
LBB0_9:
	mov	x0, x19
	mov	x1, x22
	bl	_snd_emu10k1x_intr_disable
LBB0_10:
	lsl	w1, w22, #1
	tst	w1, w20
	b.eq	LBB0_14
; %bb.11:
	add	x8, x21, #8
	ldr	x9, [x8]
	cbz	x9, LBB0_13
; %bb.12:
	mov	x0, x19
	mov	x1, x8
	bl	_snd_emu10k1x_pcm_interrupt
	b	LBB0_14
LBB0_13:
	mov	x0, x19
	bl	_snd_emu10k1x_intr_disable
LBB0_14:
	lsl	w1, w22, #2
	tst	w1, w20
	b.eq	LBB0_18
; %bb.15:
	add	x8, x21, #16
	ldr	x9, [x8]
	cbz	x9, LBB0_17
; %bb.16:
	mov	x0, x19
	mov	x1, x8
	bl	_snd_emu10k1x_pcm_interrupt
	b	LBB0_18
LBB0_17:
	mov	x0, x19
	bl	_snd_emu10k1x_intr_disable
LBB0_18:
Lloh22:
	adrp	x8, _IPR_MIDITRANSBUFEMPTY@GOTPAGE
Lloh23:
	ldr	x8, [x8, _IPR_MIDITRANSBUFEMPTY@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
Lloh25:
	adrp	x9, _IPR_MIDIRECVBUFEMPTY@GOTPAGE
Lloh26:
	ldr	x9, [x9, _IPR_MIDIRECVBUFEMPTY@GOTPAGEOFF]
Lloh27:
	ldr	w9, [x9]
	orr	w8, w9, w8
	tst	w8, w20
	b.eq	LBB0_22
; %bb.19:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_21
; %bb.20:
	mov	x0, x19
	mov	x1, x20
	blr	x8
	b	LBB0_22
LBB0_21:
Lloh28:
	adrp	x8, _INTE_MIDITXENABLE@GOTPAGE
Lloh29:
	ldr	x8, [x8, _INTE_MIDITXENABLE@GOTPAGEOFF]
Lloh30:
	ldr	w8, [x8]
Lloh31:
	adrp	x9, _INTE_MIDIRXENABLE@GOTPAGE
Lloh32:
	ldr	x9, [x9, _INTE_MIDIRXENABLE@GOTPAGEOFF]
Lloh33:
	ldr	w9, [x9]
	orr	w1, w9, w8
	mov	x0, x19
	bl	_snd_emu10k1x_intr_disable
LBB0_22:
	ldr	x8, [x19]
	ldr	x9, [x23]
	add	x1, x9, x8
	mov	x0, x20
	bl	_outl
Lloh34:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh35:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
LBB0_23:
	ldr	w0, [x8]
	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
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh34, Lloh35
	.cfi_endproc
                                        ; -- End function
	.comm	_IPR,8,3                        ; @IPR
	.comm	_IRQ_NONE,4,2                   ; @IRQ_NONE
	.comm	_IPR_CAP_0_LOOP,4,2             ; @IPR_CAP_0_LOOP
	.comm	_IPR_CAP_0_HALF_LOOP,4,2        ; @IPR_CAP_0_HALF_LOOP
	.comm	_INTE_CAP_0_LOOP,4,2            ; @INTE_CAP_0_LOOP
	.comm	_INTE_CAP_0_HALF_LOOP,4,2       ; @INTE_CAP_0_HALF_LOOP
	.comm	_IPR_CH_0_LOOP,4,2              ; @IPR_CH_0_LOOP
	.comm	_IPR_CH_0_HALF_LOOP,4,2         ; @IPR_CH_0_HALF_LOOP
	.comm	_IPR_MIDITRANSBUFEMPTY,4,2      ; @IPR_MIDITRANSBUFEMPTY
	.comm	_IPR_MIDIRECVBUFEMPTY,4,2       ; @IPR_MIDIRECVBUFEMPTY
	.comm	_INTE_MIDITXENABLE,4,2          ; @INTE_MIDITXENABLE
	.comm	_INTE_MIDIRXENABLE,4,2          ; @INTE_MIDIRXENABLE
	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.no_dead_strip	_snd_emu10k1x_interrupt
.subsections_via_symbols
