	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ipwireless_handle_v1_interrupt
_ipwireless_handle_v1_interrupt:        ## @ipwireless_handle_v1_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, %r14
	movq	_IOIR@GOTPCREL(%rip), %r12
	movq	(%r12), %rdi
	addq	8(%rsi), %rdi
	callq	_inw
	movl	%eax, %ebx
	leal	1(%rbx), %eax
	cmpw	$2, %ax
	jae	LBB0_2
## %bb.1:
	movq	_IRQ_NONE@GOTPCREL(%rip), %rbx
	jmp	LBB0_9
LBB0_2:
	movq	_IR_TXINTR@GOTPCREL(%rip), %rax
	movzwl	(%rax), %r13d
	testw	%bx, %r13w
	je	LBB0_3
## %bb.4:
	leaq	16(%r14), %r15
	movq	%r15, %rdi
	callq	_spin_lock_irqsave
	movl	$1, (%r14)
	movq	%r15, %rdi
	callq	_spin_unlock_irqrestore
	jmp	LBB0_5
LBB0_3:
	xorl	%r13d, %r13d
LBB0_5:
	movq	_IR_RXINTR@GOTPCREL(%rip), %rax
	movzwl	(%rax), %r15d
	testw	%bx, %r15w
	je	LBB0_7
## %bb.6:
	orl	%r13d, %r15d
	leaq	16(%r14), %rbx
	movq	%rbx, %rdi
	callq	_spin_lock_irqsave
	incl	20(%r14)
	movq	%rbx, %rdi
	callq	_spin_unlock_irqrestore
	movl	%r15d, %r13d
LBB0_7:
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rbx
	testw	%r13w, %r13w
	je	LBB0_9
## %bb.8:
	movq	(%r12), %rsi
	addq	8(%r14), %rsi
	movzwl	%r13w, %edi
	callq	_outw
	addq	$4, %r14
	movq	%r14, %rdi
	callq	_tasklet_schedule
LBB0_9:
	movl	(%rbx), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IOIR,8,3                       ## @IOIR
	.comm	_IRQ_NONE,4,2                   ## @IRQ_NONE
	.comm	_IR_TXINTR,2,1                  ## @IR_TXINTR
	.comm	_IR_RXINTR,2,1                  ## @IR_RXINTR
	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.no_dead_strip	_ipwireless_handle_v1_interrupt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ipwireless_handle_v1_interrupt
_ipwireless_handle_v1_interrupt:        ; @ipwireless_handle_v1_interrupt
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x1
	ldr	x8, [x1, #8]
Lloh0:
	adrp	x23, _IOIR@GOTPAGE
Lloh1:
	ldr	x23, [x23, _IOIR@GOTPAGEOFF]
	ldr	x9, [x23]
	add	x0, x9, x8
	bl	_inw
	cmp	w0, #0
	mov	w8, #65535
	ccmp	w0, w8, #4, ne
	b.ne	LBB0_2
; %bb.1:
Lloh2:
	adrp	x8, _IRQ_NONE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _IRQ_NONE@GOTPAGEOFF]
	b	LBB0_10
LBB0_2:
	mov	x21, x0
Lloh4:
	adrp	x8, _IR_TXINTR@GOTPAGE
Lloh5:
	ldr	x8, [x8, _IR_TXINTR@GOTPAGEOFF]
	ldrh	w20, [x8]
	tst	w20, w0
	b.eq	LBB0_4
; %bb.3:
	add	x22, x19, #16
	mov	x0, x22
	bl	_spin_lock_irqsave
	mov	w8, #1
	str	w8, [x19]
	mov	x0, x22
	bl	_spin_unlock_irqrestore
	b	LBB0_5
LBB0_4:
	mov	w20, #0
LBB0_5:
Lloh6:
	adrp	x8, _IR_RXINTR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IR_RXINTR@GOTPAGEOFF]
	ldrh	w8, [x8]
	tst	w8, w21
	b.eq	LBB0_7
; %bb.6:
	orr	w20, w8, w20
	add	x21, x19, #16
	mov	x0, x21
	bl	_spin_lock_irqsave
	ldr	w8, [x19, #20]
	add	w8, w8, #1
	str	w8, [x19, #20]
	mov	x0, x21
	bl	_spin_unlock_irqrestore
LBB0_7:
	cbz	w20, LBB0_9
; %bb.8:
	ldr	x8, [x19, #8]
	ldr	x9, [x23]
	add	x1, x9, x8
	mov	x0, x20
	bl	_outw
	add	x0, x19, #4
	bl	_tasklet_schedule
LBB0_9:
Lloh8:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh9:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
LBB0_10:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_IOIR,8,3                       ; @IOIR
	.comm	_IRQ_NONE,4,2                   ; @IRQ_NONE
	.comm	_IR_TXINTR,2,1                  ; @IR_TXINTR
	.comm	_IR_RXINTR,2,1                  ; @IR_RXINTR
	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.no_dead_strip	_ipwireless_handle_v1_interrupt
.subsections_via_symbols
