	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function set_msr_interception
_set_msr_interception:                  ## @set_msr_interception
	.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
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
                                        ## kill: def $esi killed $esi def $rsi
	movq	_NUM_MSR_MAPS@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	testl	%r8d, %r8d
	jle	LBB0_5
## %bb.1:
	movq	_msrpm_ranges@GOTPCREL(%rip), %rax
	movq	(%rax), %r9
	movq	_MSRS_IN_RANGE@GOTPCREL(%rip), %rax
	movl	(%rax), %r10d
	leal	(%rsi,%rsi), %r15d
	negl	%r15d
	leal	(%r10,%r10), %r11d
	xorl	%ebx, %ebx
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%rbx
	subl	%r11d, %r15d
	cmpq	%rbx, %r8
	je	LBB0_5
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r9,%rbx,4), %r14d
	cmpl	%esi, %r14d
	ja	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	leal	(%r10,%r14), %eax
	cmpl	%esi, %eax
	jbe	LBB0_4
## %bb.6:
	leal	(%r15,%r14,2), %eax
	movl	$31, %ebx
	subl	%eax, %ebx
	negl	%eax
	testl	%eax, %eax
	cmovnsl	%eax, %ebx
	movl	%ebx, %esi
	sarl	$5, %esi
	movslq	%esi, %rsi
	andl	$-32, %ebx
	subl	%ebx, %eax
	xorl	%ebx, %ebx
	testl	%ecx, %ecx
	sete	%bl
	xorl	%ecx, %ecx
	testl	%edx, %edx
	sete	%cl
	leal	(%rcx,%rbx,2), %edx
	movl	$3, %ebx
	movl	%eax, %ecx
	shll	%cl, %ebx
	notl	%ebx
	shll	%cl, %edx
	andl	(%rdi,%rsi,4), %ebx
	orl	%ebx, %edx
	movl	%edx, (%rdi,%rsi,4)
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_BUG                            ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_NUM_MSR_MAPS,4,2               ## @NUM_MSR_MAPS
	.comm	_msrpm_ranges,8,3               ## @msrpm_ranges
	.comm	_MSRS_IN_RANGE,4,2              ## @MSRS_IN_RANGE
	.no_dead_strip	_set_msr_interception
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function set_msr_interception
_set_msr_interception:                  ; @set_msr_interception
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _NUM_MSR_MAPS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NUM_MSR_MAPS@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, #1
	b.lt	LBB0_4
; %bb.1:
Lloh3:
	adrp	x9, _msrpm_ranges@GOTPAGE
Lloh4:
	ldr	x9, [x9, _msrpm_ranges@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
Lloh6:
	adrp	x10, _MSRS_IN_RANGE@GOTPAGE
Lloh7:
	ldr	x10, [x10, _MSRS_IN_RANGE@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	neg	w11, w1, lsl #1
	lsl	w12, w10, #1
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w13, [x9]
	add	w14, w10, w13
	cmp	w13, w1
	ccmp	w14, w1, #0, ls
	b.hi	LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	sub	w11, w11, w12
	add	x9, x9, #4
	subs	x8, x8, #1
	b.ne	LBB0_2
LBB0_4:
	b	_BUG
LBB0_5:
	add	w8, w11, w13, lsl #1
	neg	w8, w8
	add	w9, w8, #31
	cmp	w8, #0
	csel	w9, w9, w8, lt
	asr	w10, w9, #5
	sbfiz	x10, x10, #2, #32
	and	w9, w9, #0xffffffe0
	sub	w8, w8, w9
	cmp	w3, #0
	cset	w9, eq
	cmp	w2, #0
	cset	w11, eq
	bfi	w11, w9, #1, #1
	ldr	w9, [x0, x10]
	mov	w12, #3
	lsl	w12, w12, w8
	bic	w9, w9, w12
	lsl	w8, w11, w8
	orr	w8, w9, w8
	str	w8, [x0, x10]
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_NUM_MSR_MAPS,4,2               ; @NUM_MSR_MAPS
	.comm	_msrpm_ranges,8,3               ; @msrpm_ranges
	.comm	_MSRS_IN_RANGE,4,2              ; @MSRS_IN_RANGE
	.no_dead_strip	_set_msr_interception
.subsections_via_symbols
