	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function niu_slowpath_interrupt
_niu_slowpath_interrupt:                ## @niu_slowpath_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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, -56(%rbp)                 ## 4-byte Spill
	movl	%edx, (%rsi)
	movl	%ecx, 4(%rsi)
	movl	%r8d, 8(%rsi)
	xorl	%r12d, %r12d
	movl	%ecx, -60(%rbp)                 ## 4-byte Spill
	testl	%ecx, %ecx
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movl	%r8d, -52(%rbp)                 ## 4-byte Spill
	je	LBB0_8
## %bb.1:
	cmpl	$0, (%rdi)
	jle	LBB0_8
## %bb.2:
	xorl	%r14d, %r14d
	xorl	%r13d, %r13d
	xorl	%ebx, %ebx
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	%ebx, %r12d
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	incq	%r13
	movslq	(%rdi), %rax
	addq	$4, %r14
	movl	%r12d, %ebx
	cmpq	%rax, %r13
	jge	LBB0_8
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%rdi), %r15
	movl	(%r15,%r14), %eax
	movl	-60(%rbp), %ecx                 ## 4-byte Reload
	btl	%eax, %ecx
	jae	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	leaq	(%r15,%r14), %rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_niu_rx_error
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	testl	%eax, %eax
	movl	%eax, %r12d
	cmovel	%ebx, %r12d
	orl	-56(%rbp), %eax                 ## 4-byte Folded Reload
	jne	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	(%r15,%r14), %edi
	callq	_RX_DMA_CTL_STAT
	movq	_RX_DMA_CTL_STAT_MEX@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	callq	_nw64
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	jmp	LBB0_6
LBB0_8:
	movl	-56(%rbp), %eax                 ## 4-byte Reload
	orl	%eax, -60(%rbp)                 ## 4-byte Folded Spill
	jns	LBB0_10
## %bb.9:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_niu_mif_interrupt
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	testl	%eax, %eax
	cmovnel	%eax, %r12d
LBB0_10:
	movl	-52(%rbp), %ebx                 ## 4-byte Reload
	testl	%ebx, %ebx
	je	LBB0_15
## %bb.11:
	testl	$495, %ebx                      ## imm = 0x1EF
	je	LBB0_13
## %bb.12:
	callq	_niu_mac_interrupt
	testl	%eax, %eax
	cmovnel	%eax, %r12d
LBB0_13:
	testl	$528, %ebx                      ## imm = 0x210
	je	LBB0_15
## %bb.14:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_niu_device_error
	testl	%eax, %eax
	cmovnel	%eax, %r12d
LBB0_15:
	testl	%r12d, %r12d
	je	LBB0_17
## %bb.16:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	xorl	%esi, %esi
	callq	_niu_enable_interrupts
LBB0_17:
	movl	%r12d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RX_DMA_CTL_STAT_MEX,4,2        ## @RX_DMA_CTL_STAT_MEX
	.no_dead_strip	_niu_slowpath_interrupt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function niu_slowpath_interrupt
_niu_slowpath_interrupt:                ; @niu_slowpath_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
	mov	x21, x4
	mov	x22, x3
	mov	x23, x2
	mov	x19, x0
	stp	w2, w3, [x1]
	str	w4, [x1, #8]
	cbz	w3, LBB0_8
; %bb.1:
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_11
; %bb.2:
	mov	x24, #0
	mov	x25, #0
	mov	w20, #0
Lloh0:
	adrp	x26, _RX_DMA_CTL_STAT_MEX@GOTPAGE
Lloh1:
	ldr	x26, [x26, _RX_DMA_CTL_STAT_MEX@GOTPAGEOFF]
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	w0, [x27, x24]
	bl	_RX_DMA_CTL_STAT
	ldr	w1, [x26]
	bl	_nw64
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x25, x25, #1
	ldrsw	x8, [x19]
	add	x24, x24, #4
	cmp	x25, x8
	b.ge	LBB0_9
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x27, [x19, #16]
	add	x1, x27, x24
	ldr	w8, [x1]
	lsr	w8, w22, w8
	tbz	w8, #0, LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x19
	bl	_niu_rx_error
	cmp	w0, #0
	csel	w8, w20, w0, eq
	orr	w9, w0, w23
	cbz	w9, LBB0_3
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x20, x8
	b	LBB0_4
LBB0_8:
	mov	w20, #0
LBB0_9:
	orr	w8, w22, w23
	tbnz	w8, #31, LBB0_12
LBB0_10:
	cbnz	w21, LBB0_13
	b	LBB0_17
LBB0_11:
	mov	w20, #0
	orr	w8, w22, w23
	tbz	w8, #31, LBB0_10
LBB0_12:
	mov	x0, x19
	bl	_niu_mif_interrupt
	cmp	w0, #0
	csel	w20, w20, w0, eq
	cbz	w21, LBB0_17
LBB0_13:
	mov	w8, #495
	tst	w21, w8
	b.eq	LBB0_15
; %bb.14:
	mov	x0, x19
	bl	_niu_mac_interrupt
	cmp	w0, #0
	csel	w20, w20, w0, eq
LBB0_15:
	mov	w8, #528
	tst	w21, w8
	b.eq	LBB0_17
; %bb.16:
	mov	x0, x19
	bl	_niu_device_error
	cmp	w0, #0
	csel	w20, w20, w0, eq
LBB0_17:
	cbz	w20, LBB0_19
; %bb.18:
	mov	x0, x19
	mov	w1, #0
	bl	_niu_enable_interrupts
LBB0_19:
	mov	x0, x20
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_RX_DMA_CTL_STAT_MEX,4,2        ; @RX_DMA_CTL_STAT_MEX
	.no_dead_strip	_niu_slowpath_interrupt
.subsections_via_symbols
