	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_cur_val
_get_cur_val:                           ## @get_cur_val
	.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	%r12
	pushq	%rbx
	subq	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	callq	_cpumask_empty
	movl	%eax, %edi
	callq	_unlikely
	xorl	%ebx, %ebx
	testq	%rax, %rax
	jne	LBB0_6
## %bb.1:
	movq	_drv_data@GOTPCREL(%rip), %r12
	movl	(%r12), %r15d
	movq	%r14, %rdi
	callq	_cpumask_first
	movl	%r15d, %edi
	movl	%eax, %esi
	callq	_per_cpu
	movl	(%rax), %eax
	cmpl	$128, %eax
	je	LBB0_4
## %bb.2:
	cmpl	$129, %eax
	jne	LBB0_6
## %bb.3:
	movl	$129, -64(%rbp)
	movq	_MSR_IA32_PERF_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -40(%rbp)
	jmp	LBB0_5
LBB0_4:
	movl	$128, -64(%rbp)
	movl	(%r12), %ebx
	movq	%r14, %rdi
	callq	_cpumask_first
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_per_cpu
	movq	8(%rax), %rax
	movl	4(%rax), %ecx
	movl	%ecx, -44(%rbp)
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)
LBB0_5:
	movq	%r14, -56(%rbp)
	leaq	-64(%rbp), %rdi
	callq	_drv_read
	movl	-60(%rbp), %esi
	leaq	L_.str(%rip), %rdi
	callq	_dprintk
	movl	-60(%rbp), %ebx
LBB0_6:
	movl	%ebx, %eax
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_drv_data,4,2                   ## @drv_data
	.comm	_MSR_IA32_PERF_STATUS,4,2       ## @MSR_IA32_PERF_STATUS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"get_cur_val = %u\n"

	.no_dead_strip	_get_cur_val
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_cur_val
_get_cur_val:                           ; @get_cur_val
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x19, x0
	bl	_cpumask_empty
	bl	_unlikely
	cbz	x0, LBB0_2
LBB0_1:
	mov	w0, #0
	b	LBB0_7
LBB0_2:
Lloh0:
	adrp	x21, _drv_data@GOTPAGE
Lloh1:
	ldr	x21, [x21, _drv_data@GOTPAGEOFF]
	ldr	w20, [x21]
	mov	x0, x19
	bl	_cpumask_first
	mov	x1, x0
	mov	x0, x20
	bl	_per_cpu
	ldr	w8, [x0]
	cmp	w8, #128
	b.eq	LBB0_5
; %bb.3:
	cmp	w8, #129
	b.ne	LBB0_1
; %bb.4:
Lloh2:
	adrp	x9, _MSR_IA32_PERF_STATUS@GOTPAGE
Lloh3:
	ldr	x9, [x9, _MSR_IA32_PERF_STATUS@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	str	w8, [sp]
	str	w9, [sp, #24]
	b	LBB0_6
LBB0_5:
	str	w8, [sp]
	ldr	w20, [x21]
	mov	x0, x19
	bl	_cpumask_first
	mov	x1, x0
	mov	x0, x20
	bl	_per_cpu
	ldr	x8, [x0, #8]
	ldr	d0, [x8]
	str	d0, [sp, #16]
LBB0_6:
	str	x19, [sp, #8]
	mov	x0, sp
	bl	_drv_read
	ldr	w1, [sp, #4]
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	bl	_dprintk
	ldr	w0, [sp, #4]
LBB0_7:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_drv_data,4,2                   ; @drv_data
	.comm	_MSR_IA32_PERF_STATUS,4,2       ; @MSR_IA32_PERF_STATUS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"get_cur_val = %u\n"

	.no_dead_strip	_get_cur_val
.subsections_via_symbols
