	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function qed_mcp_resource_cmd
_qed_mcp_resource_cmd:                  ## @qed_mcp_resource_cmd
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r12
	movq	%rcx, %rbx
	movq	%rdx, %r14
	movq	%rdi, %r15
	movq	_DRV_MSG_CODE_RESOURCE_CMD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rcx
	movq	%rbx, %r8
	movq	%r12, %r9
	callq	_qed_mcp_cmd
	testl	%eax, %eax
	jne	LBB0_6
## %bb.1:
	movq	(%rbx), %rax
	movq	_FW_MSG_CODE_UNSUPPORTED@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.2:
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_DP_INFO
	jmp	LBB0_5
LBB0_3:
	movq	(%r12), %rcx
	movq	_RESOURCE_OPCODE_UNKNOWN_CMD@GOTPCREL(%rip), %rdx
	xorl	%eax, %eax
	cmpq	(%rdx), %rcx
	jne	LBB0_6
## %bb.4:
	movq	_RESOURCE_CMD_REQ_OPCODE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_QED_MFW_GET_FIELD
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	movq	%r14, %rdx
	movl	%eax, %ecx
	callq	_DP_NOTICE
LBB0_5:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_6:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DRV_MSG_CODE_RESOURCE_CMD,4,2  ## @DRV_MSG_CODE_RESOURCE_CMD
	.comm	_FW_MSG_CODE_UNSUPPORTED,8,3    ## @FW_MSG_CODE_UNSUPPORTED
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"The resource command is unsupported by the MFW\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_RESOURCE_OPCODE_UNKNOWN_CMD,8,3 ## @RESOURCE_OPCODE_UNKNOWN_CMD
	.comm	_RESOURCE_CMD_REQ_OPCODE,4,2    ## @RESOURCE_CMD_REQ_OPCODE
L_.str.1:                               ## @.str.1
	.asciz	"The resource command is unknown to the MFW [param 0x%08x, opcode %d]\n"

	.no_dead_strip	_qed_mcp_resource_cmd
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function qed_mcp_resource_cmd
_qed_mcp_resource_cmd:                  ; @qed_mcp_resource_cmd
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x21, x4
	mov	x22, x3
	mov	x19, x2
	mov	x20, x0
Lloh0:
	adrp	x8, _DRV_MSG_CODE_RESOURCE_CMD@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DRV_MSG_CODE_RESOURCE_CMD@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x3, x19
	mov	x4, x22
	mov	x5, x21
	bl	_qed_mcp_cmd
	cbnz	w0, LBB0_7
; %bb.1:
	ldr	x8, [x22]
Lloh3:
	adrp	x9, _FW_MSG_CODE_UNSUPPORTED@GOTPAGE
Lloh4:
	ldr	x9, [x9, _FW_MSG_CODE_UNSUPPORTED@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.2:
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_DP_INFO
	b	LBB0_5
LBB0_3:
	ldr	x8, [x21]
Lloh8:
	adrp	x9, _RESOURCE_OPCODE_UNKNOWN_CMD@GOTPAGE
Lloh9:
	ldr	x9, [x9, _RESOURCE_OPCODE_UNKNOWN_CMD@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.4:
Lloh11:
	adrp	x8, _RESOURCE_CMD_REQ_OPCODE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _RESOURCE_CMD_REQ_OPCODE@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_QED_MFW_GET_FIELD
	mov	x3, x0
Lloh14:
	adrp	x1, l_.str.1@PAGE
Lloh15:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	mov	x2, x19
	bl	_DP_NOTICE
LBB0_5:
Lloh16:
	adrp	x8, _EINVAL@GOTPAGE
Lloh17:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_7
LBB0_6:
	mov	w0, #0
LBB0_7:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_DRV_MSG_CODE_RESOURCE_CMD,4,2  ; @DRV_MSG_CODE_RESOURCE_CMD
	.comm	_FW_MSG_CODE_UNSUPPORTED,8,3    ; @FW_MSG_CODE_UNSUPPORTED
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"The resource command is unsupported by the MFW\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_RESOURCE_OPCODE_UNKNOWN_CMD,8,3 ; @RESOURCE_OPCODE_UNKNOWN_CMD
	.comm	_RESOURCE_CMD_REQ_OPCODE,4,2    ; @RESOURCE_CMD_REQ_OPCODE
l_.str.1:                               ; @.str.1
	.asciz	"The resource command is unknown to the MFW [param 0x%08x, opcode %d]\n"

	.no_dead_strip	_qed_mcp_resource_cmd
.subsections_via_symbols
