	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _rtl8812ae_phy_get_txpower_by_rate_base_index
__rtl8812ae_phy_get_txpower_by_rate_base_index: ## @_rtl8812ae_phy_get_txpower_by_rate_base_index
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r14d
	movl	%esi, %ebx
	callq	_rtl_priv
	movq	_BAND_ON_2_4G@GOTPCREL(%rip), %rcx
	cmpl	%ebx, (%rcx)
	jne	LBB0_3
## %bb.1:
	leal	-148(%r14), %ecx
	cmpl	$28, %ecx
	jae	LBB0_2
## %bb.6:
	movslq	%ecx, %rax
	leaq	l_switch.table._rtl8812ae_phy_get_txpower_by_rate_base_index(%rip), %rcx
	jmp	LBB0_9
LBB0_3:
	movq	_BAND_ON_5G@GOTPCREL(%rip), %rcx
	xorl	%r15d, %r15d
	cmpl	%ebx, (%rcx)
	jne	LBB0_10
## %bb.4:
	leal	-128(%r14), %ecx
	cmpl	$47, %ecx
	jae	LBB0_5
## %bb.7:
	movabsq	$118472377892863, %rdx          ## imm = 0x6BBFFFFFFFFF
	btq	%rcx, %rdx
	jb	LBB0_8
LBB0_5:
	movq	_COMP_INIT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_DBG_LOUD@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	leaq	L_.str.1(%rip), %rcx
	movq	%rax, %rdi
	movl	%r14d, %r8d
	callq	_RT_TRACE
	jmp	LBB0_10
LBB0_2:
	movq	_COMP_INIT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	_DBG_LOUD@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	leaq	L_.str(%rip), %rcx
	movq	%rax, %rdi
	movl	%r14d, %r8d
	callq	_RT_TRACE
	xorl	%r15d, %r15d
	jmp	LBB0_10
LBB0_8:
	movslq	%ecx, %rax
	leaq	l_switch.table._rtl8812ae_phy_get_txpower_by_rate_base_index.2(%rip), %rcx
LBB0_9:
	movl	(%rcx,%rax,4), %r15d
LBB0_10:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BAND_ON_2_4G,4,2               ## @BAND_ON_2_4G
	.comm	_COMP_INIT,4,2                  ## @COMP_INIT
	.comm	_DBG_LOUD,4,2                   ## @DBG_LOUD
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Wrong rate 0x%x to obtain index in 2.4G in PHY_GetTxPowerByRateBaseIndex()\n"

	.comm	_BAND_ON_5G,4,2                 ## @BAND_ON_5G
L_.str.1:                               ## @.str.1
	.asciz	"Wrong rate 0x%x to obtain index in 5G in PHY_GetTxPowerByRateBaseIndex()\n"

	.no_dead_strip	__rtl8812ae_phy_get_txpower_by_rate_base_index
	.section	__TEXT,__const
	.p2align	2                               ## @switch.table._rtl8812ae_phy_get_txpower_by_rate_base_index
l_switch.table._rtl8812ae_phy_get_txpower_by_rate_base_index:
	.long	3                               ## 0x3
	.long	3                               ## 0x3
	.long	2                               ## 0x2
	.long	2                               ## 0x2
	.long	2                               ## 0x2
	.long	2                               ## 0x2
	.long	2                               ## 0x2
	.long	2                               ## 0x2
	.long	3                               ## 0x3
	.long	3                               ## 0x3
	.long	3                               ## 0x3
	.long	3                               ## 0x3
	.long	3                               ## 0x3
	.long	3                               ## 0x3
	.long	2                               ## 0x2
	.long	2                               ## 0x2
	.long	1                               ## 0x1
	.long	1                               ## 0x1
	.long	0                               ## 0x0
	.long	1                               ## 0x1
	.long	1                               ## 0x1
	.long	1                               ## 0x1
	.long	0                               ## 0x0
	.long	1                               ## 0x1
	.long	0                               ## 0x0
	.long	1                               ## 0x1
	.long	1                               ## 0x1
	.long	0                               ## 0x0

	.p2align	2                               ## @switch.table._rtl8812ae_phy_get_txpower_by_rate_base_index.2
l_switch.table._rtl8812ae_phy_get_txpower_by_rate_base_index.2:
	.long	4                               ## 0x4
	.long	4                               ## 0x4
	.long	4                               ## 0x4
	.long	4                               ## 0x4
	.long	4                               ## 0x4
	.long	4                               ## 0x4
	.long	4                               ## 0x4
	.long	4                               ## 0x4
	.long	4                               ## 0x4
	.long	4                               ## 0x4
	.long	3                               ## 0x3
	.long	3                               ## 0x3
	.long	3                               ## 0x3
	.long	3                               ## 0x3
	.long	3                               ## 0x3
	.long	3                               ## 0x3
	.long	3                               ## 0x3
	.long	3                               ## 0x3
	.long	3                               ## 0x3
	.long	3                               ## 0x3
	.long	2                               ## 0x2
	.long	2                               ## 0x2
	.long	1                               ## 0x1
	.long	1                               ## 0x1
	.long	1                               ## 0x1
	.long	1                               ## 0x1
	.long	1                               ## 0x1
	.long	1                               ## 0x1
	.long	2                               ## 0x2
	.long	2                               ## 0x2
	.long	2                               ## 0x2
	.long	2                               ## 0x2
	.long	2                               ## 0x2
	.long	2                               ## 0x2
	.long	1                               ## 0x1
	.long	1                               ## 0x1
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	0                               ## 0x0
	.long	0                               ## 0x0

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function _rtl8812ae_phy_get_txpower_by_rate_base_index
__rtl8812ae_phy_get_txpower_by_rate_base_index: ; @_rtl8812ae_phy_get_txpower_by_rate_base_index
	.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	x19, x2
	mov	x20, x1
	bl	_rtl_priv
Lloh0:
	adrp	x8, _BAND_ON_2_4G@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BAND_ON_2_4G@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w20
	b.ne	LBB0_3
; %bb.1:
	sub	w8, w19, #148
	cmp	w8, #28
	b.hs	LBB0_7
; %bb.2:
Lloh3:
	adrp	x9, l_switch.table._rtl8812ae_phy_get_txpower_by_rate_base_index@PAGE
Lloh4:
	add	x9, x9, l_switch.table._rtl8812ae_phy_get_txpower_by_rate_base_index@PAGEOFF
	ldr	w0, [x9, w8, sxtw #2]
	b	LBB0_10
LBB0_3:
Lloh5:
	adrp	x8, _BAND_ON_5G@GOTPAGE
Lloh6:
	ldr	x8, [x8, _BAND_ON_5G@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	cmp	w8, w20
	b.ne	LBB0_9
; %bb.4:
	sub	w8, w19, #128
	cmp	w8, #47
	b.hs	LBB0_6
; %bb.5:
	mov	x9, #-163002598817793
	movk	x9, #0, lsl #48
	lsr	x9, x9, x8
	tbnz	w9, #0, LBB0_11
LBB0_6:
Lloh8:
	adrp	x8, _COMP_INIT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _COMP_INIT@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
Lloh11:
	adrp	x8, _DBG_LOUD@GOTPAGE
Lloh12:
	ldr	x8, [x8, _DBG_LOUD@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
Lloh14:
	adrp	x3, l_.str.1@PAGE
Lloh15:
	add	x3, x3, l_.str.1@PAGEOFF
	b	LBB0_8
LBB0_7:
Lloh16:
	adrp	x8, _COMP_INIT@GOTPAGE
Lloh17:
	ldr	x8, [x8, _COMP_INIT@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
Lloh19:
	adrp	x8, _DBG_LOUD@GOTPAGE
Lloh20:
	ldr	x8, [x8, _DBG_LOUD@GOTPAGEOFF]
Lloh21:
	ldr	w2, [x8]
Lloh22:
	adrp	x3, l_.str@PAGE
Lloh23:
	add	x3, x3, l_.str@PAGEOFF
LBB0_8:
	mov	x4, x19
	bl	_RT_TRACE
LBB0_9:
	mov	w0, #0
LBB0_10:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_11:
Lloh24:
	adrp	x9, l_switch.table._rtl8812ae_phy_get_txpower_by_rate_base_index.2@PAGE
Lloh25:
	add	x9, x9, l_switch.table._rtl8812ae_phy_get_txpower_by_rate_base_index.2@PAGEOFF
	ldr	w0, [x9, w8, sxtw #2]
	b	LBB0_10
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh24, Lloh25
	.cfi_endproc
                                        ; -- End function
	.comm	_BAND_ON_2_4G,4,2               ; @BAND_ON_2_4G
	.comm	_COMP_INIT,4,2                  ; @COMP_INIT
	.comm	_DBG_LOUD,4,2                   ; @DBG_LOUD
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Wrong rate 0x%x to obtain index in 2.4G in PHY_GetTxPowerByRateBaseIndex()\n"

	.comm	_BAND_ON_5G,4,2                 ; @BAND_ON_5G
l_.str.1:                               ; @.str.1
	.asciz	"Wrong rate 0x%x to obtain index in 5G in PHY_GetTxPowerByRateBaseIndex()\n"

	.no_dead_strip	__rtl8812ae_phy_get_txpower_by_rate_base_index
	.section	__TEXT,__const
	.p2align	2                               ; @switch.table._rtl8812ae_phy_get_txpower_by_rate_base_index
l_switch.table._rtl8812ae_phy_get_txpower_by_rate_base_index:
	.long	3                               ; 0x3
	.long	3                               ; 0x3
	.long	2                               ; 0x2
	.long	2                               ; 0x2
	.long	2                               ; 0x2
	.long	2                               ; 0x2
	.long	2                               ; 0x2
	.long	2                               ; 0x2
	.long	3                               ; 0x3
	.long	3                               ; 0x3
	.long	3                               ; 0x3
	.long	3                               ; 0x3
	.long	3                               ; 0x3
	.long	3                               ; 0x3
	.long	2                               ; 0x2
	.long	2                               ; 0x2
	.long	1                               ; 0x1
	.long	1                               ; 0x1
	.long	0                               ; 0x0
	.long	1                               ; 0x1
	.long	1                               ; 0x1
	.long	1                               ; 0x1
	.long	0                               ; 0x0
	.long	1                               ; 0x1
	.long	0                               ; 0x0
	.long	1                               ; 0x1
	.long	1                               ; 0x1
	.long	0                               ; 0x0

	.p2align	2                               ; @switch.table._rtl8812ae_phy_get_txpower_by_rate_base_index.2
l_switch.table._rtl8812ae_phy_get_txpower_by_rate_base_index.2:
	.long	4                               ; 0x4
	.long	4                               ; 0x4
	.long	4                               ; 0x4
	.long	4                               ; 0x4
	.long	4                               ; 0x4
	.long	4                               ; 0x4
	.long	4                               ; 0x4
	.long	4                               ; 0x4
	.long	4                               ; 0x4
	.long	4                               ; 0x4
	.long	3                               ; 0x3
	.long	3                               ; 0x3
	.long	3                               ; 0x3
	.long	3                               ; 0x3
	.long	3                               ; 0x3
	.long	3                               ; 0x3
	.long	3                               ; 0x3
	.long	3                               ; 0x3
	.long	3                               ; 0x3
	.long	3                               ; 0x3
	.long	2                               ; 0x2
	.long	2                               ; 0x2
	.long	1                               ; 0x1
	.long	1                               ; 0x1
	.long	1                               ; 0x1
	.long	1                               ; 0x1
	.long	1                               ; 0x1
	.long	1                               ; 0x1
	.long	2                               ; 0x2
	.long	2                               ; 0x2
	.long	2                               ; 0x2
	.long	2                               ; 0x2
	.long	2                               ; 0x2
	.long	2                               ; 0x2
	.long	1                               ; 0x1
	.long	1                               ; 0x1
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	0                               ; 0x0
	.long	0                               ; 0x0

.subsections_via_symbols
