	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function poll_temp
_poll_temp:                             ## @poll_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_x@GOTPCREL(%rip), %r12
	movl	28(%r12), %edi
	xorl	%esi, %esi
	movl	$2, %edx
	callq	_read_reg
	testl	%eax, %eax
	js	LBB0_13
## %bb.1:
	movl	%eax, %r14d
	movl	24(%r12), %edi
	movl	$11, %esi
	movl	$1, %edx
	callq	_read_reg
	movl	%eax, %ebx
	shll	$8, %ebx
	movl	24(%r12), %edi
	movl	$6, %esi
	movl	$1, %edx
	callq	_read_reg
	shll	$5, %eax
	movzbl	%al, %r15d
	orl	%ebx, %r15d
	movq	_LOG_TEMP@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_4
## %bb.2:
	cmpl	%r14d, (%r12)
	je	LBB0_4
## %bb.3:
	leaq	L_.str(%rip), %rdi
	movl	%r14d, %esi
	callq	_print_temp
	leaq	L_.str.1(%rip), %rdi
	movl	%r15d, %esi
	callq	_print_temp
	movl	$11, %esi
	subq	16(%r12), %rsi
	leaq	L_.str.2(%rip), %rdi
	callq	_printk
LBB0_4:
	movl	%r14d, (%r12)
	movl	%r15d, 4(%r12)
	movzwl	%r14w, %ecx
	movq	_fan_table@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	$-1, %rdx
	movq	%rax, %rsi
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	incq	%rdx
	leaq	12(%rsi), %rdi
	cmpl	(%rsi), %ecx
	movq	%rdi, %rsi
	jg	LBB0_5
## %bb.6:
	movl	$-1, %edi
	cmpl	%edx, 8(%r12)
	jle	LBB0_8
## %bb.7:
	movl	%edx, %esi
	leaq	(%rsi,%rsi,2), %rsi
	movl	4(%rax,%rsi,4), %edi
LBB0_8:
	movl	%edx, 8(%r12)
	leaq	12(%rax), %rsi
	movq	$-1, %rdx
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	incq	%rdx
	leaq	12(%rsi), %rbx
	cmpl	(%rsi), %ecx
	movq	%rbx, %rsi
	jge	LBB0_9
## %bb.10:
	cmpl	%edx, 12(%r12)
	jge	LBB0_12
## %bb.11:
	movl	%edx, %ecx
	leaq	(%rcx,%rcx,2), %rcx
	movl	8(%rax,%rcx,4), %edi
LBB0_12:
	movl	%edx, 12(%r12)
	testl	%edi, %edi
	js	LBB0_13
## %bb.14:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_tune_fan                       ## TAILCALL
LBB0_13:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_x,32,3                         ## @x
	.comm	_LOG_TEMP,8,3                   ## @LOG_TEMP
	.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\n"

	.comm	_fan_table,8,3                  ## @fan_table
	.no_dead_strip	_poll_temp
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function poll_temp
_poll_temp:                             ; @poll_temp
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
Lloh0:
	adrp	x21, _x@GOTPAGE
Lloh1:
	ldr	x21, [x21, _x@GOTPAGEOFF]
	ldr	w0, [x21, #28]
	mov	w1, #0
	mov	w2, #2
	bl	_read_reg
	tbnz	w0, #31, LBB0_14
; %bb.1:
	mov	x19, x0
	ldr	w0, [x21, #24]
	mov	w1, #11
	mov	w2, #1
	bl	_read_reg
	lsl	w20, w0, #8
	ldr	w0, [x21, #24]
	mov	w1, #6
	mov	w2, #1
	bl	_read_reg
	bfi	w20, w0, #5, #3
Lloh2:
	adrp	x8, _LOG_TEMP@GOTPAGE
Lloh3:
	ldr	x8, [x8, _LOG_TEMP@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	ldr	w9, [x21]
	cmp	x8, #0
	ccmp	w9, w19, #4, ne
	b.eq	LBB0_3
; %bb.2:
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	bl	_print_temp
Lloh7:
	adrp	x0, l_.str.1@PAGE
Lloh8:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x20
	bl	_print_temp
	ldr	x8, [x21, #16]
	mov	w9, #11
	sub	x1, x9, x8
Lloh9:
	adrp	x0, l_.str.2@PAGE
Lloh10:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_printk
LBB0_3:
	stp	w19, w20, [x21]
	and	w9, w19, #0xffff
Lloh11:
	adrp	x8, _fan_table@GOTPAGE
Lloh12:
	ldr	x8, [x8, _fan_table@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	mov	x10, #-1
	mov	x11, x8
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w12, [x11], #12
	add	x10, x10, #1
	cmp	w9, w12
	b.gt	LBB0_4
; %bb.5:
	ldr	w11, [x21, #8]
	cmp	w11, w10
	b.le	LBB0_7
; %bb.6:
	and	x11, x10, #0xffffffff
	mov	w12, #12
	madd	x11, x11, x12, x8
	ldr	w0, [x11, #4]
	b	LBB0_8
LBB0_7:
	mov	w0, #-1
LBB0_8:
	str	w10, [x21, #8]
	add	x11, x8, #12
	mov	x10, #-1
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w12, [x11], #12
	add	x10, x10, #1
	cmp	w9, w12
	b.ge	LBB0_9
; %bb.10:
	ldr	w9, [x21, #12]
	cmp	w9, w10
	b.ge	LBB0_12
; %bb.11:
	and	x9, x10, #0xffffffff
	mov	w11, #12
	madd	x8, x9, x11, x8
	ldr	w0, [x8, #8]
LBB0_12:
	str	w10, [x21, #12]
	tbnz	w0, #31, LBB0_14
; %bb.13:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_tune_fan
LBB0_14:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_x,32,3                         ; @x
	.comm	_LOG_TEMP,8,3                   ; @LOG_TEMP
	.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\n"

	.comm	_fan_table,8,3                  ; @fan_table
	.no_dead_strip	_poll_temp
.subsections_via_symbols
