	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_intel_pmc_ipc_simple_command   ## -- Begin function intel_pmc_ipc_simple_command
	.p2align	4, 0x90
_intel_pmc_ipc_simple_command:          ## @intel_pmc_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %ebx
	movl	%edi, %r14d
	movq	_ipclock@GOTPCREL(%rip), %rdi
	callq	_mutex_lock
	movq	_ipcdev@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_1
## %bb.3:
	movq	_IPC_CMD_SUBCMD@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %ebx
	orl	%r14d, %ebx
	movl	%ebx, %edi
	callq	_ipc_send_command
	xorl	%eax, %eax
	callq	_intel_pmc_ipc_check_status
	movl	%eax, %ebx
	movq	_ipclock@GOTPCREL(%rip), %rdi
	callq	_mutex_unlock
	movl	%ebx, %eax
	jmp	LBB0_2
LBB0_1:
	movq	_ipclock@GOTPCREL(%rip), %rdi
	callq	_mutex_unlock
	movq	_ENODEV@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_2:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ipclock,4,2                    ## @ipclock
	.comm	_ipcdev,8,3                     ## @ipcdev
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_IPC_CMD_SUBCMD,4,2             ## @IPC_CMD_SUBCMD
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_intel_pmc_ipc_simple_command   ; -- Begin function intel_pmc_ipc_simple_command
	.p2align	2
_intel_pmc_ipc_simple_command:          ; @intel_pmc_ipc_simple_command
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x0, _ipclock@GOTPAGE
Lloh1:
	ldr	x0, [x0, _ipclock@GOTPAGEOFF]
	bl	_mutex_lock
Lloh2:
	adrp	x8, _ipcdev@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ipcdev@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	cbz	x8, LBB0_2
; %bb.1:
Lloh5:
	adrp	x8, _IPC_CMD_SUBCMD@GOTPAGE
Lloh6:
	ldr	x8, [x8, _IPC_CMD_SUBCMD@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	lsl	w8, w20, w8
	orr	w0, w8, w19
	bl	_ipc_send_command
	bl	_intel_pmc_ipc_check_status
	mov	x19, x0
Lloh8:
	adrp	x0, _ipclock@GOTPAGE
Lloh9:
	ldr	x0, [x0, _ipclock@GOTPAGEOFF]
	bl	_mutex_unlock
	mov	x0, x19
	b	LBB0_3
LBB0_2:
Lloh10:
	adrp	x0, _ipclock@GOTPAGE
Lloh11:
	ldr	x0, [x0, _ipclock@GOTPAGEOFF]
	bl	_mutex_unlock
Lloh12:
	adrp	x8, _ENODEV@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_ipclock,4,2                    ; @ipclock
	.comm	_ipcdev,8,3                     ; @ipcdev
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_IPC_CMD_SUBCMD,4,2             ; @IPC_CMD_SUBCMD
.subsections_via_symbols
