	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hclge_mac_init
_hclge_mac_init:                        ## @hclge_mac_init
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	movl	$1, (%rdi)
	movq	_HCLGE_MAC_FULL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%edx, 56(%rdi)
	movl	60(%rdi), %esi
	callq	_hclge_cfg_mac_speed_dup_hw
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	%eax, %r14d
	movq	8(%rbx), %rdi
	leaq	L_.str(%rip), %rsi
LBB0_14:
	movl	%r14d, %edx
	callq	_dev_err
LBB0_15:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_2:
	cmpq	$0, 48(%rbx)
	je	LBB0_5
## %bb.3:
	movl	40(%rbx), %esi
	movq	%rbx, %rdi
	callq	_hclge_set_autoneg_en
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	movl	%eax, %r14d
	movq	8(%rbx), %rdi
	leaq	L_.str.1(%rip), %rsi
	jmp	LBB0_14
LBB0_5:
	movq	$0, 32(%rbx)
	movl	24(%rbx), %r14d
	movq	_HNAE3_FEC_USER_DEF@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_BIT
	testl	%r14d, %eax
	je	LBB0_8
## %bb.6:
	movl	24(%rbx), %esi
	movq	%rbx, %rdi
	callq	_hclge_set_fec_hw
	testl	%eax, %eax
	je	LBB0_8
## %bb.7:
	movl	%eax, %r14d
	movq	8(%rbx), %rdi
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_14
LBB0_8:
	movl	16(%rbx), %esi
	movq	%rbx, %rdi
	callq	_hclge_set_mac_mtu
	testl	%eax, %eax
	je	LBB0_10
## %bb.9:
	movl	%eax, %r14d
	movq	8(%rbx), %rdi
	leaq	L_.str.3(%rip), %rsi
	jmp	LBB0_14
LBB0_10:
	movq	%rbx, %rdi
	callq	_hclge_set_default_loopback
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_15
## %bb.11:
	movq	%rbx, %rdi
	callq	_hclge_buffer_alloc
	testl	%eax, %eax
	je	LBB0_12
## %bb.13:
	movl	%eax, %r14d
	movq	8(%rbx), %rdi
	leaq	L_.str.4(%rip), %rsi
	jmp	LBB0_14
LBB0_12:
	xorl	%r14d, %r14d
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.comm	_HCLGE_MAC_FULL,4,2             ## @HCLGE_MAC_FULL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Config mac speed dup fail ret=%d\n"

L_.str.1:                               ## @.str.1
	.asciz	"Config mac autoneg fail ret=%d\n"

	.comm	_HNAE3_FEC_USER_DEF,4,2         ## @HNAE3_FEC_USER_DEF
L_.str.2:                               ## @.str.2
	.asciz	"Fec mode init fail, ret = %d\n"

L_.str.3:                               ## @.str.3
	.asciz	"set mtu failed ret=%d\n"

L_.str.4:                               ## @.str.4
	.asciz	"allocate buffer fail, ret=%d\n"

	.no_dead_strip	_hclge_mac_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hclge_mac_init
_hclge_mac_init:                        ; @hclge_mac_init
	.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
	mov	w8, #1
	str	w8, [x0]
Lloh0:
	adrp	x8, _HCLGE_MAC_FULL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HCLGE_MAC_FULL@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	str	w2, [x0, #56]
	ldr	w1, [x0, #60]
	bl	_hclge_cfg_mac_speed_dup_hw
	cbz	w0, LBB0_4
; %bb.1:
	mov	x20, x0
	ldr	x0, [x19, #8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
LBB0_2:
	mov	x2, x20
	bl	_dev_err
LBB0_3:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_4:
	ldr	x8, [x19, #48]
	cbz	x8, LBB0_7
; %bb.5:
	ldr	w1, [x19, #40]
	mov	x0, x19
	bl	_hclge_set_autoneg_en
	cbz	w0, LBB0_7
; %bb.6:
	mov	x20, x0
	ldr	x0, [x19, #8]
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_2
LBB0_7:
	str	xzr, [x19, #32]
	ldr	w20, [x19, #24]
Lloh7:
	adrp	x8, _HNAE3_FEC_USER_DEF@GOTPAGE
Lloh8:
	ldr	x8, [x8, _HNAE3_FEC_USER_DEF@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	bl	_BIT
	tst	w0, w20
	b.eq	LBB0_10
; %bb.8:
	ldr	w1, [x19, #24]
	mov	x0, x19
	bl	_hclge_set_fec_hw
	cbz	w0, LBB0_10
; %bb.9:
	mov	x20, x0
	ldr	x0, [x19, #8]
Lloh10:
	adrp	x1, l_.str.2@PAGE
Lloh11:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_2
LBB0_10:
	ldr	w1, [x19, #16]
	mov	x0, x19
	bl	_hclge_set_mac_mtu
	cbz	w0, LBB0_12
; %bb.11:
	mov	x20, x0
	ldr	x0, [x19, #8]
Lloh12:
	adrp	x1, l_.str.3@PAGE
Lloh13:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_2
LBB0_12:
	mov	x0, x19
	bl	_hclge_set_default_loopback
	mov	x20, x0
	cbnz	w0, LBB0_3
; %bb.13:
	mov	x0, x19
	bl	_hclge_buffer_alloc
	mov	x20, x0
	cbz	w0, LBB0_3
; %bb.14:
	ldr	x0, [x19, #8]
Lloh14:
	adrp	x1, l_.str.4@PAGE
Lloh15:
	add	x1, x1, l_.str.4@PAGEOFF
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_HCLGE_MAC_FULL,4,2             ; @HCLGE_MAC_FULL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Config mac speed dup fail ret=%d\n"

l_.str.1:                               ; @.str.1
	.asciz	"Config mac autoneg fail ret=%d\n"

	.comm	_HNAE3_FEC_USER_DEF,4,2         ; @HNAE3_FEC_USER_DEF
l_.str.2:                               ; @.str.2
	.asciz	"Fec mode init fail, ret = %d\n"

l_.str.3:                               ; @.str.3
	.asciz	"set mtu failed ret=%d\n"

l_.str.4:                               ; @.str.4
	.asciz	"allocate buffer fail, ret=%d\n"

	.no_dead_strip	_hclge_mac_init
.subsections_via_symbols
