	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function applesmc_show_temperature
_applesmc_show_temperature:             ## @applesmc_show_temperature
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %rdi
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	callq	_to_sensor_dev_attr
	movq	_temperature_sensors_sets@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	_applesmc_temperature_set@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movq	(%rcx,%rdx,8), %rcx
	movq	(%rax), %rax
	movq	(%rcx,%rax,8), %rbx
	movq	_applesmc_lock@GOTPCREL(%rip), %r15
	movq	%r15, %rdi
	callq	_mutex_lock
	leaq	-56(%rbp), %rsi
	movq	%rbx, %rdi
	movl	$2, %edx
	callq	_applesmc_read_key
	movl	%eax, %ebx
	movl	-56(%rbp), %r13d
	movl	-52(%rbp), %r12d
	movq	%r15, %rdi
	callq	_mutex_unlock
	testl	%ebx, %ebx
	jne	LBB0_2
## %bb.1:
	imull	$1000, %r13d, %eax              ## imm = 0x3E8
	sarl	$6, %r12d
	imull	$250, %r12d, %ecx
	addl	%eax, %ecx
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	%r14, %rdi
	callq	_snprintf
	movl	%eax, %ebx
LBB0_2:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_4
## %bb.3:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_temperature_sensors_sets,8,3   ## @temperature_sensors_sets
	.comm	_applesmc_temperature_set,8,3   ## @applesmc_temperature_set
	.comm	_applesmc_lock,4,2              ## @applesmc_lock
	.comm	_PAGE_SIZE,4,2                  ## @PAGE_SIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%u\n"

	.no_dead_strip	_applesmc_show_temperature
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function applesmc_show_temperature
_applesmc_show_temperature:             ; @applesmc_show_temperature
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x2
	mov	x0, x1
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #8]
	bl	_to_sensor_dev_attr
Lloh3:
	adrp	x8, _temperature_sensors_sets@GOTPAGE
Lloh4:
	ldr	x8, [x8, _temperature_sensors_sets@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
Lloh6:
	adrp	x9, _applesmc_temperature_set@GOTPAGE
Lloh7:
	ldr	x9, [x9, _applesmc_temperature_set@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	ldr	x8, [x8, x9, lsl #3]
	ldr	x9, [x0]
	ldr	x20, [x8, x9, lsl #3]
Lloh9:
	adrp	x21, _applesmc_lock@GOTPAGE
Lloh10:
	ldr	x21, [x21, _applesmc_lock@GOTPAGEOFF]
	mov	x0, x21
	bl	_mutex_lock
	mov	x1, sp
	mov	x0, x20
	mov	w2, #2
	bl	_applesmc_read_key
	mov	x20, x0
	ldp	w22, w23, [sp]
	mov	x0, x21
	bl	_mutex_unlock
	cbnz	w20, LBB0_2
; %bb.1:
	mov	w8, #1000
	mul	w8, w22, w8
	asr	w9, w23, #6
	mov	w10, #250
	madd	w3, w9, w10, w8
Lloh11:
	adrp	x8, _PAGE_SIZE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _PAGE_SIZE@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
Lloh14:
	adrp	x2, l_.str@PAGE
Lloh15:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	bl	_snprintf
	mov	x20, x0
LBB0_2:
	ldr	x8, [sp, #8]
Lloh16:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh17:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_4
; %bb.3:
	mov	x0, x20
	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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_4:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_temperature_sensors_sets,8,3   ; @temperature_sensors_sets
	.comm	_applesmc_temperature_set,8,3   ; @applesmc_temperature_set
	.comm	_applesmc_lock,4,2              ; @applesmc_lock
	.comm	_PAGE_SIZE,4,2                  ; @PAGE_SIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%u\n"

	.no_dead_strip	_applesmc_show_temperature
.subsections_via_symbols
