	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hns_nic_reuse_page
_hns_nic_reuse_page:                    ## @hns_nic_reuse_page
	.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	%r8, -56(%rbp)                  ## 8-byte Spill
	movl	%ecx, %r14d
	movq	%rdx, %r13
	movl	%esi, -48(%rbp)                 ## 4-byte Spill
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	cmpl	$8191, (%rax)                   ## imm = 0x1FFF
	jg	LBB0_1
## %bb.2:
	movq	%r13, %rdi
	callq	_hnae_buf_size
	movq	_HNS_BUFFER_SIZE_2048@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	sete	%bl
	jmp	LBB0_3
LBB0_1:
	xorl	%ebx, %ebx
LBB0_3:
	movq	(%r13), %rax
	movq	8(%r13), %rcx
	movl	(%rcx,%rax,4), %edi
	callq	_le16_to_cpu
	movl	%eax, %r12d
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	testb	%bl, %bl
	je	LBB0_5
## %bb.4:
	movq	%r13, %rdi
	callq	_hnae_buf_size
	movq	%rax, %r13
                                        ## implicit-def: $r15d
	jmp	LBB0_6
LBB0_5:
	movq	_L1_CACHE_BYTES@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r12d, %edi
	callq	_ALIGN
	movl	%eax, %ebx
	movq	%r13, %rdi
	callq	_hnae_page_size
	movq	%rax, %r15
	movq	%r13, %rdi
	movq	%rbx, %r13
	callq	_hnae_buf_size
	subl	%eax, %r15d
LBB0_6:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	8(%rax), %edx
	subl	%r14d, %r12d
	addl	(%rax), %r14d
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	movl	%r14d, %ecx
	movq	%rax, %r14
	movl	%r12d, %r8d
	movl	%r13d, %r9d
	callq	_skb_add_rx_frag
	movl	8(%r14), %edi
	callq	_page_to_nid
	movq	%rax, %rbx
	xorl	%eax, %eax
	callq	_numa_node_id
	xorl	%edi, %edi
	cmpq	%rax, %rbx
	setne	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_7
LBB0_12:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	cmpb	$0, -44(%rbp)                   ## 1-byte Folded Reload
	je	LBB0_11
## %bb.8:
	movl	8(%r14), %edi
	callq	_page_count
	xorl	%edi, %edi
	cmpl	$1, %eax
	sete	%dil
	callq	_likely
	testq	%rax, %rax
	je	LBB0_12
## %bb.9:
	xorl	%r13d, (%r14)
	jmp	LBB0_10
LBB0_11:
	addl	(%r14), %r13d
	movl	%r13d, (%r14)
	cmpl	%r15d, %r13d
	jg	LBB0_12
LBB0_10:
	movl	$1, 4(%r14)
	movl	8(%r14), %edi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_get_page                       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
	.comm	_HNS_BUFFER_SIZE_2048,8,3       ## @HNS_BUFFER_SIZE_2048
	.comm	_L1_CACHE_BYTES,4,2             ## @L1_CACHE_BYTES
	.no_dead_strip	_hns_nic_reuse_page
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hns_nic_reuse_page
_hns_nic_reuse_page:                    ; @hns_nic_reuse_page
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x19, x4
	mov	x22, x3
	mov	x24, x2
	mov	x20, x1
	mov	x23, x0
Lloh0:
	adrp	x8, _PAGE_SIZE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PAGE_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, #2, lsl #12                 ; =8192
	b.ge	LBB0_2
; %bb.1:
	mov	x0, x24
	bl	_hnae_buf_size
Lloh3:
	adrp	x8, _HNS_BUFFER_SIZE_2048@GOTPAGE
Lloh4:
	ldr	x8, [x8, _HNS_BUFFER_SIZE_2048@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x0, x8
	cset	w27, eq
	b	LBB0_3
LBB0_2:
	mov	w27, #0
LBB0_3:
	ldp	x9, x8, [x24]
	ldr	w0, [x8, x9, lsl #2]
	bl	_le16_to_cpu
	mov	x25, x0
	cbz	w27, LBB0_5
; %bb.4:
	mov	x0, x24
	bl	_hnae_buf_size
	mov	x21, x0
                                        ; implicit-def: $w24
	b	LBB0_6
LBB0_5:
Lloh6:
	adrp	x8, _L1_CACHE_BYTES@GOTPAGE
Lloh7:
	ldr	x8, [x8, _L1_CACHE_BYTES@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	x0, x25
	bl	_ALIGN
	mov	x21, x0
	mov	x0, x24
	bl	_hnae_page_size
	mov	x26, x0
	mov	x0, x24
	bl	_hnae_buf_size
	sub	w24, w26, w0
LBB0_6:
	ldr	w2, [x19, #8]
	ldr	w8, [x19]
	add	w3, w8, w22
	sub	w4, w25, w22
	mov	x0, x23
	mov	x1, x20
	mov	x5, x21
	bl	_skb_add_rx_frag
	ldr	w0, [x19, #8]
	bl	_page_to_nid
	mov	x20, x0
	bl	_numa_node_id
	cmp	x20, x0
	cset	w0, ne
	bl	_unlikely
	cbz	x0, LBB0_8
LBB0_7:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_8:
	cbz	w27, LBB0_11
; %bb.9:
	ldr	w0, [x19, #8]
	bl	_page_count
	cmp	w0, #1
	cset	w0, eq
	bl	_likely
	cbz	x0, LBB0_7
; %bb.10:
	ldr	w8, [x19]
	eor	w8, w8, w21
	str	w8, [x19]
	b	LBB0_12
LBB0_11:
	ldr	w8, [x19]
	add	w8, w8, w21
	cmp	w8, w24
	str	w8, [x19]
	b.gt	LBB0_7
LBB0_12:
	mov	w8, #1
	str	w8, [x19, #4]
	ldr	w0, [x19, #8]
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_get_page
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
	.comm	_HNS_BUFFER_SIZE_2048,8,3       ; @HNS_BUFFER_SIZE_2048
	.comm	_L1_CACHE_BYTES,4,2             ; @L1_CACHE_BYTES
	.no_dead_strip	_hns_nic_reuse_page
.subsections_via_symbols
