	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function iwl_set_temperature_offset_calib_v2
_iwl_set_temperature_offset_calib_v2:   ## @iwl_set_temperature_offset_calib_v2
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	leaq	-40(%rbp), %rdi
	xorl	%esi, %esi
	movl	$32, %edx
	callq	_memset
	leaq	-16(%rbp), %rdi
	movq	_IWL_PHY_CALIBRATE_TEMP_OFFSET_CMD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_iwl_set_calib_hdr
	movq	(%rbx), %rax
	movq	16(%rax), %rdi
	movq	%rdi, -24(%rbp)
	movq	8(%rax), %rcx
	movq	%rcx, -32(%rbp)
	testq	%rcx, %rcx
	jne	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	xorl	%eax, %eax
	callq	_IWL_DEBUG_CALIB
	movq	_DEFAULT_RADIO_SENSOR_OFFSET@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	%rdi, -32(%rbp)
	movq	%rdi, -24(%rbp)
	movq	(%rbx), %rax
LBB0_2:
	movq	(%rax), %rax
	movq	%rax, -40(%rbp)
	callq	_le16_to_cpu
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_IWL_DEBUG_CALIB
	movq	-32(%rbp), %rdi
	callq	_le16_to_cpu
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_IWL_DEBUG_CALIB
	movq	-40(%rbp), %rdi
	callq	_le16_to_cpu
	leaq	L_.str.3(%rip), %rsi
	movq	%rbx, %rdi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_IWL_DEBUG_CALIB
	leaq	-40(%rbp), %rsi
	movq	%rbx, %rdi
	movl	$32, %edx
	callq	_iwl_calib_set
	addq	$40, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IWL_PHY_CALIBRATE_TEMP_OFFSET_CMD,4,2 ## @IWL_PHY_CALIBRATE_TEMP_OFFSET_CMD
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"no info in EEPROM, use default\n"

	.comm	_DEFAULT_RADIO_SENSOR_OFFSET,8,3 ## @DEFAULT_RADIO_SENSOR_OFFSET
L_.str.1:                               ## @.str.1
	.asciz	"Radio sensor offset high: %d\n"

L_.str.2:                               ## @.str.2
	.asciz	"Radio sensor offset low: %d\n"

L_.str.3:                               ## @.str.3
	.asciz	"Voltage Ref: %d\n"

	.no_dead_strip	_iwl_set_temperature_offset_calib_v2
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function iwl_set_temperature_offset_calib_v2
_iwl_set_temperature_offset_calib_v2:   ; @iwl_set_temperature_offset_calib_v2
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	add	x20, sp, #16
	add	x0, sp, #16
	mov	w1, #0
	mov	w2, #32
	bl	_memset
	add	x0, x20, #24
Lloh0:
	adrp	x8, _IWL_PHY_CALIBRATE_TEMP_OFFSET_CMD@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IWL_PHY_CALIBRATE_TEMP_OFFSET_CMD@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_iwl_set_calib_hdr
	ldr	x8, [x19]
	ldr	x0, [x8, #16]
	str	x0, [sp, #32]
	ldr	x9, [x8, #8]
	str	x9, [sp, #24]
	cbnz	x9, LBB0_2
; %bb.1:
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_IWL_DEBUG_CALIB
Lloh5:
	adrp	x8, _DEFAULT_RADIO_SENSOR_OFFSET@GOTPAGE
Lloh6:
	ldr	x8, [x8, _DEFAULT_RADIO_SENSOR_OFFSET@GOTPAGEOFF]
Lloh7:
	ldr	x0, [x8]
	stp	x0, x0, [sp, #24]
	ldr	x8, [x19]
LBB0_2:
	ldr	x8, [x8]
	str	x8, [sp, #16]
	bl	_le16_to_cpu
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_IWL_DEBUG_CALIB
	ldr	x0, [sp, #24]
	bl	_le16_to_cpu
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh10:
	adrp	x1, l_.str.2@PAGE
Lloh11:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_IWL_DEBUG_CALIB
	ldr	x0, [sp, #16]
	bl	_le16_to_cpu
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp]
Lloh12:
	adrp	x1, l_.str.3@PAGE
Lloh13:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_IWL_DEBUG_CALIB
	add	x1, sp, #16
	mov	x0, x19
	mov	w2, #32
	bl	_iwl_calib_set
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_IWL_PHY_CALIBRATE_TEMP_OFFSET_CMD,4,2 ; @IWL_PHY_CALIBRATE_TEMP_OFFSET_CMD
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"no info in EEPROM, use default\n"

	.comm	_DEFAULT_RADIO_SENSOR_OFFSET,8,3 ; @DEFAULT_RADIO_SENSOR_OFFSET
l_.str.1:                               ; @.str.1
	.asciz	"Radio sensor offset high: %d\n"

l_.str.2:                               ; @.str.2
	.asciz	"Radio sensor offset low: %d\n"

l_.str.3:                               ; @.str.3
	.asciz	"Voltage Ref: %d\n"

	.no_dead_strip	_iwl_set_temperature_offset_calib_v2
.subsections_via_symbols
