	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function isst_if_msr_cmd_req
_isst_if_msr_cmd_req:                   ## @isst_if_msr_cmd_req
	.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
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movl	12(%rdi), %edi
	callq	_match_punit_msr_white_list
	testl	%eax, %eax
	je	LBB0_1
## %bb.3:
	movq	(%rbx), %rdi
	movq	_nr_cpu_ids@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdi
	jge	LBB0_1
## %bb.4:
	cmpq	$0, 16(%rbx)
	je	LBB0_9
## %bb.5:
	movq	_CAP_SYS_ADMIN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_capable
	testl	%eax, %eax
	je	LBB0_6
## %bb.7:
	movq	(%rbx), %rdi
	movl	12(%rbx), %esi
	movl	8(%rbx), %edx
	callq	_wrmsrl_safe_on_cpu
	movl	$1, (%r14)
	orl	%eax, %r15d
	jne	LBB0_11
## %bb.8:
	movl	12(%rbx), %esi
	movq	(%rbx), %rdx
	movl	8(%rbx), %r9d
	xorl	%edi, %edi
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_isst_store_cmd
	jmp	LBB0_11
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
LBB0_2:
	xorl	%eax, %eax
	subq	(%rcx), %rax
	jmp	LBB0_12
LBB0_9:
	movl	12(%rbx), %esi
	leaq	-28(%rbp), %rdx
	callq	_rdmsrl_safe_on_cpu
	testl	%eax, %eax
	jne	LBB0_11
## %bb.10:
	movl	-28(%rbp), %ecx
	movl	%ecx, 8(%rbx)
	movl	$0, (%r14)
LBB0_11:
	cltq
LBB0_12:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	_EPERM@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,8,3                     ## @EINVAL
	.comm	_nr_cpu_ids,8,3                 ## @nr_cpu_ids
	.comm	_CAP_SYS_ADMIN,4,2              ## @CAP_SYS_ADMIN
	.comm	_EPERM,8,3                      ## @EPERM
	.no_dead_strip	_isst_if_msr_cmd_req
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function isst_if_msr_cmd_req
_isst_if_msr_cmd_req:                   ; @isst_if_msr_cmd_req
	.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	x21, x2
	mov	x20, x1
	mov	x19, x0
	ldr	w0, [x0, #12]
	bl	_match_punit_msr_white_list
	cbz	w0, LBB0_6
; %bb.1:
	ldr	x0, [x19]
Lloh0:
	adrp	x8, _nr_cpu_ids@GOTPAGE
Lloh1:
	ldr	x8, [x8, _nr_cpu_ids@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ge	LBB0_6
; %bb.2:
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_8
; %bb.3:
Lloh3:
	adrp	x8, _CAP_SYS_ADMIN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CAP_SYS_ADMIN@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_capable
	cbz	w0, LBB0_12
; %bb.4:
	ldr	x0, [x19]
	ldp	w2, w1, [x19, #8]
	bl	_wrmsrl_safe_on_cpu
                                        ; kill: def $w0 killed $w0 def $x0
	mov	w8, #1
	str	w8, [x20]
	orr	w8, w0, w21
	cbnz	w8, LBB0_10
; %bb.5:
	ldr	x2, [x19]
	ldp	w5, w1, [x19, #8]
	mov	w0, #0
	mov	w3, #0
	mov	w4, #0
	bl	_isst_store_cmd
                                        ; kill: def $w0 killed $w0 def $x0
	b	LBB0_10
LBB0_6:
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_7:
	ldr	x8, [x8]
	neg	x0, x8
	b	LBB0_11
LBB0_8:
	ldr	w1, [x19, #12]
	add	x2, sp, #12
	bl	_rdmsrl_safe_on_cpu
                                        ; kill: def $w0 killed $w0 def $x0
	cbnz	w0, LBB0_10
; %bb.9:
	ldr	w8, [sp, #12]
	str	w8, [x19, #8]
	str	wzr, [x20]
LBB0_10:
	sxtw	x0, w0
LBB0_11:
	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
LBB0_12:
Lloh8:
	adrp	x8, _EPERM@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EPERM@GOTPAGEOFF]
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,8,3                     ; @EINVAL
	.comm	_nr_cpu_ids,8,3                 ; @nr_cpu_ids
	.comm	_CAP_SYS_ADMIN,4,2              ; @CAP_SYS_ADMIN
	.comm	_EPERM,8,3                      ; @EPERM
	.no_dead_strip	_isst_if_msr_cmd_req
.subsections_via_symbols
