	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rtw8822c_phy_set_param
_rtw8822c_phy_set_param:                ## @rtw8822c_phy_set_param
	.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	%rdi, %r12
	movq	_REG_SYS_FUNC_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_BIT_FEN_BB_GLB_RST@GOTPCREL(%rip), %rax
	movq	_BIT_FEN_BB_RSTB@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	callq	_rtw_write8_set
	movq	_REG_RF_CTRL@GOTPCREL(%rip), %rax
	movq	_BIT_RF_EN@GOTPCREL(%rip), %rcx
	movq	_BIT_RF_RSTB@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	movl	(%rax), %esi
	movq	_BIT_RF_SDM_RSTB@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	movq	%r12, %rdi
	callq	_rtw_write8_set
	movq	_REG_WLRF1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_BIT_WLRF1_BBRF_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	callq	_rtw_write32_set
	movq	_REG_DIS_DPD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_DIS_DPD_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_DIS_DPD_RATEALL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r12, %rdi
	callq	_rtw_write32_mask
	movq	%r12, %rdi
	movl	$1, %esi
	callq	_rtw8822c_header_file_init
	movq	%r12, %rdi
	callq	_rtw_phy_load_tables
	movl	(%r12), %eax
	andl	$127, %eax
	movq	_REG_ANAPAR_XTAL_0@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %ecx
	shll	$7, %ecx
	orl	%eax, %ecx
	movq	%r12, %rdi
	movl	$16776192, %edx                 ## imm = 0xFFFC00
	callq	_rtw_write32_mask
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_rtw8822c_header_file_init
	movl	4(%r12), %edx
	movl	8(%r12), %esi
	movq	%r12, %rdi
	xorl	%ecx, %ecx
	callq	_rtw8822c_config_trx_mode
	movq	%r12, %rdi
	callq	_rtw_phy_init
	movq	%r12, %rdi
	movl	$6808, %esi                     ## imm = 0x1A98
	movl	$49152, %edx                    ## imm = 0xC000
	callq	_rtw_read32_mask
	movq	%rax, %r14
	movq	%r12, %rdi
	movl	$6824, %esi                     ## imm = 0x1AA8
	movl	$983040, %edx                   ## imm = 0xF0000
	callq	_rtw_read32_mask
	movq	%rax, %r15
	movq	%r12, %rdi
	movl	$6808, %esi                     ## imm = 0x1A98
	movl	$192, %edx
	callq	_rtw_read32_mask
	movq	%rax, %rbx
	movq	%r12, %rdi
	movl	$6768, %esi                     ## imm = 0x1A70
	movl	$251658240, %edx                ## imm = 0xF000000
	callq	_rtw_read32_mask
	shll	$4, %r14d
	orl	%r15d, %r14d
	movl	%r14d, 12(%r12)
	shll	$4, %ebx
	orl	%eax, %ebx
	movl	%ebx, 16(%r12)
	movq	%r12, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_rtw8822c_rf_init               ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_REG_SYS_FUNC_EN,4,2            ## @REG_SYS_FUNC_EN
	.comm	_BIT_FEN_BB_GLB_RST,4,2         ## @BIT_FEN_BB_GLB_RST
	.comm	_BIT_FEN_BB_RSTB,4,2            ## @BIT_FEN_BB_RSTB
	.comm	_REG_RF_CTRL,4,2                ## @REG_RF_CTRL
	.comm	_BIT_RF_EN,4,2                  ## @BIT_RF_EN
	.comm	_BIT_RF_RSTB,4,2                ## @BIT_RF_RSTB
	.comm	_BIT_RF_SDM_RSTB,4,2            ## @BIT_RF_SDM_RSTB
	.comm	_REG_WLRF1,4,2                  ## @REG_WLRF1
	.comm	_BIT_WLRF1_BBRF_EN,4,2          ## @BIT_WLRF1_BBRF_EN
	.comm	_REG_DIS_DPD,4,2                ## @REG_DIS_DPD
	.comm	_DIS_DPD_MASK,4,2               ## @DIS_DPD_MASK
	.comm	_DIS_DPD_RATEALL,4,2            ## @DIS_DPD_RATEALL
	.comm	_REG_ANAPAR_XTAL_0,4,2          ## @REG_ANAPAR_XTAL_0
	.no_dead_strip	_rtw8822c_phy_set_param
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rtw8822c_phy_set_param
_rtw8822c_phy_set_param:                ; @rtw8822c_phy_set_param
	.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, x0
Lloh0:
	adrp	x8, _REG_SYS_FUNC_EN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _REG_SYS_FUNC_EN@GOTPAGEOFF]
Lloh2:
	adrp	x9, _BIT_FEN_BB_GLB_RST@GOTPAGE
Lloh3:
	ldr	x9, [x9, _BIT_FEN_BB_GLB_RST@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
Lloh5:
	ldr	w8, [x9]
Lloh6:
	adrp	x9, _BIT_FEN_BB_RSTB@GOTPAGE
Lloh7:
	ldr	x9, [x9, _BIT_FEN_BB_RSTB@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w2, w9, w8
	bl	_rtw_write8_set
Lloh9:
	adrp	x8, _REG_RF_CTRL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _REG_RF_CTRL@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
Lloh12:
	adrp	x8, _BIT_RF_EN@GOTPAGE
Lloh13:
	ldr	x8, [x8, _BIT_RF_EN@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
Lloh15:
	adrp	x9, _BIT_RF_RSTB@GOTPAGE
Lloh16:
	ldr	x9, [x9, _BIT_RF_RSTB@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh18:
	adrp	x9, _BIT_RF_SDM_RSTB@GOTPAGE
Lloh19:
	ldr	x9, [x9, _BIT_RF_SDM_RSTB@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	orr	w2, w8, w9
	mov	x0, x19
	bl	_rtw_write8_set
Lloh21:
	adrp	x8, _REG_WLRF1@GOTPAGE
Lloh22:
	ldr	x8, [x8, _REG_WLRF1@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
Lloh24:
	adrp	x8, _BIT_WLRF1_BBRF_EN@GOTPAGE
Lloh25:
	ldr	x8, [x8, _BIT_WLRF1_BBRF_EN@GOTPAGEOFF]
Lloh26:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_rtw_write32_set
Lloh27:
	adrp	x8, _REG_DIS_DPD@GOTPAGE
Lloh28:
	ldr	x8, [x8, _REG_DIS_DPD@GOTPAGEOFF]
Lloh29:
	ldr	w1, [x8]
Lloh30:
	adrp	x8, _DIS_DPD_MASK@GOTPAGE
Lloh31:
	ldr	x8, [x8, _DIS_DPD_MASK@GOTPAGEOFF]
Lloh32:
	ldr	w2, [x8]
Lloh33:
	adrp	x8, _DIS_DPD_RATEALL@GOTPAGE
Lloh34:
	ldr	x8, [x8, _DIS_DPD_RATEALL@GOTPAGEOFF]
Lloh35:
	ldr	w3, [x8]
	mov	x0, x19
	bl	_rtw_write32_mask
	mov	x0, x19
	mov	w1, #1
	bl	_rtw8822c_header_file_init
	mov	x0, x19
	bl	_rtw_phy_load_tables
	ldr	w8, [x19]
	and	w3, w8, #0x7f
Lloh36:
	adrp	x8, _REG_ANAPAR_XTAL_0@GOTPAGE
Lloh37:
	ldr	x8, [x8, _REG_ANAPAR_XTAL_0@GOTPAGEOFF]
Lloh38:
	ldr	w1, [x8]
	bfi	w3, w3, #7, #7
	mov	x0, x19
	mov	w2, #16776192
	bl	_rtw_write32_mask
	mov	x0, x19
	mov	w1, #0
	bl	_rtw8822c_header_file_init
	ldp	w2, w1, [x19, #4]
	mov	x0, x19
	mov	w3, #0
	bl	_rtw8822c_config_trx_mode
	mov	x0, x19
	bl	_rtw_phy_init
	mov	x0, x19
	mov	w1, #6808
	mov	w2, #49152
	bl	_rtw_read32_mask
	mov	x20, x0
	mov	x0, x19
	mov	w1, #6824
	mov	w2, #983040
	bl	_rtw_read32_mask
	mov	x21, x0
	mov	x0, x19
	mov	w1, #6808
	mov	w2, #192
	bl	_rtw_read32_mask
	mov	x22, x0
	mov	x0, x19
	mov	w1, #6768
	mov	w2, #251658240
	bl	_rtw_read32_mask
	orr	w8, w21, w20, lsl #4
	orr	w9, w0, w22, lsl #4
	stp	w8, w9, [x19, #12]
	mov	x0, x19
	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
	b	_rtw8822c_rf_init
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_REG_SYS_FUNC_EN,4,2            ; @REG_SYS_FUNC_EN
	.comm	_BIT_FEN_BB_GLB_RST,4,2         ; @BIT_FEN_BB_GLB_RST
	.comm	_BIT_FEN_BB_RSTB,4,2            ; @BIT_FEN_BB_RSTB
	.comm	_REG_RF_CTRL,4,2                ; @REG_RF_CTRL
	.comm	_BIT_RF_EN,4,2                  ; @BIT_RF_EN
	.comm	_BIT_RF_RSTB,4,2                ; @BIT_RF_RSTB
	.comm	_BIT_RF_SDM_RSTB,4,2            ; @BIT_RF_SDM_RSTB
	.comm	_REG_WLRF1,4,2                  ; @REG_WLRF1
	.comm	_BIT_WLRF1_BBRF_EN,4,2          ; @BIT_WLRF1_BBRF_EN
	.comm	_REG_DIS_DPD,4,2                ; @REG_DIS_DPD
	.comm	_DIS_DPD_MASK,4,2               ; @DIS_DPD_MASK
	.comm	_DIS_DPD_RATEALL,4,2            ; @DIS_DPD_RATEALL
	.comm	_REG_ANAPAR_XTAL_0,4,2          ; @REG_ANAPAR_XTAL_0
	.no_dead_strip	_rtw8822c_phy_set_param
.subsections_via_symbols
