	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function Q40Interrupt
_Q40Interrupt:                          ## @Q40Interrupt
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	_write_sq@GOTPCREL(%rip), %rbx
	cmpq	$0, 8(%rbx)
	je	LBB0_1
## %bb.2:
	movq	$0, 8(%rbx)
	decl	4(%rbx)
	xorl	%eax, %eax
	callq	_Q40Play
	movq	_q40_sc@GOTPCREL(%rip), %rax
	cmpl	$1, (%rax)
	jg	LBB0_4
## %bb.3:
	movq	_SAMPLE_ENABLE_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edi, %edi
	callq	_master_outb
	movq	_DAC_RIGHT@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	$127, (%rax)
	movq	_DAC_LEFT@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	$127, (%rax)
LBB0_4:
	movl	(%rbx), %edi
	callq	_WAKE_UP
	jmp	LBB0_5
LBB0_1:
	movl	16(%rbx), %edi
	callq	_WAKE_UP
	movq	_SAMPLE_ENABLE_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edi, %edi
	callq	_master_outb
LBB0_5:
	movq	_SAMPLE_CLEAR_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$1, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_master_outb                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_write_sq,24,3                  ## @write_sq
	.comm	_SAMPLE_ENABLE_REG,4,2          ## @SAMPLE_ENABLE_REG
	.comm	_q40_sc,4,2                     ## @q40_sc
	.comm	_DAC_RIGHT,8,3                  ## @DAC_RIGHT
	.comm	_DAC_LEFT,8,3                   ## @DAC_LEFT
	.comm	_SAMPLE_CLEAR_REG,4,2           ## @SAMPLE_CLEAR_REG
	.no_dead_strip	_Q40Interrupt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function Q40Interrupt
_Q40Interrupt:                          ; @Q40Interrupt
	.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
Lloh0:
	adrp	x19, _write_sq@GOTPAGE
Lloh1:
	ldr	x19, [x19, _write_sq@GOTPAGEOFF]
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_4
; %bb.1:
	str	xzr, [x19, #8]
	ldr	w8, [x19, #4]
	sub	w8, w8, #1
	str	w8, [x19, #4]
	bl	_Q40Play
Lloh2:
	adrp	x8, _q40_sc@GOTPAGE
Lloh3:
	ldr	x8, [x8, _q40_sc@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	cmp	w8, #1
	b.gt	LBB0_3
; %bb.2:
Lloh5:
	adrp	x8, _SAMPLE_ENABLE_REG@GOTPAGE
Lloh6:
	ldr	x8, [x8, _SAMPLE_ENABLE_REG@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	w0, #0
	bl	_master_outb
Lloh8:
	adrp	x8, _DAC_RIGHT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _DAC_RIGHT@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	mov	w9, #127
	str	w9, [x8]
Lloh11:
	adrp	x8, _DAC_LEFT@GOTPAGE
Lloh12:
	ldr	x8, [x8, _DAC_LEFT@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	str	w9, [x8]
LBB0_3:
	ldr	w0, [x19]
	bl	_WAKE_UP
	b	LBB0_5
LBB0_4:
	ldr	w0, [x19, #16]
	bl	_WAKE_UP
Lloh14:
	adrp	x8, _SAMPLE_ENABLE_REG@GOTPAGE
Lloh15:
	ldr	x8, [x8, _SAMPLE_ENABLE_REG@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	mov	w0, #0
	bl	_master_outb
LBB0_5:
Lloh17:
	adrp	x8, _SAMPLE_CLEAR_REG@GOTPAGE
Lloh18:
	ldr	x8, [x8, _SAMPLE_CLEAR_REG@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	mov	w0, #1
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_master_outb
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_write_sq,24,3                  ; @write_sq
	.comm	_SAMPLE_ENABLE_REG,4,2          ; @SAMPLE_ENABLE_REG
	.comm	_q40_sc,4,2                     ; @q40_sc
	.comm	_DAC_RIGHT,8,3                  ; @DAC_RIGHT
	.comm	_DAC_LEFT,8,3                   ; @DAC_LEFT
	.comm	_SAMPLE_CLEAR_REG,4,2           ; @SAMPLE_CLEAR_REG
	.no_dead_strip	_Q40Interrupt
.subsections_via_symbols
