	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hm_SYSFS_get_temperature_current
_hm_SYSFS_get_temperature_current:      ## @hm_SYSFS_get_temperature_current
	.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	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rdi, %r15
	callq	_hm_SYSFS_get_syspath_hwmon
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	leaq	L_.str(%rip), %rsi
	leaq	-40(%rbp), %rdi
	movq	%rax, %rdx
	callq	_hc_asprintf
	movq	%rbx, %rdi
	callq	_hcfree
	movq	-40(%rbp), %rsi
	leaq	L_.str.1(%rip), %rdx
	leaq	-48(%rbp), %rdi
	callq	_hc_fopen
	testl	%eax, %eax
	je	LBB0_3
## %bb.4:
	movl	$0, -44(%rbp)
	leaq	L_.str.3(%rip), %rsi
	leaq	-48(%rbp), %r12
	leaq	-44(%rbp), %rdx
	movq	%r12, %rdi
	callq	_hc_fscanf
	movl	%eax, %ebx
	movq	%r12, %rdi
	callq	_hc_fclose
	cmpl	$1, %ebx
	jne	LBB0_5
## %bb.6:
	movslq	-44(%rbp), %rax
	imulq	$274877907, %rax, %rax          ## imm = 0x10624DD3
	movq	%rax, %rcx
	shrq	$63, %rcx
	sarq	$38, %rax
	addl	%ecx, %eax
	movl	%eax, (%r14)
	xorl	%ebx, %ebx
	jmp	LBB0_7
LBB0_1:
	movl	$-1, %ebx
	jmp	LBB0_8
LBB0_3:
	movq	-40(%rbp), %rbx
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	leaq	L_.str.2(%rip), %rsi
	movq	%r15, %rdi
	movq	%rbx, %rdx
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_event_log_error
	movq	-40(%rbp), %rdi
	callq	_hcfree
	movl	$-1, %ebx
	jmp	LBB0_8
LBB0_5:
	movq	-40(%rbp), %rdx
	leaq	L_.str.4(%rip), %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_event_log_error
	movl	$-1, %ebx
LBB0_7:
	movq	-40(%rbp), %rdi
	callq	_hcfree
LBB0_8:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s/temp1_input"

L_.str.1:                               ## @.str.1
	.asciz	"r"

L_.str.2:                               ## @.str.2
	.asciz	"%s: %s"

	.comm	_errno,4,2                      ## @errno
L_.str.3:                               ## @.str.3
	.asciz	"%d"

L_.str.4:                               ## @.str.4
	.asciz	"%s: unexpected data."

	.no_dead_strip	_hm_SYSFS_get_temperature_current
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hm_SYSFS_get_temperature_current
_hm_SYSFS_get_temperature_current:      ; @hm_SYSFS_get_temperature_current
	.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	x20, x2
	mov	x19, x0
	bl	_hm_SYSFS_get_syspath_hwmon
	cbz	x0, LBB0_4
; %bb.1:
	mov	x21, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	add	x0, sp, #24
	mov	x2, x21
	bl	_hc_asprintf
	mov	x0, x21
	bl	_hcfree
	ldr	x1, [sp, #24]
Lloh2:
	adrp	x2, l_.str.1@PAGE
Lloh3:
	add	x2, x2, l_.str.1@PAGEOFF
	add	x0, sp, #20
	bl	_hc_fopen
	cbz	w0, LBB0_5
; %bb.2:
	str	wzr, [sp, #16]
Lloh4:
	adrp	x1, l_.str.3@PAGE
Lloh5:
	add	x1, x1, l_.str.3@PAGEOFF
	add	x0, sp, #20
	add	x2, sp, #16
	bl	_hc_fscanf
	mov	x21, x0
	add	x0, sp, #20
	bl	_hc_fclose
	cmp	w21, #1
	b.ne	LBB0_6
; %bb.3:
	mov	w19, #0
	ldrsw	x8, [sp, #16]
	mov	w9, #19923
	movk	w9, #4194, lsl #16
	mul	x8, x8, x9
	lsr	x9, x8, #63
	asr	x8, x8, #38
	add	w8, w8, w9
	str	w8, [x20]
	b	LBB0_7
LBB0_4:
	mov	w19, #-1
	b	LBB0_8
LBB0_5:
	ldr	x20, [sp, #24]
Lloh6:
	adrp	x8, _errno@GOTPAGE
Lloh7:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	bl	_strerror
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh9:
	adrp	x1, l_.str.2@PAGE
Lloh10:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	mov	x2, x20
	bl	_event_log_error
	ldr	x0, [sp, #24]
	bl	_hcfree
	mov	w19, #-1
	b	LBB0_8
LBB0_6:
	ldr	x2, [sp, #24]
Lloh11:
	adrp	x1, l_.str.4@PAGE
Lloh12:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_event_log_error
	mov	w19, #-1
LBB0_7:
	ldr	x0, [sp, #24]
	bl	_hcfree
LBB0_8:
	mov	x0, x19
	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 AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s/temp1_input"

l_.str.1:                               ; @.str.1
	.asciz	"r"

l_.str.2:                               ; @.str.2
	.asciz	"%s: %s"

	.comm	_errno,4,2                      ; @errno
l_.str.3:                               ; @.str.3
	.asciz	"%d"

l_.str.4:                               ; @.str.4
	.asciz	"%s: unexpected data."

	.no_dead_strip	_hm_SYSFS_get_temperature_current
.subsections_via_symbols
