	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gfar_get_next_rxbuff
_gfar_get_next_rxbuff:                  ## @gfar_get_next_rxbuff
	.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	%rdx, %r12
	movl	%esi, -48(%rbp)                 ## 4-byte Spill
	movq	(%rdi), %rax
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	movq	16(%rdi), %r13
	leaq	(%rax,%rax,2), %r15
	leaq	(,%r15,8), %r14
	addq	%r13, %r14
	movq	8(%r13,%r15,8), %rbx
	xorl	%edi, %edi
	testq	%rdx, %rdx
	sete	%dil
	callq	_likely
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rbx, %rdi
	callq	_page_address
	movslq	(%r14), %rdi
	addq	%rax, %rdi
	movq	_GFAR_SKBFRAG_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_build_skb
	movq	%rax, %r12
	xorl	%edi, %edi
	testq	%rax, %rax
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_3
## %bb.9:
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_gfar_rx_alloc_err
	xorl	%r12d, %r12d
	jmp	LBB0_8
LBB0_1:
	movq	%r14, %rbx
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_4
LBB0_3:
	movq	%r14, %rbx
	movq	_RXBUF_ALIGNMENT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_skb_reserve
	movl	$1, -44(%rbp)                   ## 4-byte Folded Spill
LBB0_4:
	leaq	8(,%r15,8), %rax
	addq	%r13, %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	movl	8(%r14), %edi
	movl	16(%r13,%r15,8), %esi
	movl	(%rbx), %edx
	movq	_GFAR_RXB_TRUESIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_DMA_FROM_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	callq	_dma_sync_single_range_for_cpu
	movq	%rbx, %rdi
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	movq	%r12, %rdx
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	callq	_gfar_add_rx_frag
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_gfar_reuse_rx_page
	jmp	LBB0_7
LBB0_6:
	leaq	16(,%r15,8), %rax
	addq	%r13, %rax
	movl	8(%r14), %edi
	movl	(%rax), %esi
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_DMA_FROM_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	callq	_dma_unmap_page
LBB0_7:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	$0, (%rax)
LBB0_8:
	movq	%r12, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFAR_SKBFRAG_SIZE,4,2          ## @GFAR_SKBFRAG_SIZE
	.comm	_RXBUF_ALIGNMENT,4,2            ## @RXBUF_ALIGNMENT
	.comm	_GFAR_RXB_TRUESIZE,4,2          ## @GFAR_RXB_TRUESIZE
	.comm	_DMA_FROM_DEVICE,4,2            ## @DMA_FROM_DEVICE
	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
	.no_dead_strip	_gfar_get_next_rxbuff
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gfar_get_next_rxbuff
_gfar_get_next_rxbuff:                  ; @gfar_get_next_rxbuff
	.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	x25, [x0, #16]
	ldr	x26, [x0]
	mov	w8, #24
	madd	x21, x26, x8, x25
	mov	x24, x21
	ldr	x23, [x24, #8]!
	cmp	x2, #0
	cset	w0, eq
	bl	_likely
	cbz	x0, LBB0_3
; %bb.1:
	mov	x0, x23
	bl	_page_address
	ldrsw	x8, [x21]
	add	x0, x0, x8
Lloh0:
	adrp	x8, _GFAR_SKBFRAG_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFAR_SKBFRAG_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_build_skb
	mov	x19, x0
	cmp	x0, #0
	cset	w0, eq
	bl	_unlikely
	cbz	x0, LBB0_4
; %bb.2:
	mov	x0, x20
	bl	_gfar_rx_alloc_err
	mov	x19, #0
	b	LBB0_9
LBB0_3:
	mov	w23, #0
	b	LBB0_5
LBB0_4:
Lloh3:
	adrp	x8, _RXBUF_ALIGNMENT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _RXBUF_ALIGNMENT@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_skb_reserve
	mov	w23, #1
LBB0_5:
	ldr	w0, [x20, #8]
	mov	w8, #24
	madd	x25, x26, x8, x25
	ldr	w1, [x25, #16]!
	ldr	w2, [x21]
Lloh6:
	adrp	x8, _GFAR_RXB_TRUESIZE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _GFAR_RXB_TRUESIZE@GOTPAGEOFF]
Lloh8:
	ldr	w3, [x8]
Lloh9:
	adrp	x26, _DMA_FROM_DEVICE@GOTPAGE
Lloh10:
	ldr	x26, [x26, _DMA_FROM_DEVICE@GOTPAGEOFF]
	ldr	w4, [x26]
	bl	_dma_sync_single_range_for_cpu
	mov	x0, x21
	mov	x1, x22
	mov	x2, x19
	mov	x3, x23
	bl	_gfar_add_rx_frag
	cbz	x0, LBB0_7
; %bb.6:
	mov	x0, x20
	mov	x1, x21
	bl	_gfar_reuse_rx_page
	b	LBB0_8
LBB0_7:
	ldr	w0, [x20, #8]
	ldr	w1, [x25]
Lloh11:
	adrp	x8, _PAGE_SIZE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _PAGE_SIZE@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
	ldr	w3, [x26]
	bl	_dma_unmap_page
LBB0_8:
	str	xzr, [x24]
LBB0_9:
	mov	x0, x19
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_GFAR_SKBFRAG_SIZE,4,2          ; @GFAR_SKBFRAG_SIZE
	.comm	_RXBUF_ALIGNMENT,4,2            ; @RXBUF_ALIGNMENT
	.comm	_GFAR_RXB_TRUESIZE,4,2          ; @GFAR_RXB_TRUESIZE
	.comm	_DMA_FROM_DEVICE,4,2            ; @DMA_FROM_DEVICE
	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
	.no_dead_strip	_gfar_get_next_rxbuff
.subsections_via_symbols
