	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bnad_rxq_refill_skb
_bnad_rxq_refill_skb:                   ## @bnad_rxq_refill_skb
	.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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	(%rsi), %r13
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	testq	%rdx, %rdx
	je	LBB0_1
## %bb.2:
	movq	%rdi, %rbx
	movq	32(%r14), %rax
	movq	(%rax), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	8(%r14), %rax
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	movq	40(%r14), %rax
	movq	%rax, -112(%rbp)                ## 8-byte Spill
	xorl	%r12d, %r12d
	movq	%r13, %rax
	shlq	$4, %rax
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	leaq	(,%r13,4), %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	movq	%r13, -88(%rbp)                 ## 8-byte Spill
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	-112(%rbp), %rax                ## 8-byte Reload
	movq	(%rax), %r15
	movl	8(%rbx), %edi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	callq	_netdev_alloc_skb_ip_align
	movq	%rax, %r14
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	(%rbx), %rdi
	movl	(%r14), %esi
	movq	_DMA_FROM_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdx
	callq	_dma_map_single
	movq	%r12, -120(%rbp)                ## 8-byte Spill
	movl	%eax, %r13d
	movq	-96(%rbp), %r12                 ## 8-byte Reload
	leaq	(%r15,%r12), %rdi
	movq	%r14, 8(%r15,%r12)
	movl	%eax, %esi
	movl	%eax, %edx
	callq	_dma_unmap_addr_set
	movq	%rbx, (%r15,%r12)
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movq	24(%r14), %rsi
	addq	-80(%rbp), %rsi                 ## 8-byte Folded Reload
	movl	%r13d, %edi
	movq	-88(%rbp), %r13                 ## 8-byte Reload
	movq	-120(%rbp), %r12                ## 8-byte Reload
	callq	_BNA_SET_DMA_ADDR
	movq	%r13, %rdi
	movq	-104(%rbp), %rsi                ## 8-byte Reload
	callq	_BNA_QE_INDX_INC
	incq	%r12
	cmpq	%r12, -56(%rbp)                 ## 8-byte Folded Reload
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	jne	LBB0_3
## %bb.6:
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	jmp	LBB0_7
LBB0_1:
	xorl	%r12d, %r12d
	jmp	LBB0_7
LBB0_4:
	movq	_rxbuf_alloc_failed@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_BNAD_UPDATE_CTR
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movq	32(%r14), %rax
	incl	8(%rax)
LBB0_7:
	movq	%r12, %rdi
	callq	_likely
	testq	%rax, %rax
	je	LBB0_10
## %bb.8:
	movq	%r13, (%r14)
	xorl	%eax, %eax
	callq	_smp_mb
	movq	_BNAD_RXQ_POST_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	16(%r14), %rsi
	callq	_test_bit
	movq	%rax, %rdi
	callq	_likely
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	movq	%r14, %rdi
	callq	_bna_rxq_prod_indx_doorbell
LBB0_10:
	movq	%r12, %rax
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_rxbuf_alloc_failed,4,2         ## @rxbuf_alloc_failed
	.comm	_DMA_FROM_DEVICE,4,2            ## @DMA_FROM_DEVICE
	.comm	_BNAD_RXQ_POST_OK,4,2           ## @BNAD_RXQ_POST_OK
	.no_dead_strip	_bnad_rxq_refill_skb
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bnad_rxq_refill_skb
_bnad_rxq_refill_skb:                   ; @bnad_rxq_refill_skb
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x25, x1
	ldr	x21, [x1]
	cbz	x2, LBB0_5
; %bb.1:
	mov	x23, x2
	mov	x22, x0
	mov	x20, #0
	ldp	x8, x19, [x25, #32]
	ldr	x24, [x8]
	ldr	x8, [x25, #8]
	str	x8, [sp, #8]                    ; 8-byte Folded Spill
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x28, [x19]
	ldr	w0, [x22, #8]
	mov	x1, x24
	bl	_netdev_alloc_skb_ip_align
	mov	x26, x0
	cmp	x0, #0
	cset	w0, eq
	bl	_unlikely
	cbnz	x0, LBB0_6
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x0, [x22]
	ldr	w1, [x26]
Lloh0:
	adrp	x8, _DMA_FROM_DEVICE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DMA_FROM_DEVICE@GOTPAGEOFF]
Lloh2:
	ldr	w3, [x8]
	mov	x2, x24
	bl	_dma_map_single
	mov	x27, x0
	add	x28, x28, x21, lsl #4
	str	x26, [x28, #8]
	mov	x0, x28
	mov	x1, x27
	mov	x2, x27
	bl	_dma_unmap_addr_set
	str	x24, [x28]
	ldr	x8, [x25, #24]
	add	x1, x8, x21, lsl #2
	mov	x0, x27
	bl	_BNA_SET_DMA_ADDR
	mov	x0, x21
	ldr	x1, [sp, #8]                    ; 8-byte Folded Reload
	bl	_BNA_QE_INDX_INC
	add	x20, x20, #1
	cmp	x23, x20
	b.ne	LBB0_2
; %bb.4:
	mov	x20, x23
	b	LBB0_7
LBB0_5:
	mov	x20, #0
	b	LBB0_7
LBB0_6:
Lloh3:
	adrp	x8, _rxbuf_alloc_failed@GOTPAGE
Lloh4:
	ldr	x8, [x8, _rxbuf_alloc_failed@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x22
	bl	_BNAD_UPDATE_CTR
	ldr	x8, [x25, #32]
	ldr	w9, [x8, #8]
	add	w9, w9, #1
	str	w9, [x8, #8]
LBB0_7:
	mov	x0, x20
	bl	_likely
	cbz	x0, LBB0_10
; %bb.8:
	mov	x22, x25
	str	x21, [x22], #16
	bl	_smp_mb
Lloh6:
	adrp	x8, _BNAD_RXQ_POST_OK@GOTPAGE
Lloh7:
	ldr	x8, [x8, _BNAD_RXQ_POST_OK@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	mov	x1, x22
	bl	_test_bit
	bl	_likely
	cbz	x0, LBB0_10
; %bb.9:
	mov	x0, x25
	bl	_bna_rxq_prod_indx_doorbell
LBB0_10:
	mov	x0, x20
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_rxbuf_alloc_failed,4,2         ; @rxbuf_alloc_failed
	.comm	_DMA_FROM_DEVICE,4,2            ; @DMA_FROM_DEVICE
	.comm	_BNAD_RXQ_POST_OK,4,2           ; @BNAD_RXQ_POST_OK
	.no_dead_strip	_bnad_rxq_refill_skb
.subsections_via_symbols
