	.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_reg
_rtw8822c_phy_cck_pd_set_reg:           ## @rtw8822c_phy_cck_pd_set_reg
	.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	%r8, %rbx
	movq	%rcx, %r15
	movq	%rdx, %r12
	movq	%rsi, %r13
	movq	%rdi, %r14
	movq	_RTW_CHANNEL_WIDTH_40@GOTPCREL(%rip), %rax
	cmpq	%rcx, (%rax)
	setb	%al
	movq	_RTW_RF_PATH_MAX@GOTPCREL(%rip), %rcx
	cmpq	%r8, (%rcx)
	setbe	%cl
	orb	%al, %cl
	movzbl	%cl, %edi
	callq	_WARN_ON
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	_rtw8822c_cck_pd_reg@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax,%r15,8), %rax
	shlq	$4, %rbx
	movl	8(%rax,%rbx), %edx
	movl	12(%rax,%rbx), %esi
	movq	%r14, %rdi
	callq	_rtw_read32_mask
	movq	%r13, -48(%rbp)                 ## 8-byte Spill
	movq	%rax, %r13
	movq	_rtw8822c_cck_pd_reg@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax,%r15,8), %rax
	movl	(%rax,%rbx), %edx
	movl	4(%rax,%rbx), %esi
	movq	%r14, %rdi
	callq	_rtw_read32_mask
	addq	-48(%rbp), %r13                 ## 8-byte Folded Reload
	leaq	(%rax,%r12), %rcx
	movq	_RTW_CCK_PD_MAX@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	cmpq	%rdx, %r13
	cmovgeq	%rdx, %r13
	movq	_RTW_CCK_CS_ERR2@GOTPCREL(%rip), %rdx
	movq	_RTW_CCK_CS_MAX@GOTPCREL(%rip), %rsi
	movq	%r12, %rdi
	movq	(%rsi), %r12
	cmpq	%r12, %rcx
	cmovlq	%rcx, %r12
	cmpq	(%rdx), %rcx
	movq	_RTW_CCK_CS_ERR1@GOTPCREL(%rip), %rdx
	leaq	1(%rax,%rdi), %rax
	cmoveq	%rax, %r12
	cmpq	(%rdx), %rcx
	cmoveq	%rax, %r12
	movq	_rtw8822c_cck_pd_reg@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax,%r15,8), %rax
	movl	8(%rax,%rbx), %edx
	movl	12(%rax,%rbx), %esi
	movq	%r14, %rdi
	movq	%r13, %rcx
	callq	_rtw_write32_mask
	movq	_rtw8822c_cck_pd_reg@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax,%r15,8), %rax
	movl	(%rax,%rbx), %edx
	movl	4(%rax,%rbx), %esi
	movq	%r14, %rdi
	movq	%r12, %rcx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_rtw_write32_mask               ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_RTW_CHANNEL_WIDTH_40,8,3       ## @RTW_CHANNEL_WIDTH_40
	.comm	_RTW_RF_PATH_MAX,8,3            ## @RTW_RF_PATH_MAX
	.comm	_rtw8822c_cck_pd_reg,8,3        ## @rtw8822c_cck_pd_reg
	.comm	_RTW_CCK_PD_MAX,8,3             ## @RTW_CCK_PD_MAX
	.comm	_RTW_CCK_CS_ERR1,8,3            ## @RTW_CCK_CS_ERR1
	.comm	_RTW_CCK_CS_ERR2,8,3            ## @RTW_CCK_CS_ERR2
	.comm	_RTW_CCK_CS_MAX,8,3             ## @RTW_CCK_CS_MAX
	.no_dead_strip	_rtw8822c_phy_cck_pd_set_reg
.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_reg
_rtw8822c_phy_cck_pd_set_reg:           ; @rtw8822c_phy_cck_pd_set_reg
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x22, x4
	mov	x23, x3
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _RTW_CHANNEL_WIDTH_40@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RTW_CHANNEL_WIDTH_40@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x8, x3
Lloh3:
	adrp	x8, _RTW_RF_PATH_MAX@GOTPAGE
Lloh4:
	ldr	x8, [x8, _RTW_RF_PATH_MAX@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	ccmp	x8, x4, #0, hs
	cset	w0, ls
	bl	_WARN_ON
	cbz	x0, LBB0_2
; %bb.1:
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_2:
Lloh6:
	adrp	x24, _rtw8822c_cck_pd_reg@GOTPAGE
Lloh7:
	ldr	x24, [x24, _rtw8822c_cck_pd_reg@GOTPAGEOFF]
	ldr	x8, [x24]
	lsl	x23, x23, #3
	ldr	x8, [x8, x23]
	lsl	x25, x22, #4
	add	x8, x8, x25
	ldp	w2, w1, [x8, #8]
	mov	x0, x19
	bl	_rtw_read32_mask
	mov	x22, x0
	ldr	x8, [x24]
	ldr	x8, [x8, x23]
	add	x8, x8, x25
	ldp	w2, w1, [x8]
	mov	x0, x19
	bl	_rtw_read32_mask
Lloh8:
	adrp	x8, _RTW_CCK_PD_MAX@GOTPAGE
Lloh9:
	ldr	x8, [x8, _RTW_CCK_PD_MAX@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	add	x9, x22, x21
	cmp	x9, x8
	csel	x3, x9, x8, lt
Lloh11:
	adrp	x8, _RTW_CCK_CS_ERR1@GOTPAGE
Lloh12:
	ldr	x8, [x8, _RTW_CCK_CS_ERR1@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
Lloh14:
	adrp	x9, _RTW_CCK_CS_ERR2@GOTPAGE
Lloh15:
	ldr	x9, [x9, _RTW_CCK_CS_ERR2@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
Lloh17:
	adrp	x10, _RTW_CCK_CS_MAX@GOTPAGE
Lloh18:
	ldr	x10, [x10, _RTW_CCK_CS_MAX@GOTPAGEOFF]
Lloh19:
	ldr	x10, [x10]
	add	x11, x0, x20
	cmp	x11, x10
	csel	x10, x11, x10, lt
	cmp	x11, x9
	ccmp	x11, x8, #4, ne
	csinc	x20, x10, x11, ne
	ldr	x8, [x24]
	ldr	x8, [x8, x23]
	add	x8, x8, x25
	ldp	w2, w1, [x8, #8]
	mov	x0, x19
	bl	_rtw_write32_mask
	ldr	x8, [x24]
	ldr	x8, [x8, x23]
	add	x8, x8, x25
	ldp	w2, w1, [x8]
	mov	x0, x19
	mov	x3, x20
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_rtw_write32_mask
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_RTW_CHANNEL_WIDTH_40,8,3       ; @RTW_CHANNEL_WIDTH_40
	.comm	_RTW_RF_PATH_MAX,8,3            ; @RTW_RF_PATH_MAX
	.comm	_rtw8822c_cck_pd_reg,8,3        ; @rtw8822c_cck_pd_reg
	.comm	_RTW_CCK_PD_MAX,8,3             ; @RTW_CCK_PD_MAX
	.comm	_RTW_CCK_CS_ERR1,8,3            ; @RTW_CCK_CS_ERR1
	.comm	_RTW_CCK_CS_ERR2,8,3            ; @RTW_CCK_CS_ERR2
	.comm	_RTW_CCK_CS_MAX,8,3             ; @RTW_CCK_CS_MAX
	.no_dead_strip	_rtw8822c_phy_cck_pd_set_reg
.subsections_via_symbols
