	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ehea_refill_rq_def
_ehea_refill_rq_def:                    ## @ehea_refill_rq_def
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, -48(%rbp)                 ## 4-byte Spill
	movl	%r8d, -64(%rbp)                 ## 4-byte Spill
	movl	%ecx, %r12d
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	(%rdi), %rax
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	movq	16(%rdi), %rax
	movq	(%rax), %r15
	addl	(%rsi), %r12d
	movq	16(%rsi), %r13
	movl	$0, (%rsi)
	movq	___EHEA_STOP_XFER@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_ehea_driver_flags@GOTPCREL(%rip), %rsi
	callq	_test_bit
	movl	%eax, %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movl	%r12d, (%rbx)
LBB0_2:
	xorl	%r15d, %r15d
LBB0_3:
	movl	%r15d, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	%r13, -88(%rbp)                 ## 8-byte Spill
	movq	%r15, -96(%rbp)                 ## 8-byte Spill
	testl	%r12d, %r12d
	jle	LBB0_2
## %bb.5:
	movl	8(%rbx), %eax
	decl	%eax
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movl	4(%rbx), %ebx
	xorl	%r13d, %r13d
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	movq	%r12, -80(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	-96(%rbp), %rdi                 ## 8-byte Reload
	callq	_netdev_alloc_skb_ip_align
	testq	%rax, %rax
	je	LBB0_11
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	%rax, %r15
	movslq	%ebx, %rax
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	movq	%r15, (%rcx,%rax,8)
	movl	(%r15), %edi
	callq	_ehea_map_vaddr
	cmpl	$-1, %eax
	je	LBB0_13
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	movl	%eax, %r12d
	movq	-104(%rbp), %rdi                ## 8-byte Reload
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	callq	_ehea_get_next_rwqe
	movq	%rax, %r15
	movq	_EHEA_WR_ID_TYPE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	-64(%rbp), %esi                 ## 4-byte Reload
	callq	_EHEA_BMASK_SET
	movl	%r13d, -68(%rbp)                ## 4-byte Spill
	movq	%r14, %r13
	movl	%eax, %r14d
	movq	_EHEA_WR_ID_INDEX@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%ebx, %esi
	callq	_EHEA_BMASK_SET
	orl	%r14d, %eax
	movq	%r13, %r14
	movl	-68(%rbp), %r13d                ## 4-byte Reload
	movl	%eax, (%r15)
	movl	8(%r14), %eax
	movq	8(%r15), %rcx
	movl	%eax, 8(%rcx)
	movl	%r12d, (%rcx)
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	movl	%esi, 4(%rcx)
	movl	$1, 4(%r15)
	incl	%ebx
	andl	-60(%rbp), %ebx                 ## 4-byte Folded Reload
	incl	%r13d
	movq	-80(%rbp), %r12                 ## 8-byte Reload
	cmpl	%r13d, %r12d
	jne	LBB0_6
## %bb.9:
	xorl	%r15d, %r15d
	movl	%r12d, %r13d
	jmp	LBB0_14
LBB0_11:
	movl	%r12d, %eax
	subl	%r13d, %eax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	movl	8(%rcx), %eax
	negl	%eax
	addl	%r12d, %eax
	addl	$2, %eax
	xorl	%r15d, %r15d
	cmpl	%r13d, %eax
	jne	LBB0_14
## %bb.12:
	movq	16(%r14), %rax
	movq	(%rax), %rdi
	leaq	L_.str(%rip), %rsi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	_netdev_info
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	jmp	LBB0_14
LBB0_13:
	movq	%r15, %rdi
	callq	_dev_consume_skb_any
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	subl	%r13d, %ecx
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	%ecx, (%rax)
	xorl	%r15d, %r15d
LBB0_14:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	%ebx, 4(%rax)
	testl	%r13d, %r13d
	je	LBB0_3
## %bb.15:
	xorl	%eax, %eax
	callq	_iosync
	movq	(%r14), %rdi
	cmpl	$2, -44(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_17
## %bb.16:
	movl	%r13d, %esi
	callq	_ehea_update_rq2a
	jmp	LBB0_3
LBB0_17:
	movl	%r13d, %esi
	callq	_ehea_update_rq3a
	jmp	LBB0_3
	.cfi_endproc
                                        ## -- End function
	.comm	___EHEA_STOP_XFER,4,2           ## @__EHEA_STOP_XFER
	.comm	_ehea_driver_flags,4,2          ## @ehea_driver_flags
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"rq%i ran dry - no mem for skb\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_EHEA_WR_ID_TYPE,4,2            ## @EHEA_WR_ID_TYPE
	.comm	_EHEA_WR_ID_INDEX,4,2           ## @EHEA_WR_ID_INDEX
	.no_dead_strip	_ehea_refill_rq_def
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ehea_refill_rq_def
_ehea_refill_rq_def:                    ; @ehea_refill_rq_def
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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	x24, x5
	mov	x20, x4
	mov	x19, x2
	mov	x22, x1
	mov	x21, x0
	ldr	x8, [x0, #16]
	ldr	x26, [x8]
	ldr	x23, [x0]
	ldr	x28, [x1, #16]
	ldr	w8, [x1]
	add	w25, w8, w3
	str	wzr, [x1]
Lloh0:
	adrp	x8, ___EHEA_STOP_XFER@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___EHEA_STOP_XFER@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x1, _ehea_driver_flags@GOTPAGE
Lloh4:
	ldr	x1, [x1, _ehea_driver_flags@GOTPAGEOFF]
	bl	_test_bit
	bl	_unlikely
	cbz	x0, LBB0_3
; %bb.1:
	mov	w24, #0
	str	w25, [x22]
LBB0_2:
	mov	x0, x24
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_3:
	cmp	w25, #1
	b.lt	LBB0_9
; %bb.4:
	str	x21, [sp, #32]                  ; 8-byte Folded Spill
	str	x23, [sp, #16]                  ; 8-byte Folded Spill
	str	w20, [sp, #28]                  ; 4-byte Folded Spill
	str	w19, [sp, #44]                  ; 4-byte Folded Spill
	mov	w27, #0
	ldp	w23, w8, [x22, #4]
	sub	w8, w8, #1
	str	w8, [sp, #12]                   ; 4-byte Folded Spill
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x26
	mov	x1, x24
	bl	_netdev_alloc_skb_ip_align
	cbz	x0, LBB0_10
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x19, x0
	mov	x21, x26
	mov	x26, x28
	str	x0, [x28, w23, sxtw #3]
	ldr	w0, [x0]
	bl	_ehea_map_vaddr
	cmn	w0, #1
	b.eq	LBB0_12
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x28, x0
	ldr	x0, [sp, #16]                   ; 8-byte Folded Reload
	ldr	w1, [sp, #44]                   ; 4-byte Folded Reload
	bl	_ehea_get_next_rwqe
	mov	x19, x0
Lloh5:
	adrp	x8, _EHEA_WR_ID_TYPE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EHEA_WR_ID_TYPE@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	ldr	w1, [sp, #28]                   ; 4-byte Folded Reload
	bl	_EHEA_BMASK_SET
	mov	x20, x25
	mov	x25, x0
Lloh8:
	adrp	x8, _EHEA_WR_ID_INDEX@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EHEA_WR_ID_INDEX@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	mov	x1, x23
	bl	_EHEA_BMASK_SET
	orr	w8, w0, w25
	mov	x25, x20
	ldr	x9, [sp, #32]                   ; 8-byte Folded Reload
	ldr	w9, [x9, #8]
	ldr	x10, [x19, #8]
	stp	w24, w9, [x10, #4]
	str	w28, [x10]
	str	w8, [x19]
	mov	w8, #1
	str	w8, [x19, #4]
	add	w8, w23, #1
	ldr	w9, [sp, #12]                   ; 4-byte Folded Reload
	and	w23, w8, w9
	sub	w27, w27, #1
	cmn	w20, w27
	mov	x28, x26
	mov	x26, x21
	b.ne	LBB0_5
; %bb.8:
	mov	w24, #0
	b	LBB0_13
LBB0_9:
	mov	w24, #0
	b	LBB0_2
LBB0_10:
	add	w8, w25, w27
	str	w8, [x22]
	ldr	w8, [x22, #8]
	sub	w8, w25, w8
	add	w8, w8, w27
	neg	w25, w27
	cmn	w8, #2
	ldr	w19, [sp, #44]                  ; 4-byte Folded Reload
	ldr	x20, [sp, #32]                  ; 8-byte Folded Reload
	b.ne	LBB0_14
; %bb.11:
	ldr	x8, [x20, #16]
	ldr	x0, [x8]
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x19
	bl	_netdev_info
Lloh13:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	neg	w24, w8
	str	w23, [x22, #4]
	cbnz	w25, LBB0_15
	b	LBB0_2
LBB0_12:
	mov	x0, x19
	bl	_dev_consume_skb_any
	mov	w24, #0
	add	w8, w25, w27
	str	w8, [x22]
	neg	w25, w27
LBB0_13:
	ldr	w19, [sp, #44]                  ; 4-byte Folded Reload
	ldr	x20, [sp, #32]                  ; 8-byte Folded Reload
	str	w23, [x22, #4]
	cbnz	w25, LBB0_15
	b	LBB0_2
LBB0_14:
	mov	w24, #0
	str	w23, [x22, #4]
	cbz	w25, LBB0_2
LBB0_15:
	bl	_iosync
	ldr	x0, [x20]
	mov	x1, x25
	cmp	w19, #2
	b.ne	LBB0_17
; %bb.16:
	bl	_ehea_update_rq2a
	b	LBB0_2
LBB0_17:
	bl	_ehea_update_rq3a
	b	LBB0_2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	___EHEA_STOP_XFER,4,2           ; @__EHEA_STOP_XFER
	.comm	_ehea_driver_flags,4,2          ; @ehea_driver_flags
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"rq%i ran dry - no mem for skb\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_EHEA_WR_ID_TYPE,4,2            ; @EHEA_WR_ID_TYPE
	.comm	_EHEA_WR_ID_INDEX,4,2           ; @EHEA_WR_ID_INDEX
	.no_dead_strip	_ehea_refill_rq_def
.subsections_via_symbols
