	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rsi_perform_cqm
_rsi_perform_cqm:                       ## @rsi_perform_cqm
	.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	%rcx, %r14
	movl	%edx, %ebx
	movl	(%rdi), %edx
	movl	4(%rdi), %esi
	movl	8(%rdi), %ecx
	cmpl	%ebx, %esi
	jle	LBB0_3
## %bb.1:
	movq	_NL80211_CQM_RSSI_THRESHOLD_EVENT_LOW@GOTPCREL(%rip), %r8
	testl	%edx, %edx
	je	LBB0_7
## %bb.2:
	movl	%edx, %eax
	subl	%ecx, %eax
	cmpl	%ebx, %eax
	jg	LBB0_7
LBB0_3:
	cmpl	%ebx, %esi
	jge	LBB0_6
## %bb.4:
	movq	_NL80211_CQM_RSSI_THRESHOLD_EVENT_HIGH@GOTPCREL(%rip), %r8
	testl	%edx, %edx
	je	LBB0_7
## %bb.5:
	addl	%edx, %ecx
	cmpl	%ebx, %ecx
	jl	LBB0_7
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movl	(%r8), %r15d
	movl	%ebx, (%rdi)
	movq	_INFO_ZONE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movl	%r15d, %edx
	callq	_rsi_dbg
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r14, %rdi
	movl	%r15d, %esi
	movl	%ebx, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ieee80211_cqm_rssi_notify      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_NL80211_CQM_RSSI_THRESHOLD_EVENT_LOW,4,2 ## @NL80211_CQM_RSSI_THRESHOLD_EVENT_LOW
	.comm	_NL80211_CQM_RSSI_THRESHOLD_EVENT_HIGH,4,2 ## @NL80211_CQM_RSSI_THRESHOLD_EVENT_HIGH
	.comm	_INFO_ZONE,4,2                  ## @INFO_ZONE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"CQM: Notifying event: %d\n"

	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.no_dead_strip	_rsi_perform_cqm
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rsi_perform_cqm
_rsi_perform_cqm:                       ; @rsi_perform_cqm
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x20, x3
	mov	x19, x2
	ldp	w8, w10, [x0]
	ldr	w9, [x0, #8]
	cmp	w10, w2
	b.le	LBB0_3
; %bb.1:
	sub	w11, w8, w9
	cmp	w8, #0
	ccmp	w11, w19, #0, ne
	b.le	LBB0_3
; %bb.2:
Lloh0:
	adrp	x8, _NL80211_CQM_RSSI_THRESHOLD_EVENT_LOW@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NL80211_CQM_RSSI_THRESHOLD_EVENT_LOW@GOTPAGEOFF]
	b	LBB0_6
LBB0_3:
	cmp	w10, w19
	b.ge	LBB0_7
; %bb.4:
	add	w9, w9, w8
	cmp	w8, #0
	ccmp	w9, w19, #8, ne
	b.ge	LBB0_7
; %bb.5:
Lloh2:
	adrp	x8, _NL80211_CQM_RSSI_THRESHOLD_EVENT_HIGH@GOTPAGE
Lloh3:
	ldr	x8, [x8, _NL80211_CQM_RSSI_THRESHOLD_EVENT_HIGH@GOTPAGEOFF]
LBB0_6:
	ldr	w21, [x8]
	str	w19, [x0]
Lloh4:
	adrp	x8, _INFO_ZONE@GOTPAGE
Lloh5:
	ldr	x8, [x8, _INFO_ZONE@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x21
	bl	_rsi_dbg
Lloh9:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh11:
	ldr	w3, [x8]
	mov	x0, x20
	mov	x1, x21
	mov	x2, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_ieee80211_cqm_rssi_notify
LBB0_7:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_NL80211_CQM_RSSI_THRESHOLD_EVENT_LOW,4,2 ; @NL80211_CQM_RSSI_THRESHOLD_EVENT_LOW
	.comm	_NL80211_CQM_RSSI_THRESHOLD_EVENT_HIGH,4,2 ; @NL80211_CQM_RSSI_THRESHOLD_EVENT_HIGH
	.comm	_INFO_ZONE,4,2                  ; @INFO_ZONE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"CQM: Notifying event: %d\n"

	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.no_dead_strip	_rsi_perform_cqm
.subsections_via_symbols
