	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rtw8822c_phy_cck_pd_set
_rtw8822c_phy_cck_pd_set:               ## @rtw8822c_phy_cck_pd_set
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movl	$6700, %esi                     ## imm = 0x1A2C
	movl	$393216, %edx                   ## imm = 0x60000
	callq	_rtw_read32_mask
	movq	%rax, %r15
	movq	%rbx, %rdi
	movl	$2480, %esi                     ## imm = 0x9B0
	movl	$12, %edx
	callq	_rtw_read32_mask
	movq	%rax, %r12
	movq	(%rbx), %rax
	movq	(%rax,%r12,8), %rax
	movq	(%rax,%r15,8), %rax
	cmpq	%r14, %rax
	je	LBB0_2
## %bb.1:
	movq	_CCK_FA_AVG_RESET@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 8(%rbx)
	leaq	L___const.rtw8822c_phy_cck_pd_set.pd_lvl(%rip), %rcx
	movl	(%rcx,%r14,4), %esi
	subl	(%rcx,%rax,4), %esi
	leaq	L___const.rtw8822c_phy_cck_pd_set.cs_lvl(%rip), %rcx
	movl	(%rcx,%r14,4), %edx
	subl	(%rcx,%rax,4), %edx
	movq	%rbx, %rdi
	movq	%r12, %rcx
	movq	%r15, %r8
	callq	_rtw8822c_phy_cck_pd_set_reg
	movq	(%rbx), %rax
	movq	(%rax,%r12,8), %rax
	movq	%r14, (%rax,%r15,8)
LBB0_2:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## @__const.rtw8822c_phy_cck_pd_set.pd_lvl
L___const.rtw8822c_phy_cck_pd_set.pd_lvl:
	.long	2                               ## 0x2
	.long	4                               ## 0x4
	.long	6                               ## 0x6
	.long	8                               ## 0x8

	.p2align	4                               ## @__const.rtw8822c_phy_cck_pd_set.cs_lvl
L___const.rtw8822c_phy_cck_pd_set.cs_lvl:
	.long	2                               ## 0x2
	.long	2                               ## 0x2
	.long	2                               ## 0x2
	.long	4                               ## 0x4

	.comm	_CCK_FA_AVG_RESET,4,2           ## @CCK_FA_AVG_RESET
	.no_dead_strip	_rtw8822c_phy_cck_pd_set
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rtw8822c_phy_cck_pd_set
_rtw8822c_phy_cck_pd_set:               ; @rtw8822c_phy_cck_pd_set
	.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	x19, x1
	mov	x20, x0
	mov	w1, #6700
	mov	w2, #393216
	bl	_rtw_read32_mask
	mov	x21, x0
	mov	x0, x20
	mov	w1, #2480
	mov	w2, #12
	bl	_rtw_read32_mask
	ldr	x8, [x20]
	ldr	x8, [x8, x0, lsl #3]
	ldr	x8, [x8, x21, lsl #3]
	cmp	x8, x19
	b.eq	LBB0_2
; %bb.1:
	mov	x22, x0
Lloh0:
	adrp	x9, _CCK_FA_AVG_RESET@GOTPAGE
Lloh1:
	ldr	x9, [x9, _CCK_FA_AVG_RESET@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	lsl	x10, x19, #2
Lloh3:
	adrp	x11, l___const.rtw8822c_phy_cck_pd_set.pd_lvl@PAGE
Lloh4:
	add	x11, x11, l___const.rtw8822c_phy_cck_pd_set.pd_lvl@PAGEOFF
	ldr	w12, [x11, x10]
	str	w9, [x20, #8]
	lsl	x8, x8, #2
	ldr	w9, [x11, x8]
Lloh5:
	adrp	x11, l___const.rtw8822c_phy_cck_pd_set.cs_lvl@PAGE
Lloh6:
	add	x11, x11, l___const.rtw8822c_phy_cck_pd_set.cs_lvl@PAGEOFF
	sub	w1, w12, w9
	ldr	w9, [x11, x10]
	ldr	w8, [x11, x8]
	sub	w2, w9, w8
	mov	x0, x20
	mov	x3, x22
	mov	x4, x21
	bl	_rtw8822c_phy_cck_pd_set_reg
	ldr	x8, [x20]
	ldr	x8, [x8, x22, lsl #3]
	str	x19, [x8, x21, lsl #3]
LBB0_2:
	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 AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__literal16,16byte_literals
	.p2align	2                               ; @__const.rtw8822c_phy_cck_pd_set.pd_lvl
l___const.rtw8822c_phy_cck_pd_set.pd_lvl:
	.long	2                               ; 0x2
	.long	4                               ; 0x4
	.long	6                               ; 0x6
	.long	8                               ; 0x8

	.p2align	2                               ; @__const.rtw8822c_phy_cck_pd_set.cs_lvl
l___const.rtw8822c_phy_cck_pd_set.cs_lvl:
	.long	2                               ; 0x2
	.long	2                               ; 0x2
	.long	2                               ; 0x2
	.long	4                               ; 0x4

	.comm	_CCK_FA_AVG_RESET,4,2           ; @CCK_FA_AVG_RESET
	.no_dead_strip	_rtw8822c_phy_cck_pd_set
.subsections_via_symbols
