	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hclge_get_cfg
_hclge_get_cfg:                         ## @hclge_get_cfg
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_HCLGE_PF_CFG_DESC_NUM@GOTPCREL(%rip), %r12
	movl	(%r12), %ebx
	leaq	(,%rbx,8), %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r13
	testq	%rbx, %rbx
	je	LBB0_1
## %bb.2:
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	movq	%r14, -72(%rbp)                 ## 8-byte Spill
	xorl	%r14d, %r14d
	movq	_HCLGE_CFG_RD_LEN_BYTES@GOTPCREL(%rip), %r15
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	movq	%r13, %rbx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rbx), %r13
	movq	_HCLGE_OPC_GET_CFG_PARAM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$1, %edx
	callq	_hclge_cmd_setup_basic_desc
	movq	_HCLGE_CFG_OFFSET_M@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_HCLGE_CFG_OFFSET_S@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	(%r15), %ecx
	imull	%r14d, %ecx
	xorl	%edi, %edi
	callq	_hnae3_set_field
	movq	_HCLGE_CFG_RD_LEN_M@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_HCLGE_CFG_RD_LEN_S@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	(%r15), %eax
	xorl	%edx, %edx
	movq	_HCLGE_CFG_RD_LEN_UNIT@GOTPCREL(%rip), %rdi
	divl	(%rdi)
	xorl	%edi, %edi
	movl	%ecx, %edx
	movl	%eax, %ecx
	callq	_hnae3_set_field
	xorl	%edi, %edi
	callq	_cpu_to_le32
	movl	%eax, (%r13)
	incq	%r14
	movl	(%r12), %edx
	addq	$8, %rbx
	cmpq	%rdx, %r14
	jb	LBB0_3
## %bb.4:
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	jmp	LBB0_5
LBB0_1:
	xorl	%edx, %edx
LBB0_5:
	leaq	8(%r15), %rdi
	movq	%r13, %rsi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_hclge_cmd_send
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:
	movq	(%r15), %rdi
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edx
	callq	_dev_err
	jmp	LBB0_8
LBB0_7:
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_hclge_parse_cfg
LBB0_8:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_10
## %bb.9:
	movl	%ebx, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_HCLGE_PF_CFG_DESC_NUM,4,2      ## @HCLGE_PF_CFG_DESC_NUM
	.comm	_HCLGE_OPC_GET_CFG_PARAM,4,2    ## @HCLGE_OPC_GET_CFG_PARAM
	.comm	_HCLGE_CFG_OFFSET_M,4,2         ## @HCLGE_CFG_OFFSET_M
	.comm	_HCLGE_CFG_OFFSET_S,4,2         ## @HCLGE_CFG_OFFSET_S
	.comm	_HCLGE_CFG_RD_LEN_BYTES,4,2     ## @HCLGE_CFG_RD_LEN_BYTES
	.comm	_HCLGE_CFG_RD_LEN_M,4,2         ## @HCLGE_CFG_RD_LEN_M
	.comm	_HCLGE_CFG_RD_LEN_S,4,2         ## @HCLGE_CFG_RD_LEN_S
	.comm	_HCLGE_CFG_RD_LEN_UNIT,4,2      ## @HCLGE_CFG_RD_LEN_UNIT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"get config failed %d.\n"

	.no_dead_strip	_hclge_get_cfg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hclge_get_cfg
_hclge_get_cfg:                         ; @hclge_get_cfg
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	sub	sp, sp, #32
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh3:
	adrp	x24, _HCLGE_PF_CFG_DESC_NUM@GOTPAGE
Lloh4:
	ldr	x24, [x24, _HCLGE_PF_CFG_DESC_NUM@GOTPAGEOFF]
	ldr	w12, [x24]
	lsl	x8, x12, #3
	mov	x9, x8
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0xffffffff0
	sub	x21, x9, x8
	mov	sp, x21
	cbz	w12, LBB0_4
; %bb.1:
	stp	x20, x19, [x29, #-104]          ; 16-byte Folded Spill
	mov	x23, #0
Lloh7:
	adrp	x25, _HCLGE_CFG_OFFSET_M@GOTPAGE
Lloh8:
	ldr	x25, [x25, _HCLGE_CFG_OFFSET_M@GOTPAGEOFF]
Lloh9:
	adrp	x26, _HCLGE_CFG_OFFSET_S@GOTPAGE
Lloh10:
	ldr	x26, [x26, _HCLGE_CFG_OFFSET_S@GOTPAGEOFF]
Lloh11:
	adrp	x27, _HCLGE_CFG_RD_LEN_BYTES@GOTPAGE
Lloh12:
	ldr	x27, [x27, _HCLGE_CFG_RD_LEN_BYTES@GOTPAGEOFF]
Lloh13:
	adrp	x28, _HCLGE_CFG_RD_LEN_M@GOTPAGE
Lloh14:
	ldr	x28, [x28, _HCLGE_CFG_RD_LEN_M@GOTPAGEOFF]
Lloh15:
	adrp	x19, _HCLGE_CFG_RD_LEN_S@GOTPAGE
Lloh16:
	ldr	x19, [x19, _HCLGE_CFG_RD_LEN_S@GOTPAGEOFF]
	stur	x21, [x29, #-112]               ; 8-byte Folded Spill
	mov	x0, x21
	mov	x20, x21
Lloh17:
	adrp	x21, _HCLGE_CFG_RD_LEN_UNIT@GOTPAGE
Lloh18:
	ldr	x21, [x21, _HCLGE_CFG_RD_LEN_UNIT@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x22, [x20], #8
Lloh19:
	adrp	x8, _HCLGE_OPC_GET_CFG_PARAM@GOTPAGE
Lloh20:
	ldr	x8, [x8, _HCLGE_OPC_GET_CFG_PARAM@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
	mov	w2, #1
	bl	_hclge_cmd_setup_basic_desc
	ldr	w1, [x25]
	ldr	w2, [x26]
	ldr	w8, [x27]
	mul	w3, w8, w23
	mov	w0, #0
	bl	_hnae3_set_field
	ldr	w1, [x28]
	ldr	w2, [x19]
	ldr	w8, [x27]
	ldr	w9, [x21]
	udiv	w3, w8, w9
	mov	w0, #0
	bl	_hnae3_set_field
	mov	w0, #0
	bl	_cpu_to_le32
	str	w0, [x22]
	add	x23, x23, #1
	ldr	w2, [x24]
	mov	x0, x20
	cmp	x23, x2
	b.lo	LBB0_2
; %bb.3:
	ldp	x20, x19, [x29, #-104]          ; 16-byte Folded Reload
	ldur	x21, [x29, #-112]               ; 8-byte Folded Reload
	b	LBB0_5
LBB0_4:
	mov	w2, #0
LBB0_5:
	add	x0, x20, #8
	mov	x1, x21
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_hclge_cmd_send
	mov	x22, x0
	cbz	w0, LBB0_7
; %bb.6:
	ldr	x0, [x20]
Lloh22:
	adrp	x1, l_.str@PAGE
Lloh23:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x22
	bl	_dev_err
	b	LBB0_8
LBB0_7:
	mov	x0, x19
	mov	x1, x21
	bl	_hclge_parse_cfg
LBB0_8:
	ldur	x8, [x29, #-88]
Lloh24:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh25:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh26:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_10
; %bb.9:
	mov	x0, x22
	sub	sp, x29, #80
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_10:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_HCLGE_PF_CFG_DESC_NUM,4,2      ; @HCLGE_PF_CFG_DESC_NUM
	.comm	_HCLGE_OPC_GET_CFG_PARAM,4,2    ; @HCLGE_OPC_GET_CFG_PARAM
	.comm	_HCLGE_CFG_OFFSET_M,4,2         ; @HCLGE_CFG_OFFSET_M
	.comm	_HCLGE_CFG_OFFSET_S,4,2         ; @HCLGE_CFG_OFFSET_S
	.comm	_HCLGE_CFG_RD_LEN_BYTES,4,2     ; @HCLGE_CFG_RD_LEN_BYTES
	.comm	_HCLGE_CFG_RD_LEN_M,4,2         ; @HCLGE_CFG_RD_LEN_M
	.comm	_HCLGE_CFG_RD_LEN_S,4,2         ; @HCLGE_CFG_RD_LEN_S
	.comm	_HCLGE_CFG_RD_LEN_UNIT,4,2      ; @HCLGE_CFG_RD_LEN_UNIT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"get config failed %d.\n"

	.no_dead_strip	_hclge_get_cfg
.subsections_via_symbols
