	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rndis_do_cqm
_rndis_do_cqm:                          ## @rndis_do_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %ebx
	movq	%rdi, %r14
	callq	_get_rndis_wlan_priv
	movl	(%rax), %ecx
	testl	%ebx, %ecx
	jns	LBB0_8
## %bb.1:
	movq	8(%rax), %rdx
	movq	_NDIS_80211_INFRA_INFRA@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rdx
	jne	LBB0_8
## %bb.2:
	movl	16(%rax), %edi
	movl	20(%rax), %esi
	cmpl	%ebx, %ecx
	jle	LBB0_5
## %bb.3:
	movq	_NL80211_CQM_RSSI_THRESHOLD_EVENT_LOW@GOTPCREL(%rip), %r8
	testl	%edi, %edi
	je	LBB0_9
## %bb.4:
	movl	%edi, %edx
	subl	%esi, %edx
	cmpl	%ebx, %edx
	jg	LBB0_9
LBB0_5:
	cmpl	%ebx, %ecx
	jge	LBB0_8
## %bb.6:
	movq	_NL80211_CQM_RSSI_THRESHOLD_EVENT_HIGH@GOTPCREL(%rip), %r8
	testl	%edi, %edi
	je	LBB0_9
## %bb.7:
	addl	%edi, %esi
	cmpl	%ebx, %esi
	jl	LBB0_9
LBB0_8:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_9:
	movl	(%r8), %esi
	movl	%ebx, 16(%rax)
	movl	(%r14), %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%ebx, %edx
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_cfg80211_cqm_rssi_notify       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_NDIS_80211_INFRA_INFRA,8,3     ## @NDIS_80211_INFRA_INFRA
	.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	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.no_dead_strip	_rndis_do_cqm
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rndis_do_cqm
_rndis_do_cqm:                          ; @rndis_do_cqm
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	mov	x20, x0
	bl	_get_rndis_wlan_priv
	ldr	w8, [x0]
	tst	w8, w19
	b.ge	LBB0_8
; %bb.1:
	ldr	x9, [x0, #8]
Lloh0:
	adrp	x10, _NDIS_80211_INFRA_INFRA@GOTPAGE
Lloh1:
	ldr	x10, [x10, _NDIS_80211_INFRA_INFRA@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_8
; %bb.2:
	ldp	w10, w11, [x0, #16]
	cmp	w8, w19
	b.le	LBB0_5
; %bb.3:
Lloh3:
	adrp	x9, _NL80211_CQM_RSSI_THRESHOLD_EVENT_LOW@GOTPAGE
Lloh4:
	ldr	x9, [x9, _NL80211_CQM_RSSI_THRESHOLD_EVENT_LOW@GOTPAGEOFF]
	cbz	w10, LBB0_9
; %bb.4:
	sub	w12, w10, w11
	cmp	w12, w19
	b.gt	LBB0_9
LBB0_5:
	cmp	w8, w19
	b.ge	LBB0_8
; %bb.6:
Lloh5:
	adrp	x9, _NL80211_CQM_RSSI_THRESHOLD_EVENT_HIGH@GOTPAGE
Lloh6:
	ldr	x9, [x9, _NL80211_CQM_RSSI_THRESHOLD_EVENT_HIGH@GOTPAGEOFF]
	cbz	w10, LBB0_9
; %bb.7:
	add	w8, w11, w10
	cmp	w8, w19
	b.lt	LBB0_9
LBB0_8:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_9:
	ldr	w1, [x9]
	str	w19, [x0, #16]
Lloh7:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
	ldr	w0, [x20]
Lloh9:
	ldr	w3, [x8]
	mov	x2, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_cfg80211_cqm_rssi_notify
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_NDIS_80211_INFRA_INFRA,8,3     ; @NDIS_80211_INFRA_INFRA
	.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	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.no_dead_strip	_rndis_do_cqm
.subsections_via_symbols
