	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fm10k_add_rx_frag
_fm10k_add_rx_frag:                     ## @fm10k_add_rx_frag
	.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	%rcx, %r13
	movl	%esi, %r14d
	movq	%rdi, %r12
	movq	8(%rdi), %r15
	movq	%r15, %rdi
	callq	_page_address
	movslq	(%r12), %rbx
	addq	%rax, %rbx
	movq	_FM10K_RX_BUFSZ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movq	%r13, %rdi
	callq	_skb_is_nonlinear
	movl	%eax, %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_1
LBB0_6:
	movq	%r13, %rdi
	callq	_skb_shinfo
	movl	(%rax), %esi
	movq	_PAGE_MASK@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	notq	%rcx
	andq	%rbx, %rcx
	movq	%r13, %rdi
	movq	%r15, %rdx
	movl	%r14d, %r8d
	movl	-52(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %r9d
	callq	_skb_add_rx_frag
	movq	%r12, %rdi
	movq	%r15, %rsi
	movl	%ebx, %edx
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_fm10k_can_reuse_rx_page        ## TAILCALL
LBB0_1:
	movq	_FM10K_RX_HDR_LEN@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	cmpl	%r14d, (%rax)
	setae	%dil
	callq	_likely
	testq	%rax, %rax
	je	LBB0_5
## %bb.2:
	movq	%r13, %rdi
	movl	%r14d, %esi
	callq	___skb_put
	movl	%eax, %r12d
	movl	%r14d, %edi
	movl	$8, %esi
	callq	_ALIGN
	movl	%r12d, %edi
	movq	%rbx, %rsi
	movl	%eax, %edx
	callq	_memcpy
	movq	%r15, %rdi
	callq	_fm10k_page_is_reserved
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_likely
	movq	%rax, %rcx
	movl	$1, %eax
	testq	%rcx, %rcx
	jne	LBB0_4
## %bb.3:
	movq	%r15, %rdi
	callq	___free_page
	xorl	%eax, %eax
LBB0_4:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movl	(%r13), %edi
	movq	_FM10K_RX_HDR_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rsi
	callq	_eth_get_headlen
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	%r13, %rdi
	movl	%eax, %esi
	callq	___skb_put
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movl	$8, %esi
	callq	_ALIGN
	movl	-48(%rbp), %edi                 ## 4-byte Reload
	movq	%rbx, %rsi
	movl	%eax, %edx
	callq	_memcpy
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movl	%ecx, %eax
	addq	%rax, %rbx
	subl	%ecx, %r14d
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_FM10K_RX_BUFSZ,4,2             ## @FM10K_RX_BUFSZ
	.comm	_FM10K_RX_HDR_LEN,4,2           ## @FM10K_RX_HDR_LEN
	.comm	_PAGE_MASK,8,3                  ## @PAGE_MASK
	.no_dead_strip	_fm10k_add_rx_frag
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fm10k_add_rx_frag
_fm10k_add_rx_frag:                     ; @fm10k_add_rx_frag
	.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	x23, x3
	mov	x20, x1
	mov	x21, x0
	ldr	x19, [x0, #8]
	mov	x0, x19
	bl	_page_address
	ldrsw	x8, [x21]
	add	x22, x0, x8
Lloh0:
	adrp	x8, _FM10K_RX_BUFSZ@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FM10K_RX_BUFSZ@GOTPAGEOFF]
Lloh2:
	ldr	w24, [x8]
	mov	x0, x23
	bl	_skb_is_nonlinear
	bl	_unlikely
	cbz	x0, LBB0_2
LBB0_1:
	mov	x0, x23
	bl	_skb_shinfo
	ldr	w1, [x0]
Lloh3:
	adrp	x8, _PAGE_MASK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PAGE_MASK@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	bic	x3, x22, x8
	mov	x0, x23
	mov	x2, x19
	mov	x4, x20
	mov	x5, x24
	bl	_skb_add_rx_frag
	mov	x0, x21
	mov	x1, x19
	mov	x2, x24
	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
	b	_fm10k_can_reuse_rx_page
LBB0_2:
Lloh6:
	adrp	x25, _FM10K_RX_HDR_LEN@GOTPAGE
Lloh7:
	ldr	x25, [x25, _FM10K_RX_HDR_LEN@GOTPAGEOFF]
	ldr	w8, [x25]
	cmp	w8, w20
	cset	w0, hs
	bl	_likely
	cbz	x0, LBB0_5
; %bb.3:
	mov	x0, x23
	mov	x1, x20
	bl	___skb_put
	mov	x21, x0
	mov	x0, x20
	mov	w1, #8
	bl	_ALIGN
	mov	x2, x0
	mov	x0, x21
	mov	x1, x22
	bl	_memcpy
	mov	x0, x19
	bl	_fm10k_page_is_reserved
	cmp	w0, #0
	cset	w0, eq
	bl	_likely
	cbz	x0, LBB0_6
; %bb.4:
	mov	w0, #1
	b	LBB0_7
LBB0_5:
	ldr	w0, [x23]
	ldr	w2, [x25]
	mov	x1, x22
	bl	_eth_get_headlen
	mov	x25, x0
	mov	x0, x23
	mov	x1, x25
	bl	___skb_put
	mov	x26, x0
	mov	x0, x25
	mov	w1, #8
	bl	_ALIGN
	mov	x2, x0
	mov	x0, x26
	mov	x1, x22
	bl	_memcpy
	add	x22, x22, w25, uxtw
	sub	w20, w20, w25
	b	LBB0_1
LBB0_6:
	mov	x0, x19
	bl	___free_page
	mov	w0, #0
LBB0_7:
	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	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_FM10K_RX_BUFSZ,4,2             ; @FM10K_RX_BUFSZ
	.comm	_FM10K_RX_HDR_LEN,4,2           ; @FM10K_RX_HDR_LEN
	.comm	_PAGE_MASK,8,3                  ; @PAGE_MASK
	.no_dead_strip	_fm10k_add_rx_frag
.subsections_via_symbols
