	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function show_temp
_show_temp:                             ## @show_temp
	.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
	movq	%rdx, %r14
	movq	%rdi, %rbx
	movq	%rsi, %rdi
	callq	_to_sensor_dev_attr
	movq	%rax, %r15
	movq	%rbx, %rdi
	callq	_dev_get_drvdata
	movq	(%rax), %rax
	movq	(%r15), %rcx
	movq	(%rax,%rcx,8), %rbx
	leaq	12(%rbx), %r15
	movq	%r15, %rdi
	callq	_mutex_lock
	cmpl	$0, (%rbx)
	je	LBB0_2
## %bb.1:
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	_HZ@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	16(%rbx), %rsi
	callq	_time_after
	testq	%rax, %rax
	je	LBB0_5
LBB0_2:
	movl	24(%rbx), %esi
	movl	28(%rbx), %edi
	leaq	-28(%rbp), %rdx
	leaq	-32(%rbp), %rcx
	callq	_rdmsr_on_cpu
	movl	$0, (%rbx)
	movl	-28(%rbp), %eax
	testl	%eax, %eax
	jns	LBB0_4
## %bb.3:
	shrl	$16, %eax
	andl	$127, %eax
	imull	$-1000, %eax, %eax              ## imm = 0xFC18
	addl	8(%rbx), %eax
	movl	%eax, 4(%rbx)
	movl	$1, (%rbx)
LBB0_4:
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 16(%rbx)
LBB0_5:
	movq	%r15, %rdi
	callq	_mutex_unlock
	cmpl	$0, (%rbx)
	je	LBB0_7
## %bb.6:
	movl	4(%rbx), %edx
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_sprintf
	jmp	LBB0_8
LBB0_7:
	movq	_EAGAIN@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_jiffies,8,3                    ## @jiffies
	.comm	_HZ,8,3                         ## @HZ
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%d\n"

	.comm	_EAGAIN,4,2                     ## @EAGAIN
	.no_dead_strip	_show_temp
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function show_temp
_show_temp:                             ; @show_temp
	.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	x19, x2
	mov	x20, x0
	mov	x0, x1
	bl	_to_sensor_dev_attr
	mov	x21, x0
	mov	x0, x20
	bl	_dev_get_drvdata
	ldr	x8, [x0]
	ldr	x9, [x21]
	ldr	x21, [x8, x9, lsl #3]
	add	x20, x21, #12
	mov	x0, x20
	bl	_mutex_lock
	ldr	w8, [x21]
Lloh0:
	adrp	x22, _jiffies@GOTPAGE
Lloh1:
	ldr	x22, [x22, _jiffies@GOTPAGEOFF]
	cbz	w8, LBB0_2
; %bb.1:
	ldr	x0, [x22]
	ldr	x8, [x21, #16]
Lloh2:
	adrp	x9, _HZ@GOTPAGE
Lloh3:
	ldr	x9, [x9, _HZ@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_time_after
	cbz	x0, LBB0_5
LBB0_2:
	ldp	w1, w0, [x21, #24]
	add	x2, sp, #12
	add	x3, sp, #8
	bl	_rdmsr_on_cpu
	str	wzr, [x21]
	ldr	w8, [sp, #12]
	tbz	w8, #31, LBB0_4
; %bb.3:
	ldr	w9, [x21, #8]
	ubfx	w8, w8, #16, #7
	mov	w10, #-1000
	madd	w8, w8, w10, w9
	mov	w9, #1
	stp	w9, w8, [x21]
LBB0_4:
	ldr	x8, [x22]
	str	x8, [x21, #16]
LBB0_5:
	mov	x0, x20
	bl	_mutex_unlock
	ldr	w8, [x21]
	cbz	w8, LBB0_7
; %bb.6:
	ldr	w2, [x21, #4]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_sprintf
	b	LBB0_8
LBB0_7:
Lloh7:
	adrp	x8, _EAGAIN@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EAGAIN@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	neg	w0, w8
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 AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_HZ,8,3                         ; @HZ
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%d\n"

	.comm	_EAGAIN,4,2                     ; @EAGAIN
	.no_dead_strip	_show_temp
.subsections_via_symbols
