	.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
_iwl_set_temperature_offset_calib:      ## @iwl_set_temperature_offset_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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	leaq	-24(%rbp), %rdi
	xorl	%esi, %esi
	movl	$16, %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	(%rax), %rdi
	movq	%rdi, -24(%rbp)
	testq	%rdi, %rdi
	jne	LBB0_2
## %bb.1:
	movq	_DEFAULT_RADIO_SENSOR_OFFSET@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	%rdi, -24(%rbp)
LBB0_2:
	callq	_le16_to_cpu
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	movl	%eax, %edx
	callq	_IWL_DEBUG_CALIB
	leaq	-24(%rbp), %rsi
	movq	%rbx, %rdi
	movl	$16, %edx
	callq	_iwl_calib_set
	addq	$24, %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
	.comm	_DEFAULT_RADIO_SENSOR_OFFSET,8,3 ## @DEFAULT_RADIO_SENSOR_OFFSET
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Radio sensor offset: %d\n"

	.no_dead_strip	_iwl_set_temperature_offset_calib
.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
_iwl_set_temperature_offset_calib:      ; @iwl_set_temperature_offset_calib
	.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
	mov	x20, sp
	mov	x0, sp
	mov	w1, #0
	mov	w2, #16
	bl	_memset
	add	x0, x20, #8
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]
	str	x0, [sp]
	cbnz	x0, LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _DEFAULT_RADIO_SENSOR_OFFSET@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DEFAULT_RADIO_SENSOR_OFFSET@GOTPAGEOFF]
Lloh5:
	ldr	x0, [x8]
	str	x0, [sp]
LBB0_2:
	bl	_le16_to_cpu
	mov	x2, x0
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_IWL_DEBUG_CALIB
	mov	x1, sp
	mov	x0, x19
	mov	w2, #16
	bl	_iwl_calib_set
	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 AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_IWL_PHY_CALIBRATE_TEMP_OFFSET_CMD,4,2 ; @IWL_PHY_CALIBRATE_TEMP_OFFSET_CMD
	.comm	_DEFAULT_RADIO_SENSOR_OFFSET,8,3 ; @DEFAULT_RADIO_SENSOR_OFFSET
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Radio sensor offset: %d\n"

	.no_dead_strip	_iwl_set_temperature_offset_calib
.subsections_via_symbols
