	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_phy_get_tx_swing_8812A         ## -- Begin function phy_get_tx_swing_8812A
	.p2align	4, 0x90
_phy_get_tx_swing_8812A:                ## @phy_get_tx_swing_8812A
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %rbx
	callq	_rtl_priv
	movq	%rax, %r12
	movq	%rbx, %rdi
	callq	_rtl_priv
	movq	%rax, %rdi
	callq	_rtl_hal
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	%r12, %rdi
	callq	_rtl_dm
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_rtl_priv
	movq	%rax, %rdi
	callq	_rtl_efuse
	movq	%rax, %r14
	movq	_COMP_SCAN@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	_DBG_LOUD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	(%r14), %eax
	movl	%eax, (%rsp)
	leaq	L_.str(%rip), %rcx
	movq	%r12, %rdi
	movl	$1, %r8d
	movl	$1, %r9d
	xorl	%eax, %eax
	callq	_RT_TRACE
	cmpq	$0, (%r14)
	je	LBB0_3
## %bb.1:
	movq	_DBG_LOUD@GOTPCREL(%rip), %rdx
	movq	_BAND_ON_2_4G@GOTPCREL(%rip), %rax
	cmpq	%r15, (%rax)
	jne	LBB0_7
## %bb.2:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	$0, (%rax)
	jmp	LBB0_19
LBB0_3:
	movl	$0, -52(%rbp)
	movq	_BAND_ON_2_4G@GOTPCREL(%rip), %rax
	xorl	%edx, %edx
	cmpq	%r15, (%rax)
	sete	%dl
	xorl	$199, %edx
	leaq	-52(%rbp), %rcx
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_efuse_shadow_read
	movl	-52(%rbp), %ebx
	cmpl	$255, %ebx
	movl	$0, %eax
	cmovel	%eax, %ebx
	movl	%ebx, -52(%rbp)
	movl	%ebx, %r14d
	andl	$3, %r14d
	shrl	$2, %ebx
	andl	$3, %ebx
	movl	(%r13), %esi
	movq	_DBG_LOUD@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	leaq	L_.str.1(%rip), %rcx
	movq	%r12, %rdi
	movl	%r14d, %r8d
	movl	%ebx, %r9d
	xorl	%eax, %eax
	callq	_RT_TRACE
	leaq	LJTI0_0(%rip), %rax
	movslq	(%rax,%r14,4), %rcx
	addq	%rax, %rcx
	movq	%r13, %rdx
	movq	%r12, %rdi
	jmpq	*%rcx
LBB0_4:
	movq	_BAND_ON_2_4G@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	%r15, %rax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	jne	LBB0_22
## %bb.5:
	movl	$0, (%rcx)
	jmp	LBB0_6
LBB0_7:
	movq	_BAND_ON_5G@GOTPCREL(%rip), %rax
	cmpq	%r15, (%rax)
	jne	LBB0_10
## %bb.8:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movq	_HARDWARE_TYPE_RTL8821AE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_18
## %bb.9:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	$-3, 4(%rax)
	jmp	LBB0_11
LBB0_10:
	movabsq	$-8589934595, %rax              ## imm = 0xFFFFFFFDFFFFFFFD
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, (%rcx)
LBB0_11:
	movl	$362, %ebx                      ## imm = 0x16A
	jmp	LBB0_20
LBB0_12:
	movq	_BAND_ON_2_4G@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	%r15, %rax
	jne	LBB0_23
## %bb.13:
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	$-6, (%rcx)
	jmp	LBB0_6
LBB0_14:
	movq	_BAND_ON_2_4G@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	%r15, %rax
	jne	LBB0_24
## %bb.15:
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	$-9, (%rcx)
	jmp	LBB0_6
LBB0_16:
	movq	_BAND_ON_2_4G@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	%r15, %rax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	jne	LBB0_33
## %bb.17:
	movl	$-3, (%rcx)
LBB0_6:
	movq	%r15, %rax
	cmpl	$2, %ebx
	je	LBB0_34
LBB0_25:
	cmpl	$1, %ebx
	je	LBB0_29
## %bb.26:
	testl	%ebx, %ebx
	jne	LBB0_31
## %bb.27:
	cmpq	%r15, %rax
	movq	_COMP_SCAN@GOTPCREL(%rip), %r13
	jne	LBB0_36
## %bb.28:
	movl	$0, (%rcx)
	movl	$512, %ebx                      ## imm = 0x200
	jmp	LBB0_21
LBB0_29:
	cmpq	%r15, %rax
	jne	LBB0_37
## %bb.30:
	movl	$-3, (%rcx)
	jmp	LBB0_38
LBB0_31:
	cmpq	%r15, %rax
	movq	_COMP_SCAN@GOTPCREL(%rip), %r13
	jne	LBB0_39
## %bb.32:
	movl	$-9, (%rcx)
	jmp	LBB0_40
LBB0_18:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	$0, 4(%rax)
LBB0_19:
	movl	$512, %ebx                      ## imm = 0x200
LBB0_20:
	movq	%r12, %rdi
LBB0_21:
	movl	(%r13), %esi
	movl	(%rdx), %edx
	leaq	L_.str.2(%rip), %rcx
	movl	%ebx, %r8d
	xorl	%eax, %eax
	callq	_RT_TRACE
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_22:
	movl	$0, 4(%rcx)
	cmpl	$2, %ebx
	jne	LBB0_25
	jmp	LBB0_34
LBB0_23:
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	$-6, 4(%rcx)
	cmpl	$2, %ebx
	jne	LBB0_25
LBB0_34:
	cmpq	%r15, %rax
	jne	LBB0_41
## %bb.35:
	movl	$-6, (%rcx)
	jmp	LBB0_42
LBB0_24:
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	$-9, 4(%rcx)
	cmpl	$2, %ebx
	jne	LBB0_25
	jmp	LBB0_34
LBB0_33:
	movl	$-3, 4(%rcx)
	cmpl	$2, %ebx
	jne	LBB0_25
	jmp	LBB0_34
LBB0_36:
	movl	$0, 4(%rcx)
	movl	$512, %ebx                      ## imm = 0x200
	jmp	LBB0_21
LBB0_37:
	movl	$-3, 4(%rcx)
LBB0_38:
	movl	$362, %ebx                      ## imm = 0x16A
	movq	_COMP_SCAN@GOTPCREL(%rip), %r13
	jmp	LBB0_21
LBB0_39:
	movl	$-9, 4(%rcx)
LBB0_40:
	movl	$182, %ebx
	jmp	LBB0_21
LBB0_41:
	movl	$-6, 4(%rcx)
LBB0_42:
	movl	$257, %ebx                      ## imm = 0x101
	movq	_COMP_SCAN@GOTPCREL(%rip), %r13
	jmp	LBB0_21
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_16, LBB0_16-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_14, LBB0_14-LJTI0_0
LJTI0_0:
	.long	L0_0_set_4
	.long	L0_0_set_16
	.long	L0_0_set_12
	.long	L0_0_set_14
	.end_data_region
                                        ## -- End function
	.comm	_COMP_SCAN,4,2                  ## @COMP_SCAN
	.comm	_DBG_LOUD,4,2                   ## @DBG_LOUD
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"===> PHY_GetTXBBSwing_8812A, bbSwing_2G: %d, bbSwing_5G: %d,autoload_failflag=%d.\n"

	.comm	_BAND_ON_2_4G,8,3               ## @BAND_ON_2_4G
	.comm	_BAND_ON_5G,8,3                 ## @BAND_ON_5G
	.comm	_HARDWARE_TYPE_RTL8821AE,8,3    ## @HARDWARE_TYPE_RTL8821AE
L_.str.1:                               ## @.str.1
	.asciz	"===> PHY_GetTXBBSwing_8812A, swingA: 0x%X, swingB: 0x%X\n"

L_.str.2:                               ## @.str.2
	.asciz	"<=== PHY_GetTXBBSwing_8812A, out = 0x%X\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_phy_get_tx_swing_8812A         ; -- Begin function phy_get_tx_swing_8812A
	.p2align	2
_phy_get_tx_swing_8812A:                ; @phy_get_tx_swing_8812A
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	mov	x21, x1
	mov	x22, x0
	bl	_rtl_priv
	mov	x19, x0
	mov	x0, x22
	bl	_rtl_priv
	bl	_rtl_hal
	mov	x23, x0
	mov	x0, x19
	bl	_rtl_dm
	mov	x20, x0
	mov	x0, x22
	bl	_rtl_priv
	bl	_rtl_efuse
	mov	x24, x0
Lloh0:
	adrp	x25, _COMP_SCAN@GOTPAGE
Lloh1:
	ldr	x25, [x25, _COMP_SCAN@GOTPAGEOFF]
	ldr	w1, [x25]
Lloh2:
	adrp	x26, _DBG_LOUD@GOTPAGE
Lloh3:
	ldr	x26, [x26, _DBG_LOUD@GOTPAGEOFF]
	ldr	w2, [x26]
	ldr	x8, [x0]
	mov	w9, #1
Lloh4:
	adrp	x3, l_.str@PAGE
Lloh5:
	add	x3, x3, l_.str@PAGEOFF
	stp	x9, x8, [sp]
	mov	x0, x19
	mov	w4, #1
	bl	_RT_TRACE
	ldr	x8, [x24]
	cbz	x8, LBB0_3
; %bb.1:
Lloh6:
	adrp	x8, _BAND_ON_2_4G@GOTPAGE
Lloh7:
	ldr	x8, [x8, _BAND_ON_2_4G@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cmp	x8, x21
	b.ne	LBB0_6
LBB0_2:
	str	wzr, [x20]
	mov	w20, #512
	b	LBB0_36
LBB0_3:
	str	wzr, [sp, #28]
Lloh9:
	adrp	x24, _BAND_ON_2_4G@GOTPAGE
Lloh10:
	ldr	x24, [x24, _BAND_ON_2_4G@GOTPAGEOFF]
	ldr	x8, [x24]
	cmp	x8, x21
	mov	w8, #198
	cinc	w2, w8, ne
	add	x3, sp, #28
	mov	x0, x22
	mov	w1, #1
	bl	_efuse_shadow_read
	ldr	w8, [sp, #28]
	cmp	w8, #255
	csel	w8, wzr, w8, eq
	str	w8, [sp, #28]
	and	w22, w8, #0x3
	ubfx	w23, w8, #2, #2
	ldr	w1, [x25]
	ldr	w2, [x26]
Lloh11:
	adrp	x3, l_.str.1@PAGE
Lloh12:
	add	x3, x3, l_.str.1@PAGEOFF
	str	x23, [sp]
	mov	x0, x19
	mov	x4, x22
	bl	_RT_TRACE
Lloh13:
	adrp	x8, lJTI0_0@PAGE
Lloh14:
	add	x8, x8, lJTI0_0@PAGEOFF
	adr	x9, LBB0_4
	ldrb	w10, [x8, x22]
	add	x9, x9, x10, lsl #2
	br	x9
LBB0_4:
	ldr	x8, [x24]
	cmp	x8, x21
	b.ne	LBB0_16
; %bb.5:
	str	wzr, [x20]
	mov	x8, x21
	b	LBB0_21
LBB0_6:
Lloh15:
	adrp	x8, _BAND_ON_5G@GOTPAGE
Lloh16:
	ldr	x8, [x8, _BAND_ON_5G@GOTPAGEOFF]
Lloh17:
	ldr	x8, [x8]
	cmp	x8, x21
	b.ne	LBB0_8
; %bb.7:
	ldr	x8, [x23]
Lloh18:
	adrp	x9, _HARDWARE_TYPE_RTL8821AE@GOTPAGE
Lloh19:
	ldr	x9, [x9, _HARDWARE_TYPE_RTL8821AE@GOTPAGEOFF]
Lloh20:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_25
	b	LBB0_30
LBB0_8:
	mvni.2s	v0, #2
	str	d0, [x20]
	mov	w20, #362
	b	LBB0_36
LBB0_9:
	ldr	x8, [x24]
	cmp	x8, x21
	b.ne	LBB0_17
; %bb.10:
	mov	w8, #-6
	b	LBB0_15
LBB0_11:
	ldr	x8, [x24]
	cmp	x8, x21
	b.ne	LBB0_18
; %bb.12:
	mov	w8, #-9
	b	LBB0_15
LBB0_13:
	ldr	x8, [x24]
	cmp	x8, x21
	b.ne	LBB0_19
; %bb.14:
	mov	w8, #-3
LBB0_15:
	str	w8, [x20]
	mov	x8, x21
	b	LBB0_21
LBB0_16:
	str	wzr, [x20, #4]
	b	LBB0_21
LBB0_17:
	mov	w9, #-6
	b	LBB0_20
LBB0_18:
	mov	w9, #-9
	b	LBB0_20
LBB0_19:
	mov	w9, #-3
LBB0_20:
	str	w9, [x20, #4]
LBB0_21:
	cmp	w23, #2
	b.eq	LBB0_26
; %bb.22:
	cmp	w23, #1
	b.eq	LBB0_28
; %bb.23:
	cmp	x8, x21
	cbnz	w23, LBB0_31
; %bb.24:
	b.eq	LBB0_2
LBB0_25:
	str	wzr, [x20, #4]
	mov	w20, #512
	b	LBB0_36
LBB0_26:
	cmp	x8, x21
	b.ne	LBB0_33
; %bb.27:
	mov	w8, #-6
	str	w8, [x20]
	mov	w20, #257
	b	LBB0_36
LBB0_28:
	cmp	x8, x21
	b.ne	LBB0_30
; %bb.29:
	mov	w8, #-3
	str	w8, [x20]
	mov	w20, #362
	b	LBB0_36
LBB0_30:
	mov	w8, #-3
	str	w8, [x20, #4]
	mov	w20, #362
	b	LBB0_36
LBB0_31:
	mov	w8, #-9
	b.ne	LBB0_34
; %bb.32:
	str	w8, [x20]
	b	LBB0_35
LBB0_33:
	mov	w8, #-6
	str	w8, [x20, #4]
	mov	w20, #257
	b	LBB0_36
LBB0_34:
	str	w8, [x20, #4]
LBB0_35:
	mov	w20, #182
LBB0_36:
	ldr	w1, [x25]
	ldr	w2, [x26]
Lloh21:
	adrp	x3, l_.str.2@PAGE
Lloh22:
	add	x3, x3, l_.str.2@PAGEOFF
	mov	x0, x19
	mov	x4, x20
	bl	_RT_TRACE
	mov	x0, x20
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_4-LBB0_4)>>2
	.byte	(LBB0_13-LBB0_4)>>2
	.byte	(LBB0_9-LBB0_4)>>2
	.byte	(LBB0_11-LBB0_4)>>2
                                        ; -- End function
	.comm	_COMP_SCAN,4,2                  ; @COMP_SCAN
	.comm	_DBG_LOUD,4,2                   ; @DBG_LOUD
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"===> PHY_GetTXBBSwing_8812A, bbSwing_2G: %d, bbSwing_5G: %d,autoload_failflag=%d.\n"

	.comm	_BAND_ON_2_4G,8,3               ; @BAND_ON_2_4G
	.comm	_BAND_ON_5G,8,3                 ; @BAND_ON_5G
	.comm	_HARDWARE_TYPE_RTL8821AE,8,3    ; @HARDWARE_TYPE_RTL8821AE
l_.str.1:                               ; @.str.1
	.asciz	"===> PHY_GetTXBBSwing_8812A, swingA: 0x%X, swingB: 0x%X\n"

l_.str.2:                               ; @.str.2
	.asciz	"<=== PHY_GetTXBBSwing_8812A, out = 0x%X\n"

.subsections_via_symbols
