	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hclge_cfg_mac_speed_dup_hw
_hclge_cfg_mac_speed_dup_hw:            ## @hclge_cfg_mac_speed_dup_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
	movq	%rdx, %rbx
	movl	%esi, %r15d
	movq	%rdi, %r14
	movq	_HCLGE_OPC_CONFIG_SPEED_DUP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-32(%rbp), %rdi
	xorl	%edx, %edx
	callq	_hclge_cmd_setup_basic_desc
	testq	%rbx, %rbx
	je	LBB0_2
## %bb.1:
	movq	_HCLGE_CFG_DUPLEX_B@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$1, %edx
	callq	_hnae3_set_bit
LBB0_2:
	leal	-128(%r15), %eax
	cmpl	$8, %eax
	jae	LBB0_3
## %bb.4:
	cltq
	leaq	l_switch.table.hclge_cfg_mac_speed_dup_hw(%rip), %rcx
	movl	(%rcx,%rax,4), %ecx
	movq	_HCLGE_CFG_SPEED_M@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_HCLGE_CFG_SPEED_S@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_hnae3_set_field
	movq	_HCLGE_CFG_MAC_SPEED_CHANGE_EN_B@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$1, %edx
	callq	_hnae3_set_bit
	leaq	8(%r14), %rdi
	leaq	-32(%rbp), %rsi
	movl	$1, %edx
	callq	_hclge_cmd_send
	testl	%eax, %eax
	je	LBB0_5
## %bb.6:
	movl	%eax, %ebx
	movq	(%r14), %rdi
	leaq	L_.str.1(%rip), %rsi
	movl	%eax, %edx
	callq	_dev_err
	jmp	LBB0_7
LBB0_3:
	movq	(%r14), %rdi
	leaq	L_.str(%rip), %rsi
	movl	%r15d, %edx
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_7
LBB0_5:
	xorl	%ebx, %ebx
LBB0_7:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HCLGE_OPC_CONFIG_SPEED_DUP,4,2 ## @HCLGE_OPC_CONFIG_SPEED_DUP
	.comm	_HCLGE_CFG_DUPLEX_B,4,2         ## @HCLGE_CFG_DUPLEX_B
	.comm	_HCLGE_CFG_SPEED_M,4,2          ## @HCLGE_CFG_SPEED_M
	.comm	_HCLGE_CFG_SPEED_S,4,2          ## @HCLGE_CFG_SPEED_S
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"invalid speed (%d)\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_HCLGE_CFG_MAC_SPEED_CHANGE_EN_B,4,2 ## @HCLGE_CFG_MAC_SPEED_CHANGE_EN_B
L_.str.1:                               ## @.str.1
	.asciz	"mac speed/duplex config cmd failed %d.\n"

	.no_dead_strip	_hclge_cfg_mac_speed_dup_hw
	.section	__TEXT,__const
	.p2align	2                               ## @switch.table.hclge_cfg_mac_speed_dup_hw
l_switch.table.hclge_cfg_mac_speed_dup_hw:
	.long	4                               ## 0x4
	.long	3                               ## 0x3
	.long	2                               ## 0x2
	.long	0                               ## 0x0
	.long	6                               ## 0x6
	.long	1                               ## 0x1
	.long	7                               ## 0x7
	.long	5                               ## 0x5

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hclge_cfg_mac_speed_dup_hw
_hclge_cfg_mac_speed_dup_hw:            ; @hclge_cfg_mac_speed_dup_hw
	.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	x21, x2
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _HCLGE_OPC_CONFIG_SPEED_DUP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HCLGE_OPC_CONFIG_SPEED_DUP@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x0, sp, #8
	mov	w2, #0
	bl	_hclge_cmd_setup_basic_desc
	cbz	x21, LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _HCLGE_CFG_DUPLEX_B@GOTPAGE
Lloh4:
	ldr	x8, [x8, _HCLGE_CFG_DUPLEX_B@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	w2, #1
	bl	_hnae3_set_bit
LBB0_2:
	sub	w8, w20, #128
	cmp	w8, #8
	b.hs	LBB0_5
; %bb.3:
Lloh6:
	adrp	x9, l_switch.table.hclge_cfg_mac_speed_dup_hw@PAGE
Lloh7:
	add	x9, x9, l_switch.table.hclge_cfg_mac_speed_dup_hw@PAGEOFF
	ldr	w3, [x9, w8, sxtw #2]
Lloh8:
	adrp	x8, _HCLGE_CFG_SPEED_M@GOTPAGE
Lloh9:
	ldr	x8, [x8, _HCLGE_CFG_SPEED_M@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
Lloh11:
	adrp	x8, _HCLGE_CFG_SPEED_S@GOTPAGE
Lloh12:
	ldr	x8, [x8, _HCLGE_CFG_SPEED_S@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
	bl	_hnae3_set_field
Lloh14:
	adrp	x8, _HCLGE_CFG_MAC_SPEED_CHANGE_EN_B@GOTPAGE
Lloh15:
	ldr	x8, [x8, _HCLGE_CFG_MAC_SPEED_CHANGE_EN_B@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	mov	w2, #1
	bl	_hnae3_set_bit
	add	x0, x19, #8
	add	x1, sp, #8
	mov	w2, #1
	bl	_hclge_cmd_send
	mov	x20, x0
	cbz	w0, LBB0_6
; %bb.4:
	ldr	x0, [x19]
Lloh17:
	adrp	x1, l_.str.1@PAGE
Lloh18:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x20
	bl	_dev_err
	b	LBB0_6
LBB0_5:
	ldr	x0, [x19]
Lloh19:
	adrp	x1, l_.str@PAGE
Lloh20:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x20
	bl	_dev_err
Lloh21:
	adrp	x8, _EINVAL@GOTPAGE
Lloh22:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_6:
	mov	x0, x20
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_HCLGE_OPC_CONFIG_SPEED_DUP,4,2 ; @HCLGE_OPC_CONFIG_SPEED_DUP
	.comm	_HCLGE_CFG_DUPLEX_B,4,2         ; @HCLGE_CFG_DUPLEX_B
	.comm	_HCLGE_CFG_SPEED_M,4,2          ; @HCLGE_CFG_SPEED_M
	.comm	_HCLGE_CFG_SPEED_S,4,2          ; @HCLGE_CFG_SPEED_S
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"invalid speed (%d)\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_HCLGE_CFG_MAC_SPEED_CHANGE_EN_B,4,2 ; @HCLGE_CFG_MAC_SPEED_CHANGE_EN_B
l_.str.1:                               ; @.str.1
	.asciz	"mac speed/duplex config cmd failed %d.\n"

	.no_dead_strip	_hclge_cfg_mac_speed_dup_hw
	.section	__TEXT,__const
	.p2align	2                               ; @switch.table.hclge_cfg_mac_speed_dup_hw
l_switch.table.hclge_cfg_mac_speed_dup_hw:
	.long	4                               ; 0x4
	.long	3                               ; 0x3
	.long	2                               ; 0x2
	.long	0                               ; 0x0
	.long	6                               ; 0x6
	.long	1                               ; 0x1
	.long	7                               ; 0x7
	.long	5                               ; 0x5

.subsections_via_symbols
