	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_harmony_interrupt
_snd_harmony_interrupt:                 ## @snd_harmony_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %rbx
	movq	%rsi, %rdi
	callq	_spin_lock
	movq	%rbx, %rdi
	callq	_harmony_disable_interrupts
	movq	%rbx, %rdi
	callq	_harmony_wait_for_control
	movq	_HARMONY_DSTATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_harmony_read
	movl	%eax, %r14d
	movq	%rbx, %rdi
	callq	_spin_unlock
	movq	_HARMONY_DSTATUS_PN@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_5
## %bb.1:
	cmpq	$0, 96(%rbx)
	je	LBB0_4
## %bb.2:
	cmpq	$0, 80(%rbx)
	je	LBB0_4
## %bb.3:
	movq	%rbx, %rdi
	callq	_spin_lock
	movl	104(%rbx), %eax
	addl	128(%rbx), %eax
	cltd
	idivl	120(%rbx)
	movl	%edx, 104(%rbx)
	movq	_HARMONY_PNXTADD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movslq	%edx, %rdx
	addq	112(%rbx), %rdx
	movq	%rbx, %rdi
	callq	_harmony_write
	incl	16(%rbx)
	movq	%rbx, %rdi
	callq	_spin_unlock
	movq	96(%rbx), %rdi
	callq	_snd_pcm_period_elapsed
	jmp	LBB0_5
LBB0_4:
	movq	%rbx, %rdi
	callq	_spin_lock
	movq	_HARMONY_PNXTADD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	88(%rbx), %rdx
	movq	%rbx, %rdi
	callq	_harmony_write
	incl	12(%rbx)
	movq	%rbx, %rdi
	callq	_spin_unlock
LBB0_5:
	movq	_HARMONY_DSTATUS_RN@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_10
## %bb.6:
	cmpq	$0, 32(%rbx)
	je	LBB0_9
## %bb.7:
	cmpq	$0, 72(%rbx)
	je	LBB0_9
## %bb.8:
	movq	%rbx, %rdi
	callq	_spin_lock
	movl	40(%rbx), %eax
	addl	64(%rbx), %eax
	cltd
	idivl	56(%rbx)
	movl	%edx, 40(%rbx)
	movq	_HARMONY_RNXTADD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movslq	%edx, %rdx
	addq	48(%rbx), %rdx
	movq	%rbx, %rdi
	callq	_harmony_write
	incl	8(%rbx)
	movq	%rbx, %rdi
	callq	_spin_unlock
	movq	32(%rbx), %rdi
	callq	_snd_pcm_period_elapsed
	jmp	LBB0_10
LBB0_9:
	movq	%rbx, %rdi
	callq	_spin_lock
	movq	_HARMONY_RNXTADD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	24(%rbx), %rdx
	movq	%rbx, %rdi
	callq	_harmony_write
	incl	4(%rbx)
	movq	%rbx, %rdi
	callq	_spin_unlock
LBB0_10:
	movq	%rbx, %rdi
	callq	_spin_lock
	movq	%rbx, %rdi
	callq	_harmony_enable_interrupts
	movq	%rbx, %rdi
	callq	_spin_unlock
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HARMONY_DSTATUS,4,2            ## @HARMONY_DSTATUS
	.comm	_HARMONY_DSTATUS_PN,4,2         ## @HARMONY_DSTATUS_PN
	.comm	_HARMONY_PNXTADD,4,2            ## @HARMONY_PNXTADD
	.comm	_HARMONY_DSTATUS_RN,4,2         ## @HARMONY_DSTATUS_RN
	.comm	_HARMONY_RNXTADD,4,2            ## @HARMONY_RNXTADD
	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.no_dead_strip	_snd_harmony_interrupt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function snd_harmony_interrupt
_snd_harmony_interrupt:                 ; @snd_harmony_interrupt
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	mov	x0, x1
	bl	_spin_lock
	mov	x0, x19
	bl	_harmony_disable_interrupts
	mov	x0, x19
	bl	_harmony_wait_for_control
Lloh0:
	adrp	x8, _HARMONY_DSTATUS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HARMONY_DSTATUS@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_harmony_read
	mov	x20, x0
	mov	x0, x19
	bl	_spin_unlock
Lloh3:
	adrp	x8, _HARMONY_DSTATUS_PN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _HARMONY_DSTATUS_PN@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_5
; %bb.1:
	ldr	x8, [x19, #96]
	cbz	x8, LBB0_4
; %bb.2:
	ldr	x8, [x19, #80]
	cbz	x8, LBB0_4
; %bb.3:
	mov	x0, x19
	bl	_spin_lock
	ldr	w8, [x19, #128]
	ldr	w9, [x19, #104]
	add	w8, w9, w8
	ldr	w9, [x19, #120]
	sdiv	w10, w8, w9
	msub	w8, w10, w9, w8
	str	w8, [x19, #104]
Lloh6:
	adrp	x9, _HARMONY_PNXTADD@GOTPAGE
Lloh7:
	ldr	x9, [x9, _HARMONY_PNXTADD@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x9]
	ldr	x9, [x19, #112]
	add	x2, x9, w8, sxtw
	mov	x0, x19
	bl	_harmony_write
	ldr	w8, [x19, #16]
	add	w8, w8, #1
	str	w8, [x19, #16]
	mov	x0, x19
	bl	_spin_unlock
	ldr	x0, [x19, #96]
	bl	_snd_pcm_period_elapsed
	b	LBB0_5
LBB0_4:
	mov	x0, x19
	bl	_spin_lock
Lloh9:
	adrp	x8, _HARMONY_PNXTADD@GOTPAGE
Lloh10:
	ldr	x8, [x8, _HARMONY_PNXTADD@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	ldr	x2, [x19, #88]
	mov	x0, x19
	bl	_harmony_write
	ldr	w8, [x19, #12]
	add	w8, w8, #1
	str	w8, [x19, #12]
	mov	x0, x19
	bl	_spin_unlock
LBB0_5:
Lloh12:
	adrp	x8, _HARMONY_DSTATUS_RN@GOTPAGE
Lloh13:
	ldr	x8, [x8, _HARMONY_DSTATUS_RN@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_10
; %bb.6:
	ldr	x8, [x19, #32]
	cbz	x8, LBB0_9
; %bb.7:
	ldr	x8, [x19, #72]
	cbz	x8, LBB0_9
; %bb.8:
	mov	x0, x19
	bl	_spin_lock
	ldr	w8, [x19, #64]
	ldr	w9, [x19, #40]
	add	w8, w9, w8
	ldr	w9, [x19, #56]
	sdiv	w10, w8, w9
	msub	w8, w10, w9, w8
	str	w8, [x19, #40]
Lloh15:
	adrp	x9, _HARMONY_RNXTADD@GOTPAGE
Lloh16:
	ldr	x9, [x9, _HARMONY_RNXTADD@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x9]
	ldr	x9, [x19, #48]
	add	x2, x9, w8, sxtw
	mov	x0, x19
	bl	_harmony_write
	ldr	w8, [x19, #8]
	add	w8, w8, #1
	str	w8, [x19, #8]
	mov	x0, x19
	bl	_spin_unlock
	ldr	x0, [x19, #32]
	bl	_snd_pcm_period_elapsed
	b	LBB0_10
LBB0_9:
	mov	x0, x19
	bl	_spin_lock
Lloh18:
	adrp	x8, _HARMONY_RNXTADD@GOTPAGE
Lloh19:
	ldr	x8, [x8, _HARMONY_RNXTADD@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	ldr	x2, [x19, #24]
	mov	x0, x19
	bl	_harmony_write
	ldr	w8, [x19, #4]
	add	w8, w8, #1
	str	w8, [x19, #4]
	mov	x0, x19
	bl	_spin_unlock
LBB0_10:
	mov	x0, x19
	bl	_spin_lock
	mov	x0, x19
	bl	_harmony_enable_interrupts
	mov	x0, x19
	bl	_spin_unlock
Lloh21:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh22:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
Lloh23:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_HARMONY_DSTATUS,4,2            ; @HARMONY_DSTATUS
	.comm	_HARMONY_DSTATUS_PN,4,2         ; @HARMONY_DSTATUS_PN
	.comm	_HARMONY_PNXTADD,4,2            ; @HARMONY_PNXTADD
	.comm	_HARMONY_DSTATUS_RN,4,2         ; @HARMONY_DSTATUS_RN
	.comm	_HARMONY_RNXTADD,4,2            ; @HARMONY_RNXTADD
	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.no_dead_strip	_snd_harmony_interrupt
.subsections_via_symbols
