	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _rtl92s_phy_config_bb
__rtl92s_phy_config_bb:                 ## @_rtl92s_phy_config_bb
	.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, %r14
	movq	_BASEBAND_CONFIG_PHY_REG@GOTPCREL(%rip), %rax
	cmpq	%rsi, (%rax)
	jne	LBB0_4
## %bb.1:
	movq	_PHY_REG_2T2RARRAYLENGTH@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	testl	%r15d, %r15d
	jle	LBB0_8
## %bb.2:
	movq	_rtl8192sephy_reg_2t2rarray@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	xorl	%ebx, %ebx
	movq	_MASKDWORD@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r12,%rbx,4), %edi
	callq	_rtl_addr_delay
	movl	$1, %edi
	callq	_udelay
	movl	(%r13), %edx
	movl	(%r12,%rbx,4), %esi
	movl	4(%r12,%rbx,4), %ecx
	movq	%r14, %rdi
	callq	_rtl92s_phy_set_bb_reg
	addq	$2, %rbx
	cmpl	%ebx, %r15d
	jg	LBB0_3
	jmp	LBB0_8
LBB0_4:
	movq	_BASEBAND_CONFIG_AGC_TAB@GOTPCREL(%rip), %rax
	cmpq	%rsi, (%rax)
	jne	LBB0_8
## %bb.5:
	movq	_AGCTAB_ARRAYLENGTH@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	testl	%r15d, %r15d
	jle	LBB0_8
## %bb.6:
	movq	_rtl8192seagctab_array@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	xorl	%ebx, %ebx
	movq	_MASKDWORD@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r13), %edx
	movl	(%r12,%rbx,4), %esi
	movl	4(%r12,%rbx,4), %ecx
	movq	%r14, %rdi
	callq	_rtl92s_phy_set_bb_reg
	movl	$1, %edi
	callq	_udelay
	addq	$2, %rbx
	cmpl	%ebx, %r15d
	jg	LBB0_7
LBB0_8:
	movl	$1, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AGCTAB_ARRAYLENGTH,4,2         ## @AGCTAB_ARRAYLENGTH
	.comm	_rtl8192seagctab_array,8,3      ## @rtl8192seagctab_array
	.comm	_PHY_REG_2T2RARRAYLENGTH,4,2    ## @PHY_REG_2T2RARRAYLENGTH
	.comm	_rtl8192sephy_reg_2t2rarray,8,3 ## @rtl8192sephy_reg_2t2rarray
	.comm	_BASEBAND_CONFIG_PHY_REG,8,3    ## @BASEBAND_CONFIG_PHY_REG
	.comm	_MASKDWORD,4,2                  ## @MASKDWORD
	.comm	_BASEBAND_CONFIG_AGC_TAB,8,3    ## @BASEBAND_CONFIG_AGC_TAB
	.no_dead_strip	__rtl92s_phy_config_bb
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function _rtl92s_phy_config_bb
__rtl92s_phy_config_bb:                 ; @_rtl92s_phy_config_bb
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x19, x0
Lloh0:
	adrp	x8, _BASEBAND_CONFIG_PHY_REG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BASEBAND_CONFIG_PHY_REG@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x8, x1
	b.ne	LBB0_4
; %bb.1:
Lloh3:
	adrp	x8, _PHY_REG_2T2RARRAYLENGTH@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PHY_REG_2T2RARRAYLENGTH@GOTPAGEOFF]
Lloh5:
	ldr	w20, [x8]
	cmp	w20, #1
	b.lt	LBB0_7
; %bb.2:
	mov	x21, #0
Lloh6:
	adrp	x8, _rtl8192sephy_reg_2t2rarray@GOTPAGE
Lloh7:
	ldr	x8, [x8, _rtl8192sephy_reg_2t2rarray@GOTPAGEOFF]
Lloh8:
	ldr	x22, [x8]
Lloh9:
	adrp	x23, _MASKDWORD@GOTPAGE
Lloh10:
	ldr	x23, [x23, _MASKDWORD@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	add	x24, x22, x21, lsl #2
	ldr	w0, [x24]
	bl	_rtl_addr_delay
	mov	w0, #1
	bl	_udelay
	ldr	w2, [x23]
	ldp	w1, w3, [x24]
	mov	x0, x19
	bl	_rtl92s_phy_set_bb_reg
	add	x21, x21, #2
	cmp	w20, w21
	b.gt	LBB0_3
	b	LBB0_7
LBB0_4:
Lloh11:
	adrp	x8, _AGCTAB_ARRAYLENGTH@GOTPAGE
Lloh12:
	ldr	x8, [x8, _AGCTAB_ARRAYLENGTH@GOTPAGEOFF]
Lloh13:
	ldr	w20, [x8]
Lloh14:
	adrp	x8, _BASEBAND_CONFIG_AGC_TAB@GOTPAGE
Lloh15:
	ldr	x8, [x8, _BASEBAND_CONFIG_AGC_TAB@GOTPAGEOFF]
Lloh16:
	ldr	x8, [x8]
	cmp	x8, x1
	ccmp	w20, #1, #8, eq
	b.lt	LBB0_7
; %bb.5:
	mov	x21, #0
Lloh17:
	adrp	x8, _rtl8192seagctab_array@GOTPAGE
Lloh18:
	ldr	x8, [x8, _rtl8192seagctab_array@GOTPAGEOFF]
Lloh19:
	ldr	x22, [x8]
Lloh20:
	adrp	x23, _MASKDWORD@GOTPAGE
Lloh21:
	ldr	x23, [x23, _MASKDWORD@GOTPAGEOFF]
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	add	x8, x22, x21, lsl #2
	ldr	w2, [x23]
	ldp	w1, w3, [x8]
	mov	x0, x19
	bl	_rtl92s_phy_set_bb_reg
	mov	w0, #1
	bl	_udelay
	add	x21, x21, #2
	cmp	w20, w21
	b.gt	LBB0_6
LBB0_7:
	mov	w0, #1
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_AGCTAB_ARRAYLENGTH,4,2         ; @AGCTAB_ARRAYLENGTH
	.comm	_rtl8192seagctab_array,8,3      ; @rtl8192seagctab_array
	.comm	_PHY_REG_2T2RARRAYLENGTH,4,2    ; @PHY_REG_2T2RARRAYLENGTH
	.comm	_rtl8192sephy_reg_2t2rarray,8,3 ; @rtl8192sephy_reg_2t2rarray
	.comm	_BASEBAND_CONFIG_PHY_REG,8,3    ; @BASEBAND_CONFIG_PHY_REG
	.comm	_MASKDWORD,4,2                  ; @MASKDWORD
	.comm	_BASEBAND_CONFIG_AGC_TAB,8,3    ; @BASEBAND_CONFIG_AGC_TAB
	.no_dead_strip	__rtl92s_phy_config_bb
.subsections_via_symbols
