	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hclge_set_fec_hw
_hclge_set_fec_hw:                      ## @hclge_set_fec_hw
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %ebx
	movq	%rdi, %r14
	movq	_HCLGE_OPC_CONFIG_FEC_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-32(%rbp), %rdi
	xorl	%edx, %edx
	callq	_hclge_cmd_setup_basic_desc
	movq	-32(%rbp), %r15
	movq	_HNAE3_FEC_AUTO@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_BIT
	testl	%ebx, %eax
	je	LBB0_2
## %bb.1:
	movl	(%r15), %edi
	movq	_HCLGE_MAC_CFG_FEC_AUTO_EN_B@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$1, %edx
	callq	_hnae3_set_bit
LBB0_2:
	movq	_HNAE3_FEC_RS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_BIT
	testl	%ebx, %eax
	je	LBB0_4
## %bb.3:
	movl	(%r15), %edi
	movq	_HCLGE_MAC_CFG_FEC_MODE_M@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_HCLGE_MAC_CFG_FEC_MODE_S@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_HCLGE_MAC_FEC_RS@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	callq	_hnae3_set_field
LBB0_4:
	movq	_HNAE3_FEC_BASER@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_BIT
	testl	%ebx, %eax
	je	LBB0_6
## %bb.5:
	movl	(%r15), %edi
	movq	_HCLGE_MAC_CFG_FEC_MODE_M@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_HCLGE_MAC_CFG_FEC_MODE_S@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_HCLGE_MAC_FEC_BASER@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	callq	_hnae3_set_field
LBB0_6:
	leaq	8(%r14), %rdi
	leaq	-32(%rbp), %rsi
	movl	$1, %edx
	callq	_hclge_cmd_send
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_8
## %bb.7:
	movq	(%r14), %rdi
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edx
	callq	_dev_err
LBB0_8:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HCLGE_OPC_CONFIG_FEC_MODE,4,2  ## @HCLGE_OPC_CONFIG_FEC_MODE
	.comm	_HNAE3_FEC_AUTO,4,2             ## @HNAE3_FEC_AUTO
	.comm	_HCLGE_MAC_CFG_FEC_AUTO_EN_B,4,2 ## @HCLGE_MAC_CFG_FEC_AUTO_EN_B
	.comm	_HNAE3_FEC_RS,4,2               ## @HNAE3_FEC_RS
	.comm	_HCLGE_MAC_CFG_FEC_MODE_M,4,2   ## @HCLGE_MAC_CFG_FEC_MODE_M
	.comm	_HCLGE_MAC_CFG_FEC_MODE_S,4,2   ## @HCLGE_MAC_CFG_FEC_MODE_S
	.comm	_HCLGE_MAC_FEC_RS,4,2           ## @HCLGE_MAC_FEC_RS
	.comm	_HNAE3_FEC_BASER,4,2            ## @HNAE3_FEC_BASER
	.comm	_HCLGE_MAC_FEC_BASER,4,2        ## @HCLGE_MAC_FEC_BASER
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"set fec mode failed %d.\n"

	.no_dead_strip	_hclge_set_fec_hw
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hclge_set_fec_hw
_hclge_set_fec_hw:                      ; @hclge_set_fec_hw
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _HCLGE_OPC_CONFIG_FEC_MODE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HCLGE_OPC_CONFIG_FEC_MODE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x0, sp, #8
	mov	w2, #0
	bl	_hclge_cmd_setup_basic_desc
	ldr	x21, [sp, #8]
Lloh3:
	adrp	x8, _HNAE3_FEC_AUTO@GOTPAGE
Lloh4:
	ldr	x8, [x8, _HNAE3_FEC_AUTO@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_BIT
	tst	w0, w20
	b.eq	LBB0_2
; %bb.1:
	ldr	w0, [x21]
Lloh6:
	adrp	x8, _HCLGE_MAC_CFG_FEC_AUTO_EN_B@GOTPAGE
Lloh7:
	ldr	x8, [x8, _HCLGE_MAC_CFG_FEC_AUTO_EN_B@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	mov	w2, #1
	bl	_hnae3_set_bit
LBB0_2:
Lloh9:
	adrp	x8, _HNAE3_FEC_RS@GOTPAGE
Lloh10:
	ldr	x8, [x8, _HNAE3_FEC_RS@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	bl	_BIT
Lloh12:
	adrp	x22, _HCLGE_MAC_CFG_FEC_MODE_M@GOTPAGE
Lloh13:
	ldr	x22, [x22, _HCLGE_MAC_CFG_FEC_MODE_M@GOTPAGEOFF]
Lloh14:
	adrp	x23, _HCLGE_MAC_CFG_FEC_MODE_S@GOTPAGE
Lloh15:
	ldr	x23, [x23, _HCLGE_MAC_CFG_FEC_MODE_S@GOTPAGEOFF]
	tst	w0, w20
	b.eq	LBB0_4
; %bb.3:
	ldr	w0, [x21]
	ldr	w1, [x22]
	ldr	w2, [x23]
Lloh16:
	adrp	x8, _HCLGE_MAC_FEC_RS@GOTPAGE
Lloh17:
	ldr	x8, [x8, _HCLGE_MAC_FEC_RS@GOTPAGEOFF]
Lloh18:
	ldr	w3, [x8]
	bl	_hnae3_set_field
LBB0_4:
Lloh19:
	adrp	x8, _HNAE3_FEC_BASER@GOTPAGE
Lloh20:
	ldr	x8, [x8, _HNAE3_FEC_BASER@GOTPAGEOFF]
Lloh21:
	ldr	w0, [x8]
	bl	_BIT
	tst	w0, w20
	b.eq	LBB0_6
; %bb.5:
	ldr	w0, [x21]
	ldr	w1, [x22]
	ldr	w2, [x23]
Lloh22:
	adrp	x8, _HCLGE_MAC_FEC_BASER@GOTPAGE
Lloh23:
	ldr	x8, [x8, _HCLGE_MAC_FEC_BASER@GOTPAGEOFF]
Lloh24:
	ldr	w3, [x8]
	bl	_hnae3_set_field
LBB0_6:
	add	x0, x19, #8
	add	x1, sp, #8
	mov	w2, #1
	bl	_hclge_cmd_send
	mov	x20, x0
	cbz	w0, LBB0_8
; %bb.7:
	ldr	x0, [x19]
Lloh25:
	adrp	x1, l_.str@PAGE
Lloh26:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x20
	bl	_dev_err
LBB0_8:
	mov	x0, x20
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_HCLGE_OPC_CONFIG_FEC_MODE,4,2  ; @HCLGE_OPC_CONFIG_FEC_MODE
	.comm	_HNAE3_FEC_AUTO,4,2             ; @HNAE3_FEC_AUTO
	.comm	_HCLGE_MAC_CFG_FEC_AUTO_EN_B,4,2 ; @HCLGE_MAC_CFG_FEC_AUTO_EN_B
	.comm	_HNAE3_FEC_RS,4,2               ; @HNAE3_FEC_RS
	.comm	_HCLGE_MAC_CFG_FEC_MODE_M,4,2   ; @HCLGE_MAC_CFG_FEC_MODE_M
	.comm	_HCLGE_MAC_CFG_FEC_MODE_S,4,2   ; @HCLGE_MAC_CFG_FEC_MODE_S
	.comm	_HCLGE_MAC_FEC_RS,4,2           ; @HCLGE_MAC_FEC_RS
	.comm	_HNAE3_FEC_BASER,4,2            ; @HNAE3_FEC_BASER
	.comm	_HCLGE_MAC_FEC_BASER,4,2        ; @HCLGE_MAC_FEC_BASER
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"set fec mode failed %d.\n"

	.no_dead_strip	_hclge_set_fec_hw
.subsections_via_symbols
