	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function il4965_is_temp_calib_needed
_il4965_is_temp_calib_needed:           ## @il4965_is_temp_calib_needed
	.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
	movq	%rdi, %rbx
	movq	_S_STATS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	8(%rbx), %rsi
	callq	_test_bit
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movl	(%rbx), %r14d
	subl	4(%rbx), %r14d
	js	LBB0_3
## %bb.4:
	je	LBB0_5
## %bb.6:
	leaq	L_.str.3(%rip), %rdi
	movl	%r14d, %esi
	xorl	%eax, %eax
	callq	_D_POWER
	jmp	LBB0_7
LBB0_1:
	leaq	L_.str(%rip), %rdi
	callq	_D_TEMP
	xorl	%ebx, %ebx
	jmp	LBB0_10
LBB0_3:
	leaq	L_.str.1(%rip), %rdi
	movl	%r14d, %esi
	xorl	%eax, %eax
	callq	_D_POWER
	negl	%r14d
	jmp	LBB0_7
LBB0_5:
	leaq	L_.str.2(%rip), %rdi
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_D_POWER
LBB0_7:
	movq	_IL_TEMPERATURE_THRESHOLD@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r14d
	jge	LBB0_9
## %bb.8:
	leaq	L_.str.4(%rip), %rdi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_D_POWER
	jmp	LBB0_10
LBB0_9:
	leaq	L_.str.5(%rip), %rdi
	xorl	%eax, %eax
	callq	_D_POWER
	movl	$1, %ebx
LBB0_10:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_S_STATS,4,2                    ## @S_STATS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Temperature not updated -- no stats.\n"

L_.str.1:                               ## @.str.1
	.asciz	"Getting cooler, delta %d\n"

L_.str.2:                               ## @.str.2
	.asciz	"Temperature unchanged\n"

L_.str.3:                               ## @.str.3
	.asciz	"Getting warmer, delta %d\n"

	.comm	_IL_TEMPERATURE_THRESHOLD,4,2   ## @IL_TEMPERATURE_THRESHOLD
L_.str.4:                               ## @.str.4
	.asciz	" => thermal txpower calib not needed\n"

L_.str.5:                               ## @.str.5
	.asciz	" => thermal txpower calib needed\n"

	.no_dead_strip	_il4965_is_temp_calib_needed
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function il4965_is_temp_calib_needed
_il4965_is_temp_calib_needed:           ; @il4965_is_temp_calib_needed
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, _S_STATS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _S_STATS@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	add	x1, x19, #8
	bl	_test_bit
	cbz	w0, LBB0_4
; %bb.1:
	ldp	w8, w9, [x19]
	subs	w19, w8, w9
	b.mi	LBB0_5
; %bb.2:
	cbz	w19, LBB0_6
; %bb.3:
	mov	x8, x19
	str	x8, [sp]
Lloh3:
	adrp	x0, l_.str.3@PAGE
Lloh4:
	add	x0, x0, l_.str.3@PAGEOFF
	b	LBB0_7
LBB0_4:
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	bl	_D_TEMP
	mov	w0, #0
	b	LBB0_11
LBB0_5:
	str	x19, [sp]
Lloh7:
	adrp	x0, l_.str.1@PAGE
Lloh8:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_D_POWER
	neg	w19, w19
	b	LBB0_8
LBB0_6:
Lloh9:
	adrp	x0, l_.str.2@PAGE
Lloh10:
	add	x0, x0, l_.str.2@PAGEOFF
LBB0_7:
	bl	_D_POWER
LBB0_8:
Lloh11:
	adrp	x8, _IL_TEMPERATURE_THRESHOLD@GOTPAGE
Lloh12:
	ldr	x8, [x8, _IL_TEMPERATURE_THRESHOLD@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	cmp	w19, w8
	b.ge	LBB0_10
; %bb.9:
Lloh14:
	adrp	x0, l_.str.4@PAGE
Lloh15:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_D_POWER
	mov	w0, #0
	b	LBB0_11
LBB0_10:
Lloh16:
	adrp	x0, l_.str.5@PAGE
Lloh17:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_D_POWER
	mov	w0, #1
LBB0_11:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_S_STATS,4,2                    ; @S_STATS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Temperature not updated -- no stats.\n"

l_.str.1:                               ; @.str.1
	.asciz	"Getting cooler, delta %d\n"

l_.str.2:                               ; @.str.2
	.asciz	"Temperature unchanged\n"

l_.str.3:                               ; @.str.3
	.asciz	"Getting warmer, delta %d\n"

	.comm	_IL_TEMPERATURE_THRESHOLD,4,2   ; @IL_TEMPERATURE_THRESHOLD
l_.str.4:                               ; @.str.4
	.asciz	" => thermal txpower calib not needed\n"

l_.str.5:                               ; @.str.5
	.asciz	" => thermal txpower calib needed\n"

	.no_dead_strip	_il4965_is_temp_calib_needed
.subsections_via_symbols
