	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rx_refill
_rx_refill:                             ## @rx_refill
	.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
	movq	%rsi, %r15
	movq	%rdi, %rbx
	callq	_PRIV
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_nr_rx_empty
	xorl	%edi, %edi
	cmpl	$3, %eax
	setl	%dil
	callq	_unlikely
	movq	%rax, %rcx
	xorl	%eax, %eax
	testq	%rcx, %rcx
	jne	LBB0_17
## %bb.1:
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	leaq	L_.str(%rip), %rdi
	movq	%rbx, %rsi
	callq	_dprintk
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %r12
	cmpq	%r15, (%r12)
	movq	%r15, %r14
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	jne	LBB0_3
## %bb.2:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	xorl	%esi, %esi
	callq	_spin_lock_irqsave
	movq	-56(%rbp), %r14                 ## 8-byte Reload
LBB0_3:
	movq	_NR_RX_DESC@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_4
## %bb.5:
	xorl	%r15d, %r15d
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	_REAL_RX_BUF_SIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	$16, %rsi
	movq	%rbx, %rdi
	movq	%r14, %rdx
	callq	___netdev_alloc_skb
	movq	%rax, %r13
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_14
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	(%r13), %rbx
	movq	%rbx, %rdi
	movl	$16, %esi
	callq	_PTR_ALIGN
	subq	%rax, %rbx
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	_skb_reserve
	cmpq	%r14, (%r12)
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_spin_lock_irqsave
LBB0_9:                                 ##   in Loop: Header=BB0_6 Depth=1
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	_ns83820_add_rx_skb
	movq	%rax, %rbx
	cmpq	%r14, (%r12)
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	xorl	%esi, %esi
	callq	_spin_unlock_irqrestore
	movq	-56(%rbp), %r14                 ## 8-byte Reload
LBB0_11:                                ##   in Loop: Header=BB0_6 Depth=1
	testq	%rbx, %rbx
	jne	LBB0_12
## %bb.13:                              ##   in Loop: Header=BB0_6 Depth=1
	incl	%r15d
	movq	_NR_RX_DESC@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r15d
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	jb	LBB0_6
	jmp	LBB0_14
LBB0_4:
	xorl	%r15d, %r15d
LBB0_14:
	cmpq	%r14, (%r12)
	jne	LBB0_16
LBB0_15:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	xorl	%esi, %esi
	callq	_spin_unlock_irqrestore
LBB0_16:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	xorl	%ecx, %ecx
	testl	%r15d, %r15d
	cmovnel	%ecx, %eax
LBB0_17:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	movl	$1, %r15d
	cmpq	%r14, (%r12)
	je	LBB0_15
	jmp	LBB0_16
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"rx_refill(%p)\n"

	.comm	_GFP_ATOMIC,8,3                 ## @GFP_ATOMIC
	.comm	_NR_RX_DESC,4,2                 ## @NR_RX_DESC
	.comm	_REAL_RX_BUF_SIZE,8,3           ## @REAL_RX_BUF_SIZE
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_rx_refill
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rx_refill
_rx_refill:                             ; @rx_refill
	.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	x19, x1
	mov	x21, x0
	bl	_PRIV
	mov	x20, x0
	bl	_nr_rx_empty
	cmp	w0, #3
	cset	w0, lt
	bl	_unlikely
	cbz	x0, LBB0_2
; %bb.1:
	mov	w0, #0
	b	LBB0_18
LBB0_2:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x21
	bl	_dprintk
Lloh2:
	adrp	x24, _GFP_ATOMIC@GOTPAGE
Lloh3:
	ldr	x24, [x24, _GFP_ATOMIC@GOTPAGEOFF]
	ldr	x8, [x24]
	cmp	x8, x19
	b.ne	LBB0_4
; %bb.3:
	mov	x0, x20
	mov	x1, #0
	bl	_spin_lock_irqsave
LBB0_4:
Lloh4:
	adrp	x26, _NR_RX_DESC@GOTPAGE
Lloh5:
	ldr	x26, [x26, _NR_RX_DESC@GOTPAGEOFF]
	ldr	w8, [x26]
	cbz	w8, LBB0_13
; %bb.5:
	mov	w25, #0
Lloh6:
	adrp	x27, _REAL_RX_BUF_SIZE@GOTPAGE
Lloh7:
	ldr	x27, [x27, _REAL_RX_BUF_SIZE@GOTPAGEOFF]
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x27]
	add	x1, x8, #16
	mov	x0, x21
	mov	x2, x19
	bl	___netdev_alloc_skb
	mov	x22, x0
	cmp	x0, #0
	cset	w0, eq
	bl	_unlikely
	cbnz	x0, LBB0_15
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x23, [x22]
	mov	x0, x23
	mov	w1, #16
	bl	_PTR_ALIGN
	sub	x1, x23, x0
	mov	x0, x22
	bl	_skb_reserve
	ldr	x8, [x24]
	cmp	x8, x19
	b.eq	LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x20
	mov	x1, #0
	bl	_spin_lock_irqsave
LBB0_9:                                 ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x20
	mov	x1, x22
	bl	_ns83820_add_rx_skb
	mov	x22, x0
	ldr	x8, [x24]
	cmp	x8, x19
	b.eq	LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x20
	mov	x1, #0
	bl	_spin_unlock_irqrestore
LBB0_11:                                ;   in Loop: Header=BB0_6 Depth=1
	cbnz	x22, LBB0_14
; %bb.12:                               ;   in Loop: Header=BB0_6 Depth=1
	add	w25, w25, #1
	ldr	w8, [x26]
	cmp	w25, w8
	b.lo	LBB0_6
	b	LBB0_15
LBB0_13:
	mov	w25, #0
	b	LBB0_15
LBB0_14:
	mov	w25, #1
LBB0_15:
	ldr	x8, [x24]
	cmp	x8, x19
	b.ne	LBB0_17
; %bb.16:
	mov	x0, x20
	mov	x1, #0
	bl	_spin_unlock_irqrestore
LBB0_17:
Lloh8:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	cmp	w25, #0
	csneg	w0, wzr, w8, ne
LBB0_18:
	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	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"rx_refill(%p)\n"

	.comm	_GFP_ATOMIC,8,3                 ; @GFP_ATOMIC
	.comm	_NR_RX_DESC,4,2                 ; @NR_RX_DESC
	.comm	_REAL_RX_BUF_SIZE,8,3           ; @REAL_RX_BUF_SIZE
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_rx_refill
.subsections_via_symbols
