	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_be_cmd_get_profile_config      ## -- Begin function be_cmd_get_profile_config
	.p2align	4, 0x90
_be_cmd_get_profile_config:             ## @be_cmd_get_profile_config
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, -64(%rbp)                  ## 8-byte Spill
	movq	%r8, -72(%rbp)                  ## 8-byte Spill
	movq	%rcx, %rbx
	movq	%rdx, -104(%rbp)                ## 8-byte Spill
	movq	%rsi, %r15
	movq	%rdi, %r13
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movl	$0, -56(%rbp)
	leaq	-88(%rbp), %rdi
	xorl	%r14d, %r14d
	xorl	%esi, %esi
	movl	$16, %edx
	callq	_memset
	movl	$32, -88(%rbp)
	movq	16(%r13), %rdi
	leaq	-84(%rbp), %rdx
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	$32, %esi
	callq	_dma_alloc_coherent
	movq	%rax, -80(%rbp)
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r12
	movq	%rax, %r14
	addq	$16, %r14
	movq	_CMD_SUBSYSTEM_COMMON@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_OPCODE_COMMON_GET_PROFILE_CONFIG@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	-88(%rbp), %ecx
	leaq	-56(%rbp), %r8
	leaq	-88(%rbp), %r9
	movq	%r14, %rdi
	callq	_be_wrb_cmd_hdr_prepare
	movq	%r13, %rdi
	callq	_lancer_chip
	testl	%eax, %eax
	jne	LBB0_4
## %bb.3:
	movl	$1, (%r14)
LBB0_4:
	movq	%rbx, 8(%r12)
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 24(%r12)
	movq	_RESOURCE_MODIFIABLE@GOTPCREL(%rip), %rax
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	cmpq	%rcx, (%rax)
	jne	LBB0_6
## %bb.5:
	movq	_QUERY_MODIFIABLE_FIELDS_TYPE@GOTPCREL(%rip), %rax
	orq	(%rax), %rbx
	movq	%rbx, 8(%r12)
LBB0_6:
	leaq	-56(%rbp), %rsi
	movq	%r13, %rdi
	callq	_be_cmd_notify_wait
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_22
## %bb.7:
	movq	%r15, %r12
	movq	-80(%rbp), %r15
	movl	4(%r15), %edi
	callq	_le16_to_cpu
	movq	%rax, %rbx
	cmpq	$0, -104(%rbp)                  ## 8-byte Folded Reload
	je	LBB0_14
## %bb.8:
	movl	%r14d, -92(%rbp)                ## 4-byte Spill
	movq	%r13, -64(%rbp)                 ## 8-byte Spill
	movq	%rsp, -112(%rbp)                ## 8-byte Spill
	movq	_MAX_NIC_FUNCS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shlq	$3, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rdx
	movl	(%r15), %edi
	movq	%rbx, %rsi
	movq	%rdx, -72(%rbp)                 ## 8-byte Spill
	callq	_be_get_nic_pf_num_list
	testq	%rax, %rax
	je	LBB0_13
## %bb.9:
	movq	%rax, %r12
	xorl	%r13d, %r13d
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_10 Depth=1
	incq	%r13
	cmpq	%r13, %r12
	je	LBB0_13
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r15), %edi
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax,%r13,8), %rdx
	movq	%rbx, %rsi
	callq	_be_get_func_nic_desc
	movq	(%rax), %rax
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	cmpq	(%rcx), %rax
	jne	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	movq	%r15, %r14
	movq	-104(%rbp), %r15                ## 8-byte Reload
	incl	4(%r15)
	movl	(%r14), %edi
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax,%r13,8), %rdx
	movq	%rbx, %rsi
	callq	_be_get_pcie_desc
	movl	(%rax), %edi
	callq	_le16_to_cpu
	addl	%eax, (%r15)
	movq	%r14, %r15
	jmp	LBB0_12
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	subl	(%rax), %r14d
	jmp	LBB0_24
LBB0_13:
	movq	-112(%rbp), %rsp                ## 8-byte Reload
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	movl	-92(%rbp), %r14d                ## 4-byte Reload
	jmp	LBB0_22
LBB0_14:
	movq	%rbx, %rsi
	movq	%r15, %rbx
	movl	(%r15), %edi
	movq	8(%r13), %rdx
	movq	%rsi, %r15
	callq	_be_get_pcie_desc
	testq	%rax, %rax
	je	LBB0_16
## %bb.15:
	movl	(%rax), %edi
	callq	_le16_to_cpu
	movq	%rax, 8(%r12)
LBB0_16:
	movl	(%rbx), %edi
	movq	%r15, %rsi
	callq	_be_get_port_desc
	testq	%rax, %rax
	je	LBB0_18
## %bb.17:
	movl	(%rax), %eax
	movl	%eax, 24(%r13)
LBB0_18:
	movl	(%rbx), %edi
	movq	8(%r13), %rdx
	movq	%r15, %rsi
	callq	_be_get_func_nic_desc
	testq	%rax, %rax
	je	LBB0_20
## %bb.19:
	movq	%r12, %rdi
	movq	%rax, %rsi
	callq	_be_copy_nic_desc
LBB0_20:
	movl	(%rbx), %edi
	movq	8(%r13), %rdx
	movq	%r15, %rsi
	callq	_be_get_vft_desc
	testq	%rax, %rax
	je	LBB0_22
## %bb.21:
	movl	8(%rax), %eax
	movl	%eax, (%r12)
LBB0_22:
	movq	-80(%rbp), %rdx
	testq	%rdx, %rdx
	je	LBB0_24
## %bb.23:
	movq	16(%r13), %rdi
	movl	-88(%rbp), %esi
	movl	-84(%rbp), %ecx
	callq	_dma_free_coherent
LBB0_24:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_26
## %bb.25:
	movl	%r14d, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_26:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_ATOMIC,4,2                 ## @GFP_ATOMIC
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_CMD_SUBSYSTEM_COMMON,4,2       ## @CMD_SUBSYSTEM_COMMON
	.comm	_OPCODE_COMMON_GET_PROFILE_CONFIG,4,2 ## @OPCODE_COMMON_GET_PROFILE_CONFIG
	.comm	_RESOURCE_MODIFIABLE,8,3        ## @RESOURCE_MODIFIABLE
	.comm	_QUERY_MODIFIABLE_FIELDS_TYPE,8,3 ## @QUERY_MODIFIABLE_FIELDS_TYPE
	.comm	_MAX_NIC_FUNCS,4,2              ## @MAX_NIC_FUNCS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_be_cmd_get_profile_config      ; -- Begin function be_cmd_get_profile_config
	.p2align	2
_be_cmd_get_profile_config:             ; @be_cmd_get_profile_config
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	sub	sp, sp, #32
	mov	x24, x5
	mov	x23, x4
	mov	x20, x3
	mov	x21, x2
	mov	x22, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
	stur	wzr, [x29, #-80]
	sub	x25, x29, #96
	sub	x0, x29, #96
	mov	w1, #0
	mov	w2, #16
	bl	_memset
	mov	w8, #32
	stur	w8, [x29, #-96]
	ldr	x0, [x19, #16]
	orr	x2, x25, #0x4
Lloh3:
	adrp	x8, _GFP_ATOMIC@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GFP_ATOMIC@GOTPAGEOFF]
Lloh5:
	ldr	w3, [x8]
	mov	w1, #32
	bl	_dma_alloc_coherent
	stur	x0, [x29, #-88]
	cbz	x0, LBB0_12
; %bb.1:
	mov	x25, x0
Lloh6:
	adrp	x8, _CMD_SUBSYSTEM_COMMON@GOTPAGE
Lloh7:
	ldr	x8, [x8, _CMD_SUBSYSTEM_COMMON@GOTPAGEOFF]
	add	x26, x0, #16
Lloh8:
	ldr	w1, [x8]
Lloh9:
	adrp	x8, _OPCODE_COMMON_GET_PROFILE_CONFIG@GOTPAGE
Lloh10:
	ldr	x8, [x8, _OPCODE_COMMON_GET_PROFILE_CONFIG@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	ldur	w3, [x29, #-96]
	sub	x4, x29, #80
	sub	x5, x29, #96
	mov	x0, x26
	bl	_be_wrb_cmd_hdr_prepare
	mov	x0, x19
	bl	_lancer_chip
	cbnz	w0, LBB0_3
; %bb.2:
	mov	w8, #1
	str	w8, [x26]
LBB0_3:
	str	x20, [x25, #8]
	str	x24, [x25, #24]
Lloh12:
	adrp	x8, _RESOURCE_MODIFIABLE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _RESOURCE_MODIFIABLE@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
	cmp	x8, x23
	b.ne	LBB0_5
; %bb.4:
Lloh15:
	adrp	x8, _QUERY_MODIFIABLE_FIELDS_TYPE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _QUERY_MODIFIABLE_FIELDS_TYPE@GOTPAGEOFF]
Lloh17:
	ldr	x8, [x8]
	orr	x8, x8, x20
	str	x8, [x25, #8]
LBB0_5:
	sub	x1, x29, #80
	mov	x0, x19
	bl	_be_cmd_notify_wait
	mov	x20, x0
	cbnz	w0, LBB0_22
; %bb.6:
	ldur	x25, [x29, #-88]
	ldr	w0, [x25, #4]
	bl	_le16_to_cpu
	mov	x23, x0
	cbz	x21, LBB0_14
; %bb.7:
	mov	x26, sp
Lloh18:
	adrp	x8, _MAX_NIC_FUNCS@GOTPAGE
Lloh19:
	ldr	x8, [x8, _MAX_NIC_FUNCS@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	lsl	x8, x8, #3
	mov	x9, x8
Lloh21:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh22:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0xffffffff0
	sub	x22, x9, x8
	mov	sp, x22
	ldr	w0, [x25]
	mov	x1, x23
	mov	x2, x22
	bl	_be_get_nic_pf_num_list
	cbz	x0, LBB0_13
; %bb.8:
	mov	x24, x0
	b	LBB0_10
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=1
	add	x22, x22, #8
	subs	x24, x24, #1
	b.eq	LBB0_13
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x25]
	ldr	x2, [x22]
	mov	x1, x23
	bl	_be_get_func_nic_desc
	ldr	x8, [x0]
	ldr	x9, [x19]
	cmp	x8, x9
	b.ne	LBB0_9
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	w8, [x21, #4]
	add	w8, w8, #1
	str	w8, [x21, #4]
	ldr	w0, [x25]
	ldr	x2, [x22]
	mov	x1, x23
	bl	_be_get_pcie_desc
	ldr	w0, [x0]
	bl	_le16_to_cpu
	ldr	w8, [x21]
	add	w8, w0, w8
	str	w8, [x21]
	b	LBB0_9
LBB0_12:
Lloh23:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh24:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_24
LBB0_13:
	mov	sp, x26
	b	LBB0_22
LBB0_14:
	ldr	w0, [x25]
	ldr	x2, [x19, #8]
	mov	x1, x23
	bl	_be_get_pcie_desc
	cbz	x0, LBB0_16
; %bb.15:
	ldr	w0, [x0]
	bl	_le16_to_cpu
	str	x0, [x22, #8]
LBB0_16:
	ldr	w0, [x25]
	mov	x1, x23
	bl	_be_get_port_desc
	cbz	x0, LBB0_18
; %bb.17:
	ldr	w8, [x0]
	str	w8, [x19, #24]
LBB0_18:
	ldr	w0, [x25]
	ldr	x2, [x19, #8]
	mov	x1, x23
	bl	_be_get_func_nic_desc
	cbz	x0, LBB0_20
; %bb.19:
	mov	x1, x0
	mov	x0, x22
	bl	_be_copy_nic_desc
LBB0_20:
	ldr	w0, [x25]
	ldr	x2, [x19, #8]
	mov	x1, x23
	bl	_be_get_vft_desc
	cbz	x0, LBB0_22
; %bb.21:
	ldr	w8, [x0, #8]
	str	w8, [x22]
LBB0_22:
	ldur	x2, [x29, #-88]
	cbz	x2, LBB0_24
; %bb.23:
	ldr	x0, [x19, #16]
	ldp	w1, w3, [x29, #-96]
	bl	_dma_free_coherent
LBB0_24:
	ldur	x8, [x29, #-72]
Lloh26:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh27:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh28:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_26
; %bb.25:
	mov	x0, x20
	sub	sp, x29, #64
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_26:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_ATOMIC,4,2                 ; @GFP_ATOMIC
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_CMD_SUBSYSTEM_COMMON,4,2       ; @CMD_SUBSYSTEM_COMMON
	.comm	_OPCODE_COMMON_GET_PROFILE_CONFIG,4,2 ; @OPCODE_COMMON_GET_PROFILE_CONFIG
	.comm	_RESOURCE_MODIFIABLE,8,3        ; @RESOURCE_MODIFIABLE
	.comm	_QUERY_MODIFIABLE_FIELDS_TYPE,8,3 ; @QUERY_MODIFIABLE_FIELDS_TYPE
	.comm	_MAX_NIC_FUNCS,4,2              ; @MAX_NIC_FUNCS
.subsections_via_symbols
