	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tune_fan
_tune_fan:                              ## @tune_fan
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%edi, %ebx
	leal	7(,%rbx,8), %edx
	movq	_x@GOTPCREL(%rip), %r14
	movl	24(%r14), %edi
	movl	$37, %esi
	movl	$1, %ecx
	callq	_write_reg
	movl	24(%r14), %edi
	movl	$32, %esi
	xorl	%edx, %edx
	movl	$1, %ecx
	callq	_write_reg
	movq	16(%r14), %rsi
	leaq	L_.str(%rip), %rdi
	callq	_print_temp
	movq	8(%r14), %rsi
	testq	%rsi, %rsi
	je	LBB0_2
## %bb.1:
	leaq	L_.str.1(%rip), %rdi
	callq	_print_temp
LBB0_2:
	movl	$11, %esi
	subl	%ebx, %esi
	movl	(%r14), %edx
	subl	%ebx, %edx
	leaq	L_.str.2(%rip), %rdi
	callq	_printk
	movl	%ebx, (%r14)
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_x,32,3                         ## @x
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"CPU-temp: "

L_.str.1:                               ## @.str.1
	.asciz	", Case: "

L_.str.2:                               ## @.str.2
	.asciz	",  Fan: %d (tuned %+d)\n"

	.no_dead_strip	_tune_fan
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tune_fan
_tune_fan:                              ; @tune_fan
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	mov	w2, #7
	bfi	w2, w0, #3, #29
Lloh0:
	adrp	x20, _x@GOTPAGE
Lloh1:
	ldr	x20, [x20, _x@GOTPAGEOFF]
	ldr	w0, [x20, #24]
	mov	w1, #37
	mov	w3, #1
	bl	_write_reg
	ldr	w0, [x20, #24]
	mov	w1, #32
	mov	w2, #0
	mov	w3, #1
	bl	_write_reg
	ldr	x1, [x20, #16]
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	bl	_print_temp
	ldr	x1, [x20, #8]
	cbz	x1, LBB0_2
; %bb.1:
Lloh4:
	adrp	x0, l_.str.1@PAGE
Lloh5:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_print_temp
LBB0_2:
	mov	w8, #11
	sub	w1, w8, w19
	ldr	w8, [x20]
	sub	w2, w8, w19
Lloh6:
	adrp	x0, l_.str.2@PAGE
Lloh7:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_printk
	str	w19, [x20]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_x,32,3                         ; @x
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"CPU-temp: "

l_.str.1:                               ; @.str.1
	.asciz	", Case: "

l_.str.2:                               ; @.str.2
	.asciz	",  Fan: %d (tuned %+d)\n"

	.no_dead_strip	_tune_fan
.subsections_via_symbols
