	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function be_get_config
_be_get_config:                         ## @be_get_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	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	callq	_be_cmd_get_cntl_attributes
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_12
## %bb.1:
	movq	%r14, %rdi
	callq	_be_cmd_query_fw_cfg
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_2
LBB0_12:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_2:
	movq	%r14, %rdi
	callq	_lancer_chip
	testl	%eax, %eax
	jne	LBB0_5
## %bb.3:
	movq	%r14, %rdi
	callq	_be_physfn
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	leaq	16(%r14), %rsi
	movq	%r14, %rdi
	callq	_be_cmd_get_fat_dump_len
LBB0_5:
	movq	%r14, %rdi
	callq	_BEx_chip
	testq	%rax, %rax
	je	LBB0_9
## %bb.6:
	movq	%r14, %rdi
	callq	_be_cmd_get_fw_log_level
	movq	_FW_LOG_LEVEL_DEFAULT@GOTPCREL(%rip), %rdx
	xorl	%ecx, %ecx
	cmpl	(%rdx), %eax
	jg	LBB0_8
## %bb.7:
	movq	_NETIF_MSG_HW@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
LBB0_8:
	movl	%ecx, 12(%r14)
LBB0_9:
	movq	%r14, %rdi
	callq	_be_cmd_get_acpi_wol_cap
	movq	(%r14), %rdi
	movq	_PCI_D3hot@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	8(%r14), %edx
	callq	_pci_enable_wake
	movq	(%r14), %rdi
	movq	_PCI_D3cold@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	8(%r14), %edx
	callq	_pci_enable_wake
	movq	%r14, %rdi
	callq	_be_cmd_query_port_name
	movq	%r14, %rdi
	callq	_be_physfn
	xorl	%ebx, %ebx
	testq	%rax, %rax
	je	LBB0_12
## %bb.10:
	leaq	-20(%rbp), %rsi
	movq	%r14, %rdi
	callq	_be_cmd_get_active_profile
	testl	%eax, %eax
	jne	LBB0_12
## %bb.11:
	movq	(%r14), %rdi
	movl	-20(%rbp), %edx
	leaq	L_.str(%rip), %rsi
	callq	_dev_info
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_FW_LOG_LEVEL_DEFAULT,4,2       ## @FW_LOG_LEVEL_DEFAULT
	.comm	_NETIF_MSG_HW,4,2               ## @NETIF_MSG_HW
	.comm	_PCI_D3hot,4,2                  ## @PCI_D3hot
	.comm	_PCI_D3cold,4,2                 ## @PCI_D3cold
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Using profile 0x%x\n"

	.no_dead_strip	_be_get_config
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function be_get_config
_be_get_config:                         ; @be_get_config
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	bl	_be_cmd_get_cntl_attributes
	cbnz	w0, LBB0_11
; %bb.1:
	mov	x0, x19
	bl	_be_cmd_query_fw_cfg
	cbnz	w0, LBB0_11
; %bb.2:
	mov	x0, x19
	bl	_lancer_chip
	cbnz	w0, LBB0_5
; %bb.3:
	mov	x0, x19
	bl	_be_physfn
	cbz	x0, LBB0_5
; %bb.4:
	add	x1, x19, #16
	mov	x0, x19
	bl	_be_cmd_get_fat_dump_len
LBB0_5:
	mov	x0, x19
	bl	_BEx_chip
	cbz	x0, LBB0_7
; %bb.6:
	mov	x0, x19
	bl	_be_cmd_get_fw_log_level
Lloh0:
	adrp	x8, _FW_LOG_LEVEL_DEFAULT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FW_LOG_LEVEL_DEFAULT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _NETIF_MSG_HW@GOTPAGE
Lloh4:
	ldr	x9, [x9, _NETIF_MSG_HW@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	w0, w8
	csel	w8, wzr, w9, gt
	str	w8, [x19, #12]
LBB0_7:
	mov	x0, x19
	bl	_be_cmd_get_acpi_wol_cap
	ldr	x0, [x19]
Lloh6:
	adrp	x8, _PCI_D3hot@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PCI_D3hot@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	ldr	w2, [x19, #8]
	bl	_pci_enable_wake
	ldr	x0, [x19]
Lloh9:
	adrp	x8, _PCI_D3cold@GOTPAGE
Lloh10:
	ldr	x8, [x8, _PCI_D3cold@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	ldr	w2, [x19, #8]
	bl	_pci_enable_wake
	mov	x0, x19
	bl	_be_cmd_query_port_name
	mov	x0, x19
	bl	_be_physfn
	cbz	x0, LBB0_11
; %bb.8:
	add	x1, sp, #12
	mov	x0, x19
	bl	_be_cmd_get_active_profile
	cbnz	w0, LBB0_10
; %bb.9:
	ldr	x0, [x19]
	ldr	w2, [sp, #12]
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_info
LBB0_10:
	mov	w0, #0
LBB0_11:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_FW_LOG_LEVEL_DEFAULT,4,2       ; @FW_LOG_LEVEL_DEFAULT
	.comm	_NETIF_MSG_HW,4,2               ; @NETIF_MSG_HW
	.comm	_PCI_D3hot,4,2                  ; @PCI_D3hot
	.comm	_PCI_D3cold,4,2                 ; @PCI_D3cold
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Using profile 0x%x\n"

	.no_dead_strip	_be_get_config
.subsections_via_symbols
