	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bnad_cq_prepare_skb
_bnad_cq_prepare_skb:                   ## @bnad_cq_prepare_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r15d
	movq	%rdx, %r14
	movq	%rdi, %rbx
	movq	8(%rdi), %r13
	movl	(%rsi), %edi
	callq	_BNAD_RXBUF_IS_PAGE
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movq	%rbx, %rdi
	callq	_napi_get_frags
	movq	%rax, %rbx
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	xorl	%ebx, %ebx
	jmp	LBB0_5
LBB0_4:
	movq	8(%r14), %rbx
	xorl	%edi, %edi
	testq	%rbx, %rbx
	sete	%dil
	callq	_BUG_ON
	movq	8(%r13), %r12
	movq	_dma_addr@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_dma_unmap_addr
	movq	(%r14), %rdx
	movq	_DMA_FROM_DEVICE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_dma_unmap_single
	movq	%rbx, %rdi
	movl	%r15d, %esi
	callq	_skb_put
	movl	(%r13), %esi
	movq	%rbx, %rdi
	callq	_eth_type_trans
	movl	%eax, (%rbx)
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%r14)
	jmp	LBB0_5
LBB0_3:
	movq	8(%r13), %r12
	movq	_dma_addr@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_dma_unmap_addr
	movq	(%r14), %rdx
	movq	_DMA_FROM_DEVICE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_dma_unmap_page
	movq	%rbx, %rdi
	callq	_skb_shinfo
	movl	(%rax), %esi
	movq	16(%r14), %rdx
	movl	24(%r14), %ecx
	movq	%rbx, %rdi
	movl	%r15d, %r8d
	callq	_skb_fill_page_desc
	addl	%r15d, 12(%rbx)
	addl	%r15d, 8(%rbx)
	addl	%r15d, 4(%rbx)
	movq	$0, 16(%r14)
	movq	$0, (%r14)
LBB0_5:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_dma_addr,4,2                   ## @dma_addr
	.comm	_DMA_FROM_DEVICE,4,2            ## @DMA_FROM_DEVICE
	.no_dead_strip	_bnad_cq_prepare_skb
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bnad_cq_prepare_skb
_bnad_cq_prepare_skb:                   ; @bnad_cq_prepare_skb
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x21, x3
	mov	x19, x2
	mov	x20, x0
	ldr	x23, [x0, #8]
	ldr	w0, [x1]
	bl	_BNAD_RXBUF_IS_PAGE
	cbz	x0, LBB0_3
; %bb.1:
	mov	x0, x20
	bl	_napi_get_frags
	mov	x20, x0
	cmp	x0, #0
	cset	w0, eq
	bl	_unlikely
	cbz	x0, LBB0_4
; %bb.2:
	mov	x20, #0
	b	LBB0_5
LBB0_3:
	ldr	x20, [x19, #8]
	cmp	x20, #0
	cset	w0, eq
	bl	_BUG_ON
	ldr	x22, [x23, #8]
Lloh0:
	adrp	x8, _dma_addr@GOTPAGE
Lloh1:
	ldr	x8, [x8, _dma_addr@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_dma_unmap_addr
	mov	x1, x0
	ldr	x2, [x19]
Lloh3:
	adrp	x8, _DMA_FROM_DEVICE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DMA_FROM_DEVICE@GOTPAGEOFF]
Lloh5:
	ldr	w3, [x8]
	mov	x0, x22
	bl	_dma_unmap_single
	mov	x0, x20
	mov	x1, x21
	bl	_skb_put
	ldr	w1, [x23]
	mov	x0, x20
	bl	_eth_type_trans
	str	w0, [x20]
	stp	xzr, xzr, [x19]
	b	LBB0_5
LBB0_4:
	ldr	x22, [x23, #8]
Lloh6:
	adrp	x8, _dma_addr@GOTPAGE
Lloh7:
	ldr	x8, [x8, _dma_addr@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_dma_unmap_addr
	mov	x1, x0
	ldr	x2, [x19]
Lloh9:
	adrp	x8, _DMA_FROM_DEVICE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _DMA_FROM_DEVICE@GOTPAGEOFF]
Lloh11:
	ldr	w3, [x8]
	mov	x0, x22
	bl	_dma_unmap_page
	mov	x0, x20
	bl	_skb_shinfo
	ldr	w1, [x0]
	ldr	x2, [x19, #16]
	ldr	w3, [x19, #24]
	mov	x0, x20
	mov	x4, x21
	bl	_skb_fill_page_desc
	ldr	w8, [x20, #12]
	add	w8, w8, w21
	str	w8, [x20, #12]
	ldur	d0, [x20, #4]
	dup.2s	v1, w21
	add.2s	v0, v0, v1
	stur	d0, [x20, #4]
	str	xzr, [x19, #16]
	str	xzr, [x19]
LBB0_5:
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_dma_addr,4,2                   ; @dma_addr
	.comm	_DMA_FROM_DEVICE,4,2            ; @DMA_FROM_DEVICE
	.no_dead_strip	_bnad_cq_prepare_skb
.subsections_via_symbols
