	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_be_cmd_get_func_config         ## -- Begin function be_cmd_get_func_config
	.p2align	4, 0x90
_be_cmd_get_func_config:                ## @be_cmd_get_func_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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r12
	leaq	8(%rdi), %r14
	movq	%r14, %rdi
	callq	_mutex_lock_interruptible
	movl	$-1, %ebx
	testq	%rax, %rax
	jne	LBB0_16
## %bb.1:
	leaq	-48(%rbp), %rdi
	xorl	%ebx, %ebx
	xorl	%esi, %esi
	movl	$16, %edx
	callq	_memset
	movl	$12, -48(%rbp)
	movq	(%r12), %rdi
	leaq	-44(%rbp), %rdx
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	$12, %esi
	callq	_dma_alloc_coherent
	movq	%rax, -40(%rbp)
	testq	%rax, %rax
	je	LBB0_9
## %bb.2:
	movq	%r12, %rdi
	callq	_wrb_from_mbox
	testq	%rax, %rax
	je	LBB0_10
## %bb.3:
	movq	-40(%rbp), %rbx
	addq	$8, %rbx
	movq	_CMD_SUBSYSTEM_COMMON@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_OPCODE_COMMON_GET_FUNC_CONFIG@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	-48(%rbp), %ecx
	leaq	-48(%rbp), %r9
	movq	%rbx, %rdi
	movq	%rax, %r8
	callq	_be_wrb_cmd_hdr_prepare
	movq	%r12, %rdi
	callq	_skyhawk_chip
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movl	$1, (%rbx)
LBB0_5:
	movq	%r12, %rdi
	callq	_be_mbox_notify_wait
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_14
## %bb.6:
	movq	-40(%rbp), %rbx
	movl	4(%rbx), %edi
	callq	_le32_to_cpu
	movl	(%rbx), %edi
	movq	_PF_NUM_IGNORE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	%eax, %esi
	callq	_be_get_func_nic_desc
	testq	%rax, %rax
	je	LBB0_11
## %bb.7:
	movl	4(%rax), %ecx
	movl	%ecx, 16(%r12)
	movl	(%rax), %ecx
	movl	%ecx, 12(%r12)
	xorl	%ebx, %ebx
	testq	%r15, %r15
	je	LBB0_14
## %bb.8:
	movq	%r15, %rdi
	movq	%rax, %rsi
	callq	_be_copy_nic_desc
	jmp	LBB0_14
LBB0_9:
	movq	(%r12), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_13
LBB0_10:
	movq	_EBUSY@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_11:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_12:
	xorl	%ebx, %ebx
LBB0_13:
	subl	(%rax), %ebx
LBB0_14:
	movq	%r14, %rdi
	callq	_mutex_unlock
	movq	-40(%rbp), %rdx
	testq	%rdx, %rdx
	je	LBB0_16
## %bb.15:
	movq	(%r12), %rdi
	movl	-48(%rbp), %esi
	movl	-44(%rbp), %ecx
	callq	_dma_free_coherent
LBB0_16:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_ATOMIC,4,2                 ## @GFP_ATOMIC
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Memory alloc failure\n"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_CMD_SUBSYSTEM_COMMON,4,2       ## @CMD_SUBSYSTEM_COMMON
	.comm	_OPCODE_COMMON_GET_FUNC_CONFIG,4,2 ## @OPCODE_COMMON_GET_FUNC_CONFIG
	.comm	_PF_NUM_IGNORE,4,2              ## @PF_NUM_IGNORE
	.comm	_EINVAL,4,2                     ## @EINVAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_be_cmd_get_func_config         ; -- Begin function be_cmd_get_func_config
	.p2align	2
_be_cmd_get_func_config:                ; @be_cmd_get_func_config
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x21, x1
	mov	x19, x0
	add	x20, x0, #8
	mov	x0, x20
	bl	_mutex_lock_interruptible
	cbz	x0, LBB0_2
; %bb.1:
	mov	w22, #-1
	b	LBB0_17
LBB0_2:
	mov	x22, sp
	mov	x0, sp
	mov	w1, #0
	mov	w2, #16
	bl	_memset
	mov	w8, #12
	str	w8, [sp]
	ldr	x0, [x19]
	orr	x2, x22, #0x4
Lloh0:
	adrp	x8, _GFP_ATOMIC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_ATOMIC@GOTPAGEOFF]
Lloh2:
	ldr	w3, [x8]
	mov	w1, #12
	bl	_dma_alloc_coherent
	str	x0, [sp, #8]
	cbz	x0, LBB0_11
; %bb.3:
	mov	x0, x19
	bl	_wrb_from_mbox
	cbz	x0, LBB0_12
; %bb.4:
	mov	x4, x0
	ldr	x8, [sp, #8]
Lloh3:
	adrp	x9, _CMD_SUBSYSTEM_COMMON@GOTPAGE
Lloh4:
	ldr	x9, [x9, _CMD_SUBSYSTEM_COMMON@GOTPAGEOFF]
	add	x22, x8, #8
Lloh5:
	ldr	w1, [x9]
Lloh6:
	adrp	x8, _OPCODE_COMMON_GET_FUNC_CONFIG@GOTPAGE
Lloh7:
	ldr	x8, [x8, _OPCODE_COMMON_GET_FUNC_CONFIG@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	ldr	w3, [sp]
	mov	x5, sp
	mov	x0, x22
	bl	_be_wrb_cmd_hdr_prepare
	mov	x0, x19
	bl	_skyhawk_chip
	cbz	x0, LBB0_6
; %bb.5:
	mov	w8, #1
	str	w8, [x22]
LBB0_6:
	mov	x0, x19
	bl	_be_mbox_notify_wait
	mov	x22, x0
	cbnz	w0, LBB0_15
; %bb.7:
	ldr	x22, [sp, #8]
	ldr	w0, [x22, #4]
	bl	_le32_to_cpu
	mov	x1, x0
	ldr	w0, [x22]
Lloh9:
	adrp	x8, _PF_NUM_IGNORE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _PF_NUM_IGNORE@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	bl	_be_get_func_nic_desc
	cbz	x0, LBB0_13
; %bb.8:
	mov	x1, x0
	ldr	d0, [x0]
	stur	d0, [x19, #12]
	cbz	x21, LBB0_10
; %bb.9:
	mov	x0, x21
	bl	_be_copy_nic_desc
LBB0_10:
	mov	w22, #0
	b	LBB0_15
LBB0_11:
	ldr	x0, [x19]
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
Lloh14:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_14
LBB0_12:
Lloh16:
	adrp	x8, _EBUSY@GOTPAGE
Lloh17:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
	b	LBB0_14
LBB0_13:
Lloh18:
	adrp	x8, _EINVAL@GOTPAGE
Lloh19:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_14:
	ldr	w8, [x8]
	neg	w22, w8
LBB0_15:
	mov	x0, x20
	bl	_mutex_unlock
	ldr	x2, [sp, #8]
	cbz	x2, LBB0_17
; %bb.16:
	ldr	x0, [x19]
	ldp	w1, w3, [sp]
	bl	_dma_free_coherent
LBB0_17:
	mov	x0, x22
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_ATOMIC,4,2                 ; @GFP_ATOMIC
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Memory alloc failure\n"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_CMD_SUBSYSTEM_COMMON,4,2       ; @CMD_SUBSYSTEM_COMMON
	.comm	_OPCODE_COMMON_GET_FUNC_CONFIG,4,2 ; @OPCODE_COMMON_GET_FUNC_CONFIG
	.comm	_PF_NUM_IGNORE,4,2              ; @PF_NUM_IGNORE
	.comm	_EINVAL,4,2                     ; @EINVAL
.subsections_via_symbols
