	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rtl92c_dm_cck_packet_detection_thresh
_rtl92c_dm_cck_packet_detection_thresh: ## @rtl92c_dm_cck_packet_detection_thresh
	.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
	movq	%rdi, %r14
	callq	_rtl_priv
	movq	%rax, %rbx
	movq	(%rax), %rax
	movq	_DIG_STA_CONNECT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.1:
	movq	%r14, %rdi
	callq	_rtl92c_dm_initial_gain_min_pwdb
	cmpl	$100, %eax
	movl	$100, %edx
	cmovll	%eax, %edx
	movl	%edx, 8(%rbx)
	movq	16(%rbx), %rcx
	movq	_CCK_PD_STAGE_LOWRSSI@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	%rax, %rcx
	jne	LBB0_5
## %bb.2:
	cmpl	$25, %edx
	jg	LBB0_7
## %bb.3:
	movq	%rcx, 24(%rbx)
	jmp	LBB0_11
LBB0_4:
	movq	_CCK_PD_STAGE_MAX@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 24(%rbx)
	movq	16(%rbx), %rcx
	cmpq	%rax, %rcx
	je	LBB0_11
LBB0_10:
	movq	_CCK_PD_STAGE_LOWRSSI@GOTPCREL(%rip), %rdx
	movq	_CCK_PD_STAGE_MAX@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	movl	$131, %edi
	movl	$205, %ecx
	cmovel	%edi, %ecx
	cmpq	(%rdx), %rax
	movq	_RCCK0_CCA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MASKBYTE2@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	cmovel	%edi, %ecx
	movq	%r14, %rdi
	callq	_rtl_set_bbreg
	movq	24(%rbx), %rax
	movq	%rax, 16(%rbx)
LBB0_11:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_5:
	cmpl	$20, %edx
	jle	LBB0_8
LBB0_7:
	movq	_CCK_PD_STAGE_HIGHRSSI@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
LBB0_8:
	movq	%rax, 24(%rbx)
	cmpq	%rax, %rcx
	je	LBB0_11
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_DIG_STA_CONNECT,8,3            ## @DIG_STA_CONNECT
	.comm	_CCK_PD_STAGE_LOWRSSI,8,3       ## @CCK_PD_STAGE_LOWRSSI
	.comm	_CCK_PD_STAGE_HIGHRSSI,8,3      ## @CCK_PD_STAGE_HIGHRSSI
	.comm	_CCK_PD_STAGE_MAX,8,3           ## @CCK_PD_STAGE_MAX
	.comm	_RCCK0_CCA,4,2                  ## @RCCK0_CCA
	.comm	_MASKBYTE2,4,2                  ## @MASKBYTE2
	.no_dead_strip	_rtl92c_dm_cck_packet_detection_thresh
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rtl92c_dm_cck_packet_detection_thresh
_rtl92c_dm_cck_packet_detection_thresh: ; @rtl92c_dm_cck_packet_detection_thresh
	.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	x20, x0
	bl	_rtl_priv
	mov	x19, x0
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _DIG_STA_CONNECT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _DIG_STA_CONNECT@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.1:
	mov	x0, x20
	bl	_rtl92c_dm_initial_gain_min_pwdb
	mov	w8, #100
	cmp	w0, #100
	csel	w10, w0, w8, lt
	str	w10, [x19, #8]
	ldr	x8, [x19, #16]
Lloh3:
	adrp	x9, _CCK_PD_STAGE_LOWRSSI@GOTPAGE
Lloh4:
	ldr	x9, [x9, _CCK_PD_STAGE_LOWRSSI@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.2:
	cmp	w10, #25
	b.gt	LBB0_8
; %bb.3:
	str	x8, [x19, #24]
	b	LBB0_6
LBB0_4:
Lloh6:
	adrp	x8, _CCK_PD_STAGE_MAX@GOTPAGE
Lloh7:
	ldr	x8, [x8, _CCK_PD_STAGE_MAX@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x8]
	str	x9, [x19, #24]
	ldr	x8, [x19, #16]
	cmp	x8, x9
	b.eq	LBB0_6
LBB0_5:
Lloh9:
	adrp	x8, _CCK_PD_STAGE_LOWRSSI@GOTPAGE
Lloh10:
	ldr	x8, [x8, _CCK_PD_STAGE_LOWRSSI@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
Lloh12:
	adrp	x10, _CCK_PD_STAGE_MAX@GOTPAGE
Lloh13:
	ldr	x10, [x10, _CCK_PD_STAGE_MAX@GOTPAGEOFF]
Lloh14:
	ldr	x10, [x10]
	cmp	x9, x10
	ccmp	x9, x8, #4, ne
Lloh15:
	adrp	x8, _RCCK0_CCA@GOTPAGE
Lloh16:
	ldr	x8, [x8, _RCCK0_CCA@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
Lloh18:
	adrp	x8, _MASKBYTE2@GOTPAGE
Lloh19:
	ldr	x8, [x8, _MASKBYTE2@GOTPAGEOFF]
Lloh20:
	ldr	w2, [x8]
	mov	w8, #205
	mov	w9, #131
	csel	w3, w9, w8, eq
	mov	x0, x20
	bl	_rtl_set_bbreg
	ldr	x8, [x19, #24]
	str	x8, [x19, #16]
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_7:
	cmp	w10, #20
	b.le	LBB0_9
LBB0_8:
Lloh21:
	adrp	x9, _CCK_PD_STAGE_HIGHRSSI@GOTPAGE
Lloh22:
	ldr	x9, [x9, _CCK_PD_STAGE_HIGHRSSI@GOTPAGEOFF]
Lloh23:
	ldr	x9, [x9]
LBB0_9:
	str	x9, [x19, #24]
	cmp	x8, x9
	b.eq	LBB0_6
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_DIG_STA_CONNECT,8,3            ; @DIG_STA_CONNECT
	.comm	_CCK_PD_STAGE_LOWRSSI,8,3       ; @CCK_PD_STAGE_LOWRSSI
	.comm	_CCK_PD_STAGE_HIGHRSSI,8,3      ; @CCK_PD_STAGE_HIGHRSSI
	.comm	_CCK_PD_STAGE_MAX,8,3           ; @CCK_PD_STAGE_MAX
	.comm	_RCCK0_CCA,4,2                  ; @RCCK0_CCA
	.comm	_MASKBYTE2,4,2                  ; @MASKBYTE2
	.no_dead_strip	_rtl92c_dm_cck_packet_detection_thresh
.subsections_via_symbols
