	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_intel_punit_ipc_simple_command ## -- Begin function intel_punit_ipc_simple_command
	.p2align	4, 0x90
_intel_punit_ipc_simple_command:        ## @intel_punit_ipc_simple_command
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movl	%esi, %r12d
	movl	%edi, %r13d
	movq	_punit_ipcdev@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	movq	%r14, %rdi
	callq	_mutex_lock
	leaq	4(%r14), %rdi
	callq	_reinit_completion
	movq	_IPC_PUNIT_CMD_TYPE_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%edx, %ebx
	andl	%r13d, %ebx
	movq	_IPC_TYPE_OFFSET@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	sarl	%cl, %ebx
	notl	%edx
	andl	%r13d, %edx
	movq	_CMD_RUN@GOTPCREL(%rip), %rax
	movq	_CMD_PARA2_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %r15d
	movq	_CMD_PARA1_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %r12d
	orl	%r15d, %r12d
	orl	(%rax), %edx
	orl	%r12d, %edx
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_ipc_write_cmd
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_intel_punit_ipc_check_status
	movl	%eax, %ebx
	movq	%r14, %rdi
	callq	_mutex_unlock
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_punit_ipcdev,8,3               ## @punit_ipcdev
	.comm	_IPC_PUNIT_CMD_TYPE_MASK,4,2    ## @IPC_PUNIT_CMD_TYPE_MASK
	.comm	_IPC_TYPE_OFFSET,4,2            ## @IPC_TYPE_OFFSET
	.comm	_CMD_RUN,4,2                    ## @CMD_RUN
	.comm	_CMD_PARA2_SHIFT,4,2            ## @CMD_PARA2_SHIFT
	.comm	_CMD_PARA1_SHIFT,4,2            ## @CMD_PARA1_SHIFT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_intel_punit_ipc_simple_command ; -- Begin function intel_punit_ipc_simple_command
	.p2align	2
_intel_punit_ipc_simple_command:        ; @intel_punit_ipc_simple_command
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _punit_ipcdev@GOTPAGE
Lloh1:
	ldr	x8, [x8, _punit_ipcdev@GOTPAGEOFF]
Lloh2:
	ldr	x22, [x8]
	mov	x0, x22
	bl	_mutex_lock
	add	x0, x22, #4
	bl	_reinit_completion
Lloh3:
	adrp	x8, _IPC_PUNIT_CMD_TYPE_MASK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IPC_PUNIT_CMD_TYPE_MASK@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _IPC_TYPE_OFFSET@GOTPAGE
Lloh7:
	ldr	x9, [x9, _IPC_TYPE_OFFSET@GOTPAGEOFF]
	and	w10, w8, w21
Lloh8:
	ldr	w9, [x9]
	asr	w23, w10, w9
	bic	w8, w21, w8
Lloh9:
	adrp	x9, _CMD_RUN@GOTPAGE
Lloh10:
	ldr	x9, [x9, _CMD_RUN@GOTPAGEOFF]
Lloh11:
	adrp	x10, _CMD_PARA2_SHIFT@GOTPAGE
Lloh12:
	ldr	x10, [x10, _CMD_PARA2_SHIFT@GOTPAGEOFF]
Lloh13:
	ldr	w10, [x10]
	lsl	w10, w19, w10
Lloh14:
	adrp	x11, _CMD_PARA1_SHIFT@GOTPAGE
Lloh15:
	ldr	x11, [x11, _CMD_PARA1_SHIFT@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
Lloh17:
	ldr	w11, [x11]
	lsl	w11, w20, w11
	orr	w8, w9, w8
	orr	w8, w8, w10
	orr	w2, w8, w11
	mov	x0, x22
	mov	x1, x23
	bl	_ipc_write_cmd
	mov	x0, x22
	mov	x1, x23
	bl	_intel_punit_ipc_check_status
	mov	x19, x0
	mov	x0, x22
	bl	_mutex_unlock
	mov	x0, x19
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh17
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh16
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_punit_ipcdev,8,3               ; @punit_ipcdev
	.comm	_IPC_PUNIT_CMD_TYPE_MASK,4,2    ; @IPC_PUNIT_CMD_TYPE_MASK
	.comm	_IPC_TYPE_OFFSET,4,2            ; @IPC_TYPE_OFFSET
	.comm	_CMD_RUN,4,2                    ; @CMD_RUN
	.comm	_CMD_PARA2_SHIFT,4,2            ; @CMD_PARA2_SHIFT
	.comm	_CMD_PARA1_SHIFT,4,2            ; @CMD_PARA1_SHIFT
.subsections_via_symbols
