	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _rtl92s_get_powerbase
__rtl92s_get_powerbase:                 ## @_rtl92s_get_powerbase
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, -56(%rbp)                  ## 8-byte Spill
	movq	%r8, -48(%rbp)                  ## 8-byte Spill
	movq	%rcx, %rbx
	movl	%edx, %r14d
	movq	%rsi, %r15
	movq	%rdi, %r12
	callq	_rtl_priv
	movq	%rax, %r13
	movq	%r12, %rdi
	callq	_rtl_priv
	movq	%rax, %rdi
	callq	_rtl_efuse
	movl	(%r15), %r8d
	cmpl	$1, (%rax)
	jg	LBB0_2
## %bb.1:
	movl	4(%rax), %ecx
	andl	$15, %ecx
	jmp	LBB0_3
LBB0_2:
	movq	8(%rax), %rcx
	movq	_RF90_PATH_A@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movq	(%rcx,%rdx,8), %rcx
	movslq	%r14d, %rdx
	movl	-4(%rcx,%rdx,4), %ecx
LBB0_3:
	addl	%r8d, %ecx
	movl	4(%r15), %r9d
	movl	%ecx, %edx
	shll	$24, %edx
	movl	%ecx, %esi
	shll	$16, %esi
	orl	%ecx, %esi
	shll	$8, %ecx
	orl	%edx, %ecx
	orl	%esi, %ecx
	movl	%ecx, (%rbx)
	cmpl	$2, (%rax)
	jl	LBB0_4
## %bb.5:
	movq	(%r13), %rcx
	movq	_HT_CHANNEL_WIDTH_20@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_4
## %bb.6:
	movq	16(%rax), %rcx
	movslq	%r14d, %rdx
	movq	(%rcx), %rsi
	movl	-4(%rsi,%rdx,4), %esi
	leal	-16(%rsi), %ebx
	cmpl	$8, %esi
	cmovll	%esi, %ebx
	movq	8(%rcx), %rcx
	addl	%ebx, %r8d
	movl	-4(%rcx,%rdx,4), %ecx
	cmpl	$8, %ecx
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	-48(%rbp), %r10                 ## 8-byte Reload
	jge	LBB0_7
## %bb.8:
	addl	%ecx, %r9d
	jmp	LBB0_9
LBB0_4:
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	-48(%rbp), %r10                 ## 8-byte Reload
LBB0_9:
	movl	%r8d, %ecx
	shll	$24, %ecx
	movl	%r8d, %edx
	shll	$16, %edx
	movl	%r8d, %esi
	shll	$8, %esi
	orl	%ecx, %esi
	orl	%r8d, %edx
	orl	%esi, %edx
	movl	%edx, (%r10)
	movl	%r8d, (%rbx)
	movl	%r9d, 4(%rbx)
	cmpl	$3, 24(%rax)
	movq	(%r13), %rcx
	movq	_HT_CHANNEL_WIDTH_20_40@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	jne	LBB0_13
## %bb.10:
	cmpq	%rdx, %rcx
	jne	LBB0_12
## %bb.11:
	movq	40(%rax), %rax
	movq	_RF90_PATH_A@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rax,%rcx,8), %rcx
	movslq	%r14d, %rdx
	addl	-4(%rcx,%rdx,4), %r8d
	movl	%r8d, (%rbx)
	movq	_RF90_PATH_B@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rax,%rcx,8), %rax
	addl	-4(%rax,%rdx,4), %r9d
	movl	%r9d, 4(%rbx)
	jmp	LBB0_14
LBB0_12:
	movq	32(%rax), %rax
	movq	_RF90_PATH_A@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rsi
	movq	(%rax,%rsi,8), %rsi
	movslq	%r14d, %r10
	addl	-4(%rsi,%r10,4), %r8d
	movl	%r8d, (%rbx)
	movq	_RF90_PATH_B@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rsi
	movq	(%rax,%rsi,8), %rax
	addl	-4(%rax,%r10,4), %r9d
	movl	%r9d, 4(%rbx)
LBB0_13:
	cmpq	%rdx, %rcx
	jne	LBB0_16
LBB0_14:
	movq	_COMP_POWER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_DBG_LOUD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str(%rip), %rcx
	jmp	LBB0_15
LBB0_16:
	movq	_COMP_POWER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_DBG_LOUD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.1(%rip), %rcx
LBB0_15:
	movq	%r13, %rdi
                                        ## kill: def $r9d killed $r9d killed $r9
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_RT_TRACE                       ## TAILCALL
LBB0_7:
	addl	%ecx, %r9d
	addl	$-16, %r9d
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_RF90_PATH_A,8,3                ## @RF90_PATH_A
	.comm	_HT_CHANNEL_WIDTH_20,8,3        ## @HT_CHANNEL_WIDTH_20
	.comm	_HT_CHANNEL_WIDTH_20_40,8,3     ## @HT_CHANNEL_WIDTH_20_40
	.comm	_RF90_PATH_B,8,3                ## @RF90_PATH_B
	.comm	_COMP_POWER,4,2                 ## @COMP_POWER
	.comm	_DBG_LOUD,4,2                   ## @DBG_LOUD
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"40MHz finalpwr_idx (A / B) = 0x%x / 0x%x\n"

L_.str.1:                               ## @.str.1
	.asciz	"20MHz finalpwr_idx (A / B) = 0x%x / 0x%x\n"

	.no_dead_strip	__rtl92s_get_powerbase
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function _rtl92s_get_powerbase
__rtl92s_get_powerbase:                 ; @_rtl92s_get_powerbase
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x20, x5
	mov	x22, x4
	mov	x23, x3
	mov	x21, x2
	mov	x24, x1
	mov	x25, x0
	bl	_rtl_priv
	mov	x19, x0
	mov	x0, x25
	bl	_rtl_priv
	bl	_rtl_efuse
	ldp	w4, w5, [x24]
	ldr	w8, [x0]
	cmp	w8, #1
	b.gt	LBB0_2
; %bb.1:
	ldr	w8, [x0, #4]
	and	w8, w8, #0xf
	add	w8, w8, w4
	b	LBB0_3
LBB0_2:
	ldr	x8, [x0, #8]
Lloh0:
	adrp	x9, _RF90_PATH_A@GOTPAGE
Lloh1:
	ldr	x9, [x9, _RF90_PATH_A@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	ldr	x8, [x8, x9, lsl #3]
	add	x8, x8, w21, sxtw #2
	ldur	w8, [x8, #-4]
	add	w8, w4, w8
LBB0_3:
	orr	w9, w8, w8, lsl #16
	orr	w9, w9, w8, lsl #24
	orr	w8, w9, w8, lsl #8
	str	w8, [x23]
	ldr	w8, [x0]
	cmp	w8, #2
	b.lt	LBB0_8
; %bb.4:
	ldr	x8, [x19]
Lloh3:
	adrp	x9, _HT_CHANNEL_WIDTH_20@GOTPAGE
Lloh4:
	ldr	x9, [x9, _HT_CHANNEL_WIDTH_20@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.5:
	ldr	x8, [x0, #16]
	sbfiz	x9, x21, #2, #32
	sub	x9, x9, #4
	ldp	x10, x8, [x8]
	ldr	w10, [x10, x9]
	sub	w11, w10, #16
	cmp	w10, #8
	csel	w10, w10, w11, lt
	add	w4, w4, w10
	ldr	w8, [x8, x9]
	cmp	w8, #8
	b.ge	LBB0_7
; %bb.6:
	add	w5, w5, w8
	b	LBB0_8
LBB0_7:
	add	w8, w8, w5
	sub	w5, w8, #16
LBB0_8:
	orr	w8, w4, w4, lsl #16
	orr	w8, w8, w4, lsl #24
	orr	w8, w8, w4, lsl #8
	str	w8, [x22]
	stp	w4, w5, [x20]
	ldr	w10, [x0, #24]
	ldr	x8, [x19]
Lloh6:
	adrp	x9, _HT_CHANNEL_WIDTH_20_40@GOTPAGE
Lloh7:
	ldr	x9, [x9, _HT_CHANNEL_WIDTH_20_40@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	w10, #3
	b.ne	LBB0_12
; %bb.9:
	cmp	x8, x9
	b.ne	LBB0_11
; %bb.10:
	ldr	x8, [x0, #40]
Lloh9:
	adrp	x9, _RF90_PATH_A@GOTPAGE
Lloh10:
	ldr	x9, [x9, _RF90_PATH_A@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	ldr	x9, [x8, x9, lsl #3]
                                        ; kill: def $w21 killed $w21 killed $x21 def $x21
	sbfiz	x10, x21, #2, #32
	sub	x10, x10, #4
	ldr	w9, [x9, x10]
	add	w4, w9, w4
	str	w4, [x20]
Lloh12:
	adrp	x9, _RF90_PATH_B@GOTPAGE
Lloh13:
	ldr	x9, [x9, _RF90_PATH_B@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	ldr	x8, [x8, x9, lsl #3]
	ldr	w8, [x8, x10]
	add	w5, w8, w5
	str	w5, [x20, #4]
	b	LBB0_13
LBB0_11:
	ldr	x10, [x0, #32]
Lloh15:
	adrp	x11, _RF90_PATH_A@GOTPAGE
Lloh16:
	ldr	x11, [x11, _RF90_PATH_A@GOTPAGEOFF]
Lloh17:
	ldr	x11, [x11]
	ldr	x11, [x10, x11, lsl #3]
                                        ; kill: def $w21 killed $w21 killed $x21 def $x21
	sbfiz	x12, x21, #2, #32
	sub	x12, x12, #4
	ldr	w11, [x11, x12]
	add	w4, w11, w4
	str	w4, [x20]
Lloh18:
	adrp	x11, _RF90_PATH_B@GOTPAGE
Lloh19:
	ldr	x11, [x11, _RF90_PATH_B@GOTPAGEOFF]
Lloh20:
	ldr	x11, [x11]
	ldr	x10, [x10, x11, lsl #3]
	ldr	w10, [x10, x12]
	add	w5, w10, w5
	str	w5, [x20, #4]
LBB0_12:
	cmp	x8, x9
	b.ne	LBB0_14
LBB0_13:
Lloh21:
	adrp	x8, _COMP_POWER@GOTPAGE
Lloh22:
	ldr	x8, [x8, _COMP_POWER@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
Lloh24:
	adrp	x8, _DBG_LOUD@GOTPAGE
Lloh25:
	ldr	x8, [x8, _DBG_LOUD@GOTPAGEOFF]
Lloh26:
	ldr	w2, [x8]
Lloh27:
	adrp	x3, l_.str@PAGE
Lloh28:
	add	x3, x3, l_.str@PAGEOFF
	b	LBB0_15
LBB0_14:
Lloh29:
	adrp	x8, _COMP_POWER@GOTPAGE
Lloh30:
	ldr	x8, [x8, _COMP_POWER@GOTPAGEOFF]
Lloh31:
	ldr	w1, [x8]
Lloh32:
	adrp	x8, _DBG_LOUD@GOTPAGE
Lloh33:
	ldr	x8, [x8, _DBG_LOUD@GOTPAGEOFF]
Lloh34:
	ldr	w2, [x8]
Lloh35:
	adrp	x3, l_.str.1@PAGE
Lloh36:
	add	x3, x3, l_.str.1@PAGEOFF
LBB0_15:
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_RT_TRACE
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.comm	_RF90_PATH_A,8,3                ; @RF90_PATH_A
	.comm	_HT_CHANNEL_WIDTH_20,8,3        ; @HT_CHANNEL_WIDTH_20
	.comm	_HT_CHANNEL_WIDTH_20_40,8,3     ; @HT_CHANNEL_WIDTH_20_40
	.comm	_RF90_PATH_B,8,3                ; @RF90_PATH_B
	.comm	_COMP_POWER,4,2                 ; @COMP_POWER
	.comm	_DBG_LOUD,4,2                   ; @DBG_LOUD
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"40MHz finalpwr_idx (A / B) = 0x%x / 0x%x\n"

l_.str.1:                               ; @.str.1
	.asciz	"20MHz finalpwr_idx (A / B) = 0x%x / 0x%x\n"

	.no_dead_strip	__rtl92s_get_powerbase
.subsections_via_symbols
