	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function alcor_data_irq_done
_alcor_data_irq_done:                   ## @alcor_data_irq_done
	.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
	movl	%esi, %ebx
	movq	_AU6601_INT_DATA_MASK@GOTPCREL(%rip), %rax
	movl	$1, %r15d
	andl	(%rax), %ebx
	je	LBB0_18
## %bb.1:
	movq	%rdi, %r14
	movl	20(%rdi), %edx
	testl	%edx, %edx
	sete	%al
	movq	_AU6601_INT_DATA_END@GOTPCREL(%rip), %r12
	cmpl	(%r12), %ebx
	sete	%cl
	testl	%edx, %edx
	je	LBB0_2
## %bb.3:
	movl	%ebx, %eax
	andb	$-125, %al
	cmpb	$-127, %al
	jg	LBB0_7
## %bb.4:
	cmpb	$-128, %al
	je	LBB0_10
## %bb.5:
	cmpb	$-127, %al
	jne	LBB0_9
## %bb.6:
	movl	$1, %r15d
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_alcor_trf_block_pio
	jmp	LBB0_18
LBB0_2:
	andb	%cl, %al
	movzbl	%al, %r15d
	jmp	LBB0_18
LBB0_7:
	cmpb	$-126, %al
	je	LBB0_11
## %bb.8:
	testb	%al, %al
	je	LBB0_13
LBB0_9:
	movl	12(%r14), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
	jmp	LBB0_13
LBB0_10:
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_alcor_trf_block_pio
	jmp	LBB0_17
LBB0_11:
	cmpl	$0, 16(%r14)
	je	LBB0_13
## %bb.12:
	movq	%r14, %rdi
	callq	_alcor_data_set_dma
LBB0_13:
	testl	%ebx, (%r12)
	je	LBB0_18
## %bb.14:
	xorl	%r15d, %r15d
	cmpl	$0, 8(%r14)
	jne	LBB0_18
## %bb.15:
	cmpq	$0, (%r14)
	je	LBB0_18
## %bb.16:
	movq	%r14, %rdi
	callq	_alcor_trigger_data_transfer
LBB0_17:
	movl	$1, %r15d
LBB0_18:
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AU6601_INT_DATA_MASK,4,2       ## @AU6601_INT_DATA_MASK
	.comm	_AU6601_INT_DATA_END,4,2        ## @AU6601_INT_DATA_END
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Got READ_BUF_RDY and WRITE_BUF_RDY at same time\n"

	.no_dead_strip	_alcor_data_irq_done
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function alcor_data_irq_done
_alcor_data_irq_done:                   ; @alcor_data_irq_done
	.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
Lloh0:
	adrp	x8, _AU6601_INT_DATA_MASK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AU6601_INT_DATA_MASK@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ands	w21, w8, w1
	b.eq	LBB0_17
; %bb.1:
	mov	x19, x0
	ldr	w8, [x0, #20]
	cmp	w8, #0
Lloh3:
	adrp	x22, _AU6601_INT_DATA_END@GOTPAGE
Lloh4:
	ldr	x22, [x22, _AU6601_INT_DATA_END@GOTPAGEOFF]
	ldr	w9, [x22]
	ccmp	w21, w9, #0, eq
	cset	w20, eq
	cbz	w8, LBB0_18
; %bb.2:
	mov	w8, #131
	and	w8, w21, w8
	cmp	w8, #128
	b.gt	LBB0_6
; %bb.3:
	cbz	w8, LBB0_12
; %bb.4:
	cmp	w8, #128
	b.ne	LBB0_11
; %bb.5:
	mov	x0, x19
	mov	w1, #0
	bl	_alcor_trf_block_pio
	b	LBB0_17
LBB0_6:
	cmp	w8, #130
	b.eq	LBB0_9
; %bb.7:
	cmp	w8, #129
	b.ne	LBB0_11
; %bb.8:
	mov	w20, #1
	mov	x0, x19
	mov	w1, #1
	bl	_alcor_trf_block_pio
	b	LBB0_18
LBB0_9:
	ldr	w8, [x19, #16]
	cbz	w8, LBB0_12
; %bb.10:
	mov	x0, x19
	bl	_alcor_data_set_dma
	b	LBB0_12
LBB0_11:
	ldr	w0, [x19, #12]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
LBB0_12:
	ldr	w8, [x22]
	tst	w8, w21
	b.eq	LBB0_17
; %bb.13:
	ldr	w8, [x19, #8]
	cbz	w8, LBB0_15
LBB0_14:
	mov	w20, #0
	b	LBB0_18
LBB0_15:
	ldr	x8, [x19]
	cbz	x8, LBB0_14
; %bb.16:
	mov	x0, x19
	bl	_alcor_trigger_data_transfer
LBB0_17:
	mov	w20, #1
LBB0_18:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_AU6601_INT_DATA_MASK,4,2       ; @AU6601_INT_DATA_MASK
	.comm	_AU6601_INT_DATA_END,4,2        ; @AU6601_INT_DATA_END
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Got READ_BUF_RDY and WRITE_BUF_RDY at same time\n"

	.no_dead_strip	_alcor_data_irq_done
.subsections_via_symbols
