	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function il3945_is_temp_calib_needed
_il3945_is_temp_calib_needed:           ## @il3945_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, %r14
	callq	_il3945_hw_reg_txpower_get_temperature
	movl	%eax, %ebx
	movl	%eax, (%r14)
	subl	4(%r14), %ebx
	js	LBB0_1
## %bb.2:
	je	LBB0_3
## %bb.4:
	leaq	L_.str.2(%rip), %rdi
	movl	%ebx, %esi
	xorl	%eax, %eax
	callq	_D_POWER
	jmp	LBB0_5
LBB0_1:
	leaq	L_.str(%rip), %rdi
	movl	%ebx, %esi
	xorl	%eax, %eax
	callq	_D_POWER
	negl	%ebx
	jmp	LBB0_5
LBB0_3:
	leaq	L_.str.1(%rip), %rdi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_D_POWER
LBB0_5:
	movq	_IL_TEMPERATURE_LIMIT_TIMER@GOTPCREL(%rip), %rax
	cmpl	(%rax), %ebx
	jge	LBB0_7
## %bb.6:
	leaq	L_.str.3(%rip), %rdi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_D_POWER
	jmp	LBB0_8
LBB0_7:
	leaq	L_.str.4(%rip), %rdi
	xorl	%eax, %eax
	callq	_D_POWER
	movl	(%r14), %eax
	movl	%eax, 4(%r14)
	movl	$1, %ebx
LBB0_8:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Getting cooler, delta %d,\n"

L_.str.1:                               ## @.str.1
	.asciz	"Same temp,\n"

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

	.comm	_IL_TEMPERATURE_LIMIT_TIMER,4,2 ## @IL_TEMPERATURE_LIMIT_TIMER
L_.str.3:                               ## @.str.3
	.asciz	"Timed thermal calib not needed\n"

L_.str.4:                               ## @.str.4
	.asciz	"Timed thermal calib needed\n"

	.no_dead_strip	_il3945_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 il3945_is_temp_calib_needed
_il3945_is_temp_calib_needed:           ; @il3945_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
	bl	_il3945_hw_reg_txpower_get_temperature
	str	w0, [x19]
	ldr	w8, [x19, #4]
	subs	w20, w0, w8
	b.mi	LBB0_3
; %bb.1:
	cbz	w20, LBB0_4
; %bb.2:
	mov	x8, x20
	str	x8, [sp]
Lloh0:
	adrp	x0, l_.str.2@PAGE
Lloh1:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_5
LBB0_3:
	str	x20, [sp]
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	bl	_D_POWER
	neg	w20, w20
	b	LBB0_6
LBB0_4:
Lloh4:
	adrp	x0, l_.str.1@PAGE
Lloh5:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_5:
	bl	_D_POWER
LBB0_6:
Lloh6:
	adrp	x8, _IL_TEMPERATURE_LIMIT_TIMER@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IL_TEMPERATURE_LIMIT_TIMER@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cmp	w20, w8
	b.ge	LBB0_8
; %bb.7:
Lloh9:
	adrp	x0, l_.str.3@PAGE
Lloh10:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_D_POWER
	mov	w0, #0
	b	LBB0_9
LBB0_8:
Lloh11:
	adrp	x0, l_.str.4@PAGE
Lloh12:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_D_POWER
	ldr	w8, [x19]
	str	w8, [x19, #4]
	mov	w0, #1
LBB0_9:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Getting cooler, delta %d,\n"

l_.str.1:                               ; @.str.1
	.asciz	"Same temp,\n"

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

	.comm	_IL_TEMPERATURE_LIMIT_TIMER,4,2 ; @IL_TEMPERATURE_LIMIT_TIMER
l_.str.3:                               ; @.str.3
	.asciz	"Timed thermal calib not needed\n"

l_.str.4:                               ; @.str.4
	.asciz	"Timed thermal calib needed\n"

	.no_dead_strip	_il3945_is_temp_calib_needed
.subsections_via_symbols
