	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rtw8822b_phy_set_param
_rtw8822b_phy_set_param:                ## @rtw8822b_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, %rbx
	movq	_REG_SYS_FUNC_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_BIT_FEN_BB_RSTB@GOTPCREL(%rip), %rax
	movq	_BIT_FEN_BB_GLB_RST@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	%rbx, %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	%rbx, %rdi
	callq	_rtw_write32_set
	movq	_REG_RXPSEL@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	_BIT_RX_PSEL_RST@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	movq	%rbx, %rdi
	callq	_rtw_write32_clr
	movq	%rbx, %rdi
	callq	_rtw_phy_load_tables
	movl	(%rbx), %r14d
	andl	$63, %r14d
	movq	%rbx, %rdi
	movl	$36, %esi
	movl	$2113929216, %edx               ## imm = 0x7E000000
	movl	%r14d, %ecx
	callq	_rtw_write32_mask
	movq	%rbx, %rdi
	movl	$40, %esi
	movl	$126, %edx
	movl	%r14d, %ecx
	callq	_rtw_write32_mask
	movl	(%r15), %esi
	movl	(%r12), %edx
	movq	%rbx, %rdi
	callq	_rtw_write32_set
	movl	4(%rbx), %edx
	movl	8(%rbx), %esi
	movq	%rbx, %rdi
	xorl	%ecx, %ecx
	callq	_rtw8822b_config_trx_mode
	movq	%rbx, %rdi
	callq	_rtw_phy_init
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_rtw8822b_phy_rfe_init          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_REG_SYS_FUNC_EN,4,2            ## @REG_SYS_FUNC_EN
	.comm	_BIT_FEN_BB_RSTB,4,2            ## @BIT_FEN_BB_RSTB
	.comm	_BIT_FEN_BB_GLB_RST,4,2         ## @BIT_FEN_BB_GLB_RST
	.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_RXPSEL,4,2                 ## @REG_RXPSEL
	.comm	_BIT_RX_PSEL_RST,4,2            ## @BIT_RX_PSEL_RST
	.no_dead_strip	_rtw8822b_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 rtw8822b_phy_set_param
_rtw8822b_phy_set_param:                ; @rtw8822b_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_RSTB@GOTPAGE
Lloh3:
	ldr	x9, [x9, _BIT_FEN_BB_RSTB@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
Lloh5:
	ldr	w8, [x9]
Lloh6:
	adrp	x9, _BIT_FEN_BB_GLB_RST@GOTPAGE
Lloh7:
	ldr	x9, [x9, _BIT_FEN_BB_GLB_RST@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	x21, _REG_RXPSEL@GOTPAGE
Lloh28:
	ldr	x21, [x21, _REG_RXPSEL@GOTPAGEOFF]
	ldr	w1, [x21]
Lloh29:
	adrp	x22, _BIT_RX_PSEL_RST@GOTPAGE
Lloh30:
	ldr	x22, [x22, _BIT_RX_PSEL_RST@GOTPAGEOFF]
	ldr	w2, [x22]
	mov	x0, x19
	bl	_rtw_write32_clr
	mov	x0, x19
	bl	_rtw_phy_load_tables
	ldr	w8, [x19]
	and	w20, w8, #0x3f
	mov	x0, x19
	mov	w1, #36
	mov	w2, #2113929216
	mov	x3, x20
	bl	_rtw_write32_mask
	mov	x0, x19
	mov	w1, #40
	mov	w2, #126
	mov	x3, x20
	bl	_rtw_write32_mask
	ldr	w1, [x21]
	ldr	w2, [x22]
	mov	x0, x19
	bl	_rtw_write32_set
	ldp	w2, w1, [x19, #4]
	mov	x0, x19
	mov	w3, #0
	bl	_rtw8822b_config_trx_mode
	mov	x0, x19
	bl	_rtw_phy_init
	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	_rtw8822b_phy_rfe_init
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh27, Lloh28
	.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_RSTB,4,2            ; @BIT_FEN_BB_RSTB
	.comm	_BIT_FEN_BB_GLB_RST,4,2         ; @BIT_FEN_BB_GLB_RST
	.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_RXPSEL,4,2                 ; @REG_RXPSEL
	.comm	_BIT_RX_PSEL_RST,4,2            ; @BIT_RX_PSEL_RST
	.no_dead_strip	_rtw8822b_phy_set_param
.subsections_via_symbols
