	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_be_cmd_query_fw_cfg            ## -- Begin function be_cmd_query_fw_cfg
	.p2align	4, 0x90
_be_cmd_query_fw_cfg:                   ## @be_cmd_query_fw_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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r15
	movq	%rcx, %rbx
	movq	%rdx, %r13
	movq	%rsi, %r12
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	callq	_mutex_lock_interruptible
	movl	$-1, %r14d
	testq	%rax, %rax
	jne	LBB0_4
## %bb.1:
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	callq	_wrb_from_mbox
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_embedded_payload
	movq	_CMD_SUBSYSTEM_COMMON@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_OPCODE_COMMON_QUERY_FIRMWARE_CONFIG@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	%rax, %rdi
	movl	$4, %ecx
	movq	%r15, %r8
	xorl	%r9d, %r9d
	callq	_be_wrb_cmd_hdr_prepare
	movq	%r14, %rdi
	callq	_be_mbox_notify_wait
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_3
## %bb.2:
	movq	%r15, %rdi
	callq	_embedded_payload
	movq	%rax, %r15
	movl	12(%rax), %edi
	callq	_le32_to_cpu
	movl	%eax, (%r12)
	movl	8(%r15), %edi
	callq	_le32_to_cpu
	movl	%eax, (%r13)
	movl	4(%r15), %edi
	callq	_le32_to_cpu
	movl	%eax, (%rbx)
	movl	(%r15), %edi
	callq	_le32_to_cpu
	movzbl	%al, %eax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
LBB0_3:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_mutex_unlock
LBB0_4:
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CMD_SUBSYSTEM_COMMON,4,2       ## @CMD_SUBSYSTEM_COMMON
	.comm	_OPCODE_COMMON_QUERY_FIRMWARE_CONFIG,4,2 ## @OPCODE_COMMON_QUERY_FIRMWARE_CONFIG
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_be_cmd_query_fw_cfg            ; -- Begin function be_cmd_query_fw_cfg
	.p2align	2
_be_cmd_query_fw_cfg:                   ; @be_cmd_query_fw_cfg
	.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
	mov	x20, x4
	mov	x21, x3
	mov	x22, x2
	mov	x23, x1
	mov	x19, x0
	bl	_mutex_lock_interruptible
	cbz	x0, LBB0_2
; %bb.1:
	mov	w24, #-1
	b	LBB0_5
LBB0_2:
	mov	x0, x19
	bl	_wrb_from_mbox
	mov	x25, x0
	bl	_embedded_payload
Lloh0:
	adrp	x8, _CMD_SUBSYSTEM_COMMON@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CMD_SUBSYSTEM_COMMON@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _OPCODE_COMMON_QUERY_FIRMWARE_CONFIG@GOTPAGE
Lloh4:
	ldr	x8, [x8, _OPCODE_COMMON_QUERY_FIRMWARE_CONFIG@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	w3, #4
	mov	x4, x25
	mov	x5, #0
	bl	_be_wrb_cmd_hdr_prepare
	mov	x0, x19
	bl	_be_mbox_notify_wait
	mov	x24, x0
	cbnz	w0, LBB0_4
; %bb.3:
	mov	x0, x25
	bl	_embedded_payload
	mov	x25, x0
	ldr	w0, [x0, #12]
	bl	_le32_to_cpu
	str	w0, [x23]
	ldr	w0, [x25, #8]
	bl	_le32_to_cpu
	str	w0, [x22]
	ldr	w0, [x25, #4]
	bl	_le32_to_cpu
	str	w0, [x21]
	ldr	w0, [x25]
	bl	_le32_to_cpu
	and	w8, w0, #0xff
	str	w8, [x20]
LBB0_4:
	mov	x0, x19
	bl	_mutex_unlock
LBB0_5:
	mov	x0, x24
	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
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_CMD_SUBSYSTEM_COMMON,4,2       ; @CMD_SUBSYSTEM_COMMON
	.comm	_OPCODE_COMMON_QUERY_FIRMWARE_CONFIG,4,2 ; @OPCODE_COMMON_QUERY_FIRMWARE_CONFIG
.subsections_via_symbols
