	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function niu_poll_core
_niu_poll_core:                         ## @niu_poll_core
	.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, %r12d
	movq	%rdi, %r15
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movl	(%rsi), %ecx
	movq	_INTR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	24(%r15), %rax
	movl	(%rax), %edx
	movl	%ecx, -48(%rbp)                 ## 4-byte Spill
	movslq	%ecx, %rcx
	leaq	L_.str(%rip), %rsi
	callq	_niudbg
	cmpl	$0, (%r15)
	jle	LBB0_3
## %bb.1:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%r15), %rax
	movl	(%rax,%rbx,4), %edi
	callq	_LDN_TXDMA
	movl	%eax, %edi
	callq	_LD_IM0
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_nw64
	incq	%rbx
	movslq	(%r15), %rax
	cmpq	%rax, %rbx
	jl	LBB0_2
LBB0_3:
	cmpl	$0, 4(%r15)
	jle	LBB0_4
## %bb.5:
	addq	$4, -56(%rbp)                   ## 8-byte Folded Spill
	xorl	%r14d, %r14d
	xorl	%r13d, %r13d
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_6 Depth=1
	callq	_LDN_RXDMA
	movl	%eax, %edi
	callq	_LD_IM0
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_nw64
	incq	%r13
	movslq	4(%r15), %rax
	addq	$4, %r14
	cmpq	%rax, %r13
	jge	LBB0_9
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r15), %rbx
	movl	(%rbx,%r14), %edi
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	btl	%edi, %eax
	jae	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	leaq	(%rbx,%r14), %rdx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rsi
	movl	%r12d, %ecx
	callq	_niu_rx_work
	subl	%eax, %r12d
	addl	%eax, -44(%rbp)                 ## 4-byte Folded Spill
	movl	(%rbx,%r14), %edi
	jmp	LBB0_8
LBB0_4:
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
LBB0_9:
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_INTR,4,2                       ## @INTR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: niu_poll_core() v0[%016llx]\n"

	.no_dead_strip	_niu_poll_core
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function niu_poll_core
_niu_poll_core:                         ; @niu_poll_core
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x2
	mov	x22, x1
	mov	x20, x0
	ldr	w23, [x1]
Lloh0:
	adrp	x8, _INTR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _INTR@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	ldr	x8, [x20, #24]
	ldr	w2, [x8]
	sxtw	x3, w23
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_niudbg
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_3
; %bb.1:
	mov	x21, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #16]
	ldr	w0, [x8, x21, lsl #2]
	bl	_LDN_TXDMA
	bl	_LD_IM0
	mov	w1, #0
	bl	_nw64
	add	x21, x21, #1
	ldrsw	x8, [x20]
	cmp	x21, x8
	b.lt	LBB0_2
LBB0_3:
	ldr	w8, [x20, #4]
	cmp	w8, #1
	b.lt	LBB0_8
; %bb.4:
	mov	x24, #0
	mov	x25, #0
	mov	w21, #0
	add	x22, x22, #4
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
                                        ; kill: def $w0 killed $w0 killed $x0
	bl	_LDN_RXDMA
	bl	_LD_IM0
	mov	w1, #0
	bl	_nw64
	add	x25, x25, #1
	ldrsw	x8, [x20, #4]
	add	x24, x24, #4
	cmp	x25, x8
	b.ge	LBB0_9
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x26, [x20, #8]
	add	x2, x26, x24
	ldr	w0, [x2]
	lsr	w8, w23, w0
	tbz	w8, #0, LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x22
	mov	x1, x20
	mov	x3, x19
	bl	_niu_rx_work
	sub	w19, w19, w0
	add	w21, w0, w21
	ldr	w0, [x26, x24]
	b	LBB0_5
LBB0_8:
	mov	w21, #0
LBB0_9:
	mov	x0, x21
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_INTR,4,2                       ; @INTR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: niu_poll_core() v0[%016llx]\n"

	.no_dead_strip	_niu_poll_core
.subsections_via_symbols
