	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function isst_if_mbox_proc_cmd
_isst_if_mbox_proc_cmd:                 ## @isst_if_mbox_proc_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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	%rdi, -32(%rbp)
	callq	_isst_if_mbox_cmd_invalid
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
LBB0_2:
	xorl	%eax, %eax
	subq	(%rcx), %rax
	jmp	LBB0_14
LBB0_3:
	movq	%rbx, %rdi
	callq	_isst_if_mbox_cmd_set_req
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:
	movq	_CAP_SYS_ADMIN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_capable
	testl	%eax, %eax
	je	LBB0_5
LBB0_6:
	movl	8(%rbx), %edi
	movq	_msrl_update_func@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-40(%rbp), %rdx
	movl	$1, %ecx
	callq	_smp_call_function_single
	testl	%eax, %eax
	je	LBB0_8
## %bb.7:
	cltq
	jmp	LBB0_14
LBB0_8:
	movq	-40(%rbp), %rax
	testl	%r15d, %r15d
	jne	LBB0_13
## %bb.9:
	testq	%rax, %rax
	jne	LBB0_13
## %bb.10:
	movq	-32(%rbp), %rdi
	callq	_isst_if_mbox_cmd_set_req
	testq	%rax, %rax
	je	LBB0_11
## %bb.12:
	movq	-32(%rbp), %rax
	movl	16(%rax), %edi
	movl	12(%rax), %esi
	movl	8(%rax), %edx
	movl	(%rax), %r9d
	movl	4(%rax), %r8d
	movl	$1, %ecx
	callq	_isst_store_cmd
	jmp	LBB0_13
LBB0_5:
	movq	_EPERM@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
LBB0_11:
	movq	-40(%rbp), %rax
LBB0_13:
	movl	$0, (%r14)
LBB0_14:
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,8,3                     ## @EINVAL
	.comm	_CAP_SYS_ADMIN,4,2              ## @CAP_SYS_ADMIN
	.comm	_EPERM,8,3                      ## @EPERM
	.comm	_msrl_update_func,4,2           ## @msrl_update_func
	.no_dead_strip	_isst_if_mbox_proc_cmd
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function isst_if_mbox_proc_cmd
_isst_if_mbox_proc_cmd:                 ; @isst_if_mbox_proc_cmd
	.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	x20, x2
	mov	x19, x1
	mov	x21, x0
	str	x0, [sp, #8]
	bl	_isst_if_mbox_cmd_invalid
	cbz	x0, LBB0_3
; %bb.1:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_2:
	ldr	x8, [x8]
	neg	x0, x8
	b	LBB0_14
LBB0_3:
	mov	x0, x21
	bl	_isst_if_mbox_cmd_set_req
	cbz	x0, LBB0_5
; %bb.4:
Lloh2:
	adrp	x8, _CAP_SYS_ADMIN@GOTPAGE
Lloh3:
	ldr	x8, [x8, _CAP_SYS_ADMIN@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	bl	_capable
	cbz	w0, LBB0_11
LBB0_5:
	ldr	w0, [x21, #8]
Lloh5:
	adrp	x8, _msrl_update_func@GOTPAGE
Lloh6:
	ldr	x8, [x8, _msrl_update_func@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x2, sp
	mov	w3, #1
	bl	_smp_call_function_single
                                        ; kill: def $w0 killed $w0 def $x0
	cbz	w0, LBB0_7
; %bb.6:
	sxtw	x0, w0
	b	LBB0_14
LBB0_7:
	ldr	x0, [sp]
	cbnz	w20, LBB0_13
; %bb.8:
	cbnz	x0, LBB0_13
; %bb.9:
	ldr	x0, [sp, #8]
	bl	_isst_if_mbox_cmd_set_req
	cbz	x0, LBB0_12
; %bb.10:
	ldr	x8, [sp, #8]
	ldp	w1, w0, [x8, #12]
	ldp	w4, w2, [x8, #4]
	ldr	w5, [x8]
	mov	w3, #1
	bl	_isst_store_cmd
	b	LBB0_13
LBB0_11:
Lloh8:
	adrp	x8, _EPERM@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EPERM@GOTPAGEOFF]
	b	LBB0_2
LBB0_12:
	ldr	x0, [sp]
LBB0_13:
	str	wzr, [x19]
LBB0_14:
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,8,3                     ; @EINVAL
	.comm	_CAP_SYS_ADMIN,4,2              ; @CAP_SYS_ADMIN
	.comm	_EPERM,8,3                      ; @EPERM
	.comm	_msrl_update_func,4,2           ; @msrl_update_func
	.no_dead_strip	_isst_if_mbox_proc_cmd
.subsections_via_symbols
