	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hns3_nic_reuse_page
_hns3_nic_reuse_page:                   ## @hns3_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, %r12
	movl	%ecx, %ebx
	movq	%rdx, %r13
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	movq	%rdi, %r15
	movq	(%rdx), %rax
	movq	8(%rdx), %rcx
	movl	(%rcx,%rax,4), %edi
	callq	_le16_to_cpu
	movl	%eax, %r14d
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	movq	%r13, %rdi
	callq	_hns3_buf_size
	movq	%rax, %r13
	movl	12(%r12), %edx
	movslq	%ebx, %rax
	movq	(%r12), %rcx
	addq	%rax, %rcx
	subl	%eax, %r14d
	movq	%r15, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movl	%r14d, %r8d
	movq	%r13, %r9
	callq	_skb_add_rx_frag
	movl	12(%r12), %edi
	callq	_page_to_nid
	movq	%rax, %rbx
	xorl	%eax, %eax
	callq	_numa_mem_id
	xorl	%edi, %edi
	cmpq	%rax, %rbx
	setne	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_1
LBB0_9:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	(%r12), %rbx
	testq	%rbx, %rbx
	jne	LBB0_4
## %bb.2:
	movl	12(%r12), %edi
	callq	_page_count
	cmpl	$1, %eax
	jg	LBB0_9
## %bb.3:
	movq	(%r12), %rbx
LBB0_4:
	addq	%r13, %rbx
	movq	%rbx, (%r12)
	addq	%r13, %rbx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_hns3_page_size
	cmpq	%rax, %rbx
	jle	LBB0_5
## %bb.6:
	movl	12(%r12), %edi
	callq	_page_count
	cmpl	$1, %eax
	jne	LBB0_9
## %bb.7:
	movl	$1, 8(%r12)
	movq	$0, (%r12)
	jmp	LBB0_8
LBB0_5:
	movl	$1, 8(%r12)
LBB0_8:
	movl	12(%r12), %edi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_get_page                       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_hns3_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 hns3_nic_reuse_page
_hns3_nic_reuse_page:                   ; @hns3_nic_reuse_page
	.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, x4
	mov	x22, x3
	mov	x20, x2
	mov	x23, x1
	mov	x24, x0
	ldp	x9, x8, [x2]
	ldr	w0, [x8, x9, lsl #2]
	bl	_le16_to_cpu
	mov	x25, x0
	mov	x0, x20
	bl	_hns3_buf_size
	mov	x21, x0
	ldr	w2, [x19, #12]
	ldr	x8, [x19]
	add	x3, x8, w22, sxtw
	sub	w4, w25, w22
	mov	x0, x24
	mov	x1, x23
	mov	x5, x21
	bl	_skb_add_rx_frag
	ldr	w0, [x19, #12]
	bl	_page_to_nid
	mov	x22, x0
	bl	_numa_mem_id
	cmp	x22, x0
	cset	w0, ne
	bl	_unlikely
	cbz	x0, LBB0_2
LBB0_1:
	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
LBB0_2:
	ldr	x8, [x19]
	cbnz	x8, LBB0_5
; %bb.3:
	ldr	w0, [x19, #12]
	bl	_page_count
	cmp	w0, #1
	b.gt	LBB0_1
; %bb.4:
	ldr	x8, [x19]
LBB0_5:
	add	x8, x8, x21
	add	x21, x8, x21
	str	x8, [x19]
	mov	x0, x20
	bl	_hns3_page_size
	cmp	x21, x0
	b.le	LBB0_8
; %bb.6:
	ldr	w0, [x19, #12]
	bl	_page_count
	cmp	w0, #1
	b.ne	LBB0_1
; %bb.7:
	mov	w8, #1
	str	w8, [x19, #8]
	str	xzr, [x19]
	b	LBB0_9
LBB0_8:
	mov	w8, #1
	str	w8, [x19, #8]
LBB0_9:
	ldr	w0, [x19, #12]
	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	_get_page
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_hns3_nic_reuse_page
.subsections_via_symbols
