	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function alcor_irq
_alcor_irq:                             ## @alcor_irq
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	8(%rsi), %rbx
	movq	_AU6601_REG_INT_STATUS@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	%rbx, %rdi
	callq	_alcor_read32
	testl	%eax, %eax
	je	LBB0_6
## %bb.1:
	movl	%eax, %r15d
	movl	(%r12), %edx
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_alcor_write32
	movq	_AU6601_INT_READ_BUF_RDY@GOTPCREL(%rip), %rax
	movq	_AU6601_INT_WRITE_BUF_RDY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_AU6601_INT_DATA_END@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	_AU6601_INT_DMA_END@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	_AU6601_INT_CMD_END@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	notl	%ecx
	testl	%ecx, %r15d
	jne	LBB0_5
## %bb.2:
	movq	%r14, %rdi
	movl	%r15d, %esi
	callq	_alcor_cmd_irq_done
	movl	%eax, %ebx
	movq	%r14, %rdi
	movl	%r15d, %esi
	callq	_alcor_data_irq_done
	testl	%ebx, %ebx
	je	LBB0_5
## %bb.3:
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_5:
	movl	%r15d, (%r14)
	movq	_IRQ_WAKE_THREAD@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%r14, %rdi
	callq	_alcor_mask_sd_irqs
	jmp	LBB0_8
LBB0_6:
	movq	_IRQ_NONE@GOTPCREL(%rip), %rax
LBB0_7:
	movl	(%rax), %ebx
LBB0_8:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AU6601_REG_INT_STATUS,4,2      ## @AU6601_REG_INT_STATUS
	.comm	_IRQ_NONE,4,2                   ## @IRQ_NONE
	.comm	_AU6601_INT_READ_BUF_RDY,4,2    ## @AU6601_INT_READ_BUF_RDY
	.comm	_AU6601_INT_WRITE_BUF_RDY,4,2   ## @AU6601_INT_WRITE_BUF_RDY
	.comm	_AU6601_INT_DATA_END,4,2        ## @AU6601_INT_DATA_END
	.comm	_AU6601_INT_DMA_END,4,2         ## @AU6601_INT_DMA_END
	.comm	_AU6601_INT_CMD_END,4,2         ## @AU6601_INT_CMD_END
	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.comm	_IRQ_WAKE_THREAD,4,2            ## @IRQ_WAKE_THREAD
	.no_dead_strip	_alcor_irq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function alcor_irq
_alcor_irq:                             ; @alcor_irq
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x1
	ldr	x21, [x1, #8]
Lloh0:
	adrp	x22, _AU6601_REG_INT_STATUS@GOTPAGE
Lloh1:
	ldr	x22, [x22, _AU6601_REG_INT_STATUS@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x21
	bl	_alcor_read32
	cbz	w0, LBB0_4
; %bb.1:
	mov	x20, x0
	ldr	w2, [x22]
	mov	x0, x21
	mov	x1, x20
	bl	_alcor_write32
Lloh2:
	adrp	x8, _AU6601_INT_READ_BUF_RDY@GOTPAGE
Lloh3:
	ldr	x8, [x8, _AU6601_INT_READ_BUF_RDY@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x9, _AU6601_INT_WRITE_BUF_RDY@GOTPAGE
Lloh6:
	ldr	x9, [x9, _AU6601_INT_WRITE_BUF_RDY@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
Lloh8:
	adrp	x10, _AU6601_INT_DATA_END@GOTPAGE
Lloh9:
	ldr	x10, [x10, _AU6601_INT_DATA_END@GOTPAGEOFF]
	orr	w8, w9, w8
Lloh10:
	ldr	w9, [x10]
	orr	w8, w8, w9
Lloh11:
	adrp	x9, _AU6601_INT_DMA_END@GOTPAGE
Lloh12:
	ldr	x9, [x9, _AU6601_INT_DMA_END@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh14:
	adrp	x9, _AU6601_INT_CMD_END@GOTPAGE
Lloh15:
	ldr	x9, [x9, _AU6601_INT_CMD_END@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	orr	w8, w8, w9
	bics	wzr, w20, w8
	b.ne	LBB0_3
; %bb.2:
	mov	x0, x19
	mov	x1, x20
	bl	_alcor_cmd_irq_done
	mov	x21, x0
	mov	x0, x19
	mov	x1, x20
	bl	_alcor_data_irq_done
	cmp	w21, #0
	ccmp	w0, #0, #4, ne
	b.ne	LBB0_5
LBB0_3:
	str	w20, [x19]
Lloh17:
	adrp	x8, _IRQ_WAKE_THREAD@GOTPAGE
Lloh18:
	ldr	x8, [x8, _IRQ_WAKE_THREAD@GOTPAGEOFF]
Lloh19:
	ldr	w20, [x8]
	mov	x0, x19
	bl	_alcor_mask_sd_irqs
	b	LBB0_7
LBB0_4:
Lloh20:
	adrp	x8, _IRQ_NONE@GOTPAGE
Lloh21:
	ldr	x8, [x8, _IRQ_NONE@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
Lloh22:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh23:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
LBB0_6:
	ldr	w20, [x8]
LBB0_7:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_AU6601_REG_INT_STATUS,4,2      ; @AU6601_REG_INT_STATUS
	.comm	_IRQ_NONE,4,2                   ; @IRQ_NONE
	.comm	_AU6601_INT_READ_BUF_RDY,4,2    ; @AU6601_INT_READ_BUF_RDY
	.comm	_AU6601_INT_WRITE_BUF_RDY,4,2   ; @AU6601_INT_WRITE_BUF_RDY
	.comm	_AU6601_INT_DATA_END,4,2        ; @AU6601_INT_DATA_END
	.comm	_AU6601_INT_DMA_END,4,2         ; @AU6601_INT_DMA_END
	.comm	_AU6601_INT_CMD_END,4,2         ; @AU6601_INT_CMD_END
	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.comm	_IRQ_WAKE_THREAD,4,2            ; @IRQ_WAKE_THREAD
	.no_dead_strip	_alcor_irq
.subsections_via_symbols
