	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _rtl8821ae_phy_config_bb_with_headerfile
__rtl8821ae_phy_config_bb_with_headerfile: ## @_rtl8821ae_phy_config_bb_with_headerfile
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	callq	_rtl_priv
	movq	%rax, %rdi
	callq	_rtl_hal
	movq	_BASEBAND_CONFIG_PHY_REG@GOTPCREL(%rip), %rcx
	cmpq	%rbx, (%rcx)
	jne	LBB0_2
## %bb.1:
	movq	__rtl8821ae_config_bb_reg@GOTPCREL(%rip), %r8
	movq	_RTL8821AE_PHY_REG_ARRAY@GOTPCREL(%rip), %rsi
	movq	_RTL8812AE_PHY_REG_ARRAY@GOTPCREL(%rip), %rdi
	movq	_RTL8821AE_PHY_REG_1TARRAYLEN@GOTPCREL(%rip), %rdx
	movq	_RTL8812AE_PHY_REG_1TARRAYLEN@GOTPCREL(%rip), %rbx
	jmp	LBB0_4
LBB0_2:
	movq	_BASEBAND_CONFIG_AGC_TAB@GOTPCREL(%rip), %rcx
	cmpq	%rbx, (%rcx)
	jne	LBB0_5
## %bb.3:
	movq	_rtl_set_bbreg_with_dwmask@GOTPCREL(%rip), %r8
	movq	_RTL8821AE_AGC_TAB_ARRAY@GOTPCREL(%rip), %rsi
	movq	_RTL8812AE_AGC_TAB_ARRAY@GOTPCREL(%rip), %rdi
	movq	_RTL8821AE_AGC_TAB_1TARRAYLEN@GOTPCREL(%rip), %rdx
	movq	_RTL8812AE_AGC_TAB_1TARRAYLEN@GOTPCREL(%rip), %rbx
LBB0_4:
	movq	(%rax), %rax
	movq	_HARDWARE_TYPE_RTL8812AE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	cmovneq	%rdx, %rbx
	movl	(%rbx), %edx
	cmovneq	%rsi, %rdi
	movq	(%rdi), %rsi
	movl	(%r8), %ecx
	movq	%r14, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	___rtl8821ae_phy_config_with_headerfile ## TAILCALL
LBB0_5:
	movl	$1, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BASEBAND_CONFIG_PHY_REG,8,3    ## @BASEBAND_CONFIG_PHY_REG
	.comm	_HARDWARE_TYPE_RTL8812AE,8,3    ## @HARDWARE_TYPE_RTL8812AE
	.comm	_RTL8812AE_PHY_REG_1TARRAYLEN,4,2 ## @RTL8812AE_PHY_REG_1TARRAYLEN
	.comm	_RTL8812AE_PHY_REG_ARRAY,8,3    ## @RTL8812AE_PHY_REG_ARRAY
	.comm	_RTL8821AE_PHY_REG_1TARRAYLEN,4,2 ## @RTL8821AE_PHY_REG_1TARRAYLEN
	.comm	_RTL8821AE_PHY_REG_ARRAY,8,3    ## @RTL8821AE_PHY_REG_ARRAY
	.comm	__rtl8821ae_config_bb_reg,4,2   ## @_rtl8821ae_config_bb_reg
	.comm	_BASEBAND_CONFIG_AGC_TAB,8,3    ## @BASEBAND_CONFIG_AGC_TAB
	.comm	_RTL8812AE_AGC_TAB_1TARRAYLEN,4,2 ## @RTL8812AE_AGC_TAB_1TARRAYLEN
	.comm	_RTL8812AE_AGC_TAB_ARRAY,8,3    ## @RTL8812AE_AGC_TAB_ARRAY
	.comm	_RTL8821AE_AGC_TAB_1TARRAYLEN,4,2 ## @RTL8821AE_AGC_TAB_1TARRAYLEN
	.comm	_RTL8821AE_AGC_TAB_ARRAY,8,3    ## @RTL8821AE_AGC_TAB_ARRAY
	.comm	_rtl_set_bbreg_with_dwmask,4,2  ## @rtl_set_bbreg_with_dwmask
	.no_dead_strip	__rtl8821ae_phy_config_bb_with_headerfile
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function _rtl8821ae_phy_config_bb_with_headerfile
__rtl8821ae_phy_config_bb_with_headerfile: ; @_rtl8821ae_phy_config_bb_with_headerfile
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x1
	mov	x19, x0
	bl	_rtl_priv
	bl	_rtl_hal
Lloh0:
	adrp	x8, _BASEBAND_CONFIG_PHY_REG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BASEBAND_CONFIG_PHY_REG@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x8, x20
	b.ne	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, __rtl8821ae_config_bb_reg@GOTPAGE
Lloh4:
	ldr	x8, [x8, __rtl8821ae_config_bb_reg@GOTPAGEOFF]
Lloh5:
	adrp	x9, _RTL8821AE_PHY_REG_ARRAY@GOTPAGE
Lloh6:
	ldr	x9, [x9, _RTL8821AE_PHY_REG_ARRAY@GOTPAGEOFF]
Lloh7:
	adrp	x10, _RTL8812AE_PHY_REG_ARRAY@GOTPAGE
Lloh8:
	ldr	x10, [x10, _RTL8812AE_PHY_REG_ARRAY@GOTPAGEOFF]
Lloh9:
	adrp	x11, _RTL8821AE_PHY_REG_1TARRAYLEN@GOTPAGE
Lloh10:
	ldr	x11, [x11, _RTL8821AE_PHY_REG_1TARRAYLEN@GOTPAGEOFF]
Lloh11:
	adrp	x12, _RTL8812AE_PHY_REG_1TARRAYLEN@GOTPAGE
Lloh12:
	ldr	x12, [x12, _RTL8812AE_PHY_REG_1TARRAYLEN@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:
Lloh13:
	adrp	x8, _BASEBAND_CONFIG_AGC_TAB@GOTPAGE
Lloh14:
	ldr	x8, [x8, _BASEBAND_CONFIG_AGC_TAB@GOTPAGEOFF]
Lloh15:
	ldr	x8, [x8]
	cmp	x8, x20
	b.ne	LBB0_5
; %bb.3:
Lloh16:
	adrp	x8, _rtl_set_bbreg_with_dwmask@GOTPAGE
Lloh17:
	ldr	x8, [x8, _rtl_set_bbreg_with_dwmask@GOTPAGEOFF]
Lloh18:
	adrp	x9, _RTL8821AE_AGC_TAB_ARRAY@GOTPAGE
Lloh19:
	ldr	x9, [x9, _RTL8821AE_AGC_TAB_ARRAY@GOTPAGEOFF]
Lloh20:
	adrp	x10, _RTL8812AE_AGC_TAB_ARRAY@GOTPAGE
Lloh21:
	ldr	x10, [x10, _RTL8812AE_AGC_TAB_ARRAY@GOTPAGEOFF]
Lloh22:
	adrp	x11, _RTL8821AE_AGC_TAB_1TARRAYLEN@GOTPAGE
Lloh23:
	ldr	x11, [x11, _RTL8821AE_AGC_TAB_1TARRAYLEN@GOTPAGEOFF]
Lloh24:
	adrp	x12, _RTL8812AE_AGC_TAB_1TARRAYLEN@GOTPAGE
Lloh25:
	ldr	x12, [x12, _RTL8812AE_AGC_TAB_1TARRAYLEN@GOTPAGEOFF]
LBB0_4:
Lloh26:
	adrp	x13, _HARDWARE_TYPE_RTL8812AE@GOTPAGE
Lloh27:
	ldr	x13, [x13, _HARDWARE_TYPE_RTL8812AE@GOTPAGEOFF]
	ldr	x14, [x0]
Lloh28:
	ldr	x13, [x13]
	cmp	x14, x13
	csel	x11, x12, x11, eq
	ldr	w2, [x11]
	csel	x9, x10, x9, eq
	ldr	x1, [x9]
	ldr	w3, [x8]
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	___rtl8821ae_phy_config_with_headerfile
LBB0_5:
	mov	w0, #1
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_BASEBAND_CONFIG_PHY_REG,8,3    ; @BASEBAND_CONFIG_PHY_REG
	.comm	_HARDWARE_TYPE_RTL8812AE,8,3    ; @HARDWARE_TYPE_RTL8812AE
	.comm	_RTL8812AE_PHY_REG_1TARRAYLEN,4,2 ; @RTL8812AE_PHY_REG_1TARRAYLEN
	.comm	_RTL8812AE_PHY_REG_ARRAY,8,3    ; @RTL8812AE_PHY_REG_ARRAY
	.comm	_RTL8821AE_PHY_REG_1TARRAYLEN,4,2 ; @RTL8821AE_PHY_REG_1TARRAYLEN
	.comm	_RTL8821AE_PHY_REG_ARRAY,8,3    ; @RTL8821AE_PHY_REG_ARRAY
	.comm	__rtl8821ae_config_bb_reg,4,2   ; @_rtl8821ae_config_bb_reg
	.comm	_BASEBAND_CONFIG_AGC_TAB,8,3    ; @BASEBAND_CONFIG_AGC_TAB
	.comm	_RTL8812AE_AGC_TAB_1TARRAYLEN,4,2 ; @RTL8812AE_AGC_TAB_1TARRAYLEN
	.comm	_RTL8812AE_AGC_TAB_ARRAY,8,3    ; @RTL8812AE_AGC_TAB_ARRAY
	.comm	_RTL8821AE_AGC_TAB_1TARRAYLEN,4,2 ; @RTL8821AE_AGC_TAB_1TARRAYLEN
	.comm	_RTL8821AE_AGC_TAB_ARRAY,8,3    ; @RTL8821AE_AGC_TAB_ARRAY
	.comm	_rtl_set_bbreg_with_dwmask,4,2  ; @rtl_set_bbreg_with_dwmask
	.no_dead_strip	__rtl8821ae_phy_config_bb_with_headerfile
.subsections_via_symbols
