	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r12d
	movq	%rsi, %r15
	movq	%rdi, %r14
	leaq	-56(%rbp), %rdi
	xorl	%ebx, %ebx
	xorl	%esi, %esi
	movl	$16, %edx
	callq	_memset
	movl	$8, -56(%rbp)
	movq	(%r14), %rdi
	leaq	-52(%rbp), %rdx
	movl	$8, %esi
	callq	_pci_alloc_consistent
	movq	%rax, -48(%rbp)
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	cmpl	$0, 8(%r14)
	je	LBB0_3
## %bb.4:
	leaq	-56(%rbp), %rdx
	movq	%r14, %rdi
	movl	%r12d, %esi
	callq	_be_cmd_get_profile_config_mccq
	jmp	LBB0_5
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_12
LBB0_3:
	leaq	-56(%rbp), %rdx
	movq	%r14, %rdi
	movl	%r12d, %esi
	callq	_be_cmd_get_profile_config_mbox
LBB0_5:
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_10
## %bb.6:
	movq	-48(%rbp), %r13
	movl	4(%r13), %edi
	callq	_le32_to_cpu
	movl	%eax, %r12d
	movq	(%r14), %rax
	movl	(%rax), %edi
	movl	(%r13), %esi
	movl	%r12d, %edx
	callq	_be_get_pcie_desc
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movl	(%rax), %edi
	callq	_le16_to_cpu
	movl	%eax, (%r15)
LBB0_8:
	movl	(%r13), %edi
	movl	%r12d, %esi
	callq	_be_get_nic_desc
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	movq	%r15, %rdi
	movq	%rax, %rsi
	callq	_be_copy_nic_desc
LBB0_10:
	movq	-48(%rbp), %rdx
	testq	%rdx, %rdx
	je	LBB0_12
## %bb.11:
	movq	(%r14), %rdi
	movl	-56(%rbp), %esi
	movl	-52(%rbp), %ecx
	callq	_pci_free_consistent
LBB0_12:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
.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:
	sub	sp, sp, #80
	.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
	mov	x21, x2
	mov	x20, x1
	mov	x19, x0
	mov	x22, sp
	mov	x0, sp
	mov	w1, #0
	mov	w2, #16
	bl	_memset
	mov	w8, #8
	str	w8, [sp]
	ldr	x0, [x19]
	orr	x2, x22, #0x4
	mov	w1, #8
	bl	_pci_alloc_consistent
	str	x0, [sp, #8]
	cbz	x0, LBB0_3
; %bb.1:
	ldr	w8, [x19, #8]
	cbz	w8, LBB0_4
; %bb.2:
	mov	x2, sp
	mov	x0, x19
	mov	x1, x21
	bl	_be_cmd_get_profile_config_mccq
	mov	x21, x0
	cbnz	w0, LBB0_9
	b	LBB0_5
LBB0_3:
Lloh0:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_11
LBB0_4:
	mov	x2, sp
	mov	x0, x19
	mov	x1, x21
	bl	_be_cmd_get_profile_config_mbox
	mov	x21, x0
	cbnz	w0, LBB0_9
LBB0_5:
	ldr	x23, [sp, #8]
	ldr	w0, [x23, #4]
	bl	_le32_to_cpu
	mov	x22, x0
	ldr	x8, [x19]
	ldr	w0, [x8]
	ldr	w1, [x23]
	mov	x2, x22
	bl	_be_get_pcie_desc
	cbz	x0, LBB0_7
; %bb.6:
	ldr	w0, [x0]
	bl	_le16_to_cpu
	str	w0, [x20]
LBB0_7:
	ldr	w0, [x23]
	mov	x1, x22
	bl	_be_get_nic_desc
	cbz	x0, LBB0_9
; %bb.8:
	mov	x1, x0
	mov	x0, x20
	bl	_be_copy_nic_desc
LBB0_9:
	ldr	x2, [sp, #8]
	cbz	x2, LBB0_11
; %bb.10:
	ldr	x0, [x19]
	ldp	w1, w3, [sp]
	bl	_pci_free_consistent
LBB0_11:
	mov	x0, x21
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
.subsections_via_symbols
