	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hclge_set_app_loopback
_hclge_set_app_loopback:                ## @hclge_set_app_loopback
	.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, %r14d
	movq	%rdi, %r15
	movq	_HCLGE_OPC_CONFIG_MAC_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-32(%rbp), %rbx
	movq	%rbx, %rdi
	movl	$1, %edx
	callq	_hclge_cmd_setup_basic_desc
	leaq	8(%r15), %rdi
	movq	%rbx, %rsi
	movl	$1, %edx
	callq	_hclge_cmd_send
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	%eax, %ebx
	movq	(%r15), %rdi
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edx
	callq	_dev_err
	movl	%ebx, %eax
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movl	%r14d, %edi
	callq	_hclge_set_app_loopback.cold.1
	xorl	%eax, %eax
	jmp	LBB0_3
	.cfi_endproc
                                        ## -- End function
	.p2align	4, 0x90                         ## -- Begin function hclge_set_app_loopback.cold.1
_hclge_set_app_loopback.cold.1:         ## @hclge_set_app_loopback.cold.1
	.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	%edi, %r14d
	callq	_le32_to_cpu
	movl	%eax, %r15d
	movq	_HCLGE_MAC_APP_LP_B@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%ebx, %ebx
	testl	%r14d, %r14d
	setne	%bl
	movl	%r15d, %edi
	movl	%ebx, %edx
	callq	_hnae3_set_bit
	movq	_HCLGE_MAC_TX_EN_B@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r15d, %edi
	movl	%ebx, %edx
	callq	_hnae3_set_bit
	movq	_HCLGE_MAC_RX_EN_B@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r15d, %edi
	movl	%ebx, %edx
	callq	_hnae3_set_bit
	movl	%r15d, %edi
	callq	_cpu_to_le32
	ud2
	.cfi_endproc
                                        ## -- End function
	.comm	_HCLGE_OPC_CONFIG_MAC_MODE,4,2  ## @HCLGE_OPC_CONFIG_MAC_MODE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"mac loopback get fail, ret =%d.\n"

	.comm	_HCLGE_MAC_APP_LP_B,4,2         ## @HCLGE_MAC_APP_LP_B
	.comm	_HCLGE_MAC_TX_EN_B,4,2          ## @HCLGE_MAC_TX_EN_B
	.comm	_HCLGE_MAC_RX_EN_B,4,2          ## @HCLGE_MAC_RX_EN_B
	.no_dead_strip	_hclge_set_app_loopback
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hclge_set_app_loopback
_hclge_set_app_loopback:                ; @hclge_set_app_loopback
	.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, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _HCLGE_OPC_CONFIG_MAC_MODE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HCLGE_OPC_CONFIG_MAC_MODE@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x0, sp, #8
	mov	w2, #1
	bl	_hclge_cmd_setup_basic_desc
	add	x0, x20, #8
	add	x1, sp, #8
	mov	w2, #1
	bl	_hclge_cmd_send
	cbz	w0, LBB0_2
; %bb.1:
	mov	x21, x0
	ldr	x0, [x20]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x21
	bl	_dev_err
	mov	x0, x21
	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
LBB0_2:
	mov	x0, x19
	bl	_hclge_set_app_loopback.cold.1
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.p2align	2                               ; -- Begin function hclge_set_app_loopback.cold.1
_hclge_set_app_loopback.cold.1:         ; @hclge_set_app_loopback.cold.1
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	bl	_le32_to_cpu
	mov	x20, x0
Lloh5:
	adrp	x8, _HCLGE_MAC_APP_LP_B@GOTPAGE
Lloh6:
	ldr	x8, [x8, _HCLGE_MAC_APP_LP_B@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	cmp	w19, #0
	cset	w19, ne
	mov	x2, x19
	bl	_hnae3_set_bit
Lloh8:
	adrp	x8, _HCLGE_MAC_TX_EN_B@GOTPAGE
Lloh9:
	ldr	x8, [x8, _HCLGE_MAC_TX_EN_B@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	bl	_OUTLINED_FUNCTION_0
Lloh11:
	adrp	x8, _HCLGE_MAC_RX_EN_B@GOTPAGE
Lloh12:
	ldr	x8, [x8, _HCLGE_MAC_RX_EN_B@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	bl	_OUTLINED_FUNCTION_0
	mov	x0, x20
	bl	_cpu_to_le32
	brk	#0x1
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.p2align	2                               ; -- Begin function OUTLINED_FUNCTION_0
_OUTLINED_FUNCTION_0:                   ; @OUTLINED_FUNCTION_0 Thunk
	.cfi_startproc
; %bb.0:
	mov	x0, x20
	mov	x2, x19
	b	_hnae3_set_bit
	.cfi_endproc
                                        ; -- End function
	.comm	_HCLGE_OPC_CONFIG_MAC_MODE,4,2  ; @HCLGE_OPC_CONFIG_MAC_MODE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"mac loopback get fail, ret =%d.\n"

	.comm	_HCLGE_MAC_APP_LP_B,4,2         ; @HCLGE_MAC_APP_LP_B
	.comm	_HCLGE_MAC_TX_EN_B,4,2          ; @HCLGE_MAC_TX_EN_B
	.comm	_HCLGE_MAC_RX_EN_B,4,2          ; @HCLGE_MAC_RX_EN_B
	.no_dead_strip	_hclge_set_app_loopback
.subsections_via_symbols
