	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hns3_handle_bdinfo
_hns3_handle_bdinfo:                    ## @hns3_handle_bdinfo
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, -72(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r15
	movq	56(%rdi), %rax
	movq	(%rax), %rax
	movq	(%rax), %r13
	movl	(%rdi), %eax
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	movl	4(%r15), %eax
LBB0_2:
	decl	%eax
	movq	48(%r15), %rbx
	cltq
	leaq	(%rax,%rax,4), %r14
	leaq	(%rbx,%r14,4), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movl	16(%rbx,%r14,4), %edi
	callq	_le32_to_cpu
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movl	12(%rbx,%r14,4), %edi
	callq	_le32_to_cpu
	movl	%eax, %r12d
	movl	8(%rbx,%r14,4), %edi
	callq	_le32_to_cpu
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	_NETIF_F_HW_VLAN_CTAG_RX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r13)
	je	LBB0_5
## %bb.3:
	leaq	-56(%rbp), %rcx
	movq	%r15, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movl	%r12d, %edx
	callq	_hns3_parse_vlan_tag
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	_ETH_P_8021Q@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_htons
	movl	-56(%rbp), %edx
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movl	%eax, %esi
	callq	___vlan_hwaccel_put_tag
LBB0_5:
	cmpl	$0, 4(%rbx,%r14,4)
	je	LBB0_6
## %bb.7:
	movq	_HNS3_RXD_TRUNCAT_B@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_BIT
	movl	%eax, %ebx
	movq	_HNS3_RXD_L2E_B@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_BIT
	orl	%ebx, %eax
	xorl	%edi, %edi
	testl	%r12d, %eax
	setne	%dil
	jmp	LBB0_8
LBB0_6:
	movl	$1, %edi
LBB0_8:
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	leaq	16(%r15), %rbx
	movq	%rbx, %rdi
	callq	_u64_stats_update_begin
	movq	_HNS3_RXD_L2E_B@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_BIT
	xorl	%ecx, %ecx
	testl	%r12d, %eax
	setne	%cl
	incl	36(%r15,%rcx,4)
	movq	%rbx, %rdi
	callq	_u64_stats_update_end
	movq	_EFAULT@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_15
LBB0_10:
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	movl	(%r14), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_eth_type_trans
	movl	%eax, 4(%r14)
	movq	%r15, %rdi
	movq	%r14, %rsi
	movl	%r12d, %edx
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	movl	-48(%rbp), %r8d                 ## 4-byte Reload
	callq	_hns3_set_gro_and_checksum
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	leaq	16(%r15), %r14
	movq	%r14, %rdi
	callq	_u64_stats_update_begin
	incl	32(%r15)
	movq	%r14, %rdi
	callq	_u64_stats_update_end
	jmp	LBB0_15
LBB0_12:
	movq	_HNS3_RXD_DMAC_M@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_HNS3_RXD_DMAC_S@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r12d, %edi
	callq	_hnae3_get_field
	movl	%eax, %r12d
	leaq	16(%r15), %rbx
	movq	%rbx, %rdi
	callq	_u64_stats_update_begin
	incl	28(%r15)
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	addl	%ecx, 20(%r15)
	movq	_HNS3_L2_TYPE_MULTICAST@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r12d
	movl	%ecx, %r12d
	jne	LBB0_14
## %bb.13:
	incl	24(%r15)
LBB0_14:
	movq	%rbx, %rdi
	callq	_u64_stats_update_end
	movq	8(%r15), %rax
	addl	%r12d, (%rax)
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	callq	_le32_to_cpu
	movq	%r15, %rdi
	movq	%r14, %rsi
	movl	%eax, %edx
	callq	_hns3_set_rx_skb_rss_type
	xorl	%ebx, %ebx
LBB0_15:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NETIF_F_HW_VLAN_CTAG_RX,4,2    ## @NETIF_F_HW_VLAN_CTAG_RX
	.comm	_ETH_P_8021Q,4,2                ## @ETH_P_8021Q
	.comm	_HNS3_RXD_TRUNCAT_B,4,2         ## @HNS3_RXD_TRUNCAT_B
	.comm	_HNS3_RXD_L2E_B,4,2             ## @HNS3_RXD_L2E_B
	.comm	_EFAULT,4,2                     ## @EFAULT
	.comm	_HNS3_RXD_DMAC_M,4,2            ## @HNS3_RXD_DMAC_M
	.comm	_HNS3_RXD_DMAC_S,4,2            ## @HNS3_RXD_DMAC_S
	.comm	_HNS3_L2_TYPE_MULTICAST,4,2     ## @HNS3_L2_TYPE_MULTICAST
	.no_dead_strip	_hns3_handle_bdinfo
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hns3_handle_bdinfo
_hns3_handle_bdinfo:                    ; @hns3_handle_bdinfo
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x20, x1
	mov	x19, x0
	ldr	x8, [x0, #56]
	ldr	x8, [x8]
	ldr	x23, [x8]
	ldr	w8, [x0]
	cbnz	w8, LBB0_2
; %bb.1:
	ldr	w8, [x19, #4]
LBB0_2:
	sxtw	x8, w8
	sub	x26, x8, #1
	ldr	x27, [x19, #48]
	mov	w8, #20
	madd	x21, x26, x8, x27
	ldr	w0, [x21, #16]
	bl	_le32_to_cpu
	mov	x24, x0
	ldr	w0, [x21, #12]
	bl	_le32_to_cpu
	mov	x22, x0
	ldr	w0, [x21, #8]
	bl	_le32_to_cpu
	mov	x25, x0
	ldr	w8, [x23]
Lloh0:
	adrp	x9, _NETIF_F_HW_VLAN_CTAG_RX@GOTPAGE
Lloh1:
	ldr	x9, [x9, _NETIF_F_HW_VLAN_CTAG_RX@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_5
; %bb.3:
	add	x3, sp, #12
	mov	x0, x19
	mov	x1, x21
	mov	x2, x22
	bl	_hns3_parse_vlan_tag
	cbz	x0, LBB0_5
; %bb.4:
Lloh3:
	adrp	x8, _ETH_P_8021Q@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ETH_P_8021Q@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_htons
	mov	x1, x0
	ldr	w2, [sp, #12]
	mov	x0, x20
	bl	___vlan_hwaccel_put_tag
LBB0_5:
	mov	w8, #20
	madd	x8, x26, x8, x27
	ldr	w8, [x8, #4]
Lloh6:
	adrp	x27, _HNS3_RXD_L2E_B@GOTPAGE
Lloh7:
	ldr	x27, [x27, _HNS3_RXD_L2E_B@GOTPAGEOFF]
	cbz	w8, LBB0_8
; %bb.6:
Lloh8:
	adrp	x8, _HNS3_RXD_TRUNCAT_B@GOTPAGE
Lloh9:
	ldr	x8, [x8, _HNS3_RXD_TRUNCAT_B@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	bl	_BIT
	mov	x26, x0
	ldr	w0, [x27]
	bl	_BIT
	orr	w8, w0, w26
	tst	w8, w22
	cset	w0, ne
	bl	_unlikely
	cbz	x0, LBB0_9
LBB0_7:
	add	x20, x19, #16
	mov	x0, x20
	bl	_u64_stats_update_begin
	ldr	w0, [x27]
	bl	_BIT
	tst	w0, w22
	mov	w8, #40
	mov	w9, #36
	csel	x8, x9, x8, eq
	ldr	w9, [x19, x8]
	add	w9, w9, #1
	str	w9, [x19, x8]
	mov	x0, x20
	bl	_u64_stats_update_end
Lloh11:
	adrp	x8, _EFAULT@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EFAULT@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	neg	w23, w8
	b	LBB0_14
LBB0_8:
	mov	w0, #1
	bl	_unlikely
	cbnz	x0, LBB0_7
LBB0_9:
	ldr	w26, [x20]
	mov	x0, x20
	mov	x1, x23
	bl	_eth_type_trans
	str	w0, [x20, #4]
	mov	x0, x19
	mov	x1, x20
	mov	x2, x22
	mov	x3, x24
	mov	x4, x25
	bl	_hns3_set_gro_and_checksum
	mov	x23, x0
	bl	_unlikely
	cbz	x0, LBB0_11
; %bb.10:
	add	x20, x19, #16
	mov	x0, x20
	bl	_u64_stats_update_begin
	ldr	w8, [x19, #32]
	add	w8, w8, #1
	str	w8, [x19, #32]
	mov	x0, x20
	bl	_u64_stats_update_end
	b	LBB0_14
LBB0_11:
Lloh14:
	adrp	x8, _HNS3_RXD_DMAC_M@GOTPAGE
Lloh15:
	ldr	x8, [x8, _HNS3_RXD_DMAC_M@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
Lloh17:
	adrp	x8, _HNS3_RXD_DMAC_S@GOTPAGE
Lloh18:
	ldr	x8, [x8, _HNS3_RXD_DMAC_S@GOTPAGEOFF]
Lloh19:
	ldr	w2, [x8]
	mov	x0, x22
	bl	_hnae3_get_field
	mov	x23, x0
	add	x22, x19, #16
	mov	x0, x22
	bl	_u64_stats_update_begin
	ldr	w8, [x19, #28]
	add	w8, w8, #1
	str	w8, [x19, #28]
	ldr	w8, [x19, #20]
	add	w8, w8, w26
	str	w8, [x19, #20]
Lloh20:
	adrp	x8, _HNS3_L2_TYPE_MULTICAST@GOTPAGE
Lloh21:
	ldr	x8, [x8, _HNS3_L2_TYPE_MULTICAST@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	cmp	w23, w8
	b.ne	LBB0_13
; %bb.12:
	ldr	w8, [x19, #24]
	add	w8, w8, #1
	str	w8, [x19, #24]
LBB0_13:
	mov	x0, x22
	bl	_u64_stats_update_end
	ldr	x8, [x19, #8]
	ldr	w9, [x8]
	add	w9, w9, w26
	str	w9, [x8]
	ldr	w0, [x21]
	bl	_le32_to_cpu
	mov	x2, x0
	mov	x0, x19
	mov	x1, x20
	bl	_hns3_set_rx_skb_rss_type
	mov	w23, #0
LBB0_14:
	mov	x0, x23
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_NETIF_F_HW_VLAN_CTAG_RX,4,2    ; @NETIF_F_HW_VLAN_CTAG_RX
	.comm	_ETH_P_8021Q,4,2                ; @ETH_P_8021Q
	.comm	_HNS3_RXD_TRUNCAT_B,4,2         ; @HNS3_RXD_TRUNCAT_B
	.comm	_HNS3_RXD_L2E_B,4,2             ; @HNS3_RXD_L2E_B
	.comm	_EFAULT,4,2                     ; @EFAULT
	.comm	_HNS3_RXD_DMAC_M,4,2            ; @HNS3_RXD_DMAC_M
	.comm	_HNS3_RXD_DMAC_S,4,2            ; @HNS3_RXD_DMAC_S
	.comm	_HNS3_L2_TYPE_MULTICAST,4,2     ; @HNS3_L2_TYPE_MULTICAST
	.no_dead_strip	_hns3_handle_bdinfo
.subsections_via_symbols
