	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hclge_configure
_hclge_configure:                       ## @hclge_configure
	.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	$48, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	leaq	-80(%rbp), %rsi
	callq	_hclge_get_cfg
	testl	%eax, %eax
	je	LBB0_3
## %bb.1:
	movl	%eax, %r14d
	movq	16(%r12), %rdi
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_2
LBB0_3:
	movl	-40(%rbp), %eax
	movl	%eax, 96(%r12)
	movq	$0, 88(%r12)
	movl	-44(%rbp), %eax
	movl	%eax, 84(%r12)
	movl	-48(%rbp), %eax
	movl	%eax, 80(%r12)
	movl	60(%r12), %edi
	movl	-52(%rbp), %esi
	callq	_ether_addr_copy
	movl	-56(%rbp), %eax
	movl	%eax, 56(%r12)
	movl	-60(%rbp), %eax
	movl	%eax, 52(%r12)
	movl	-64(%rbp), %eax
	movl	%eax, 76(%r12)
	movl	%eax, 72(%r12)
	movl	$1, 32(%r12)
	movl	-80(%rbp), %eax
	movl	%eax, (%r12)
	movq	$0, 40(%r12)
	movl	-68(%rbp), %eax
	movl	%eax, 68(%r12)
	movq	%r12, %rdi
	callq	_hnae3_dev_fd_supported
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movl	$1, 4(%r12)
	movq	_HCLGE_FD_RULE_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 64(%r12)
LBB0_5:
	movl	-72(%rbp), %edi
	leaq	48(%r12), %rsi
	callq	_hclge_parse_speed
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:
	movl	%eax, %r14d
	movq	16(%r12), %rdi
	leaq	L_.str.1(%rip), %rsi
LBB0_2:
	movl	%r14d, %edx
	callq	_dev_err
LBB0_18:
	movl	%r14d, %eax
	addq	$48, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movl	-76(%rbp), %esi
	movq	%r12, %rdi
	callq	_hclge_parse_link_mode
	movl	(%r12), %edx
	testl	%edx, %edx
	jle	LBB0_9
## %bb.8:
	movq	_HNAE3_MAX_TC@GOTPCREL(%rip), %rax
	cmpl	(%rax), %edx
	jle	LBB0_10
LBB0_9:
	movq	16(%r12), %rdi
	leaq	L_.str.2(%rip), %rsi
	callq	_dev_warn
	movl	$1, (%r12)
LBB0_10:
	movq	%r12, %rdi
	callq	_hnae3_dev_dcb_supported
	testl	%eax, %eax
	je	LBB0_11
## %bb.12:
	movl	(%r12), %eax
	jmp	LBB0_13
LBB0_11:
	movl	$1, (%r12)
	xorl	%eax, %eax
LBB0_13:
	movl	%eax, 8(%r12)
	movl	$1, 36(%r12)
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movl	28(%r12), %edi
	movl	%ebx, %esi
	movl	$1, %edx
	callq	_hnae3_set_bit
	incl	%ebx
	cmpl	36(%r12), %ebx
	jb	LBB0_14
## %bb.15:
	movq	_HCLGE_FLAG_TC_BASE_SCH_MODE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%r12)
	movq	%r12, %rdi
	callq	_hclge_init_kdump_kernel_config
	movq	16(%r12), %rdi
	callq	_dev_to_node
	movl	%eax, %edi
	callq	_cpumask_of_node
	movl	%eax, %edi
	callq	_cpumask_weight
	xorl	%r14d, %r14d
	movl	$0, %ebx
	testl	%eax, %eax
	je	LBB0_17
## %bb.16:
	movl	%eax, %r15d
	movq	16(%r12), %rax
	movl	4(%rax), %edi
	callq	_PCI_FUNC
	xorl	%edx, %edx
	divl	%r15d
	movl	%edx, %ebx
LBB0_17:
	movq	16(%r12), %rdi
	callq	_dev_to_node
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_cpumask_local_spread
	addq	$12, %r12
	movl	%eax, %edi
	movq	%r12, %rsi
	callq	_cpumask_set_cpu
	jmp	LBB0_18
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"get mac mode error %d.\n"

	.comm	_HCLGE_FD_RULE_NONE,4,2         ## @HCLGE_FD_RULE_NONE
L_.str.1:                               ## @.str.1
	.asciz	"Get wrong speed ret=%d.\n"

	.comm	_HNAE3_MAX_TC,4,2               ## @HNAE3_MAX_TC
L_.str.2:                               ## @.str.2
	.asciz	"TC num = %d.\n"

	.comm	_HCLGE_FLAG_TC_BASE_SCH_MODE,4,2 ## @HCLGE_FLAG_TC_BASE_SCH_MODE
	.no_dead_strip	_hclge_configure
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hclge_configure
_hclge_configure:                       ; @hclge_configure
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x19, x0
	mov	x1, sp
	bl	_hclge_get_cfg
	cbz	w0, LBB0_2
; %bb.1:
	mov	x20, x0
	ldr	x0, [x19, #16]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_6
LBB0_2:
	ldr	w8, [sp, #40]
	str	w8, [x19, #96]
	str	xzr, [x19, #88]
	ldr	d0, [sp, #32]
	str	d0, [x19, #80]
	ldr	w0, [x19, #60]
	ldr	w1, [sp, #28]
	bl	_ether_addr_copy
	ldur	d0, [sp, #20]
	stur	d0, [x19, #52]
	ldp	w10, w8, [sp, #12]
	stp	w8, w8, [x19, #72]
	mov	w20, #1
	str	w20, [x19, #32]
	ldr	w9, [sp]
	str	w9, [x19]
	str	xzr, [x19, #40]
	str	w10, [x19, #68]
	mov	x0, x19
	bl	_hnae3_dev_fd_supported
	cbz	x0, LBB0_4
; %bb.3:
	str	w20, [x19, #4]
Lloh2:
	adrp	x8, _HCLGE_FD_RULE_NONE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _HCLGE_FD_RULE_NONE@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	str	w8, [x19, #64]
LBB0_4:
	ldr	w0, [sp, #8]
	add	x1, x19, #48
	bl	_hclge_parse_speed
	cbz	w0, LBB0_8
; %bb.5:
	mov	x20, x0
	ldr	x0, [x19, #16]
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_6:
	mov	x2, x20
	bl	_dev_err
LBB0_7:
	mov	x0, x20
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_8:
	ldr	w1, [sp, #4]
	mov	x0, x19
	bl	_hclge_parse_link_mode
	ldr	w2, [x19]
	cmp	w2, #1
	b.lt	LBB0_10
; %bb.9:
Lloh7:
	adrp	x8, _HNAE3_MAX_TC@GOTPAGE
Lloh8:
	ldr	x8, [x8, _HNAE3_MAX_TC@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	cmp	w2, w8
	b.le	LBB0_11
LBB0_10:
	ldr	x0, [x19, #16]
Lloh10:
	adrp	x1, l_.str.2@PAGE
Lloh11:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_dev_warn
	mov	w8, #1
	str	w8, [x19]
LBB0_11:
	mov	x0, x19
	bl	_hnae3_dev_dcb_supported
	cbz	w0, LBB0_13
; %bb.12:
	ldr	w8, [x19]
	b	LBB0_14
LBB0_13:
	mov	w8, #0
	mov	w9, #1
	str	w9, [x19]
LBB0_14:
	mov	w20, #0
	str	w8, [x19, #8]
	mov	w8, #1
	str	w8, [x19, #36]
LBB0_15:                                ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x19, #28]
	mov	x1, x20
	mov	w2, #1
	bl	_hnae3_set_bit
	add	w20, w20, #1
	ldr	w8, [x19, #36]
	cmp	w20, w8
	b.lo	LBB0_15
; %bb.16:
Lloh12:
	adrp	x8, _HCLGE_FLAG_TC_BASE_SCH_MODE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _HCLGE_FLAG_TC_BASE_SCH_MODE@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	str	w8, [x19, #24]
	mov	x0, x19
	bl	_hclge_init_kdump_kernel_config
	ldr	x0, [x19, #16]
	bl	_dev_to_node
	bl	_cpumask_of_node
	bl	_cpumask_weight
	mov	x20, x0
	cbz	w0, LBB0_18
; %bb.17:
	ldr	x8, [x19, #16]
	ldr	w0, [x8, #4]
	bl	_PCI_FUNC
	udiv	w8, w0, w20
	msub	w20, w8, w20, w0
LBB0_18:
	ldr	x0, [x19, #16]
	bl	_dev_to_node
	mov	x1, x0
	mov	x0, x20
	bl	_cpumask_local_spread
	add	x1, x19, #12
	bl	_cpumask_set_cpu
	mov	w20, #0
	b	LBB0_7
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"get mac mode error %d.\n"

	.comm	_HCLGE_FD_RULE_NONE,4,2         ; @HCLGE_FD_RULE_NONE
l_.str.1:                               ; @.str.1
	.asciz	"Get wrong speed ret=%d.\n"

	.comm	_HNAE3_MAX_TC,4,2               ; @HNAE3_MAX_TC
l_.str.2:                               ; @.str.2
	.asciz	"TC num = %d.\n"

	.comm	_HCLGE_FLAG_TC_BASE_SCH_MODE,4,2 ; @HCLGE_FLAG_TC_BASE_SCH_MODE
	.no_dead_strip	_hclge_configure
.subsections_via_symbols
