	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_il4965_sensitivity_calibration ## -- Begin function il4965_sensitivity_calibration
	.p2align	4, 0x90
_il4965_sensitivity_calibration:        ## @il4965_sensitivity_calibration
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	cmpq	$0, 40(%rdi)
	je	LBB0_1
LBB0_8:
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movq	%rsi, %rbx
	movq	%rdi, %r13
	callq	_il_is_any_associated
	testl	%eax, %eax
	je	LBB0_2
## %bb.4:
	movq	%r13, %rdi
	callq	_spin_lock_irqsave
	movq	16(%rbx), %rax
	movq	_INTERFERENCE_DATA_AVAILABLE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_9
## %bb.5:
	movl	48(%rbx), %edi
	callq	_le32_to_cpu
	movq	%rax, %r14
	movl	4(%rbx), %edi
	callq	_le32_to_cpu
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	12(%rbx), %edi
	callq	_le32_to_cpu
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movl	(%rbx), %edi
	callq	_le32_to_cpu
	movq	%rax, %r15
	movl	8(%rbx), %edi
	callq	_le32_to_cpu
	movq	%rax, %r12
	movl	44(%rbx), %edi
	callq	_le32_to_cpu
	movq	%rax, -64(%rbp)
	movl	40(%rbx), %edi
	callq	_le32_to_cpu
	movq	%rax, -72(%rbp)
	movl	36(%rbx), %edi
	callq	_le32_to_cpu
	movq	%rax, -80(%rbp)
	movl	32(%rbx), %edi
	callq	_le32_to_cpu
	movq	%rax, -88(%rbp)
	movl	28(%rbx), %edi
	callq	_le32_to_cpu
	movq	%rax, -96(%rbp)
	movl	24(%rbx), %edi
	callq	_le32_to_cpu
	movq	%rax, -104(%rbp)
	movq	%r13, %rdi
	callq	_spin_unlock_irqrestore
	leaq	L_.str.2(%rip), %rdi
	movq	%r14, %rsi
	xorl	%eax, %eax
	callq	_D_CALIB
	testq	%r14, %r14
	je	LBB0_6
## %bb.7:
	movq	8(%r13), %rax
	movq	16(%r13), %rcx
	xorl	%esi, %esi
	cmpq	%r15, %rax
	cmovgq	%rsi, %rax
	movq	%r15, %rdx
	subq	%rax, %rdx
	movq	%r15, 8(%r13)
	cmpq	%r12, %rcx
	cmovgq	%rsi, %rcx
	movq	%r12, %r8
	subq	%rcx, %r8
	movq	%r12, 16(%r13)
	movq	24(%r13), %rax
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	cmpq	%rdi, %rax
	cmovgq	%rsi, %rax
	movq	%rdi, %rcx
	subq	%rax, %rcx
	movq	%rdi, 24(%r13)
	movq	32(%r13), %rax
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	cmpq	%rdi, %rax
	cmovgq	%rsi, %rax
	movq	%rdi, %rsi
	subq	%rax, %rsi
	movq	%rdi, 32(%r13)
	leaq	(%rcx,%r8), %rbx
	leaq	(%rsi,%rdx), %r15
	leaq	L_.str.4(%rip), %rdi
	xorl	%eax, %eax
	callq	_D_CALIB
	movq	%r13, %rdi
	movq	%rbx, %rsi
	movq	%r14, %rdx
	callq	_il4965_sens_auto_corr_ofdm
	leaq	-104(%rbp), %rcx
	movq	%r13, %rdi
	movq	%r15, %rsi
	movq	%r14, %rdx
	callq	_il4965_sens_energy_cck
	movq	%r13, %rdi
	callq	_il4965_sensitivity_write
	jmp	LBB0_8
LBB0_2:
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_3
LBB0_9:
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_D_CALIB
	movq	%r13, %rdi
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock_irqrestore         ## TAILCALL
LBB0_6:
	leaq	L_.str.3(%rip), %rdi
LBB0_3:
	xorl	%eax, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_D_CALIB                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"<< - not associated\n"

	.comm	_INTERFERENCE_DATA_AVAILABLE,8,3 ## @INTERFERENCE_DATA_AVAILABLE
L_.str.1:                               ## @.str.1
	.asciz	"<< invalid data.\n"

L_.str.2:                               ## @.str.2
	.asciz	"rx_enable_time = %u usecs\n"

L_.str.3:                               ## @.str.3
	.asciz	"<< RX Enable Time == 0!\n"

L_.str.4:                               ## @.str.4
	.asciz	"cck: fa %u badp %u  ofdm: fa %u badp %u\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_il4965_sensitivity_calibration ; -- Begin function il4965_sensitivity_calibration
	.p2align	2
_il4965_sensitivity_calibration:        ; @il4965_sensitivity_calibration
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	ldr	x8, [x0, #40]
	cbz	x8, LBB0_2
LBB0_1:
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
LBB0_2:
	mov	x23, x1
	mov	x19, x0
	bl	_il_is_any_associated
	cbz	w0, LBB0_6
; %bb.3:
	mov	x0, x19
	bl	_spin_lock_irqsave
	ldr	x8, [x23, #16]
Lloh0:
	adrp	x9, _INTERFERENCE_DATA_AVAILABLE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _INTERFERENCE_DATA_AVAILABLE@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.4:
	ldr	w0, [x23, #48]
	bl	_le32_to_cpu
	mov	x20, x0
	ldr	w0, [x23, #4]
	bl	_le32_to_cpu
	mov	x21, x0
	ldr	w0, [x23, #12]
	bl	_le32_to_cpu
	mov	x22, x0
	ldr	w0, [x23]
	bl	_le32_to_cpu
	mov	x24, x0
	ldr	w0, [x23, #8]
	bl	_le32_to_cpu
	mov	x25, x0
	ldr	w0, [x23, #44]
	bl	_le32_to_cpu
	str	x0, [sp, #72]
	ldr	w0, [x23, #40]
	bl	_le32_to_cpu
	str	x0, [sp, #64]
	ldr	w0, [x23, #36]
	bl	_le32_to_cpu
	str	x0, [sp, #56]
	ldr	w0, [x23, #32]
	bl	_le32_to_cpu
	str	x0, [sp, #48]
	ldr	w0, [x23, #28]
	bl	_le32_to_cpu
	str	x0, [sp, #40]
	ldr	w0, [x23, #24]
	bl	_le32_to_cpu
	str	x0, [sp, #32]
	mov	x0, x19
	bl	_spin_unlock_irqrestore
	str	x20, [sp]
Lloh3:
	adrp	x0, l_.str.2@PAGE
Lloh4:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_D_CALIB
	cbz	x20, LBB0_8
; %bb.5:
	ldp	x8, x9, [x19, #8]
	cmp	x8, x24
	csel	x8, xzr, x8, gt
	sub	x8, x24, x8
	cmp	x9, x25
	csel	x9, xzr, x9, gt
	sub	x9, x25, x9
	stp	x24, x25, [x19, #8]
	ldp	x10, x11, [x19, #24]
	cmp	x10, x22
	csel	x10, xzr, x10, gt
	cmp	x11, x21
	csel	x11, xzr, x11, gt
	stp	x22, x21, [x19, #24]
	sub	x10, x22, x10
	add	x22, x10, x9
	sub	x11, x21, x11
	add	x21, x11, x8
	stp	x10, x9, [sp, #16]
	stp	x11, x8, [sp]
Lloh5:
	adrp	x0, l_.str.4@PAGE
Lloh6:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_D_CALIB
	mov	x0, x19
	mov	x1, x22
	mov	x2, x20
	bl	_il4965_sens_auto_corr_ofdm
	add	x3, sp, #32
	mov	x0, x19
	mov	x1, x21
	mov	x2, x20
	bl	_il4965_sens_energy_cck
	mov	x0, x19
	bl	_il4965_sensitivity_write
	b	LBB0_1
LBB0_6:
Lloh7:
	adrp	x0, l_.str@PAGE
Lloh8:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_9
LBB0_7:
Lloh9:
	adrp	x0, l_.str.1@PAGE
Lloh10:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_D_CALIB
	mov	x0, x19
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #160
	b	_spin_unlock_irqrestore
LBB0_8:
Lloh11:
	adrp	x0, l_.str.3@PAGE
Lloh12:
	add	x0, x0, l_.str.3@PAGEOFF
LBB0_9:
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #160
	b	_D_CALIB
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"<< - not associated\n"

	.comm	_INTERFERENCE_DATA_AVAILABLE,8,3 ; @INTERFERENCE_DATA_AVAILABLE
l_.str.1:                               ; @.str.1
	.asciz	"<< invalid data.\n"

l_.str.2:                               ; @.str.2
	.asciz	"rx_enable_time = %u usecs\n"

l_.str.3:                               ; @.str.3
	.asciz	"<< RX Enable Time == 0!\n"

l_.str.4:                               ; @.str.4
	.asciz	"cck: fa %u badp %u  ofdm: fa %u badp %u\n"

.subsections_via_symbols
