	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_m3_interrupt
_snd_m3_interrupt:                      ## @snd_m3_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, %r13
	movq	_HOST_INT_STATUS@GOTPCREL(%rip), %r12
	movq	(%r12), %rdi
	addq	8(%rsi), %rdi
	callq	_inb
	cmpl	$255, %eax
	jne	LBB0_2
## %bb.1:
	movq	_IRQ_NONE@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_2:
	movl	%eax, %r14d
	movq	_HV_INT_PENDING@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_4
## %bb.3:
	leaq	40(%r13), %rdi
	callq	_tasklet_schedule
LBB0_4:
	movq	_ASSP_INT_PENDING@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_13
## %bb.5:
	movq	_ASSP_CONTROL_B@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	8(%r13), %rdi
	callq	_inb
	movq	_STOP_ASSP_CLOCK@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_13
## %bb.6:
	movq	_ASSP_HOST_INT_STATUS@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	addq	8(%r13), %rdi
	callq	_inb
	movq	_DSP2HOST_REQ_TIMER@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	testl	%eax, %edi
	je	LBB0_13
## %bb.7:
	movq	(%rbx), %rsi
	addq	8(%r13), %rsi
	callq	_outb
	leaq	24(%r13), %rdi
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	callq	_spin_lock
	movl	(%r13), %eax
	testl	%eax, %eax
	jle	LBB0_12
## %bb.8:
	xorl	%ebx, %ebx
	xorl	%r15d, %r15d
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_9 Depth=1
	incq	%r15
	movslq	%eax, %rcx
	addq	$8, %rbx
	cmpq	%rcx, %r15
	jge	LBB0_12
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	32(%r13), %rsi
	cmpq	$0, (%rsi,%rbx)
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	addq	%rbx, %rsi
	movq	%r13, %rdi
	callq	_snd_m3_update_ptr
	movl	(%r13), %eax
	jmp	LBB0_11
LBB0_12:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_spin_unlock
LBB0_13:
	movq	(%r12), %rsi
	addq	8(%r13), %rsi
	movl	%r14d, %edi
	callq	_outb
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
LBB0_14:
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HOST_INT_STATUS,8,3            ## @HOST_INT_STATUS
	.comm	_IRQ_NONE,4,2                   ## @IRQ_NONE
	.comm	_HV_INT_PENDING,4,2             ## @HV_INT_PENDING
	.comm	_ASSP_INT_PENDING,4,2           ## @ASSP_INT_PENDING
	.comm	_ASSP_CONTROL_B,8,3             ## @ASSP_CONTROL_B
	.comm	_STOP_ASSP_CLOCK,4,2            ## @STOP_ASSP_CLOCK
	.comm	_ASSP_HOST_INT_STATUS,8,3       ## @ASSP_HOST_INT_STATUS
	.comm	_DSP2HOST_REQ_TIMER,4,2         ## @DSP2HOST_REQ_TIMER
	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.comm	_MPU401_INT_PENDING,4,2         ## @MPU401_INT_PENDING
	.comm	_regs,4,2                       ## @regs
	.no_dead_strip	_snd_m3_interrupt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function snd_m3_interrupt
_snd_m3_interrupt:                      ; @snd_m3_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	x8, [x1, #8]
Lloh0:
	adrp	x22, _HOST_INT_STATUS@GOTPAGE
Lloh1:
	ldr	x22, [x22, _HOST_INT_STATUS@GOTPAGEOFF]
	ldr	x9, [x22]
	add	x0, x9, x8
	bl	_inb
	cmp	w0, #255
	b.ne	LBB0_2
; %bb.1:
Lloh2:
	adrp	x8, _IRQ_NONE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _IRQ_NONE@GOTPAGEOFF]
	b	LBB0_14
LBB0_2:
	mov	x20, x0
Lloh4:
	adrp	x8, _HV_INT_PENDING@GOTPAGE
Lloh5:
	ldr	x8, [x8, _HV_INT_PENDING@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_4
; %bb.3:
	add	x0, x19, #40
	bl	_tasklet_schedule
LBB0_4:
Lloh7:
	adrp	x8, _ASSP_INT_PENDING@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ASSP_INT_PENDING@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_13
; %bb.5:
	ldr	x8, [x19, #8]
Lloh10:
	adrp	x9, _ASSP_CONTROL_B@GOTPAGE
Lloh11:
	ldr	x9, [x9, _ASSP_CONTROL_B@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_inb
Lloh13:
	adrp	x8, _STOP_ASSP_CLOCK@GOTPAGE
Lloh14:
	ldr	x8, [x8, _STOP_ASSP_CLOCK@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	tst	w8, w0
	b.ne	LBB0_13
; %bb.6:
	ldr	x8, [x19, #8]
Lloh16:
	adrp	x21, _ASSP_HOST_INT_STATUS@GOTPAGE
Lloh17:
	ldr	x21, [x21, _ASSP_HOST_INT_STATUS@GOTPAGEOFF]
	ldr	x9, [x21]
	add	x0, x9, x8
	bl	_inb
	mov	x8, x0
Lloh18:
	adrp	x9, _DSP2HOST_REQ_TIMER@GOTPAGE
Lloh19:
	ldr	x9, [x9, _DSP2HOST_REQ_TIMER@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x9]
	tst	w0, w8
	b.eq	LBB0_13
; %bb.7:
	ldr	x8, [x19, #8]
	ldr	x9, [x21]
	add	x1, x9, x8
	bl	_outb
	add	x21, x19, #24
	mov	x0, x21
	bl	_spin_lock
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_12
; %bb.8:
	mov	x23, #0
	mov	x24, #0
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=1
	add	x24, x24, #1
	add	x23, x23, #8
	cmp	x24, w8, sxtw
	b.ge	LBB0_12
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x19, #32]
	add	x1, x9, x23
	ldr	x9, [x1]
	cbz	x9, LBB0_9
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	mov	x0, x19
	bl	_snd_m3_update_ptr
	ldr	w8, [x19]
	b	LBB0_9
LBB0_12:
	mov	x0, x21
	bl	_spin_unlock
LBB0_13:
	ldr	x8, [x19, #8]
	ldr	x9, [x22]
	add	x1, x9, x8
	mov	x0, x20
	bl	_outb
Lloh21:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh22:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
LBB0_14:
	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 AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_HOST_INT_STATUS,8,3            ; @HOST_INT_STATUS
	.comm	_IRQ_NONE,4,2                   ; @IRQ_NONE
	.comm	_HV_INT_PENDING,4,2             ; @HV_INT_PENDING
	.comm	_ASSP_INT_PENDING,4,2           ; @ASSP_INT_PENDING
	.comm	_ASSP_CONTROL_B,8,3             ; @ASSP_CONTROL_B
	.comm	_STOP_ASSP_CLOCK,4,2            ; @STOP_ASSP_CLOCK
	.comm	_ASSP_HOST_INT_STATUS,8,3       ; @ASSP_HOST_INT_STATUS
	.comm	_DSP2HOST_REQ_TIMER,4,2         ; @DSP2HOST_REQ_TIMER
	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.comm	_MPU401_INT_PENDING,4,2         ; @MPU401_INT_PENDING
	.comm	_regs,4,2                       ; @regs
	.no_dead_strip	_snd_m3_interrupt
.subsections_via_symbols
