	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _rtl92d_get_txpower_writeval_by_regulatory
__rtl92d_get_txpower_writeval_by_regulatory: ## @_rtl92d_get_txpower_writeval_by_regulatory
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %r14
	movq	%r8, -72(%rbp)                  ## 8-byte Spill
	movq	%rcx, %r13
	movq	%rdx, %r15
	movq	%rsi, -88(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r12
	callq	_rtl_priv
	movq	%rax, %rbx
	movq	%r12, %rdi
	callq	_rtl_priv
	movq	%rax, %rdi
	callq	_rtl_efuse
	movq	%rax, %rcx
	addq	$8, %rcx
	movq	%rcx, -96(%rbp)                 ## 8-byte Spill
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	cmpq	$2, %r15
	cmovaeq	-72(%rbp), %r13                 ## 8-byte Folded Reload
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	leaq	16(%rax), %rdx
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	decl	%eax
	movl	%eax, -76(%rbp)                 ## 4-byte Spill
	xorl	%r13d, %r13d
	movb	$1, %r12b
	movb	$65, %al
	xorl	%r15d, %r15d
	movq	%r14, -104(%rbp)                ## 8-byte Spill
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	(%rbx), %rax
	movq	(%rax), %rax
	movl	%r12d, %ecx
	notb	%cl
	movzbl	%cl, %ecx
	andl	$1, %ecx
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	leaq	(%rdx,%rcx,8), %rcx
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movl	(%rdx,%r13,4), %r15d
	addl	(%rax,%rcx,4), %r15d
	movq	_FPHY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_PHY_TXPWR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movzbl	%r12b, %eax
	andl	$1, %eax
	movl	$66, %r8d
	subl	%eax, %r8d
	movq	%rbx, %rdi
	leaq	L_.str.7(%rip), %rcx
LBB0_12:                                ##   in Loop: Header=BB0_1 Depth=1
	movl	%r15d, %r9d
	callq	_RTPRINT
LBB0_13:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
LBB0_14:                                ##   in Loop: Header=BB0_1 Depth=1
	movl	%r15d, (%r14,%r13,4)
	movl	$1, %r13d
	movb	$66, %al
	testb	$1, %r12b
	movl	$0, %r12d
	je	LBB0_15
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movl	(%rcx), %ecx
	cmpq	$3, %rcx
	ja	LBB0_11
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	leaq	LJTI0_0(%rip), %rsi
	movslq	(%rsi,%rcx,4), %rcx
	addq	%rsi, %rcx
	jmpq	*%rcx
LBB0_3:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	(%rbx), %rax
	movq	(%rax), %rax
	movl	%r12d, %ecx
	notb	%cl
	movzbl	%cl, %ecx
	andl	$1, %ecx
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	leaq	(%rdx,%rcx,8), %rcx
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movl	(%rdx,%r13,4), %r15d
	addl	(%rax,%rcx,4), %r15d
	movq	_FPHY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_PHY_TXPWR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movzbl	%r12b, %eax
	andl	$1, %eax
	movl	$66, %r8d
	subl	%eax, %r8d
	movq	%rbx, %rdi
	leaq	L_.str(%rip), %rcx
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_1 Depth=1
	movl	8(%rbx), %eax
	movq	_MAX_PG_GROUP@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jl	LBB0_14
## %bb.5:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	-76(%rbp), %edi                 ## 4-byte Reload
	callq	__rtl92d_phy_get_chnlgroup_bypg
	movl	12(%rbx), %ecx
	xorl	%edx, %edx
	movq	_HT_CHANNEL_WIDTH_20@GOTPCREL(%rip), %rsi
	cmpl	(%rsi), %ecx
	setne	%dl
	leaq	(%rdx,%rdx,2), %rcx
	addq	%rax, %rcx
	movq	(%rbx), %rax
	movq	8(%rax,%rcx,8), %rax
	movl	%r12d, %ecx
	notb	%cl
	movzbl	%cl, %ecx
	andl	$1, %ecx
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	leaq	(%rdx,%rcx,8), %rcx
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movl	(%rdx,%r13,4), %r15d
	addl	(%rax,%rcx,4), %r15d
	movq	_FPHY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_PHY_TXPWR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movzbl	%r12b, %eax
	andl	$1, %eax
	movl	$66, %r8d
	subl	%eax, %r8d
	movq	%rbx, %rdi
	leaq	L_.str.1(%rip), %rcx
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax,%r13,4), %r15d
	movq	_FPHY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_PHY_TXPWR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movzbl	%r12b, %eax
	andl	$1, %eax
	movl	$66, %r8d
	subl	%eax, %r8d
	movq	%rbx, %rdi
	leaq	L_.str.2(%rip), %rcx
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_1 Depth=1
	movl	12(%rbx), %ecx
	movq	_HT_CHANNEL_WIDTH_20_40@GOTPCREL(%rip), %rsi
	cmpl	(%rsi), %ecx
	movq	_FPHY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	%rdx, %rdi
	movq	-96(%rbp), %r15                 ## 8-byte Reload
	cmoveq	%r15, %rdi
	leaq	L_.str.4(%rip), %rcx
	leaq	L_.str.3(%rip), %rdx
	cmoveq	%rdx, %rcx
	movq	_PHY_TXPWR@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	movq	(%rdi), %rdi
	movq	(%rdi,%r13,8), %rdi
	movq	-88(%rbp), %r14                 ## 8-byte Reload
	movl	-4(%rdi,%r14,4), %r9d
	movsbl	%al, %r8d
	movq	%rbx, %rdi
	callq	_RTPRINT
	movq	(%rbx), %rax
	movq	(%rax), %rax
	movl	%r12d, %ecx
	notb	%cl
	movzbl	%cl, %ecx
	andl	$1, %ecx
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	leaq	(%rdx,%rcx,8), %rcx
	movl	(%rax,%rcx,4), %eax
	movq	%rbx, %rdi
	movl	12(%rbx), %edx
	movl	%eax, %ecx
	andl	$127, %ecx
	movq	_HT_CHANNEL_WIDTH_20_40@GOTPCREL(%rip), %rsi
	cmpl	(%rsi), %edx
	jne	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	(%r15), %rdx
	jmp	LBB0_10
LBB0_9:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movq	(%rdx), %rdx
LBB0_10:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	(%rdx,%r13,8), %rdx
	movslq	-4(%rdx,%r14,4), %rsi
	cmpq	%rsi, %rcx
	cmoval	%esi, %ecx
	movl	%eax, %r15d
	shrl	$8, %r15d
	andl	$127, %r15d
	cmpq	%rsi, %r15
	cmoval	%esi, %r15d
	movl	%eax, %edx
	shrl	$16, %edx
	andl	$127, %edx
	cmpq	%rsi, %rdx
	cmoval	%esi, %edx
	shrl	$24, %eax
	andl	$127, %eax
	cmpq	%rsi, %rax
	cmoval	%esi, %eax
	movq	%rdi, %rbx
	shll	$24, %eax
	shll	$16, %edx
	orl	%eax, %edx
	shll	$8, %r15d
	orl	%ecx, %r15d
	orl	%edx, %r15d
	movq	_FPHY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_PHY_TXPWR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movzbl	%r12b, %eax
	andl	$1, %eax
	movl	$66, %r14d
	subl	%eax, %r14d
	leaq	L_.str.5(%rip), %rcx
	movl	%r14d, %r8d
	movl	%r15d, %r9d
	callq	_RTPRINT
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	addl	(%rax,%r13,4), %r15d
	movq	_FPHY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_PHY_TXPWR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	leaq	L_.str.6(%rip), %rcx
	movl	%r14d, %r8d
	movl	%r15d, %r9d
	callq	_RTPRINT
	movq	-104(%rbp), %r14                ## 8-byte Reload
	jmp	LBB0_13
LBB0_15:
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
LJTI0_0:
	.long	L0_0_set_3
	.long	L0_0_set_4
	.long	L0_0_set_6
	.long	L0_0_set_7
	.end_data_region
                                        ## -- End function
	.comm	_FPHY,4,2                       ## @FPHY
	.comm	_PHY_TXPWR,4,2                  ## @PHY_TXPWR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"RTK better performance, writeval(%c) = 0x%x\n"

	.comm	_MAX_PG_GROUP,4,2               ## @MAX_PG_GROUP
	.comm	_HT_CHANNEL_WIDTH_20,4,2        ## @HT_CHANNEL_WIDTH_20
L_.str.1:                               ## @.str.1
	.asciz	"Realtek regulatory, 20MHz, writeval(%c) = 0x%x\n"

L_.str.2:                               ## @.str.2
	.asciz	"Better regulatory, writeval(%c) = 0x%x\n"

	.comm	_HT_CHANNEL_WIDTH_20_40,4,2     ## @HT_CHANNEL_WIDTH_20_40
L_.str.3:                               ## @.str.3
	.asciz	"customer's limit, 40MHz rf(%c) = 0x%x\n"

L_.str.4:                               ## @.str.4
	.asciz	"customer's limit, 20MHz rf(%c) = 0x%x\n"

L_.str.5:                               ## @.str.5
	.asciz	"Customer's limit rf(%c) = 0x%x\n"

L_.str.6:                               ## @.str.6
	.asciz	"Customer, writeval rf(%c)= 0x%x\n"

L_.str.7:                               ## @.str.7
	.asciz	"RTK better performance, writeval rf(%c) = 0x%x\n"

	.no_dead_strip	__rtl92d_get_txpower_writeval_by_regulatory
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function _rtl92d_get_txpower_writeval_by_regulatory
lCPI0_0:
	.long	4294967280                      ; 0xfffffff0
	.long	4294967288                      ; 0xfffffff8
lCPI0_1:
	.long	16                              ; 0x10
	.long	8                               ; 0x8
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
__rtl92d_get_txpower_writeval_by_regulatory: ; @_rtl92d_get_txpower_writeval_by_regulatory
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #176
	.cfi_def_cfa_offset 176
	stp	d11, d10, [sp, #48]             ; 16-byte Folded Spill
	stp	d9, d8, [sp, #64]               ; 16-byte Folded Spill
	stp	x28, x27, [sp, #80]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #96]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #112]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #128]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #144]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #160]            ; 16-byte Folded Spill
	add	x29, sp, #160
	.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
	.cfi_offset b8, -104
	.cfi_offset b9, -112
	.cfi_offset b10, -120
	.cfi_offset b11, -128
	mov	x19, x5
	mov	x23, x4
	mov	x25, x3
	mov	x20, x2
	mov	x26, x1
	mov	x22, x0
	bl	_rtl_priv
	mov	x21, x0
	mov	x0, x22
	bl	_rtl_priv
	bl	_rtl_efuse
	mov	x22, x0
	mov	x27, #0
	mov	w24, #0
	add	x9, x0, #16
	sub	x8, x26, #1
	stp	x8, x9, [sp, #32]               ; 16-byte Folded Spill
	add	x8, x0, #8
	cmp	x20, #2
	csel	x23, x25, x23, lo
	mov	x25, x8
	sub	w8, w26, #1
	str	w8, [sp, #4]                    ; 4-byte Folded Spill
	mov	w8, #1
	mov	w26, #65
Lloh0:
	adrp	x9, lCPI0_0@PAGE
Lloh1:
	ldr	d8, [x9, lCPI0_0@PAGEOFF]
	movi.2s	v9, #127
Lloh2:
	adrp	x9, lCPI0_1@PAGE
Lloh3:
	ldr	d10, [x9, lCPI0_1@PAGEOFF]
	mov	w9, #65
	stp	x20, x25, [sp, #16]             ; 16-byte Folded Spill
	str	x23, [sp, #8]                   ; 8-byte Folded Spill
	b	LBB0_4
LBB0_1:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x21]
	ldr	x8, [x8]
	tst	w28, #0x1
	mov	w9, #8
	csel	x9, xzr, x9, ne
	add	x9, x9, x20
	ldr	w8, [x8, x9, lsl #2]
	ldr	w9, [x23, x27, lsl #2]
	add	w24, w9, w8
Lloh4:
	adrp	x8, _FPHY@GOTPAGE
Lloh5:
	ldr	x8, [x8, _FPHY@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
Lloh7:
	adrp	x8, _PHY_TXPWR@GOTPAGE
Lloh8:
	ldr	x8, [x8, _PHY_TXPWR@GOTPAGEOFF]
Lloh9:
	ldr	w2, [x8]
	cinc	w4, w26, eq
	mov	x0, x21
Lloh10:
	adrp	x3, l_.str.7@PAGE
Lloh11:
	add	x3, x3, l_.str.7@PAGEOFF
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x5, x24
	bl	_RTPRINT
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	w8, #0
	str	w24, [x19, x27, lsl #2]
	mov	w9, #66
	mov	w27, #1
	tbz	w28, #0, LBB0_14
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x28, x8
	ldr	w8, [x22]
	cmp	w8, #3
	b.hi	LBB0_1
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
Lloh12:
	adrp	x12, lJTI0_0@PAGE
Lloh13:
	add	x12, x12, lJTI0_0@PAGEOFF
	adr	x10, LBB0_6
	ldrb	w11, [x12, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_6:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x21]
	ldr	x8, [x8]
	tst	w28, #0x1
	mov	w9, #8
	csel	x9, xzr, x9, ne
	add	x9, x9, x20
	ldr	w8, [x8, x9, lsl #2]
	ldr	w9, [x23, x27, lsl #2]
	add	w24, w9, w8
Lloh14:
	adrp	x8, _FPHY@GOTPAGE
Lloh15:
	ldr	x8, [x8, _FPHY@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
Lloh17:
	adrp	x8, _PHY_TXPWR@GOTPAGE
Lloh18:
	ldr	x8, [x8, _PHY_TXPWR@GOTPAGEOFF]
Lloh19:
	ldr	w2, [x8]
	cinc	w4, w26, eq
	mov	x0, x21
Lloh20:
	adrp	x3, l_.str@PAGE
Lloh21:
	add	x3, x3, l_.str@PAGEOFF
	b	LBB0_2
LBB0_7:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x21, #8]
Lloh22:
	adrp	x9, _MAX_PG_GROUP@GOTPAGE
Lloh23:
	ldr	x9, [x9, _MAX_PG_GROUP@GOTPAGEOFF]
Lloh24:
	ldr	w9, [x9]
	cmp	w8, w9
	b.lt	LBB0_3
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [sp, #4]                    ; 4-byte Folded Reload
	bl	__rtl92d_phy_get_chnlgroup_bypg
	ldr	w8, [x21, #12]
Lloh25:
	adrp	x9, _HT_CHANNEL_WIDTH_20@GOTPAGE
Lloh26:
	ldr	x9, [x9, _HT_CHANNEL_WIDTH_20@GOTPAGEOFF]
Lloh27:
	ldr	w9, [x9]
	cmp	w8, w9
	add	x8, x0, #4
	csinc	x8, x8, x0, ne
	ldr	x9, [x21]
	ldr	x8, [x9, x8, lsl #3]
	tst	w28, #0x1
	mov	w9, #8
	csel	x9, xzr, x9, ne
	add	x9, x9, x20
	ldr	w8, [x8, x9, lsl #2]
	ldr	w9, [x23, x27, lsl #2]
	add	w24, w9, w8
Lloh28:
	adrp	x8, _FPHY@GOTPAGE
Lloh29:
	ldr	x8, [x8, _FPHY@GOTPAGEOFF]
Lloh30:
	ldr	w1, [x8]
Lloh31:
	adrp	x8, _PHY_TXPWR@GOTPAGE
Lloh32:
	ldr	x8, [x8, _PHY_TXPWR@GOTPAGEOFF]
Lloh33:
	ldr	w2, [x8]
	cinc	w4, w26, eq
	mov	x0, x21
Lloh34:
	adrp	x3, l_.str.1@PAGE
Lloh35:
	add	x3, x3, l_.str.1@PAGEOFF
	b	LBB0_2
LBB0_9:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w24, [x23, x27, lsl #2]
Lloh36:
	adrp	x8, _FPHY@GOTPAGE
Lloh37:
	ldr	x8, [x8, _FPHY@GOTPAGEOFF]
Lloh38:
	ldr	w1, [x8]
Lloh39:
	adrp	x8, _PHY_TXPWR@GOTPAGE
Lloh40:
	ldr	x8, [x8, _PHY_TXPWR@GOTPAGEOFF]
Lloh41:
	ldr	w2, [x8]
	tst	w28, #0x1
	cinc	w4, w26, eq
	mov	x0, x21
Lloh42:
	adrp	x3, l_.str.2@PAGE
Lloh43:
	add	x3, x3, l_.str.2@PAGEOFF
	b	LBB0_2
LBB0_10:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x21, #12]
Lloh44:
	adrp	x23, _HT_CHANNEL_WIDTH_20_40@GOTPAGE
Lloh45:
	ldr	x23, [x23, _HT_CHANNEL_WIDTH_20_40@GOTPAGEOFF]
	ldr	w10, [x23]
Lloh46:
	adrp	x11, _FPHY@GOTPAGE
Lloh47:
	ldr	x11, [x11, _FPHY@GOTPAGEOFF]
Lloh48:
	ldr	w1, [x11]
Lloh49:
	adrp	x11, _PHY_TXPWR@GOTPAGE
Lloh50:
	ldr	x11, [x11, _PHY_TXPWR@GOTPAGEOFF]
Lloh51:
	ldr	w2, [x11]
	cmp	w8, w10
	ldr	x24, [sp, #40]                  ; 8-byte Folded Reload
	csel	x8, x25, x24, eq
Lloh52:
	adrp	x10, l_.str.4@PAGE
Lloh53:
	add	x10, x10, l_.str.4@PAGEOFF
Lloh54:
	adrp	x11, l_.str.3@PAGE
Lloh55:
	add	x11, x11, l_.str.3@PAGEOFF
	csel	x3, x11, x10, eq
	ldr	x8, [x8]
	ldr	x8, [x8, x27, lsl #3]
	mov	x26, x25
	ldr	x25, [sp, #32]                  ; 8-byte Folded Reload
	ldr	w5, [x8, x25, lsl #2]
	sxtb	w4, w9
	mov	x0, x21
	bl	_RTPRINT
	ldr	x8, [x21]
	ldr	x8, [x8]
	tst	w28, #0x1
	mov	w9, #8
	csel	x9, xzr, x9, ne
	add	x9, x9, x20
	ldr	w9, [x8, x9, lsl #2]
	ldr	w10, [x21, #12]
	ldr	w11, [x23]
	and	x8, x9, #0x7f
	cmp	w10, w11
	b.ne	LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	x10, [x26]
	b	LBB0_13
LBB0_12:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x10, [x24]
LBB0_13:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x10, [x10, x27, lsl #3]
	ldrsw	x10, [x10, x25, lsl #2]
	cmp	x8, x10
	csel	w8, w10, w8, hi
	dup.2s	v0, w9
	ushl.2s	v0, v0, v8
	and.8b	v0, v0, v9
	ushll.2d	v1, v0, #0
	dup.2d	v2, x10
	cmhi.2d	v1, v1, v2
	xtn.2s	v1, v1
	dup.2s	v2, w10
	bit.8b	v0, v2, v1
	ubfx	x9, x9, #24, #7
	cmp	x9, x10
	csel	w9, w10, w9, hi
	mov	w26, #65
	ushl.2s	v0, v0, v10
	mov.s	w10, v0[1]
	fmov	w11, s0
	orr	w9, w11, w9, lsl #24
	orr	w9, w9, w10
	orr	w24, w9, w8
Lloh56:
	adrp	x20, _FPHY@GOTPAGE
Lloh57:
	ldr	x20, [x20, _FPHY@GOTPAGEOFF]
	ldr	w1, [x20]
Lloh58:
	adrp	x23, _PHY_TXPWR@GOTPAGE
Lloh59:
	ldr	x23, [x23, _PHY_TXPWR@GOTPAGEOFF]
	ldr	w2, [x23]
	tst	w28, #0x1
	cinc	w25, w26, eq
	mov	x0, x21
Lloh60:
	adrp	x3, l_.str.5@PAGE
Lloh61:
	add	x3, x3, l_.str.5@PAGEOFF
	mov	x4, x25
	mov	x5, x24
	bl	_RTPRINT
	ldr	x9, [sp, #8]                    ; 8-byte Folded Reload
	ldr	w8, [x9, x27, lsl #2]
	add	w24, w8, w24
	ldr	w1, [x20]
	ldr	w2, [x23]
	mov	x23, x9
	mov	x0, x21
Lloh62:
	adrp	x3, l_.str.6@PAGE
Lloh63:
	add	x3, x3, l_.str.6@PAGEOFF
	mov	x4, x25
	mov	x5, x24
	bl	_RTPRINT
	ldp	x20, x25, [sp, #16]             ; 16-byte Folded Reload
	b	LBB0_3
LBB0_14:
	ldp	x29, x30, [sp, #160]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #144]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #128]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #112]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #96]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #80]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #64]               ; 16-byte Folded Reload
	ldp	d11, d10, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #176
	ret
	.loh AdrpLdr	Lloh2, Lloh3
	.loh AdrpAdrp	Lloh0, Lloh2
	.loh AdrpLdr	Lloh0, Lloh1
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh42, Lloh43
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpAdd	Lloh54, Lloh55
	.loh AdrpAdd	Lloh52, Lloh53
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGot	Lloh44, Lloh45
	.loh AdrpAdd	Lloh62, Lloh63
	.loh AdrpAdd	Lloh60, Lloh61
	.loh AdrpLdrGot	Lloh58, Lloh59
	.loh AdrpLdrGot	Lloh56, Lloh57
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_6-LBB0_6)>>2
	.byte	(LBB0_7-LBB0_6)>>2
	.byte	(LBB0_9-LBB0_6)>>2
	.byte	(LBB0_10-LBB0_6)>>2
                                        ; -- End function
	.comm	_FPHY,4,2                       ; @FPHY
	.comm	_PHY_TXPWR,4,2                  ; @PHY_TXPWR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"RTK better performance, writeval(%c) = 0x%x\n"

	.comm	_MAX_PG_GROUP,4,2               ; @MAX_PG_GROUP
	.comm	_HT_CHANNEL_WIDTH_20,4,2        ; @HT_CHANNEL_WIDTH_20
l_.str.1:                               ; @.str.1
	.asciz	"Realtek regulatory, 20MHz, writeval(%c) = 0x%x\n"

l_.str.2:                               ; @.str.2
	.asciz	"Better regulatory, writeval(%c) = 0x%x\n"

	.comm	_HT_CHANNEL_WIDTH_20_40,4,2     ; @HT_CHANNEL_WIDTH_20_40
l_.str.3:                               ; @.str.3
	.asciz	"customer's limit, 40MHz rf(%c) = 0x%x\n"

l_.str.4:                               ; @.str.4
	.asciz	"customer's limit, 20MHz rf(%c) = 0x%x\n"

l_.str.5:                               ; @.str.5
	.asciz	"Customer's limit rf(%c) = 0x%x\n"

l_.str.6:                               ; @.str.6
	.asciz	"Customer, writeval rf(%c)= 0x%x\n"

l_.str.7:                               ; @.str.7
	.asciz	"RTK better performance, writeval rf(%c) = 0x%x\n"

	.no_dead_strip	__rtl92d_get_txpower_writeval_by_regulatory
.subsections_via_symbols
