	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal4,4byte_literals
	.p2align	2                               ## -- Begin function hm_SYSFS_get_fan_speed_current
LCPI0_0:
	.long	0x42c80000                      ## float 100
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_hm_SYSFS_get_fan_speed_current:        ## @hm_SYSFS_get_fan_speed_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	$32, %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_13
## %bb.1:
	movq	%rax, %rbx
	leaq	L_.str(%rip), %rsi
	leaq	-48(%rbp), %rdi
	movq	%rax, %rdx
	callq	_hc_asprintf
	leaq	L_.str.1(%rip), %rsi
	leaq	-40(%rbp), %rdi
	movq	%rbx, %rdx
	callq	_hc_asprintf
	movq	%rbx, %rdi
	callq	_hcfree
	movq	-48(%rbp), %rsi
	leaq	L_.str.2(%rip), %rdx
	leaq	-64(%rbp), %rdi
	callq	_hc_fopen
	testl	%eax, %eax
	je	LBB0_8
## %bb.2:
	movl	$0, -56(%rbp)
	leaq	L_.str.4(%rip), %rsi
	leaq	-64(%rbp), %r12
	leaq	-56(%rbp), %rdx
	movq	%r12, %rdi
	callq	_hc_fscanf
	movl	%eax, %ebx
	movq	%r12, %rdi
	callq	_hc_fclose
	cmpl	$1, %ebx
	jne	LBB0_9
## %bb.3:
	movq	-40(%rbp), %rsi
	leaq	L_.str.2(%rip), %rdx
	leaq	-60(%rbp), %rdi
	callq	_hc_fopen
	testl	%eax, %eax
	je	LBB0_10
## %bb.4:
	movl	$0, -52(%rbp)
	leaq	L_.str.4(%rip), %rsi
	leaq	-60(%rbp), %r12
	leaq	-52(%rbp), %rdx
	movq	%r12, %rdi
	callq	_hc_fscanf
	movl	%eax, %ebx
	movq	%r12, %rdi
	callq	_hc_fclose
	cmpl	$1, %ebx
	jne	LBB0_15
## %bb.5:
	movl	-52(%rbp), %eax
	testl	%eax, %eax
	je	LBB0_16
## %bb.6:
	cvtsi2ss	%eax, %xmm0
	divss	LCPI0_0(%rip), %xmm0
	cvtsi2ssl	-56(%rbp), %xmm1
	divss	%xmm0, %xmm1
	cvttss2si	%xmm1, %eax
	movl	%eax, (%r14)
	xorl	%ebx, %ebx
	jmp	LBB0_18
LBB0_8:
	movq	-48(%rbp), %rbx
	jmp	LBB0_11
LBB0_9:
	movq	-48(%rbp), %rdx
	leaq	L_.str.5(%rip), %rsi
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_event_log_error
	jmp	LBB0_12
LBB0_10:
	movq	-40(%rbp), %rbx
LBB0_11:
	movq	_errno@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_strerror
	leaq	L_.str.3(%rip), %rsi
	movq	%r15, %rdi
	movq	%rbx, %rdx
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_event_log_error
LBB0_12:
	movq	-48(%rbp), %rdi
	callq	_hcfree
	movq	-40(%rbp), %rdi
	callq	_hcfree
LBB0_13:
	movl	$-1, %ebx
LBB0_14:
	movl	%ebx, %eax
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	movq	-40(%rbp), %rdx
	leaq	L_.str.5(%rip), %rsi
	jmp	LBB0_17
LBB0_16:
	movq	-40(%rbp), %rdx
	leaq	L_.str.6(%rip), %rsi
LBB0_17:
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_event_log_error
	movl	$-1, %ebx
LBB0_18:
	movq	-48(%rbp), %rdi
	callq	_hcfree
	movq	-40(%rbp), %rdi
	callq	_hcfree
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s/pwm1"

L_.str.1:                               ## @.str.1
	.asciz	"%s/pwm1_max"

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

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

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

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

L_.str.6:                               ## @.str.6
	.asciz	"%s: pwm1_max cannot be 0."

	.no_dead_strip	_hm_SYSFS_get_fan_speed_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_fan_speed_current
_hm_SYSFS_get_fan_speed_current:        ; @hm_SYSFS_get_fan_speed_current
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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_12
; %bb.1:
	mov	x21, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	add	x0, sp, #40
	mov	x2, x21
	bl	_hc_asprintf
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	add	x0, sp, #32
	mov	x2, x21
	bl	_hc_asprintf
	mov	x0, x21
	bl	_hcfree
	ldr	x1, [sp, #40]
Lloh4:
	adrp	x2, l_.str.2@PAGE
Lloh5:
	add	x2, x2, l_.str.2@PAGEOFF
	add	x0, sp, #28
	bl	_hc_fopen
	cbz	w0, LBB0_7
; %bb.2:
	str	wzr, [sp, #24]
Lloh6:
	adrp	x1, l_.str.4@PAGE
Lloh7:
	add	x1, x1, l_.str.4@PAGEOFF
	add	x0, sp, #28
	add	x2, sp, #24
	bl	_hc_fscanf
	mov	x21, x0
	add	x0, sp, #28
	bl	_hc_fclose
	cmp	w21, #1
	b.ne	LBB0_8
; %bb.3:
	ldr	x1, [sp, #32]
Lloh8:
	adrp	x2, l_.str.2@PAGE
Lloh9:
	add	x2, x2, l_.str.2@PAGEOFF
	add	x0, sp, #20
	bl	_hc_fopen
	cbz	w0, LBB0_9
; %bb.4:
	str	wzr, [sp, #16]
Lloh10:
	adrp	x1, l_.str.4@PAGE
Lloh11:
	add	x1, x1, l_.str.4@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_14
; %bb.5:
	ldr	w8, [sp, #16]
	cbz	w8, LBB0_15
; %bb.6:
	mov	w19, #0
	scvtf	s0, w8
	mov	w8, #1120403456
	fmov	s1, w8
	fdiv	s0, s0, s1
	ldr	s1, [sp, #24]
	scvtf	s1, s1
	fdiv	s0, s1, s0
	fcvtzs	w8, s0
	str	w8, [x20]
	b	LBB0_17
LBB0_7:
	ldr	x20, [sp, #40]
	b	LBB0_10
LBB0_8:
	ldr	x2, [sp, #40]
Lloh12:
	adrp	x1, l_.str.5@PAGE
Lloh13:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x19
	b	LBB0_11
LBB0_9:
	ldr	x20, [sp, #32]
LBB0_10:
Lloh14:
	adrp	x8, _errno@GOTPAGE
Lloh15:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
	bl	_strerror
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh17:
	adrp	x1, l_.str.3@PAGE
Lloh18:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	mov	x2, x20
LBB0_11:
	bl	_event_log_error
	ldr	x0, [sp, #40]
	bl	_hcfree
	ldr	x0, [sp, #32]
	bl	_hcfree
LBB0_12:
	mov	w19, #-1
LBB0_13:
	mov	x0, x19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_14:
	ldr	x2, [sp, #32]
Lloh19:
	adrp	x1, l_.str.5@PAGE
Lloh20:
	add	x1, x1, l_.str.5@PAGEOFF
	b	LBB0_16
LBB0_15:
	ldr	x2, [sp, #32]
Lloh21:
	adrp	x1, l_.str.6@PAGE
Lloh22:
	add	x1, x1, l_.str.6@PAGEOFF
LBB0_16:
	mov	x0, x19
	bl	_event_log_error
	mov	w19, #-1
LBB0_17:
	ldr	x0, [sp, #40]
	bl	_hcfree
	ldr	x0, [sp, #32]
	bl	_hcfree
	b	LBB0_13
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s/pwm1"

l_.str.1:                               ; @.str.1
	.asciz	"%s/pwm1_max"

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

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

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

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

l_.str.6:                               ; @.str.6
	.asciz	"%s: pwm1_max cannot be 0."

	.no_dead_strip	_hm_SYSFS_get_fan_speed_current
.subsections_via_symbols
