	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rtl92d_dm_cck_packet_detection_thresh
_rtl92d_dm_cck_packet_detection_thresh: ## @rtl92d_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	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	callq	_rtl_priv
	movq	%rax, %rbx
	movq	$0, -48(%rbp)
	movq	8(%rax), %rax
	movq	_DIG_STA_CONNECT@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	%rcx, %rax
	jne	LBB0_8
## %bb.1:
	movq	16(%rbx), %rdx
	movq	_CCK_PD_STAGE_LOWRSSI@GOTPCREL(%rip), %rsi
	movq	(%rsi), %r13
	movl	24(%rbx), %esi
	cmpq	%r13, %rdx
	jne	LBB0_5
## %bb.2:
	cmpl	$25, %esi
	jg	LBB0_4
## %bb.3:
	movq	%rdx, 32(%rbx)
	jmp	LBB0_12
LBB0_8:
	movq	_CCK_PD_STAGE_LOWRSSI@GOTPCREL(%rip), %rdx
	movq	(%rdx), %r13
	movq	%r13, 32(%rbx)
	movq	16(%rbx), %rdx
	jmp	LBB0_9
LBB0_5:
	cmpl	$20, %esi
	jg	LBB0_7
## %bb.6:
	movq	%r13, 32(%rbx)
LBB0_9:
	movq	%r13, %r12
LBB0_10:
	cmpq	%r12, %rdx
	je	LBB0_12
## %bb.11:
	leaq	-48(%rbp), %r15
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_rtl92d_acquire_cckandrw_pagea_ctl
	cmpq	%r13, %r12
	movq	_RCCK0_CCA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MASKBYTE2@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$131, %eax
	movl	$205, %ecx
	cmovel	%eax, %ecx
	movq	%r14, %rdi
	callq	_rtl_set_bbreg
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_rtl92d_release_cckandrw_pagea_ctl
	movq	8(%rbx), %rax
	movq	32(%rbx), %rcx
	movq	%rcx, 16(%rbx)
	movq	_DIG_STA_CONNECT@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
LBB0_12:
	movq	_COMP_DIG@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	_DBG_LOUD@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	cmpq	%rcx, %rax
	leaq	L_.str.1(%rip), %rax
	leaq	L_.str.2(%rip), %r8
	cmoveq	%rax, %r8
	leaq	L_.str(%rip), %rcx
	movq	%rbx, %rdi
	callq	_RT_TRACE
	movl	(%r14), %esi
	movl	(%r15), %edx
	movq	32(%rbx), %rax
	movq	_CCK_PD_STAGE_LOWRSSI@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	leaq	L_.str.4(%rip), %rax
	leaq	L_.str.5(%rip), %r8
	cmoveq	%rax, %r8
	leaq	L_.str.3(%rip), %rcx
	movq	%rbx, %rdi
	callq	_RT_TRACE
	movl	(%r14), %r14d
	movl	(%r15), %r15d
	movl	(%rbx), %edi
	callq	_IS_92D_SINGLEPHY
	leaq	L_.str.6(%rip), %rcx
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movl	%r15d, %edx
	movq	%rax, %r8
	callq	_RT_TRACE
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	_CCK_PD_STAGE_HIGHRSSI@GOTPCREL(%rip), %rsi
	movq	(%rsi), %r12
	movq	%r12, 32(%rbx)
	movq	%rdx, %r13
	jmp	LBB0_10
LBB0_7:
	movq	_CCK_PD_STAGE_HIGHRSSI@GOTPCREL(%rip), %rsi
	movq	(%rsi), %r12
	movq	%r12, 32(%rbx)
	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	_RCCK0_CCA,4,2                  ## @RCCK0_CCA
	.comm	_MASKBYTE2,4,2                  ## @MASKBYTE2
	.comm	_COMP_DIG,4,2                   ## @COMP_DIG
	.comm	_DBG_LOUD,4,2                   ## @DBG_LOUD
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"CurSTAConnectState=%s\n"

L_.str.1:                               ## @.str.1
	.asciz	"DIG_STA_CONNECT "

L_.str.2:                               ## @.str.2
	.asciz	"DIG_STA_DISCONNECT"

L_.str.3:                               ## @.str.3
	.asciz	"CCKPDStage=%s\n"

L_.str.4:                               ## @.str.4
	.asciz	"Low RSSI "

L_.str.5:                               ## @.str.5
	.asciz	"High RSSI "

L_.str.6:                               ## @.str.6
	.asciz	"is92d single phy =%x\n"

	.no_dead_strip	_rtl92d_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 rtl92d_dm_cck_packet_detection_thresh
_rtl92d_dm_cck_packet_detection_thresh: ; @rtl92d_dm_cck_packet_detection_thresh
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x20, x0
	bl	_rtl_priv
	mov	x19, x0
	str	xzr, [sp, #8]
	ldr	x8, [x0, #8]
Lloh0:
	adrp	x22, _DIG_STA_CONNECT@GOTPAGE
Lloh1:
	ldr	x22, [x22, _DIG_STA_CONNECT@GOTPAGEOFF]
	ldr	x9, [x22]
Lloh2:
	adrp	x21, _CCK_PD_STAGE_LOWRSSI@GOTPAGE
Lloh3:
	ldr	x21, [x21, _CCK_PD_STAGE_LOWRSSI@GOTPAGEOFF]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.1:
	ldr	x10, [x19, #16]
	ldr	x23, [x21]
	ldr	w11, [x19, #24]
	cmp	x10, x23
	b.ne	LBB0_5
; %bb.2:
	cmp	w11, #25
	b.gt	LBB0_11
; %bb.3:
	str	x10, [x19, #32]
	b	LBB0_10
LBB0_4:
	ldr	x23, [x21]
	str	x23, [x19, #32]
	ldr	x10, [x19, #16]
	b	LBB0_7
LBB0_5:
	cmp	w11, #20
	b.gt	LBB0_12
; %bb.6:
	str	x23, [x19, #32]
LBB0_7:
	mov	x24, x23
LBB0_8:
	cmp	x10, x24
	b.eq	LBB0_10
; %bb.9:
	add	x1, sp, #8
	mov	x0, x20
	bl	_rtl92d_acquire_cckandrw_pagea_ctl
Lloh4:
	adrp	x8, _RCCK0_CCA@GOTPAGE
Lloh5:
	ldr	x8, [x8, _RCCK0_CCA@GOTPAGEOFF]
Lloh6:
	adrp	x9, _MASKBYTE2@GOTPAGE
Lloh7:
	ldr	x9, [x9, _MASKBYTE2@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
Lloh9:
	ldr	w2, [x9]
	cmp	x24, x23
	mov	w8, #205
	mov	w9, #131
	csel	w3, w9, w8, eq
	mov	x0, x20
	bl	_rtl_set_bbreg
	add	x1, sp, #8
	mov	x0, x20
	bl	_rtl92d_release_cckandrw_pagea_ctl
	ldr	x8, [x19, #32]
	str	x8, [x19, #16]
	ldr	x8, [x19, #8]
	ldr	x9, [x22]
LBB0_10:
Lloh10:
	adrp	x20, _COMP_DIG@GOTPAGE
Lloh11:
	ldr	x20, [x20, _COMP_DIG@GOTPAGEOFF]
	ldr	w1, [x20]
Lloh12:
	adrp	x22, _DBG_LOUD@GOTPAGE
Lloh13:
	ldr	x22, [x22, _DBG_LOUD@GOTPAGEOFF]
	ldr	w2, [x22]
Lloh14:
	adrp	x10, l_.str.2@PAGE
Lloh15:
	add	x10, x10, l_.str.2@PAGEOFF
Lloh16:
	adrp	x11, l_.str.1@PAGE
Lloh17:
	add	x11, x11, l_.str.1@PAGEOFF
	cmp	x8, x9
	csel	x4, x11, x10, eq
Lloh18:
	adrp	x3, l_.str@PAGE
Lloh19:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x19
	bl	_RT_TRACE
	ldr	w1, [x20]
	ldr	w2, [x22]
	ldr	x8, [x19, #32]
	ldr	x9, [x21]
Lloh20:
	adrp	x10, l_.str.5@PAGE
Lloh21:
	add	x10, x10, l_.str.5@PAGEOFF
Lloh22:
	adrp	x11, l_.str.4@PAGE
Lloh23:
	add	x11, x11, l_.str.4@PAGEOFF
	cmp	x8, x9
	csel	x4, x11, x10, eq
Lloh24:
	adrp	x3, l_.str.3@PAGE
Lloh25:
	add	x3, x3, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_RT_TRACE
	ldr	w20, [x20]
	ldr	w21, [x22]
	ldr	w0, [x19]
	bl	_IS_92D_SINGLEPHY
	mov	x4, x0
Lloh26:
	adrp	x3, l_.str.6@PAGE
Lloh27:
	add	x3, x3, l_.str.6@PAGEOFF
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	bl	_RT_TRACE
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_11:
Lloh28:
	adrp	x11, _CCK_PD_STAGE_HIGHRSSI@GOTPAGE
Lloh29:
	ldr	x11, [x11, _CCK_PD_STAGE_HIGHRSSI@GOTPAGEOFF]
Lloh30:
	ldr	x24, [x11]
	str	x24, [x19, #32]
	mov	x23, x10
	b	LBB0_8
LBB0_12:
Lloh31:
	adrp	x11, _CCK_PD_STAGE_HIGHRSSI@GOTPAGE
Lloh32:
	ldr	x11, [x11, _CCK_PD_STAGE_HIGHRSSI@GOTPAGEOFF]
Lloh33:
	ldr	x24, [x11]
	str	x24, [x19, #32]
	b	LBB0_8
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh8
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.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	_RCCK0_CCA,4,2                  ; @RCCK0_CCA
	.comm	_MASKBYTE2,4,2                  ; @MASKBYTE2
	.comm	_COMP_DIG,4,2                   ; @COMP_DIG
	.comm	_DBG_LOUD,4,2                   ; @DBG_LOUD
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"CurSTAConnectState=%s\n"

l_.str.1:                               ; @.str.1
	.asciz	"DIG_STA_CONNECT "

l_.str.2:                               ; @.str.2
	.asciz	"DIG_STA_DISCONNECT"

l_.str.3:                               ; @.str.3
	.asciz	"CCKPDStage=%s\n"

l_.str.4:                               ; @.str.4
	.asciz	"Low RSSI "

l_.str.5:                               ; @.str.5
	.asciz	"High RSSI "

l_.str.6:                               ; @.str.6
	.asciz	"is92d single phy =%x\n"

	.no_dead_strip	_rtl92d_dm_cck_packet_detection_thresh
.subsections_via_symbols
