	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function oxygen_interrupt
_oxygen_interrupt:                      ## @oxygen_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, %rbx
	movq	_OXYGEN_INTERRUPT_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_oxygen_read16
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movl	%eax, %r14d
	leaq	28(%rbx), %r12
	movq	%r12, %rdi
	callq	_spin_lock
	movq	_OXYGEN_CHANNEL_A@GOTPCREL(%rip), %rax
	movq	_OXYGEN_CHANNEL_B@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movq	_OXYGEN_CHANNEL_C@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movq	_OXYGEN_CHANNEL_SPDIF@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movq	_OXYGEN_CHANNEL_MULTICH@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movq	_OXYGEN_CHANNEL_AC97@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movq	_OXYGEN_INT_SPDIF_IN_DETECT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, %edx
	movq	_OXYGEN_INT_GPIO@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edx
	movq	_OXYGEN_INT_AC97@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edx
	andl	%r14d, %edx
	je	LBB0_7
## %bb.3:
	testl	%eax, %edx
	je	LBB0_4
## %bb.5:
	notl	%eax
	andl	(%rbx), %eax
	movl	%eax, (%rbx)
	jmp	LBB0_6
LBB0_1:
	movq	_IRQ_NONE@GOTPCREL(%rip), %r15
	jmp	LBB0_25
LBB0_4:
	movl	(%rbx), %eax
LBB0_6:
	movq	_OXYGEN_INTERRUPT_MASK@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	notl	%edx
	andl	%eax, %edx
	movq	%rbx, %rdi
	callq	_oxygen_write16
	movl	(%r15), %esi
	movl	(%rbx), %edx
	movq	%rbx, %rdi
	callq	_oxygen_write16
LBB0_7:
	movl	4(%rbx), %r13d
	andl	%r14d, %r13d
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
	movq	%r12, %rdi
	callq	_spin_unlock
	movq	_PCM_COUNT@GOTPCREL(%rip), %r12
	movl	(%r12), %eax
	testl	%eax, %eax
	je	LBB0_13
## %bb.8:
	xorl	%r15d, %r15d
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_9 Depth=1
	incq	%r15
	movl	%eax, %ecx
	cmpq	%rcx, %r15
	jae	LBB0_13
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	btl	%r15d, %r13d
	jae	LBB0_12
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	40(%rbx), %rcx
	movq	(%rcx,%r15,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_9 Depth=1
	callq	_snd_pcm_period_elapsed
	movl	(%r12), %eax
	jmp	LBB0_12
LBB0_13:
	movq	_OXYGEN_INT_SPDIF_IN_DETECT@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_17
## %bb.14:
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rdi
	callq	_spin_lock
	movq	_OXYGEN_SPDIF_CONTROL@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_oxygen_read32
	movq	_OXYGEN_SPDIF_SENSE_INT@GOTPCREL(%rip), %rcx
	movq	_OXYGEN_SPDIF_LOCK_INT@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	movq	_OXYGEN_SPDIF_RATE_INT@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edx
	testl	%eax, %edx
	je	LBB0_16
## %bb.15:
	movl	(%r15), %esi
	movq	%rbx, %rdi
	movl	%eax, %edx
	callq	_oxygen_write32
	leaq	32(%rbx), %rdi
	callq	_schedule_work
LBB0_16:
	movq	%r12, %rdi
	callq	_spin_unlock
LBB0_17:
	movq	_OXYGEN_INT_GPIO@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_19
## %bb.18:
	leaq	24(%rbx), %rdi
	callq	_schedule_work
LBB0_19:
	movq	_OXYGEN_INT_MIDI@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_23
## %bb.20:
	movq	16(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_22
## %bb.21:
	movl	(%rax), %esi
	xorl	%edi, %edi
	callq	_snd_mpu401_uart_interrupt
	jmp	LBB0_23
LBB0_22:
	movq	%rbx, %rdi
	callq	_oxygen_read_uart
LBB0_23:
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %r15
	movq	_OXYGEN_INT_AC97@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_25
## %bb.24:
	addq	$8, %rbx
	movq	%rbx, %rdi
	callq	_wake_up
LBB0_25:
	movl	(%r15), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_OXYGEN_INTERRUPT_STATUS,4,2    ## @OXYGEN_INTERRUPT_STATUS
	.comm	_IRQ_NONE,4,2                   ## @IRQ_NONE
	.comm	_OXYGEN_CHANNEL_A,4,2           ## @OXYGEN_CHANNEL_A
	.comm	_OXYGEN_CHANNEL_B,4,2           ## @OXYGEN_CHANNEL_B
	.comm	_OXYGEN_CHANNEL_C,4,2           ## @OXYGEN_CHANNEL_C
	.comm	_OXYGEN_CHANNEL_SPDIF,4,2       ## @OXYGEN_CHANNEL_SPDIF
	.comm	_OXYGEN_CHANNEL_MULTICH,4,2     ## @OXYGEN_CHANNEL_MULTICH
	.comm	_OXYGEN_CHANNEL_AC97,4,2        ## @OXYGEN_CHANNEL_AC97
	.comm	_OXYGEN_INT_SPDIF_IN_DETECT,4,2 ## @OXYGEN_INT_SPDIF_IN_DETECT
	.comm	_OXYGEN_INT_GPIO,4,2            ## @OXYGEN_INT_GPIO
	.comm	_OXYGEN_INT_AC97,4,2            ## @OXYGEN_INT_AC97
	.comm	_OXYGEN_INTERRUPT_MASK,4,2      ## @OXYGEN_INTERRUPT_MASK
	.comm	_PCM_COUNT,4,2                  ## @PCM_COUNT
	.comm	_OXYGEN_SPDIF_CONTROL,4,2       ## @OXYGEN_SPDIF_CONTROL
	.comm	_OXYGEN_SPDIF_SENSE_INT,4,2     ## @OXYGEN_SPDIF_SENSE_INT
	.comm	_OXYGEN_SPDIF_LOCK_INT,4,2      ## @OXYGEN_SPDIF_LOCK_INT
	.comm	_OXYGEN_SPDIF_RATE_INT,4,2      ## @OXYGEN_SPDIF_RATE_INT
	.comm	_OXYGEN_INT_MIDI,4,2            ## @OXYGEN_INT_MIDI
	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.no_dead_strip	_oxygen_interrupt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function oxygen_interrupt
_oxygen_interrupt:                      ; @oxygen_interrupt
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x1
Lloh0:
	adrp	x8, _OXYGEN_INTERRUPT_STATUS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _OXYGEN_INTERRUPT_STATUS@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_oxygen_read16
	cbz	w0, LBB0_4
; %bb.1:
	mov	x20, x0
	add	x21, x19, #28
	mov	x0, x21
	bl	_spin_lock
Lloh3:
	adrp	x8, _OXYGEN_CHANNEL_A@GOTPAGE
Lloh4:
	ldr	x8, [x8, _OXYGEN_CHANNEL_A@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _OXYGEN_CHANNEL_B@GOTPAGE
Lloh7:
	ldr	x9, [x9, _OXYGEN_CHANNEL_B@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh9:
	adrp	x9, _OXYGEN_CHANNEL_C@GOTPAGE
Lloh10:
	ldr	x9, [x9, _OXYGEN_CHANNEL_C@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
Lloh12:
	adrp	x10, _OXYGEN_CHANNEL_SPDIF@GOTPAGE
Lloh13:
	ldr	x10, [x10, _OXYGEN_CHANNEL_SPDIF@GOTPAGEOFF]
	orr	w8, w8, w9
Lloh14:
	ldr	w9, [x10]
	orr	w8, w8, w9
Lloh15:
	adrp	x9, _OXYGEN_CHANNEL_MULTICH@GOTPAGE
Lloh16:
	ldr	x9, [x9, _OXYGEN_CHANNEL_MULTICH@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh18:
	adrp	x9, _OXYGEN_CHANNEL_AC97@GOTPAGE
Lloh19:
	ldr	x9, [x9, _OXYGEN_CHANNEL_AC97@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
Lloh21:
	adrp	x24, _OXYGEN_INT_SPDIF_IN_DETECT@GOTPAGE
Lloh22:
	ldr	x24, [x24, _OXYGEN_INT_SPDIF_IN_DETECT@GOTPAGEOFF]
	orr	w8, w8, w9
	ldr	w9, [x24]
	orr	w8, w8, w9
Lloh23:
	adrp	x23, _OXYGEN_INT_GPIO@GOTPAGE
Lloh24:
	ldr	x23, [x23, _OXYGEN_INT_GPIO@GOTPAGEOFF]
	ldr	w10, [x23]
	orr	w8, w8, w10
Lloh25:
	adrp	x22, _OXYGEN_INT_AC97@GOTPAGE
Lloh26:
	ldr	x22, [x22, _OXYGEN_INT_AC97@GOTPAGEOFF]
	ldr	w10, [x22]
	orr	w8, w8, w10
	ands	w8, w8, w20
	b.eq	LBB0_7
; %bb.2:
	tst	w8, w9
	b.eq	LBB0_5
; %bb.3:
	ldr	w10, [x19]
	bic	w9, w10, w9
	str	w9, [x19]
	b	LBB0_6
LBB0_4:
Lloh27:
	adrp	x8, _IRQ_NONE@GOTPAGE
Lloh28:
	ldr	x8, [x8, _IRQ_NONE@GOTPAGEOFF]
	b	LBB0_26
LBB0_5:
	ldr	w9, [x19]
LBB0_6:
Lloh29:
	adrp	x25, _OXYGEN_INTERRUPT_MASK@GOTPAGE
Lloh30:
	ldr	x25, [x25, _OXYGEN_INTERRUPT_MASK@GOTPAGEOFF]
	ldr	w1, [x25]
	bic	w2, w9, w8
	mov	x0, x19
	bl	_oxygen_write16
	ldr	w1, [x25]
	ldr	w2, [x19]
	mov	x0, x19
	bl	_oxygen_write16
LBB0_7:
	ldr	w27, [x19, #4]
	mov	x0, x21
	bl	_spin_unlock
Lloh31:
	adrp	x25, _PCM_COUNT@GOTPAGE
Lloh32:
	ldr	x25, [x25, _PCM_COUNT@GOTPAGEOFF]
	ldr	w8, [x25]
	cbz	w8, LBB0_13
; %bb.8:
	mov	x26, #0
	and	w27, w27, w20
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=1
	add	x26, x26, #1
	cmp	x26, w8, uxtw
	b.hs	LBB0_13
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	lsr	w9, w27, w26
	tbz	w9, #0, LBB0_9
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	x9, [x19, #40]
	ldr	x0, [x9, x26, lsl #3]
	cbz	x0, LBB0_9
; %bb.12:                               ;   in Loop: Header=BB0_10 Depth=1
	bl	_snd_pcm_period_elapsed
	ldr	w8, [x25]
	b	LBB0_9
LBB0_13:
	ldr	w8, [x24]
	tst	w8, w20
	b.eq	LBB0_17
; %bb.14:
	mov	x0, x21
	bl	_spin_lock
Lloh33:
	adrp	x24, _OXYGEN_SPDIF_CONTROL@GOTPAGE
Lloh34:
	ldr	x24, [x24, _OXYGEN_SPDIF_CONTROL@GOTPAGEOFF]
	ldr	w1, [x24]
	mov	x0, x19
	bl	_oxygen_read32
Lloh35:
	adrp	x8, _OXYGEN_SPDIF_SENSE_INT@GOTPAGE
Lloh36:
	ldr	x8, [x8, _OXYGEN_SPDIF_SENSE_INT@GOTPAGEOFF]
Lloh37:
	ldr	w8, [x8]
Lloh38:
	adrp	x9, _OXYGEN_SPDIF_LOCK_INT@GOTPAGE
Lloh39:
	ldr	x9, [x9, _OXYGEN_SPDIF_LOCK_INT@GOTPAGEOFF]
Lloh40:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh41:
	adrp	x9, _OXYGEN_SPDIF_RATE_INT@GOTPAGE
Lloh42:
	ldr	x9, [x9, _OXYGEN_SPDIF_RATE_INT@GOTPAGEOFF]
Lloh43:
	ldr	w9, [x9]
	orr	w8, w8, w9
	tst	w8, w0
	b.eq	LBB0_16
; %bb.15:
	mov	x2, x0
	ldr	w1, [x24]
	mov	x0, x19
	bl	_oxygen_write32
	add	x0, x19, #32
	bl	_schedule_work
LBB0_16:
	mov	x0, x21
	bl	_spin_unlock
LBB0_17:
	ldr	w8, [x23]
	tst	w8, w20
	b.eq	LBB0_19
; %bb.18:
	add	x0, x19, #24
	bl	_schedule_work
LBB0_19:
Lloh44:
	adrp	x8, _OXYGEN_INT_MIDI@GOTPAGE
Lloh45:
	ldr	x8, [x8, _OXYGEN_INT_MIDI@GOTPAGEOFF]
Lloh46:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_23
; %bb.20:
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_22
; %bb.21:
	ldr	w1, [x8]
	mov	w0, #0
	bl	_snd_mpu401_uart_interrupt
	b	LBB0_23
LBB0_22:
	mov	x0, x19
	bl	_oxygen_read_uart
LBB0_23:
	ldr	w8, [x22]
	tst	w8, w20
	b.eq	LBB0_25
; %bb.24:
	add	x0, x19, #8
	bl	_wake_up
LBB0_25:
Lloh47:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh48:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
LBB0_26:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh44, Lloh45, Lloh46
	.loh AdrpLdrGot	Lloh47, Lloh48
	.cfi_endproc
                                        ; -- End function
	.comm	_OXYGEN_INTERRUPT_STATUS,4,2    ; @OXYGEN_INTERRUPT_STATUS
	.comm	_IRQ_NONE,4,2                   ; @IRQ_NONE
	.comm	_OXYGEN_CHANNEL_A,4,2           ; @OXYGEN_CHANNEL_A
	.comm	_OXYGEN_CHANNEL_B,4,2           ; @OXYGEN_CHANNEL_B
	.comm	_OXYGEN_CHANNEL_C,4,2           ; @OXYGEN_CHANNEL_C
	.comm	_OXYGEN_CHANNEL_SPDIF,4,2       ; @OXYGEN_CHANNEL_SPDIF
	.comm	_OXYGEN_CHANNEL_MULTICH,4,2     ; @OXYGEN_CHANNEL_MULTICH
	.comm	_OXYGEN_CHANNEL_AC97,4,2        ; @OXYGEN_CHANNEL_AC97
	.comm	_OXYGEN_INT_SPDIF_IN_DETECT,4,2 ; @OXYGEN_INT_SPDIF_IN_DETECT
	.comm	_OXYGEN_INT_GPIO,4,2            ; @OXYGEN_INT_GPIO
	.comm	_OXYGEN_INT_AC97,4,2            ; @OXYGEN_INT_AC97
	.comm	_OXYGEN_INTERRUPT_MASK,4,2      ; @OXYGEN_INTERRUPT_MASK
	.comm	_PCM_COUNT,4,2                  ; @PCM_COUNT
	.comm	_OXYGEN_SPDIF_CONTROL,4,2       ; @OXYGEN_SPDIF_CONTROL
	.comm	_OXYGEN_SPDIF_SENSE_INT,4,2     ; @OXYGEN_SPDIF_SENSE_INT
	.comm	_OXYGEN_SPDIF_LOCK_INT,4,2      ; @OXYGEN_SPDIF_LOCK_INT
	.comm	_OXYGEN_SPDIF_RATE_INT,4,2      ; @OXYGEN_SPDIF_RATE_INT
	.comm	_OXYGEN_INT_MIDI,4,2            ; @OXYGEN_INT_MIDI
	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.no_dead_strip	_oxygen_interrupt
.subsections_via_symbols
