	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rtl92s_phy_bb_config           ## -- Begin function rtl92s_phy_bb_config
	.p2align	4, 0x90
_rtl92s_phy_bb_config:                  ## @rtl92s_phy_bb_config
	.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, %rbx
	callq	_rtl_priv
	movq	%rax, %r13
	movq	%rbx, %rdi
	callq	__rtl92s_phy_init_register_definition
	movq	%rbx, %rdi
	callq	__rtl92s_phy_bb_config_parafile
	movl	%eax, %r14d
	movq	_RFPGA0_TXINFO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$15, %edx
	callq	_rtl92s_phy_query_bb_reg
	movq	%rax, %r15
	movl	$10, %edi
	callq	_mdelay
	movq	_ROFDM0_TRXPATHENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$15, %edx
	callq	_rtl92s_phy_query_bb_reg
	movq	%rax, %r12
	movl	%r12d, %ebx
	orl	%r15d, %ebx
	movl	%ebx, (%r13)
	movl	%ebx, %eax
	andl	$1, %eax
	btl	$1, %ebx
	adcl	$0, %eax
	movl	%ebx, %edx
	shrl	$2, %edx
	andl	$1, %edx
	btl	$3, %ebx
	adcl	%eax, %edx
	movq	8(%r13), %rsi
	movq	_RF_1T1R@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rsi
	jne	LBB0_2
## %bb.1:
	cmpl	$1, %edx
	jne	LBB0_8
LBB0_2:
	movq	_RF_1T2R@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rsi
	jne	LBB0_4
## %bb.3:
	cmpl	$2, %edx
	jne	LBB0_8
LBB0_4:
	movq	_RF_2T2R@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rsi
	jne	LBB0_6
## %bb.5:
	cmpl	$2, %edx
	jne	LBB0_8
LBB0_6:
	movq	_RF_2T2R_GREEN@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rsi
	jne	LBB0_9
## %bb.7:
	cmpl	$2, %edx
	je	LBB0_9
LBB0_8:
	leaq	L_.str(%rip), %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	xorl	%eax, %eax
	callq	_pr_err
	leaq	L_.str.1(%rip), %rdi
	movl	%r15d, %esi
	movl	%r12d, %edx
	movl	%ebx, %ecx
	xorl	%eax, %eax
	callq	_pr_err
LBB0_9:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RFPGA0_TXINFO,4,2              ## @RFPGA0_TXINFO
	.comm	_ROFDM0_TRXPATHENABLE,4,2       ## @ROFDM0_TRXPATHENABLE
	.comm	_RF_1T1R,8,3                    ## @RF_1T1R
	.comm	_RF_1T2R,8,3                    ## @RF_1T2R
	.comm	_RF_2T2R,8,3                    ## @RF_2T2R
	.comm	_RF_2T2R_GREEN,8,3              ## @RF_2T2R_GREEN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"RF_Type(%x) does not match RF_Num(%x)!!\n"

L_.str.1:                               ## @.str.1
	.asciz	"path1 0x%x, path2 0x%x, pathmap 0x%x\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rtl92s_phy_bb_config           ; -- Begin function rtl92s_phy_bb_config
	.p2align	2
_rtl92s_phy_bb_config:                  ; @rtl92s_phy_bb_config
	.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	x21, x0
	bl	_rtl_priv
	mov	x22, x0
	mov	x0, x21
	bl	__rtl92s_phy_init_register_definition
	mov	x0, x21
	bl	__rtl92s_phy_bb_config_parafile
	mov	x19, x0
Lloh0:
	adrp	x8, _RFPGA0_TXINFO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RFPGA0_TXINFO@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x21
	mov	w2, #15
	bl	_rtl92s_phy_query_bb_reg
	mov	x20, x0
	mov	w0, #10
	bl	_mdelay
Lloh3:
	adrp	x8, _ROFDM0_TRXPATHENABLE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ROFDM0_TRXPATHENABLE@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x21
	mov	w2, #15
	bl	_rtl92s_phy_query_bb_reg
	mov	x21, x0
	orr	w23, w21, w20
	str	w23, [x22]
	and	w8, w23, #0x1
	ubfx	w9, w23, #1, #1
	ubfx	w10, w23, #2, #1
	add	w8, w9, w8
	add	w8, w10, w8
	ubfx	w9, w23, #3, #1
	add	w2, w9, w8
	ldr	x1, [x22, #8]
Lloh6:
	adrp	x8, _RF_1T1R@GOTPAGE
Lloh7:
	ldr	x8, [x8, _RF_1T1R@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cmp	x1, x8
	ccmp	w2, #1, #4, eq
	b.ne	LBB0_4
; %bb.1:
Lloh9:
	adrp	x8, _RF_1T2R@GOTPAGE
Lloh10:
	ldr	x8, [x8, _RF_1T2R@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	cmp	x1, x8
	ccmp	w2, #2, #4, eq
	b.ne	LBB0_4
; %bb.2:
Lloh12:
	adrp	x8, _RF_2T2R@GOTPAGE
Lloh13:
	ldr	x8, [x8, _RF_2T2R@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
	cmp	x1, x8
	ccmp	w2, #2, #4, eq
	b.ne	LBB0_4
; %bb.3:
Lloh15:
	adrp	x8, _RF_2T2R_GREEN@GOTPAGE
Lloh16:
	ldr	x8, [x8, _RF_2T2R_GREEN@GOTPAGEOFF]
Lloh17:
	ldr	x8, [x8]
	cmp	x1, x8
	ccmp	w2, #2, #4, eq
	b.eq	LBB0_5
LBB0_4:
Lloh18:
	adrp	x0, l_.str@PAGE
Lloh19:
	add	x0, x0, l_.str@PAGEOFF
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_pr_err
	str	x23, [sp]
Lloh20:
	adrp	x0, l_.str.1@PAGE
Lloh21:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x20
	mov	x2, x21
	bl	_pr_err
LBB0_5:
	mov	x0, x19
	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
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_RFPGA0_TXINFO,4,2              ; @RFPGA0_TXINFO
	.comm	_ROFDM0_TRXPATHENABLE,4,2       ; @ROFDM0_TRXPATHENABLE
	.comm	_RF_1T1R,8,3                    ; @RF_1T1R
	.comm	_RF_1T2R,8,3                    ; @RF_1T2R
	.comm	_RF_2T2R,8,3                    ; @RF_2T2R
	.comm	_RF_2T2R_GREEN,8,3              ; @RF_2T2R_GREEN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"RF_Type(%x) does not match RF_Num(%x)!!\n"

l_.str.1:                               ; @.str.1
	.asciz	"path1 0x%x, path2 0x%x, pathmap 0x%x\n"

.subsections_via_symbols
