	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lookup_msr
_lookup_msr:                            ## @lookup_msr
	.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
	movq	%rsi, %r14
	movq	%rdi, %r13
	movl	(%rsi), %eax
	movl	%eax, -48(%rbp)
	leaq	-48(%rbp), %rsi
	callq	_cut_comma
	movq	_msrmap@GOTPCREL(%rip), %r12
	movq	(%r12), %rax
	movq	(%rax), %rdx
	testq	%rdx, %rdx
	je	LBB0_5
## %bb.1:
	xorl	%ebx, %ebx
	leaq	-48(%rbp), %r15
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rdi
	movq	%r15, %rsi
	callq	_json_streq
	testq	%rax, %rax
	jne	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r12), %rax
	movq	8(%rax,%rbx,8), %rdx
	incq	%rbx
	testq	%rdx, %rdx
	jne	LBB0_2
LBB0_5:
	cmpb	$0, _lookup_msr.warned(%rip)
	jne	LBB0_7
## %bb.6:
	movb	$1, _lookup_msr.warned(%rip)
	movq	_prog@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	%r14, %rdi
	callq	_json_len
	movslq	(%r14), %rcx
	addq	%rcx, %r13
	leaq	L_.str(%rip), %rdi
	movl	%r15d, %esi
	movl	%eax, %edx
	movq	%r13, %rcx
	callq	_pr_err
LBB0_7:
	xorl	%eax, %eax
	jmp	LBB0_8
LBB0_3:
	movl	%ebx, %eax
	shlq	$3, %rax
	addq	(%r12), %rax
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.zerofill __DATA,__bss,_lookup_msr.warned,1,2 ## @lookup_msr.warned
	.comm	_msrmap,8,3                     ## @msrmap
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: Unknown MSR in event file %.*s\n"

	.comm	_prog,4,2                       ## @prog
	.no_dead_strip	_lookup_msr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lookup_msr
_lookup_msr:                            ; @lookup_msr
	.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, x1
	mov	x19, x0
	ldr	w8, [x1]
	str	w8, [sp, #8]
	add	x1, sp, #8
	bl	_cut_comma
Lloh0:
	adrp	x21, _msrmap@GOTPAGE
Lloh1:
	ldr	x21, [x21, _msrmap@GOTPAGEOFF]
	ldr	x8, [x21]
	ldr	x2, [x8]
	cbz	x2, LBB0_4
; %bb.1:
	mov	x22, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	add	x1, sp, #8
	mov	x0, x19
	bl	_json_streq
	cbnz	x0, LBB0_7
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x21]
	add	x8, x8, x22, lsl #3
	add	x22, x22, #1
	ldr	x2, [x8, #8]
	cbnz	x2, LBB0_2
LBB0_4:
	adrp	x8, _lookup_msr.warned@PAGE
	ldrb	w9, [x8, _lookup_msr.warned@PAGEOFF]
	tbnz	w9, #0, LBB0_6
; %bb.5:
	mov	w9, #1
	strb	w9, [x8, _lookup_msr.warned@PAGEOFF]
Lloh2:
	adrp	x8, _prog@GOTPAGE
Lloh3:
	ldr	x8, [x8, _prog@GOTPAGEOFF]
Lloh4:
	ldr	w21, [x8]
	mov	x0, x20
	bl	_json_len
	mov	x2, x0
	ldrsw	x8, [x20]
	add	x3, x19, x8
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x21
	bl	_pr_err
LBB0_6:
	mov	x0, #0
	b	LBB0_8
LBB0_7:
	ldr	x8, [x21]
	add	x0, x8, w22, uxtw #3
LBB0_8:
	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 AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
.zerofill __DATA,__bss,_lookup_msr.warned,1,2 ; @lookup_msr.warned
	.comm	_msrmap,8,3                     ; @msrmap
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: Unknown MSR in event file %.*s\n"

	.comm	_prog,4,2                       ; @prog
	.no_dead_strip	_lookup_msr
.subsections_via_symbols
