	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function macii_interrupt
_macii_interrupt:                       ## @macii_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
	testq	%rsi, %rsi
	jne	LBB0_4
## %bb.1:
	movq	_via@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_IFR@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	_SR_INT@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	testl	%edx, (%rax,%rcx,4)
	je	LBB0_2
## %bb.3:
	movl	%edx, (%rax,%rcx,4)
LBB0_4:
	movl	_macii_interrupt.entered(%rip), %edi
	leal	1(%rdi), %eax
	movl	%eax, _macii_interrupt.entered(%rip)
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_BUG_ON
	movq	_status@GOTPCREL(%rip), %r13
	movl	(%r13), %eax
	movq	_last_status@GOTPCREL(%rip), %r14
	movl	%eax, (%r14)
	movq	_via@GOTPCREL(%rip), %rax
	movq	(%rax), %r8
	movq	_B@GOTPCREL(%rip), %rax
	movq	(%rax), %r9
	movl	(%r8,%r9,4), %ebx
	movq	_ST_MASK@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	movq	_CTLR_IRQ@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	movl	%edx, %esi
	orl	%edi, %esi
	andl	%ebx, %esi
	movl	%esi, (%r13)
	movq	_macii_state@GOTPCREL(%rip), %r10
	movl	(%r10), %eax
	addl	$-128, %eax
	cmpl	$3, %eax
	ja	LBB0_53
## %bb.5:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_13:
	movq	_current_req@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	movq	_data_index@GOTPCREL(%rip), %rdx
	movslq	(%rdx), %rsi
	cmpl	52(%rdi), %esi
	jge	LBB0_14
## %bb.25:
	movq	16(%rdi), %rax
	leal	1(%rsi), %ecx
	movl	%ecx, (%rdx)
	movl	(%rax,%rsi,4), %eax
	movq	_SR@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	%eax, (%r8,%rcx,4)
	movl	(%r8,%r9,4), %edx
	movl	(%r12), %esi
	movl	%esi, %eax
	andl	%edx, %eax
	movq	_ST_CMD@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_27
## %bb.26:
	notl	%esi
	andl	%esi, %edx
	movq	_ST_EVEN@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movl	%edx, (%r8,%r9,4)
	jmp	LBB0_53
LBB0_28:
	andl	%ebx, %edi
	movq	_ST_CMD@GOTPCREL(%rip), %rax
	cmpl	(%rax), %edi
	sete	%al
	movq	_ST_IDLE@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %edi
	movq	_SR@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%r8,%rcx,4), %r12d
	sete	%cl
	orb	%al, %cl
	movzbl	%cl, %edi
	movq	%r10, %rbx
	callq	_BUG_ON
	movq	%rbx, %rdx
	movq	_srq_asserted@GOTPCREL(%rip), %rax
	movl	$0, (%rax)
	movl	(%r15), %ecx
	testl	%ecx, (%r13)
	je	LBB0_29
LBB0_35:
	cmpl	$129, (%rdx)
	jne	LBB0_37
## %bb.36:
	movq	_reply_len@GOTPCREL(%rip), %rbx
	xorl	%edi, %edi
	cmpl	$16, (%rbx)
	setge	%dil
	callq	_BUG_ON
	movq	_reply_ptr@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	leaq	4(%rcx), %rdx
	movq	%rdx, (%rax)
	movl	%r12d, 4(%rcx)
	incl	(%rbx)
LBB0_37:
	movq	_ST_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_via@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	_B@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	xorl	%eax, (%rcx,%rdx,4)
	jmp	LBB0_53
LBB0_38:
	movq	_reading_reply@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_41
## %bb.39:
	movl	$0, (%rax)
	movq	_current_req@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	_reply_len@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 24(%rdi)
	movl	$1, 12(%rdi)
	movq	40(%rdi), %rcx
	movq	%rcx, (%rax)
	movq	32(%rdi), %rax
	testq	%rax, %rax
	je	LBB0_45
## %bb.40:
	movq	%r10, %rbx
	callq	*%rax
	jmp	LBB0_44
LBB0_6:
	movq	_reading_reply@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	movq	_current_req@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	jne	LBB0_8
## %bb.7:
	xorl	%edi, %edi
	testq	%rcx, %rcx
	setne	%dil
	movq	%r10, %rbx
	callq	_BUG_ON
	movq	%rbx, %r10
	movq	_via@GOTPCREL(%rip), %rax
	movq	(%rax), %r8
	movl	(%r13), %esi
	movl	(%r15), %edx
	movq	_reply_buf@GOTPCREL(%rip), %rcx
LBB0_8:
	movq	_B@GOTPCREL(%rip), %rbx
	movq	(%rcx), %rcx
	movq	_reply_ptr@GOTPCREL(%rip), %rax
	movq	%rcx, (%rax)
	movq	_SR@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%r8,%rax,4), %edi
	testl	%esi, %edx
	je	LBB0_11
## %bb.9:
	cmpl	$255, %edi
	jne	LBB0_11
## %bb.10:
	movq	_reply_len@GOTPCREL(%rip), %rax
	movl	$0, (%rax)
	movq	_srq_asserted@GOTPCREL(%rip), %rax
	movl	$0, (%rax)
	movl	$130, (%r10)
	jmp	LBB0_12
LBB0_2:
	movq	_IRQ_NONE@GOTPCREL(%rip), %rax
	jmp	LBB0_54
LBB0_14:
	movl	$1, 8(%rdi)
	movl	$131, (%r10)
	cmpl	$0, 48(%rdi)
	je	LBB0_16
## %bb.15:
	movq	_reading_reply@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
	jmp	LBB0_23
LBB0_11:
	movl	$129, (%r10)
	movl	%edi, (%rcx)
	movq	_reply_len@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
LBB0_12:
	movq	(%rbx), %rax
	movl	(%r12), %ecx
	notl	%ecx
	andl	(%r8,%rax,4), %ecx
	movq	_ST_EVEN@GOTPCREL(%rip), %rdx
	orl	(%rdx), %ecx
	movl	%ecx, (%r8,%rax,4)
	jmp	LBB0_53
LBB0_29:
	testl	%r12d, %r12d
	je	LBB0_33
## %bb.30:
	cmpl	$255, %r12d
	jne	LBB0_35
## %bb.31:
	testl	%ecx, (%r14)
	jne	LBB0_35
## %bb.32:
	movl	$130, (%rdx)
	movq	_reply_len@GOTPCREL(%rip), %rcx
	movl	$0, (%rcx)
	movl	$1, (%rax)
	jmp	LBB0_37
LBB0_41:
	movq	_reply_len@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	testl	%esi, %esi
	je	LBB0_45
## %bb.42:
	movq	_autopoll_devs@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_45
## %bb.43:
	movq	_reply_buf@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	xorl	%edx, %edx
	movq	%r10, %rbx
	callq	_adb_input
LBB0_44:
	movq	%rbx, %r10
LBB0_45:
	movl	$131, (%r10)
	movq	_srq_asserted@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_47
## %bb.46:
	xorl	%eax, %eax
	movq	%r10, %rbx
	callq	_macii_queue_poll
	movq	%rbx, %r10
LBB0_47:
	movq	_current_req@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_49
## %bb.48:
	movq	%r10, %rbx
	xorl	%eax, %eax
	callq	_macii_start
	jmp	LBB0_51
LBB0_49:
	movq	%r10, %rbx
	xorl	%eax, %eax
	callq	_need_autopoll
	testl	%eax, %eax
	je	LBB0_51
## %bb.50:
	movq	_autopoll_devs@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_macii_autopoll
LBB0_51:
	cmpl	$131, (%rbx)
	movq	_via@GOTPCREL(%rip), %rax
	jne	LBB0_53
## %bb.52:
	movq	(%rax), %rax
	movq	_B@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%r12), %edx
	notl	%edx
	andl	(%rax,%rcx,4), %edx
	movq	_ST_IDLE@GOTPCREL(%rip), %rsi
	orl	(%rsi), %edx
	movl	%edx, (%rax,%rcx,4)
	jmp	LBB0_53
LBB0_27:
	xorl	%edx, %esi
	movl	%esi, (%r8,%r9,4)
	jmp	LBB0_53
LBB0_16:
	movl	$1, 12(%rdi)
	movq	40(%rdi), %rax
	movq	%rax, (%rbx)
	movq	32(%rdi), %rcx
	testq	%rcx, %rcx
	je	LBB0_18
## %bb.17:
	movq	%r10, %r14
	callq	*%rcx
	movq	%r14, %r10
	movq	(%rbx), %rax
LBB0_18:
	testq	%rax, %rax
	je	LBB0_20
## %bb.19:
	xorl	%eax, %eax
	movq	%r10, %rbx
	callq	_macii_start
	jmp	LBB0_22
LBB0_33:
	movl	$130, (%rdx)
	testl	%ecx, (%r14)
	jne	LBB0_37
## %bb.34:
	movl	$1, (%rax)
	jmp	LBB0_35
LBB0_20:
	xorl	%eax, %eax
	movq	%r10, %rbx
	callq	_need_autopoll
	movq	%rbx, %r10
	testl	%eax, %eax
	je	LBB0_23
## %bb.21:
	movq	_autopoll_devs@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_macii_autopoll
LBB0_22:
	movq	%rbx, %r10
LBB0_23:
	cmpl	$131, (%r10)
	movq	_via@GOTPCREL(%rip), %rcx
	jne	LBB0_53
## %bb.24:
	movq	_SR_OUT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	movq	(%rcx), %rcx
	movq	_ACR@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	andl	%eax, (%rcx,%rdx,4)
	movq	_B@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%r12), %edx
	notl	%edx
	andl	(%rcx,%rax,4), %edx
	movq	_ST_IDLE@GOTPCREL(%rip), %rsi
	orl	(%rsi), %edx
	movl	%edx, (%rcx,%rax,4)
LBB0_53:
	decl	_macii_interrupt.entered(%rip)
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
LBB0_54:
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_13, LBB0_13-LJTI0_0
.set L0_0_set_28, LBB0_28-LJTI0_0
.set L0_0_set_38, LBB0_38-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
LJTI0_0:
	.long	L0_0_set_13
	.long	L0_0_set_28
	.long	L0_0_set_38
	.long	L0_0_set_6
	.end_data_region
                                        ## -- End function
.zerofill __DATA,__bss,_macii_interrupt.entered,4,2 ## @macii_interrupt.entered
	.comm	_via,8,3                        ## @via
	.comm	_IFR,8,3                        ## @IFR
	.comm	_SR_INT,4,2                     ## @SR_INT
	.comm	_IRQ_NONE,4,2                   ## @IRQ_NONE
	.comm	_status,4,2                     ## @status
	.comm	_last_status,4,2                ## @last_status
	.comm	_B,8,3                          ## @B
	.comm	_ST_MASK,4,2                    ## @ST_MASK
	.comm	_CTLR_IRQ,4,2                   ## @CTLR_IRQ
	.comm	_macii_state,4,2                ## @macii_state
	.comm	_reading_reply,4,2              ## @reading_reply
	.comm	_current_req,8,3                ## @current_req
	.comm	_reply_ptr,8,3                  ## @reply_ptr
	.comm	_reply_buf,8,3                  ## @reply_buf
	.comm	_SR,8,3                         ## @SR
	.comm	_reply_len,4,2                  ## @reply_len
	.comm	_srq_asserted,4,2               ## @srq_asserted
	.comm	_ST_EVEN,4,2                    ## @ST_EVEN
	.comm	_data_index,4,2                 ## @data_index
	.comm	_autopoll_devs,4,2              ## @autopoll_devs
	.comm	_SR_OUT,4,2                     ## @SR_OUT
	.comm	_ACR,8,3                        ## @ACR
	.comm	_ST_IDLE,4,2                    ## @ST_IDLE
	.comm	_ST_CMD,4,2                     ## @ST_CMD
	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.no_dead_strip	_macii_interrupt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function macii_interrupt
_macii_interrupt:                       ; @macii_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
Lloh0:
	adrp	x22, _via@GOTPAGE
Lloh1:
	ldr	x22, [x22, _via@GOTPAGEOFF]
	cbnz	x1, LBB0_3
; %bb.1:
	ldr	x8, [x22]
Lloh2:
	adrp	x9, _IFR@GOTPAGE
Lloh3:
	ldr	x9, [x9, _IFR@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	ldr	w11, [x8, x9, lsl #2]
Lloh5:
	adrp	x10, _SR_INT@GOTPAGE
Lloh6:
	ldr	x10, [x10, _SR_INT@GOTPAGEOFF]
Lloh7:
	ldr	w10, [x10]
	tst	w10, w11
	b.eq	LBB0_20
; %bb.2:
	str	w10, [x8, x9, lsl #2]
LBB0_3:
	adrp	x19, _macii_interrupt.entered@PAGE
	ldr	w0, [x19, _macii_interrupt.entered@PAGEOFF]
	add	w8, w0, #1
	str	w8, [x19, _macii_interrupt.entered@PAGEOFF]
	bl	_BUG_ON
Lloh8:
	adrp	x24, _status@GOTPAGE
Lloh9:
	ldr	x24, [x24, _status@GOTPAGEOFF]
	ldr	w8, [x24]
Lloh10:
	adrp	x26, _last_status@GOTPAGE
Lloh11:
	ldr	x26, [x26, _last_status@GOTPAGEOFF]
	str	w8, [x26]
Lloh12:
	adrp	x21, _B@GOTPAGE
Lloh13:
	ldr	x21, [x21, _B@GOTPAGEOFF]
	ldr	x8, [x22]
	ldr	x9, [x21]
	ldr	w12, [x8, x9, lsl #2]
Lloh14:
	adrp	x20, _ST_MASK@GOTPAGE
Lloh15:
	ldr	x20, [x20, _ST_MASK@GOTPAGEOFF]
	ldr	w13, [x20]
Lloh16:
	adrp	x27, _CTLR_IRQ@GOTPAGE
Lloh17:
	ldr	x27, [x27, _CTLR_IRQ@GOTPAGEOFF]
	ldr	w10, [x27]
	orr	w11, w10, w13
	and	w11, w11, w12
	str	w11, [x24]
Lloh18:
	adrp	x23, _macii_state@GOTPAGE
Lloh19:
	ldr	x23, [x23, _macii_state@GOTPAGEOFF]
	ldr	w14, [x23]
	sub	w14, w14, #128
	cmp	w14, #3
	b.hi	LBB0_41
; %bb.4:
Lloh20:
	adrp	x15, lJTI0_0@PAGE
Lloh21:
	add	x15, x15, lJTI0_0@PAGEOFF
	adr	x16, LBB0_5
	ldrb	w17, [x15, x14]
	add	x16, x16, x17, lsl #2
	br	x16
LBB0_5:
Lloh22:
	adrp	x24, _current_req@GOTPAGE
Lloh23:
	ldr	x24, [x24, _current_req@GOTPAGEOFF]
	ldr	x0, [x24]
Lloh24:
	adrp	x10, _data_index@GOTPAGE
Lloh25:
	ldr	x10, [x10, _data_index@GOTPAGEOFF]
	ldrsw	x11, [x10]
	ldr	w12, [x0, #52]
	cmp	w11, w12
	b.ge	LBB0_21
; %bb.6:
	ldr	x12, [x0, #16]
	add	w13, w11, #1
	str	w13, [x10]
	ldr	w10, [x12, x11, lsl #2]
Lloh26:
	adrp	x11, _SR@GOTPAGE
Lloh27:
	ldr	x11, [x11, _SR@GOTPAGEOFF]
Lloh28:
	ldr	x11, [x11]
	str	w10, [x8, x11, lsl #2]
	ldr	w10, [x8, x9, lsl #2]
	ldr	w11, [x20]
	and	w12, w11, w10
Lloh29:
	adrp	x13, _ST_CMD@GOTPAGE
Lloh30:
	ldr	x13, [x13, _ST_CMD@GOTPAGEOFF]
Lloh31:
	ldr	w13, [x13]
	cmp	w12, w13
	b.ne	LBB0_43
; %bb.7:
	bic	w10, w10, w11
Lloh32:
	adrp	x11, _ST_EVEN@GOTPAGE
Lloh33:
	ldr	x11, [x11, _ST_EVEN@GOTPAGEOFF]
Lloh34:
	ldr	w11, [x11]
	orr	w10, w11, w10
	str	w10, [x8, x9, lsl #2]
	b	LBB0_41
LBB0_8:
Lloh35:
	adrp	x9, _SR@GOTPAGE
Lloh36:
	ldr	x9, [x9, _SR@GOTPAGEOFF]
Lloh37:
	ldr	x9, [x9]
	ldr	w25, [x8, x9, lsl #2]
	and	w8, w13, w12
Lloh38:
	adrp	x9, _ST_CMD@GOTPAGE
Lloh39:
	ldr	x9, [x9, _ST_CMD@GOTPAGEOFF]
Lloh40:
	ldr	w9, [x9]
	cmp	w8, w9
Lloh41:
	adrp	x9, _ST_IDLE@GOTPAGE
Lloh42:
	ldr	x9, [x9, _ST_IDLE@GOTPAGEOFF]
Lloh43:
	ldr	w9, [x9]
	ccmp	w8, w9, #4, ne
	cset	w0, eq
	bl	_BUG_ON
Lloh44:
	adrp	x8, _srq_asserted@GOTPAGE
Lloh45:
	ldr	x8, [x8, _srq_asserted@GOTPAGEOFF]
	str	wzr, [x8]
	ldr	w10, [x24]
	ldr	w9, [x27]
	tst	w9, w10
	b.eq	LBB0_25
LBB0_9:
	ldr	w8, [x23]
	cmp	w8, #129
	b.ne	LBB0_11
; %bb.10:
Lloh46:
	adrp	x23, _reply_len@GOTPAGE
Lloh47:
	ldr	x23, [x23, _reply_len@GOTPAGEOFF]
	ldr	w8, [x23]
	cmp	w8, #15
	cset	w0, gt
	bl	_BUG_ON
Lloh48:
	adrp	x8, _reply_ptr@GOTPAGE
Lloh49:
	ldr	x8, [x8, _reply_ptr@GOTPAGEOFF]
	ldr	x9, [x8]
	str	w25, [x9, #4]!
	str	x9, [x8]
	ldr	w8, [x23]
	add	w8, w8, #1
	str	w8, [x23]
LBB0_11:
	ldr	w8, [x20]
	ldr	x9, [x22]
	ldr	x10, [x21]
	lsl	x10, x10, #2
	ldr	w11, [x9, x10]
	eor	w8, w11, w8
	str	w8, [x9, x10]
	b	LBB0_41
LBB0_12:
Lloh50:
	adrp	x8, _reading_reply@GOTPAGE
Lloh51:
	ldr	x8, [x8, _reading_reply@GOTPAGEOFF]
	ldr	w9, [x8]
	cbz	w9, LBB0_29
; %bb.13:
	str	wzr, [x8]
Lloh52:
	adrp	x9, _current_req@GOTPAGE
Lloh53:
	ldr	x9, [x9, _current_req@GOTPAGEOFF]
	ldr	x0, [x9]
Lloh54:
	adrp	x8, _reply_len@GOTPAGE
Lloh55:
	ldr	x8, [x8, _reply_len@GOTPAGEOFF]
Lloh56:
	ldr	w8, [x8]
	str	w8, [x0, #24]
	mov	w8, #1
	str	w8, [x0, #12]
	ldp	x8, x10, [x0, #32]
	str	x10, [x9]
	cbz	x8, LBB0_32
; %bb.14:
	blr	x8
	b	LBB0_32
LBB0_15:
Lloh57:
	adrp	x9, _reading_reply@GOTPAGE
Lloh58:
	ldr	x9, [x9, _reading_reply@GOTPAGEOFF]
Lloh59:
	ldr	w12, [x9]
Lloh60:
	adrp	x9, _current_req@GOTPAGE
Lloh61:
	ldr	x9, [x9, _current_req@GOTPAGEOFF]
Lloh62:
	ldr	x9, [x9]
	cbnz	w12, LBB0_17
; %bb.16:
	cmp	x9, #0
	cset	w0, ne
	bl	_BUG_ON
	ldr	x8, [x22]
	ldr	w11, [x24]
	ldr	w10, [x27]
Lloh63:
	adrp	x9, _reply_buf@GOTPAGE
Lloh64:
	ldr	x9, [x9, _reply_buf@GOTPAGEOFF]
LBB0_17:
	ldr	x9, [x9]
Lloh65:
	adrp	x12, _reply_ptr@GOTPAGE
Lloh66:
	ldr	x12, [x12, _reply_ptr@GOTPAGEOFF]
Lloh67:
	str	x9, [x12]
Lloh68:
	adrp	x12, _SR@GOTPAGE
Lloh69:
	ldr	x12, [x12, _SR@GOTPAGEOFF]
Lloh70:
	ldr	x12, [x12]
	ldr	w12, [x8, x12, lsl #2]
	tst	w10, w11
	b.eq	LBB0_23
; %bb.18:
	cmp	w12, #255
	b.ne	LBB0_23
; %bb.19:
Lloh71:
	adrp	x9, _reply_len@GOTPAGE
Lloh72:
	ldr	x9, [x9, _reply_len@GOTPAGEOFF]
Lloh73:
	str	wzr, [x9]
Lloh74:
	adrp	x9, _srq_asserted@GOTPAGE
Lloh75:
	ldr	x9, [x9, _srq_asserted@GOTPAGEOFF]
Lloh76:
	str	wzr, [x9]
	mov	w9, #130
	str	w9, [x23]
	b	LBB0_24
LBB0_20:
Lloh77:
	adrp	x8, _IRQ_NONE@GOTPAGE
Lloh78:
	ldr	x8, [x8, _IRQ_NONE@GOTPAGEOFF]
	b	LBB0_42
LBB0_21:
	mov	w8, #1
	str	w8, [x0, #8]
	mov	w9, #131
	str	w9, [x23]
	ldr	w9, [x0, #48]
	cbz	w9, LBB0_44
; %bb.22:
Lloh79:
	adrp	x9, _reading_reply@GOTPAGE
Lloh80:
	ldr	x9, [x9, _reading_reply@GOTPAGEOFF]
Lloh81:
	str	w8, [x9]
	b	LBB0_52
LBB0_23:
	mov	w10, #129
	str	w10, [x23]
	str	w12, [x9]
Lloh82:
	adrp	x9, _reply_len@GOTPAGE
Lloh83:
	ldr	x9, [x9, _reply_len@GOTPAGEOFF]
	mov	w10, #1
Lloh84:
	str	w10, [x9]
LBB0_24:
	ldr	x9, [x21]
	lsl	x9, x9, #2
	ldr	w10, [x8, x9]
	ldr	w11, [x20]
	bic	w10, w10, w11
Lloh85:
	adrp	x11, _ST_EVEN@GOTPAGE
Lloh86:
	ldr	x11, [x11, _ST_EVEN@GOTPAGEOFF]
	b	LBB0_40
LBB0_25:
	cbz	w25, LBB0_48
; %bb.26:
	cmp	w25, #255
	b.ne	LBB0_9
; %bb.27:
	ldr	w10, [x26]
	tst	w10, w9
	b.ne	LBB0_9
; %bb.28:
	mov	w9, #130
	str	w9, [x23]
Lloh87:
	adrp	x9, _reply_len@GOTPAGE
Lloh88:
	ldr	x9, [x9, _reply_len@GOTPAGEOFF]
Lloh89:
	str	wzr, [x9]
	mov	w9, #1
	str	w9, [x8]
	b	LBB0_11
LBB0_29:
Lloh90:
	adrp	x8, _reply_len@GOTPAGE
Lloh91:
	ldr	x8, [x8, _reply_len@GOTPAGEOFF]
Lloh92:
	ldr	w1, [x8]
	cbz	w1, LBB0_32
; %bb.30:
Lloh93:
	adrp	x8, _autopoll_devs@GOTPAGE
Lloh94:
	ldr	x8, [x8, _autopoll_devs@GOTPAGEOFF]
Lloh95:
	ldr	w8, [x8]
	cbz	w8, LBB0_32
; %bb.31:
Lloh96:
	adrp	x8, _reply_buf@GOTPAGE
Lloh97:
	ldr	x8, [x8, _reply_buf@GOTPAGEOFF]
Lloh98:
	ldr	x0, [x8]
	mov	w2, #0
	bl	_adb_input
LBB0_32:
	mov	w8, #131
	str	w8, [x23]
Lloh99:
	adrp	x8, _srq_asserted@GOTPAGE
Lloh100:
	ldr	x8, [x8, _srq_asserted@GOTPAGEOFF]
Lloh101:
	ldr	w8, [x8]
	cbz	w8, LBB0_34
; %bb.33:
	bl	_macii_queue_poll
LBB0_34:
Lloh102:
	adrp	x8, _current_req@GOTPAGE
Lloh103:
	ldr	x8, [x8, _current_req@GOTPAGEOFF]
Lloh104:
	ldr	x8, [x8]
	cbz	x8, LBB0_36
; %bb.35:
	bl	_macii_start
	b	LBB0_38
LBB0_36:
	bl	_need_autopoll
	cbz	w0, LBB0_38
; %bb.37:
Lloh105:
	adrp	x8, _autopoll_devs@GOTPAGE
Lloh106:
	ldr	x8, [x8, _autopoll_devs@GOTPAGEOFF]
Lloh107:
	ldr	w0, [x8]
	bl	_macii_autopoll
LBB0_38:
	ldr	w8, [x23]
	cmp	w8, #131
	b.ne	LBB0_41
; %bb.39:
	ldr	x8, [x22]
	ldr	x9, [x21]
	lsl	x9, x9, #2
	ldr	w10, [x8, x9]
	ldr	w11, [x20]
	bic	w10, w10, w11
Lloh108:
	adrp	x11, _ST_IDLE@GOTPAGE
Lloh109:
	ldr	x11, [x11, _ST_IDLE@GOTPAGEOFF]
LBB0_40:
	ldr	w11, [x11]
	orr	w10, w10, w11
	str	w10, [x8, x9]
LBB0_41:
	ldr	w8, [x19, _macii_interrupt.entered@PAGEOFF]
	sub	w8, w8, #1
	str	w8, [x19, _macii_interrupt.entered@PAGEOFF]
Lloh110:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh111:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
LBB0_42:
	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
LBB0_43:
	eor	w10, w11, w10
	str	w10, [x8, x9, lsl #2]
	b	LBB0_41
LBB0_44:
	str	w8, [x0, #12]
	ldp	x9, x8, [x0, #32]
	str	x8, [x24]
	cbz	x9, LBB0_46
; %bb.45:
	blr	x9
	ldr	x8, [x24]
LBB0_46:
	cbz	x8, LBB0_50
; %bb.47:
	bl	_macii_start
	b	LBB0_52
LBB0_48:
	mov	w10, #130
	str	w10, [x23]
	ldr	w10, [x26]
	tst	w10, w9
	b.ne	LBB0_11
; %bb.49:
	mov	w9, #1
	str	w9, [x8]
	b	LBB0_9
LBB0_50:
	bl	_need_autopoll
	cbz	w0, LBB0_52
; %bb.51:
Lloh112:
	adrp	x8, _autopoll_devs@GOTPAGE
Lloh113:
	ldr	x8, [x8, _autopoll_devs@GOTPAGEOFF]
Lloh114:
	ldr	w0, [x8]
	bl	_macii_autopoll
LBB0_52:
	ldr	w8, [x23]
	cmp	w8, #131
	b.ne	LBB0_41
; %bb.53:
Lloh115:
	adrp	x8, _SR_OUT@GOTPAGE
Lloh116:
	ldr	x8, [x8, _SR_OUT@GOTPAGEOFF]
Lloh117:
	ldr	w8, [x8]
	ldr	x9, [x22]
Lloh118:
	adrp	x10, _ACR@GOTPAGE
Lloh119:
	ldr	x10, [x10, _ACR@GOTPAGEOFF]
Lloh120:
	ldr	x10, [x10]
	lsl	x10, x10, #2
	ldr	w11, [x9, x10]
	bic	w8, w11, w8
	str	w8, [x9, x10]
	ldr	x8, [x21]
	lsl	x8, x8, #2
	ldr	w10, [x9, x8]
	ldr	w11, [x20]
	bic	w10, w10, w11
Lloh121:
	adrp	x11, _ST_IDLE@GOTPAGE
Lloh122:
	ldr	x11, [x11, _ST_IDLE@GOTPAGEOFF]
Lloh123:
	ldr	w11, [x11]
	orr	w10, w10, w11
	str	w10, [x9, x8]
	b	LBB0_41
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh41, Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGot	Lloh48, Lloh49
	.loh AdrpLdrGot	Lloh46, Lloh47
	.loh AdrpLdrGot	Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh54, Lloh55, Lloh56
	.loh AdrpLdrGot	Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh60, Lloh61, Lloh62
	.loh AdrpLdrGotLdr	Lloh57, Lloh58, Lloh59
	.loh AdrpLdrGot	Lloh63, Lloh64
	.loh AdrpLdrGotLdr	Lloh68, Lloh69, Lloh70
	.loh AdrpLdrGotStr	Lloh65, Lloh66, Lloh67
	.loh AdrpLdrGotStr	Lloh74, Lloh75, Lloh76
	.loh AdrpLdrGotStr	Lloh71, Lloh72, Lloh73
	.loh AdrpLdrGot	Lloh77, Lloh78
	.loh AdrpLdrGotStr	Lloh79, Lloh80, Lloh81
	.loh AdrpLdrGotStr	Lloh82, Lloh83, Lloh84
	.loh AdrpLdrGot	Lloh85, Lloh86
	.loh AdrpLdrGotStr	Lloh87, Lloh88, Lloh89
	.loh AdrpLdrGotLdr	Lloh90, Lloh91, Lloh92
	.loh AdrpLdrGotLdr	Lloh93, Lloh94, Lloh95
	.loh AdrpLdrGotLdr	Lloh96, Lloh97, Lloh98
	.loh AdrpLdrGotLdr	Lloh99, Lloh100, Lloh101
	.loh AdrpLdrGotLdr	Lloh102, Lloh103, Lloh104
	.loh AdrpLdrGotLdr	Lloh105, Lloh106, Lloh107
	.loh AdrpLdrGot	Lloh108, Lloh109
	.loh AdrpLdrGot	Lloh110, Lloh111
	.loh AdrpLdrGotLdr	Lloh112, Lloh113, Lloh114
	.loh AdrpLdrGotLdr	Lloh121, Lloh122, Lloh123
	.loh AdrpLdrGotLdr	Lloh118, Lloh119, Lloh120
	.loh AdrpLdrGotLdr	Lloh115, Lloh116, Lloh117
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_5-LBB0_5)>>2
	.byte	(LBB0_8-LBB0_5)>>2
	.byte	(LBB0_12-LBB0_5)>>2
	.byte	(LBB0_15-LBB0_5)>>2
                                        ; -- End function
.zerofill __DATA,__bss,_macii_interrupt.entered,4,2 ; @macii_interrupt.entered
	.comm	_via,8,3                        ; @via
	.comm	_IFR,8,3                        ; @IFR
	.comm	_SR_INT,4,2                     ; @SR_INT
	.comm	_IRQ_NONE,4,2                   ; @IRQ_NONE
	.comm	_status,4,2                     ; @status
	.comm	_last_status,4,2                ; @last_status
	.comm	_B,8,3                          ; @B
	.comm	_ST_MASK,4,2                    ; @ST_MASK
	.comm	_CTLR_IRQ,4,2                   ; @CTLR_IRQ
	.comm	_macii_state,4,2                ; @macii_state
	.comm	_reading_reply,4,2              ; @reading_reply
	.comm	_current_req,8,3                ; @current_req
	.comm	_reply_ptr,8,3                  ; @reply_ptr
	.comm	_reply_buf,8,3                  ; @reply_buf
	.comm	_SR,8,3                         ; @SR
	.comm	_reply_len,4,2                  ; @reply_len
	.comm	_srq_asserted,4,2               ; @srq_asserted
	.comm	_ST_EVEN,4,2                    ; @ST_EVEN
	.comm	_data_index,4,2                 ; @data_index
	.comm	_autopoll_devs,4,2              ; @autopoll_devs
	.comm	_SR_OUT,4,2                     ; @SR_OUT
	.comm	_ACR,8,3                        ; @ACR
	.comm	_ST_IDLE,4,2                    ; @ST_IDLE
	.comm	_ST_CMD,4,2                     ; @ST_CMD
	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.no_dead_strip	_macii_interrupt
.subsections_via_symbols
