	.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_pgheaderfile
__rtl8821ae_phy_config_bb_with_pgheaderfile: ## @_rtl8821ae_phy_config_bb_with_pgheaderfile
	.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
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r15
	callq	_rtl_priv
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_rtl_hal
	movq	(%rax), %rcx
	movq	_HARDWARE_TYPE_RTL8812AE@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	movq	_RTL8821AE_PHY_REG_ARRAY_PG@GOTPCREL(%rip), %rsi
	cmoveq	_RTL8812AE_PHY_REG_ARRAY_PG@GOTPCREL(%rip), %rsi
	movq	_RTL8821AE_PHY_REG_ARRAY_PGLEN@GOTPCREL(%rip), %rcx
	cmoveq	_RTL8812AE_PHY_REG_ARRAY_PGLEN@GOTPCREL(%rip), %rcx
	movq	_BASEBAND_CONFIG_PHY_REG@GOTPCREL(%rip), %rdx
	cmpq	%r14, (%rdx)
	jne	LBB0_28
## %bb.1:
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movl	(%rcx), %eax
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	testl	%eax, %eax
	jle	LBB0_27
## %bb.2:
	movq	(%rsi), %r14
	leaq	24(%r14), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	xorl	%r12d, %r12d
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	jmp	LBB0_3
LBB0_28:
	movq	_COMP_SEND@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_DBG_TRACE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str(%rip), %rcx
	movq	%rbx, %rdi
	callq	_RT_TRACE
LBB0_27:
	movl	$1, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_17:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	$1, %edi
LBB0_18:                                ##   in Loop: Header=BB0_3 Depth=1
	callq	_udelay
LBB0_19:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	-52(%rbp), %edx                 ## 4-byte Reload
	movl	-48(%rbp), %r8d                 ## 4-byte Reload
	movl	-44(%rbp), %r9d                 ## 4-byte Reload
LBB0_20:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	%ebx, (%rsp)
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movl	%r13d, %esi
	movl	%r8d, %ecx
	movl	%r15d, %r8d
	movq	%rdi, %r15
	callq	__rtl8821ae_store_tx_power_by_rate
LBB0_26:                                ##   in Loop: Header=BB0_3 Depth=1
	addl	$6, %r12d
	cmpl	-56(%rbp), %r12d                ## 4-byte Folded Reload
	jge	LBB0_27
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_25 Depth 2
	movslq	%r12d, %rbx
	movl	(%r14,%rbx,4), %r13d
	cmpl	$-842150452, %r13d              ## imm = 0xCDCDCDCC
	ja	LBB0_21
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	4(%r14,%rbx,4), %edx
	movl	8(%r14,%rbx,4), %r8d
	movl	12(%r14,%rbx,4), %r15d
	movl	16(%r14,%rbx,4), %r9d
	movl	20(%r14,%rbx,4), %ebx
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movq	_HARDWARE_TYPE_RTL8812AE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_8
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpl	$4094, %r15d                    ## imm = 0xFFE
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpl	$254, %r15d
	jne	LBB0_8
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	$50, %edi
	callq	_msleep
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	jmp	LBB0_26
	.p2align	4, 0x90
LBB0_21:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	%r15, %rdi
	movl	%r13d, %esi
	callq	__rtl8821ae_check_condition
	testl	%eax, %eax
	jne	LBB0_26
## %bb.22:                              ##   in Loop: Header=BB0_3 Depth=1
	leaq	3(%rbx), %rax
	cmpl	$57005, (%r14,%rax,4)           ## imm = 0xDEAD
	jne	LBB0_24
## %bb.23:                              ##   in Loop: Header=BB0_3 Depth=1
	addl	$2, %r12d
	jmp	LBB0_26
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	_HARDWARE_TYPE_RTL8821AE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_20
## %bb.9:                               ##   in Loop: Header=BB0_3 Depth=1
	leal	-249(%r15), %eax
	cmpl	$5, %eax
	ja	LBB0_20
## %bb.10:                              ##   in Loop: Header=BB0_3 Depth=1
	movl	%r9d, -44(%rbp)                 ## 4-byte Spill
	movl	%r8d, -48(%rbp)                 ## 4-byte Spill
	movl	%edx, -52(%rbp)                 ## 4-byte Spill
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_16:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	$5, %edi
	jmp	LBB0_18
LBB0_24:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rax,%rbx,4), %rax
	addl	$2, %r12d
	.p2align	4, 0x90
LBB0_25:                                ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	addl	$3, %r12d
	cmpl	$57005, (%rax)                  ## imm = 0xDEAD
	leaq	12(%rax), %rax
	jne	LBB0_25
	jmp	LBB0_26
LBB0_15:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	$50, %edi
	jmp	LBB0_18
LBB0_14:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	$1, %edi
	callq	_mdelay
	jmp	LBB0_19
LBB0_12:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	$5, %edi
	callq	_mdelay
	jmp	LBB0_19
LBB0_11:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	$50, %edi
	callq	_msleep
	jmp	LBB0_19
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_17, LBB0_17-LJTI0_0
.set L0_0_set_16, LBB0_16-LJTI0_0
.set L0_0_set_15, LBB0_15-LJTI0_0
.set L0_0_set_14, LBB0_14-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
LJTI0_0:
	.long	L0_0_set_17
	.long	L0_0_set_16
	.long	L0_0_set_15
	.long	L0_0_set_14
	.long	L0_0_set_12
	.long	L0_0_set_11
	.end_data_region
                                        ## -- End function
	.comm	_HARDWARE_TYPE_RTL8812AE,8,3    ## @HARDWARE_TYPE_RTL8812AE
	.comm	_RTL8812AE_PHY_REG_ARRAY_PGLEN,4,2 ## @RTL8812AE_PHY_REG_ARRAY_PGLEN
	.comm	_RTL8812AE_PHY_REG_ARRAY_PG,8,3 ## @RTL8812AE_PHY_REG_ARRAY_PG
	.comm	_RTL8821AE_PHY_REG_ARRAY_PGLEN,4,2 ## @RTL8821AE_PHY_REG_ARRAY_PGLEN
	.comm	_RTL8821AE_PHY_REG_ARRAY_PG,8,3 ## @RTL8821AE_PHY_REG_ARRAY_PG
	.comm	_BASEBAND_CONFIG_PHY_REG,8,3    ## @BASEBAND_CONFIG_PHY_REG
	.comm	_COMP_SEND,4,2                  ## @COMP_SEND
	.comm	_DBG_TRACE,4,2                  ## @DBG_TRACE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"configtype != BaseBand_Config_PHY_REG\n"

	.comm	_HARDWARE_TYPE_RTL8821AE,8,3    ## @HARDWARE_TYPE_RTL8821AE
	.no_dead_strip	__rtl8821ae_phy_config_bb_with_pgheaderfile
.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_pgheaderfile
__rtl8821ae_phy_config_bb_with_pgheaderfile: ; @_rtl8821ae_phy_config_bb_with_pgheaderfile
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x22, x1
	mov	x25, x0
	bl	_rtl_priv
	mov	x21, x0
	bl	_rtl_hal
	ldr	x8, [x0]
Lloh0:
	adrp	x11, _HARDWARE_TYPE_RTL8812AE@GOTPAGE
Lloh1:
	ldr	x11, [x11, _HARDWARE_TYPE_RTL8812AE@GOTPAGEOFF]
Lloh2:
	adrp	x9, _RTL8812AE_PHY_REG_ARRAY_PG@GOTPAGE
Lloh3:
	ldr	x9, [x9, _RTL8812AE_PHY_REG_ARRAY_PG@GOTPAGEOFF]
Lloh4:
	adrp	x10, _RTL8821AE_PHY_REG_ARRAY_PG@GOTPAGE
Lloh5:
	ldr	x10, [x10, _RTL8821AE_PHY_REG_ARRAY_PG@GOTPAGEOFF]
Lloh6:
	ldr	x11, [x11]
Lloh7:
	adrp	x12, _RTL8812AE_PHY_REG_ARRAY_PGLEN@GOTPAGE
Lloh8:
	ldr	x12, [x12, _RTL8812AE_PHY_REG_ARRAY_PGLEN@GOTPAGEOFF]
Lloh9:
	adrp	x13, _RTL8821AE_PHY_REG_ARRAY_PGLEN@GOTPAGE
Lloh10:
	ldr	x13, [x13, _RTL8821AE_PHY_REG_ARRAY_PGLEN@GOTPAGEOFF]
	cmp	x8, x11
	csel	x8, x9, x10, eq
	csel	x9, x12, x13, eq
Lloh11:
	adrp	x10, _BASEBAND_CONFIG_PHY_REG@GOTPAGE
Lloh12:
	ldr	x10, [x10, _BASEBAND_CONFIG_PHY_REG@GOTPAGEOFF]
Lloh13:
	ldr	x10, [x10]
	cmp	x10, x22
	b.ne	LBB0_27
; %bb.1:
	str	x0, [sp, #24]                   ; 8-byte Folded Spill
	ldr	w28, [x9]
	cmp	w28, #1
	b.lt	LBB0_28
; %bb.2:
	mov	w19, #0
	ldr	x27, [x8]
	add	x8, x27, #24
	str	x8, [sp, #8]                    ; 8-byte Folded Spill
	mov	w26, #52684
	movk	w26, #52685, lsl #16
	mov	w20, #57005
	b	LBB0_6
LBB0_3:                                 ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x25
	mov	x1, x21
	bl	__rtl8821ae_check_condition
	cbz	w0, LBB0_15
; %bb.4:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x22, x19
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	w19, w22, #6
	cmp	w19, w28
	b.ge	LBB0_28
LBB0_6:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_17 Depth 2
	sxtw	x23, w19
	add	x8, x27, w19, sxtw #2
	ldr	w21, [x8]
	add	x22, x23, #2
	add	x24, x23, #3
	cmp	w21, w26
	b.hi	LBB0_3
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w22, [x27, x22, lsl #2]
	ldr	w23, [x27, x24, lsl #2]
	ldr	w26, [x8, #4]
	ldp	w24, w6, [x8, #16]
	ldr	x8, [sp, #24]                   ; 8-byte Folded Reload
	ldr	x8, [x8]
Lloh14:
	adrp	x9, _HARDWARE_TYPE_RTL8812AE@GOTPAGE
Lloh15:
	ldr	x9, [x9, _HARDWARE_TYPE_RTL8812AE@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_11
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	cmp	w23, #4094
	b.eq	LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=1
	cmp	w23, #254
	b.ne	LBB0_11
LBB0_10:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	w0, #50
	bl	_msleep
	b	LBB0_26
LBB0_11:                                ;   in Loop: Header=BB0_6 Depth=1
Lloh17:
	adrp	x9, _HARDWARE_TYPE_RTL8821AE@GOTPAGE
Lloh18:
	ldr	x9, [x9, _HARDWARE_TYPE_RTL8821AE@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_25
; %bb.12:                               ;   in Loop: Header=BB0_6 Depth=1
	sub	w8, w23, #249
	cmp	w8, #5
	b.hi	LBB0_25
; %bb.13:                               ;   in Loop: Header=BB0_6 Depth=1
	str	w6, [sp, #20]                   ; 4-byte Folded Spill
Lloh20:
	adrp	x11, lJTI0_0@PAGE
Lloh21:
	add	x11, x11, lJTI0_0@PAGEOFF
	adr	x9, LBB0_14
	ldrb	w10, [x11, x8]
	add	x9, x9, x10, lsl #2
	br	x9
LBB0_14:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	w0, #1
	b	LBB0_20
LBB0_15:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w8, [x27, x24, lsl #2]
	cmp	w8, w20
	b.eq	LBB0_5
; %bb.16:                               ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	add	x8, x8, x23, lsl #2
	add	w22, w19, #2
LBB0_17:                                ;   Parent Loop BB0_6 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w9, [x8], #12
	add	w22, w22, #3
	cmp	w9, w20
	b.ne	LBB0_17
	b	LBB0_5
LBB0_18:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	w0, #5
	b	LBB0_20
LBB0_19:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	w0, #50
LBB0_20:                                ;   in Loop: Header=BB0_6 Depth=1
	bl	_udelay
	b	LBB0_24
LBB0_21:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	w0, #1
	bl	_mdelay
	b	LBB0_24
LBB0_22:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	w0, #5
	bl	_mdelay
	b	LBB0_24
LBB0_23:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	w0, #50
	bl	_msleep
LBB0_24:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w6, [sp, #20]                   ; 4-byte Folded Reload
LBB0_25:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x25
	mov	x1, x21
	mov	x2, x26
	mov	x3, x22
	mov	x4, x23
	mov	x5, x24
	bl	__rtl8821ae_store_tx_power_by_rate
LBB0_26:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x22, x19
	mov	w26, #52684
	movk	w26, #52685, lsl #16
	b	LBB0_5
LBB0_27:
Lloh22:
	adrp	x8, _COMP_SEND@GOTPAGE
Lloh23:
	ldr	x8, [x8, _COMP_SEND@GOTPAGEOFF]
Lloh24:
	ldr	w1, [x8]
Lloh25:
	adrp	x8, _DBG_TRACE@GOTPAGE
Lloh26:
	ldr	x8, [x8, _DBG_TRACE@GOTPAGEOFF]
Lloh27:
	ldr	w2, [x8]
Lloh28:
	adrp	x3, l_.str@PAGE
Lloh29:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x21
	bl	_RT_TRACE
LBB0_28:
	mov	w0, #1
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh6
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_14-LBB0_14)>>2
	.byte	(LBB0_18-LBB0_14)>>2
	.byte	(LBB0_19-LBB0_14)>>2
	.byte	(LBB0_21-LBB0_14)>>2
	.byte	(LBB0_22-LBB0_14)>>2
	.byte	(LBB0_23-LBB0_14)>>2
                                        ; -- End function
	.comm	_HARDWARE_TYPE_RTL8812AE,8,3    ; @HARDWARE_TYPE_RTL8812AE
	.comm	_RTL8812AE_PHY_REG_ARRAY_PGLEN,4,2 ; @RTL8812AE_PHY_REG_ARRAY_PGLEN
	.comm	_RTL8812AE_PHY_REG_ARRAY_PG,8,3 ; @RTL8812AE_PHY_REG_ARRAY_PG
	.comm	_RTL8821AE_PHY_REG_ARRAY_PGLEN,4,2 ; @RTL8821AE_PHY_REG_ARRAY_PGLEN
	.comm	_RTL8821AE_PHY_REG_ARRAY_PG,8,3 ; @RTL8821AE_PHY_REG_ARRAY_PG
	.comm	_BASEBAND_CONFIG_PHY_REG,8,3    ; @BASEBAND_CONFIG_PHY_REG
	.comm	_COMP_SEND,4,2                  ; @COMP_SEND
	.comm	_DBG_TRACE,4,2                  ; @DBG_TRACE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"configtype != BaseBand_Config_PHY_REG\n"

	.comm	_HARDWARE_TYPE_RTL8821AE,8,3    ; @HARDWARE_TYPE_RTL8821AE
	.no_dead_strip	__rtl8821ae_phy_config_bb_with_pgheaderfile
.subsections_via_symbols
