	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hclge_set_vlan_tx_offload_cfg
_hclge_set_vlan_tx_offload_cfg:         ## @hclge_set_vlan_tx_offload_cfg
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	8(%rdi), %r15
	movq	_HCLGE_OPC_VLAN_PORT_TX_CFG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-40(%rbp), %r14
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_hclge_cmd_setup_basic_desc
	movq	-40(%rbp), %r12
	movl	68(%rbx), %edi
	callq	_cpu_to_le16
	movq	%rax, 32(%r12)
	movl	64(%rbx), %edi
	callq	_cpu_to_le16
	movq	%rax, 24(%r12)
	movl	16(%r12), %edi
	movq	_HCLGE_ACCEPT_TAG1_B@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	cmpq	$0, 56(%rbx)
	setne	%dl
	callq	_hnae3_set_bit
	movl	16(%r12), %edi
	movq	_HCLGE_ACCEPT_UNTAG1_B@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	cmpq	$0, 48(%rbx)
	setne	%dl
	callq	_hnae3_set_bit
	movl	16(%r12), %edi
	movq	_HCLGE_ACCEPT_TAG2_B@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	cmpq	$0, 40(%rbx)
	setne	%dl
	callq	_hnae3_set_bit
	movl	16(%r12), %edi
	movq	_HCLGE_ACCEPT_UNTAG2_B@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	cmpq	$0, 32(%rbx)
	setne	%dl
	callq	_hnae3_set_bit
	movl	16(%r12), %edi
	movq	_HCLGE_PORT_INS_TAG1_EN_B@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	cmpq	$0, 24(%rbx)
	setne	%dl
	callq	_hnae3_set_bit
	movl	16(%r12), %edi
	movq	_HCLGE_PORT_INS_TAG2_EN_B@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	cmpq	$0, 16(%rbx)
	setne	%dl
	callq	_hnae3_set_bit
	movl	16(%r12), %edi
	movq	_HCLGE_CFG_NIC_ROCE_SEL_B@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	callq	_hnae3_set_bit
	movl	(%rbx), %ecx
	movq	_HCLGE_VF_NUM_PER_CMD@GOTPCREL(%rip), %rsi
	movl	%ecx, %eax
	xorl	%edx, %edx
	divl	(%rsi)
	movl	%eax, (%r12)
	movl	%ecx, %eax
	xorl	%edx, %edx
	divl	(%rsi)
	movl	%edx, %eax
	movq	_HCLGE_VF_NUM_PER_BYTE@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edi
	xorl	%edx, %edx
	divl	%edi
	movl	%eax, %esi
	movl	%ecx, %eax
	xorl	%edx, %edx
	divl	%edi
	movl	%edx, %ecx
	movl	$1, %eax
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %eax
	movq	8(%r12), %rcx
	movl	%eax, (%rcx,%rsi,4)
	leaq	8(%r15), %rdi
	movq	%r14, %rsi
	movl	$1, %edx
	callq	_hclge_cmd_send
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movq	(%r15), %rdi
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edx
	callq	_dev_err
LBB0_2:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HCLGE_OPC_VLAN_PORT_TX_CFG,4,2 ## @HCLGE_OPC_VLAN_PORT_TX_CFG
	.comm	_HCLGE_ACCEPT_TAG1_B,4,2        ## @HCLGE_ACCEPT_TAG1_B
	.comm	_HCLGE_ACCEPT_UNTAG1_B,4,2      ## @HCLGE_ACCEPT_UNTAG1_B
	.comm	_HCLGE_ACCEPT_TAG2_B,4,2        ## @HCLGE_ACCEPT_TAG2_B
	.comm	_HCLGE_ACCEPT_UNTAG2_B,4,2      ## @HCLGE_ACCEPT_UNTAG2_B
	.comm	_HCLGE_PORT_INS_TAG1_EN_B,4,2   ## @HCLGE_PORT_INS_TAG1_EN_B
	.comm	_HCLGE_PORT_INS_TAG2_EN_B,4,2   ## @HCLGE_PORT_INS_TAG2_EN_B
	.comm	_HCLGE_CFG_NIC_ROCE_SEL_B,4,2   ## @HCLGE_CFG_NIC_ROCE_SEL_B
	.comm	_HCLGE_VF_NUM_PER_CMD,4,2       ## @HCLGE_VF_NUM_PER_CMD
	.comm	_HCLGE_VF_NUM_PER_BYTE,4,2      ## @HCLGE_VF_NUM_PER_BYTE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Send port txvlan cfg command fail, ret =%d\n"

	.no_dead_strip	_hclge_set_vlan_tx_offload_cfg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hclge_set_vlan_tx_offload_cfg
_hclge_set_vlan_tx_offload_cfg:         ; @hclge_set_vlan_tx_offload_cfg
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x0
	ldr	x20, [x0, #8]
Lloh0:
	adrp	x8, _HCLGE_OPC_VLAN_PORT_TX_CFG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HCLGE_OPC_VLAN_PORT_TX_CFG@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x0, sp, #8
	mov	w2, #0
	bl	_hclge_cmd_setup_basic_desc
	ldr	x21, [sp, #8]
	ldr	w0, [x19, #68]
	bl	_cpu_to_le16
	str	x0, [x21, #32]
	ldr	w0, [x19, #64]
	bl	_cpu_to_le16
	str	x0, [x21, #24]
	ldr	w0, [x21, #16]
Lloh3:
	adrp	x8, _HCLGE_ACCEPT_TAG1_B@GOTPAGE
Lloh4:
	ldr	x8, [x8, _HCLGE_ACCEPT_TAG1_B@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	ldr	x8, [x19, #56]
	cmp	x8, #0
	cset	w2, ne
	bl	_hnae3_set_bit
	ldr	w0, [x21, #16]
Lloh6:
	adrp	x8, _HCLGE_ACCEPT_UNTAG1_B@GOTPAGE
Lloh7:
	ldr	x8, [x8, _HCLGE_ACCEPT_UNTAG1_B@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	ldr	x8, [x19, #48]
	cmp	x8, #0
	cset	w2, ne
	bl	_hnae3_set_bit
	ldr	w0, [x21, #16]
Lloh9:
	adrp	x8, _HCLGE_ACCEPT_TAG2_B@GOTPAGE
Lloh10:
	ldr	x8, [x8, _HCLGE_ACCEPT_TAG2_B@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	ldr	x8, [x19, #40]
	cmp	x8, #0
	cset	w2, ne
	bl	_hnae3_set_bit
	ldr	w0, [x21, #16]
Lloh12:
	adrp	x8, _HCLGE_ACCEPT_UNTAG2_B@GOTPAGE
Lloh13:
	ldr	x8, [x8, _HCLGE_ACCEPT_UNTAG2_B@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	ldr	x8, [x19, #32]
	cmp	x8, #0
	cset	w2, ne
	bl	_hnae3_set_bit
	ldr	w0, [x21, #16]
Lloh15:
	adrp	x8, _HCLGE_PORT_INS_TAG1_EN_B@GOTPAGE
Lloh16:
	ldr	x8, [x8, _HCLGE_PORT_INS_TAG1_EN_B@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	ldr	x8, [x19, #24]
	cmp	x8, #0
	cset	w2, ne
	bl	_hnae3_set_bit
	ldr	w0, [x21, #16]
Lloh18:
	adrp	x8, _HCLGE_PORT_INS_TAG2_EN_B@GOTPAGE
Lloh19:
	ldr	x8, [x8, _HCLGE_PORT_INS_TAG2_EN_B@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	ldr	x8, [x19, #16]
	cmp	x8, #0
	cset	w2, ne
	bl	_hnae3_set_bit
	ldr	w0, [x21, #16]
Lloh21:
	adrp	x8, _HCLGE_CFG_NIC_ROCE_SEL_B@GOTPAGE
Lloh22:
	ldr	x8, [x8, _HCLGE_CFG_NIC_ROCE_SEL_B@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	mov	w2, #0
	bl	_hnae3_set_bit
	ldr	w8, [x19]
Lloh24:
	adrp	x9, _HCLGE_VF_NUM_PER_CMD@GOTPAGE
Lloh25:
	ldr	x9, [x9, _HCLGE_VF_NUM_PER_CMD@GOTPAGEOFF]
	ldr	w10, [x9]
	udiv	w10, w8, w10
	str	w10, [x21]
	ldr	w9, [x9]
	udiv	w10, w8, w9
	msub	w9, w10, w9, w8
Lloh26:
	adrp	x10, _HCLGE_VF_NUM_PER_BYTE@GOTPAGE
Lloh27:
	ldr	x10, [x10, _HCLGE_VF_NUM_PER_BYTE@GOTPAGEOFF]
Lloh28:
	ldr	w10, [x10]
	udiv	w9, w9, w10
	udiv	w11, w8, w10
	msub	w8, w11, w10, w8
	mov	w10, #1
	lsl	w8, w10, w8
	ldr	x10, [x21, #8]
	str	w8, [x10, w9, uxtw #2]
	add	x0, x20, #8
	add	x1, sp, #8
	mov	w2, #1
	bl	_hclge_cmd_send
	mov	x19, x0
	cbz	w0, LBB0_2
; %bb.1:
	ldr	x0, [x20]
Lloh29:
	adrp	x1, l_.str@PAGE
Lloh30:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x19
	bl	_dev_err
LBB0_2:
	mov	x0, x19
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_HCLGE_OPC_VLAN_PORT_TX_CFG,4,2 ; @HCLGE_OPC_VLAN_PORT_TX_CFG
	.comm	_HCLGE_ACCEPT_TAG1_B,4,2        ; @HCLGE_ACCEPT_TAG1_B
	.comm	_HCLGE_ACCEPT_UNTAG1_B,4,2      ; @HCLGE_ACCEPT_UNTAG1_B
	.comm	_HCLGE_ACCEPT_TAG2_B,4,2        ; @HCLGE_ACCEPT_TAG2_B
	.comm	_HCLGE_ACCEPT_UNTAG2_B,4,2      ; @HCLGE_ACCEPT_UNTAG2_B
	.comm	_HCLGE_PORT_INS_TAG1_EN_B,4,2   ; @HCLGE_PORT_INS_TAG1_EN_B
	.comm	_HCLGE_PORT_INS_TAG2_EN_B,4,2   ; @HCLGE_PORT_INS_TAG2_EN_B
	.comm	_HCLGE_CFG_NIC_ROCE_SEL_B,4,2   ; @HCLGE_CFG_NIC_ROCE_SEL_B
	.comm	_HCLGE_VF_NUM_PER_CMD,4,2       ; @HCLGE_VF_NUM_PER_CMD
	.comm	_HCLGE_VF_NUM_PER_BYTE,4,2      ; @HCLGE_VF_NUM_PER_BYTE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Send port txvlan cfg command fail, ret =%d\n"

	.no_dead_strip	_hclge_set_vlan_tx_offload_cfg
.subsections_via_symbols
