	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hns3_skb_need_linearized
_hns3_skb_need_linearized:              ## @hns3_skb_need_linearized
	.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	%rdi, %r14
	movq	_HNS3_MAX_BD_NUM_NORMAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	leal	-1(%rax), %r13d
	xorl	%r12d, %r12d
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	cmpl	$2, %eax
	jl	LBB0_3
## %bb.1:
	movl	%r13d, %r15d
	shlq	$2, %r15
	xorl	%ebx, %ebx
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	callq	_skb_shinfo
	movq	8(%rax), %rdi
	addq	%rbx, %rdi
	callq	_skb_frag_size
	addl	%eax, %r12d
	addq	$4, %rbx
	cmpq	%rbx, %r15
	jne	LBB0_2
LBB0_3:
	movl	%r12d, %r15d
	movq	%r14, %rdi
	callq	_skb_headlen
	movq	%rax, %rbx
	addq	%r15, %rbx
	movq	%r14, %rdi
	callq	_skb_shinfo
	movl	(%rax), %r15d
	movq	%r14, %rdi
	callq	_hns3_gso_hdr_len
	addq	%r15, %rax
	movl	$1, %r15d
	cmpq	%rax, %rbx
	jl	LBB0_12
## %bb.4:
	movq	%r14, %rdi
	callq	_skb_shinfo
	cmpl	(%rax), %r12d
	jb	LBB0_12
## %bb.5:
	movq	%r14, %rdi
	callq	_skb_shinfo
	movl	4(%rax), %eax
	subl	-48(%rbp), %eax                 ## 4-byte Folded Reload
	testl	%eax, %eax
	jle	LBB0_10
## %bb.6:
	movslq	%r13d, %rax
	shlq	$2, %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	xorl	%r15d, %r15d
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	callq	_skb_shinfo
	movq	8(%rax), %rdi
	addq	%r15, %rdi
	callq	_skb_frag_size
	movl	%r12d, %ebx
	subl	%eax, %ebx
	movq	%r14, %rdi
	callq	_skb_shinfo
	movq	8(%rax), %rdi
	addq	-56(%rbp), %rdi                 ## 8-byte Folded Reload
	addq	%r15, %rdi
	callq	_skb_frag_size
	movq	%rax, %r12
	addl	%ebx, %r12d
	movq	%r14, %rdi
	callq	_skb_shinfo
	cmpl	(%rax), %r12d
	jb	LBB0_11
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	incq	%r13
	movq	%r14, %rdi
	callq	_skb_shinfo
	movl	4(%rax), %eax
	subl	-48(%rbp), %eax                 ## 4-byte Folded Reload
	cltq
	addq	$4, %r15
	cmpq	%rax, %r13
	jl	LBB0_7
LBB0_10:
	xorl	%r15d, %r15d
	jmp	LBB0_12
LBB0_11:
	movl	$1, %r15d
LBB0_12:
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HNS3_MAX_BD_NUM_NORMAL,4,2     ## @HNS3_MAX_BD_NUM_NORMAL
	.no_dead_strip	_hns3_skb_need_linearized
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hns3_skb_need_linearized
_hns3_skb_need_linearized:              ; @hns3_skb_need_linearized
	.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	x19, x0
Lloh0:
	adrp	x8, _HNS3_MAX_BD_NUM_NORMAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HNS3_MAX_BD_NUM_NORMAL@GOTPAGEOFF]
Lloh2:
	ldr	w20, [x8]
	sub	w22, w20, #1
	cmp	w20, #2
	b.lt	LBB0_3
; %bb.1:
	mov	x23, #0
	mov	w21, #0
	lsl	x24, x22, #2
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_skb_shinfo
	ldr	x8, [x0, #8]
	add	x0, x8, x23
	bl	_skb_frag_size
	add	w21, w21, w0
	add	x23, x23, #4
	cmp	x24, x23
	b.ne	LBB0_2
	b	LBB0_4
LBB0_3:
	mov	w21, #0
LBB0_4:
	mov	x0, x19
	bl	_skb_headlen
	add	x23, x0, w21, uxtw
	mov	x0, x19
	bl	_skb_shinfo
	ldr	w24, [x0]
	mov	x0, x19
	bl	_hns3_gso_hdr_len
	add	x8, x0, x24
	cmp	x23, x8
	b.lt	LBB0_6
; %bb.5:
	mov	x0, x19
	bl	_skb_shinfo
	ldr	w8, [x0]
	cmp	w21, w8
	b.hs	LBB0_8
LBB0_6:
	mov	w0, #1
LBB0_7:
	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
LBB0_8:
	mov	x0, x19
	bl	_skb_shinfo
	ldr	w8, [x0, #4]
	sub	w8, w8, w20
	cmp	w8, #1
	b.lt	LBB0_12
; %bb.9:
	mov	x23, #0
	mov	x24, #0
                                        ; kill: def $w22 killed $w22 killed $x22 def $x22
	sbfiz	x22, x22, #2, #32
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_skb_shinfo
	ldr	x8, [x0, #8]
	add	x0, x8, x23
	bl	_skb_frag_size
	sub	w21, w21, w0
	mov	x0, x19
	bl	_skb_shinfo
	ldr	x8, [x0, #8]
	add	x8, x8, x22
	add	x0, x8, x23
	bl	_skb_frag_size
	add	w21, w21, w0
	mov	x0, x19
	bl	_skb_shinfo
	ldr	w8, [x0]
	cmp	w21, w8
	b.lo	LBB0_6
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	add	x24, x24, #1
	mov	x0, x19
	bl	_skb_shinfo
	ldr	w8, [x0, #4]
	sub	w8, w8, w20
	add	x23, x23, #4
	cmp	x24, w8, sxtw
	b.lt	LBB0_10
LBB0_12:
	mov	w0, #0
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_HNS3_MAX_BD_NUM_NORMAL,4,2     ; @HNS3_MAX_BD_NUM_NORMAL
	.no_dead_strip	_hns3_skb_need_linearized
.subsections_via_symbols
