	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_il4965_temperature_calib       ## -- Begin function il4965_temperature_calib
	.p2align	4, 0x90
_il4965_temperature_calib:              ## @il4965_temperature_calib
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	callq	_il4965_hw_get_temperature
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_IL_TX_POWER_TEMPERATURE_OUT_OF_RANGE
	testq	%rax, %rax
	jne	LBB0_8
## %bb.1:
	movq	(%r14), %rdi
	cmpq	%rbx, %rdi
	je	LBB0_5
## %bb.2:
	testq	%rdi, %rdi
	je	LBB0_4
## %bb.3:
	callq	_KELVIN_TO_CELSIUS
	movl	%eax, %r15d
	movq	%rbx, %rdi
	callq	_KELVIN_TO_CELSIUS
	leaq	L_.str(%rip), %rdi
	movl	%r15d, %esi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_D_TEMP
	jmp	LBB0_5
LBB0_4:
	movq	%rbx, %rdi
	callq	_KELVIN_TO_CELSIUS
	leaq	L_.str.1(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_D_TEMP
LBB0_5:
	movq	%rbx, (%r14)
	movq	_S_TEMPERATURE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	16(%r14), %rbx
	movq	%rbx, %rsi
	callq	_set_bit
	cmpl	$0, 20(%r14)
	je	LBB0_6
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	_S_SCANNING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	_test_bit
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movq	%r14, %rdi
	callq	_il4965_is_temp_calib_needed
	testq	%rax, %rax
	je	LBB0_8
## %bb.9:
	movl	12(%r14), %edi
	addq	$8, %r14
	movq	%r14, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_queue_work                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Temperature changed from %dC to %dC\n"

L_.str.1:                               ## @.str.1
	.asciz	"Temperature initialized to %dC\n"

	.comm	_S_TEMPERATURE,4,2              ## @S_TEMPERATURE
	.comm	_S_SCANNING,4,2                 ## @S_SCANNING
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_il4965_temperature_calib       ; -- Begin function il4965_temperature_calib
	.p2align	2
_il4965_temperature_calib:              ; @il4965_temperature_calib
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x19, x0
	bl	_il4965_hw_get_temperature
	mov	x20, x0
	bl	_IL_TX_POWER_TEMPERATURE_OUT_OF_RANGE
	cbnz	x0, LBB0_7
; %bb.1:
	ldr	x0, [x19]
	cmp	x0, x20
	b.eq	LBB0_6
; %bb.2:
	cbz	x0, LBB0_4
; %bb.3:
	bl	_KELVIN_TO_CELSIUS
	mov	x21, x0
	mov	x0, x20
	bl	_KELVIN_TO_CELSIUS
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x21
	b	LBB0_5
LBB0_4:
	mov	x0, x20
	bl	_KELVIN_TO_CELSIUS
	mov	x1, x0
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_5:
	bl	_D_TEMP
LBB0_6:
	str	x20, [x19]
Lloh4:
	adrp	x8, _S_TEMPERATURE@GOTPAGE
Lloh5:
	ldr	x8, [x8, _S_TEMPERATURE@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
	add	x20, x19, #16
	mov	x1, x20
	bl	_set_bit
	ldr	w8, [x19, #20]
	cbz	w8, LBB0_8
LBB0_7:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_8:
Lloh7:
	adrp	x8, _S_SCANNING@GOTPAGE
Lloh8:
	ldr	x8, [x8, _S_SCANNING@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	mov	x1, x20
	bl	_test_bit
	cmp	w0, #0
	cset	w0, eq
	bl	_unlikely
	cbz	x0, LBB0_7
; %bb.9:
	mov	x0, x19
	bl	_il4965_is_temp_calib_needed
	cbz	x0, LBB0_7
; %bb.10:
	ldr	w0, [x19, #12]
	add	x1, x19, #8
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	b	_queue_work
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Temperature changed from %dC to %dC\n"

l_.str.1:                               ; @.str.1
	.asciz	"Temperature initialized to %dC\n"

	.comm	_S_TEMPERATURE,4,2              ; @S_TEMPERATURE
	.comm	_S_SCANNING,4,2                 ; @S_SCANNING
.subsections_via_symbols
