	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_txpower_writeval_by_regulatory
_get_txpower_writeval_by_regulatory:    ## @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, %r12
	movq	%r8, -64(%rbp)                  ## 8-byte Spill
	movq	%rcx, %rbx
	movq	%rdx, %r13
	movq	%rsi, -104(%rbp)                ## 8-byte Spill
	movq	%rdi, %r14
	callq	_rtl_priv
	movq	%rax, %r15
	movq	%r14, %rdi
	callq	_rtl_priv
	movq	%rax, %rdi
	callq	_rtl_efuse
	movq	%r15, %rdi
	leaq	16(%rax), %rcx
	movq	%rcx, -96(%rbp)                 ## 8-byte Spill
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	addq	$8, %rax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movq	%r13, -48(%rbp)                 ## 8-byte Spill
	cmpq	$2, %r13
	cmovaeq	-64(%rbp), %rbx                 ## 8-byte Folded Reload
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movb	$1, %r14b
	movb	$65, %al
	xorl	%r13d, %r13d
	xorl	%ecx, %ecx
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	xorl	%ebx, %ebx
	movq	%r12, -112(%rbp)                ## 8-byte Spill
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_27:                                ##   in Loop: Header=BB0_1 Depth=1
	leal	-202116108(%r15), %ecx
	movq	_TXHIGHPWRLEVEL_BT2@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	cmovnel	%r15d, %ecx
	movl	%ecx, %r15d
LBB0_28:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	%r15d, (%r12,%rax,4)
	movl	$1, %r13d
	movb	$66, %al
	testb	$1, %r14b
	movl	$0, %r14d
	je	LBB0_29
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movl	(%rcx), %ecx
	cmpq	$3, %rcx
	movq	%r13, -64(%rbp)                 ## 8-byte Spill
	ja	LBB0_23
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	leaq	LJTI0_0(%rip), %rdx
	movslq	(%rdx,%rcx,4), %rcx
	addq	%rdx, %rcx
	jmpq	*%rcx
LBB0_3:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	8(%rdi), %rax
	movq	(%rax), %rax
	movl	%r14d, %ecx
	notb	%cl
	movzbl	%cl, %ecx
	andl	$1, %ecx
	movq	-48(%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	%r14b, %eax
	andl	$1, %eax
	movl	$66, %r8d
	subl	%eax, %r8d
	leaq	L_.str(%rip), %rcx
	jmp	LBB0_24
	.p2align	4, 0x90
LBB0_23:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	8(%rdi), %rax
	movq	(%rax), %rax
	movl	%r14d, %ecx
	notb	%cl
	movzbl	%cl, %ecx
	andl	$1, %ecx
	movq	-48(%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	%r14b, %eax
	andl	$1, %eax
	movl	$66, %r8d
	subl	%eax, %r8d
	leaq	L_.str.7(%rip), %rcx
LBB0_24:                                ##   in Loop: Header=BB0_1 Depth=1
	movl	%r15d, %r9d
	movq	%rdi, %r13
	callq	_RTPRINT
	xorl	%ebx, %ebx
	jmp	LBB0_25
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	-104(%rbp), %rsi                ## 8-byte Reload
	cmpq	$3, %rsi
	setae	%al
	movl	16(%rdi), %ecx
	cmpl	$1, %ecx
	setne	%dl
	andb	%al, %dl
	cmpl	$1, %ecx
	movzbl	%dl, %eax
	movl	$2, %edx
	cmoveq	%rax, %rdx
	cmpq	$6, %rsi
	cmovbq	%rax, %rdx
	cmpl	$1, %ecx
	movl	$3, %eax
	cmoveq	%rdx, %rax
	cmpq	$9, %rsi
	cmovbq	%rdx, %rax
	cmpq	$14, %rsi
	movl	$5, %edx
	cmoveq	%rdx, %rbx
	movl	$4, %edx
	cmovbq	%rdx, %rbx
	cmpl	$1, %ecx
	cmoveq	%rax, %rbx
	cmpq	$12, %rsi
	cmovbq	%rax, %rbx
	movq	8(%rdi), %rax
	movq	(%rax,%rbx,8), %rax
	movl	%r14d, %ecx
	notb	%cl
	movzbl	%cl, %ecx
	andl	$1, %ecx
	movq	-48(%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
	movzbl	%r14b, %eax
	andl	$1, %eax
	movl	$66, %r8d
	subl	%eax, %r8d
	movq	_PHY_TXPWR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str.1(%rip), %rcx
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_5:                                 ##   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	%r14b, %eax
	andl	$1, %eax
	movl	$66, %r8d
	subl	%eax, %r8d
	leaq	L_.str.2(%rip), %rcx
LBB0_6:                                 ##   in Loop: Header=BB0_1 Depth=1
	movl	%r15d, %r9d
	movq	%rdi, %r13
	callq	_RTPRINT
	jmp	LBB0_25
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_1 Depth=1
	movl	20(%rdi), %ecx
	movq	_HT_CHANNEL_WIDTH_20_40@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %ecx
	movq	_FPHY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	-96(%rbp), %rbx                 ## 8-byte Reload
	cmoveq	-88(%rbp), %rbx                 ## 8-byte Folded Reload
	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	(%rbx), %rbx
	movq	(%rbx,%r13,8), %rbx
	movq	-104(%rbp), %r15                ## 8-byte Reload
	movl	-4(%rbx,%r15,4), %r9d
	movsbl	%al, %r8d
	movq	%rdi, %rbx
	callq	_RTPRINT
	cmpq	$1, -48(%rbp)                   ## 8-byte Folded Reload
	ja	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	24(%rax), %rax
	movq	(%rax,%r13,8), %rax
	movq	-8(%rax,%r15,8), %rdx
	movl	20(%rbx), %eax
	movq	%rbx, %rdi
	jmp	LBB0_12
LBB0_9:                                 ##   in Loop: Header=BB0_1 Depth=1
	movl	20(%rbx), %eax
	movq	_HT_CHANNEL_WIDTH_20@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	movq	%rbx, %rdi
	jne	LBB0_10
## %bb.11:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movq	32(%rcx), %rcx
	movq	(%rcx,%r13,8), %rcx
	movq	-8(%rcx,%r15,8), %rdx
	jmp	LBB0_12
LBB0_10:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
LBB0_12:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	_HT_CHANNEL_WIDTH_20_40@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	cmoveq	-88(%rbp), %rax                 ## 8-byte Folded Reload
	movq	(%rax), %rax
	movq	(%rax,%r13,8), %rax
	movslq	-4(%rax,%r15,4), %rax
	subq	%rdx, %rax
	movl	$0, %ebx
	jb	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	%rax, %rbx
LBB0_14:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	8(%rdi), %rax
	movq	(%rax), %rax
	movl	%r14d, %ecx
	notb	%cl
	movzbl	%cl, %ecx
	andl	$1, %ecx
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	leaq	(%rdx,%rcx,8), %rcx
	movl	(%rax,%rcx,4), %eax
	movl	%eax, %ecx
	andl	$127, %ecx
	movq	%rbx, %r15
	cmpq	%rcx, %rbx
	jb	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	%rcx, %r15
LBB0_16:                                ##   in Loop: Header=BB0_1 Depth=1
	movl	%eax, %edx
	shrl	$8, %edx
	andl	$127, %edx
	movq	%rbx, %rcx
	cmpq	%rdx, %rbx
	jb	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	%rdx, %rcx
LBB0_18:                                ##   in Loop: Header=BB0_1 Depth=1
	movl	%eax, %esi
	shrl	$16, %esi
	andl	$127, %esi
	movq	%rbx, %rdx
	cmpq	%rsi, %rbx
	jb	LBB0_20
## %bb.19:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	%rsi, %rdx
LBB0_20:                                ##   in Loop: Header=BB0_1 Depth=1
	shrl	$24, %eax
	andl	$127, %eax
	movq	%rbx, %rsi
	movq	%rbx, -80(%rbp)                 ## 8-byte Spill
	cmpq	%rax, %rbx
	jb	LBB0_22
## %bb.21:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	%rax, %rsi
LBB0_22:                                ##   in Loop: Header=BB0_1 Depth=1
	shll	$24, %esi
	shll	$16, %edx
	orl	%esi, %edx
	shll	$8, %ecx
	orl	%ecx, %r15d
	orl	%edx, %r15d
	movq	_FPHY@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	_PHY_TXPWR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movzbl	%r14b, %eax
	andl	$1, %eax
	movl	$66, %r12d
	subl	%eax, %r12d
	leaq	L_.str.5(%rip), %rcx
	movl	%r12d, %r8d
	movl	%r15d, %r9d
	movq	%rdi, %r13
	callq	_RTPRINT
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	addl	(%rax,%rcx,4), %r15d
	movl	(%rbx), %esi
	movq	_PHY_TXPWR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	leaq	L_.str.6(%rip), %rcx
	movl	%r12d, %r8d
	movl	%r15d, %r9d
	callq	_RTPRINT
	xorl	%ebx, %ebx
	movq	-112(%rbp), %r12                ## 8-byte Reload
	.p2align	4, 0x90
LBB0_25:                                ##   in Loop: Header=BB0_1 Depth=1
	movq	(%r13), %rax
	movq	_TXHIGHPWRLEVEL_BT1@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	movq	%r13, %rdi
	jne	LBB0_27
## %bb.26:                              ##   in Loop: Header=BB0_1 Depth=1
	addl	$-101058054, %r15d              ## imm = 0xF9F9F9FA
	jmp	LBB0_28
LBB0_29:
	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_5, LBB0_5-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_5
	.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"

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"

	.comm	_HT_CHANNEL_WIDTH_20,4,2        ## @HT_CHANNEL_WIDTH_20
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"

	.comm	_TXHIGHPWRLEVEL_BT1,8,3         ## @TXHIGHPWRLEVEL_BT1
	.comm	_TXHIGHPWRLEVEL_BT2,8,3         ## @TXHIGHPWRLEVEL_BT2
	.no_dead_strip	_get_txpower_writeval_by_regulatory
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_txpower_writeval_by_regulatory
_get_txpower_writeval_by_regulatory:    ; @get_txpower_writeval_by_regulatory
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	str	x5, [sp, #40]                   ; 8-byte Folded Spill
	mov	x24, x4
	mov	x25, x3
	mov	x20, x2
	mov	x19, x1
	mov	x23, x0
	bl	_rtl_priv
	mov	x22, x0
	mov	x0, x23
	bl	_rtl_priv
	bl	_rtl_efuse
	mov	x23, x0
	mov	x27, #0
	mov	x28, #0
	mov	x26, #0
	add	x9, x0, #16
	sub	x8, x19, #1
	stp	x19, x8, [sp, #8]               ; 16-byte Folded Spill
	add	x8, x0, #8
	stp	x8, x9, [sp, #24]               ; 16-byte Folded Spill
	cmp	x20, #2
	csel	x24, x25, x24, lo
	mov	w8, #1
Lloh0:
	adrp	x21, _PHY_TXPWR@GOTPAGE
Lloh1:
	ldr	x21, [x21, _PHY_TXPWR@GOTPAGEOFF]
	mov	w9, #65
	str	x24, [sp]                       ; 8-byte Folded Spill
	b	LBB0_3
LBB0_1:                                 ;   in Loop: Header=BB0_3 Depth=1
Lloh2:
	adrp	x9, _TXHIGHPWRLEVEL_BT2@GOTPAGE
Lloh3:
	ldr	x9, [x9, _TXHIGHPWRLEVEL_BT2@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	mov	w10, #62452
	movk	w10, #62451, lsl #16
	add	w10, w25, w10
	cmp	x8, x9
	csel	w9, w10, w25, eq
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	w8, #0
	ldr	x10, [sp, #40]                  ; 8-byte Folded Reload
	str	w9, [x10, x27, lsl #2]
	mov	w9, #66
	mov	w27, #1
	tbz	w19, #0, LBB0_18
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x19, x8
	ldr	w8, [x23]
	cmp	w8, #3
	b.hi	LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
Lloh5:
	adrp	x12, lJTI0_0@PAGE
Lloh6:
	add	x12, x12, lJTI0_0@PAGEOFF
	adr	x10, LBB0_5
	ldrb	w11, [x12, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_5:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x22, #8]
	ldr	x8, [x8]
	tst	w19, #0x1
	mov	w9, #8
	csel	x9, xzr, x9, ne
	add	x9, x9, x20
	ldr	w8, [x8, x9, lsl #2]
	ldr	w9, [x24, x27, lsl #2]
	add	w25, w9, w8
Lloh7:
	adrp	x8, _FPHY@GOTPAGE
Lloh8:
	ldr	x8, [x8, _FPHY@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	ldr	w2, [x21]
	mov	w8, #65
	cinc	w4, w8, eq
	mov	x0, x22
Lloh10:
	adrp	x3, l_.str@PAGE
Lloh11:
	add	x3, x3, l_.str@PAGEOFF
	b	LBB0_15
LBB0_6:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x22, #8]
	ldr	x8, [x8]
	tst	w19, #0x1
	mov	w9, #8
	csel	x9, xzr, x9, ne
	add	x9, x9, x20
	ldr	w8, [x8, x9, lsl #2]
	ldr	w9, [x24, x27, lsl #2]
	add	w25, w9, w8
Lloh12:
	adrp	x8, _FPHY@GOTPAGE
Lloh13:
	ldr	x8, [x8, _FPHY@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	ldr	w2, [x21]
	mov	w8, #65
	cinc	w4, w8, eq
	mov	x0, x22
Lloh15:
	adrp	x3, l_.str.7@PAGE
Lloh16:
	add	x3, x3, l_.str.7@PAGEOFF
	b	LBB0_15
LBB0_7:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x14, [sp, #8]                   ; 8-byte Folded Reload
	cmp	x14, #12
	cset	w8, lo
	cmp	x14, #9
	cset	w9, lo
	cmp	x14, #6
	cset	w10, lo
	cmp	x14, #2
	cset	w11, hi
	ldr	w12, [x22, #16]
	cmp	w12, #1
	cset	w12, ne
	cset	w13, eq
	orr	w10, w10, w13
	and	w11, w11, w12
	orr	w9, w9, w13
	cmp	w10, #0
	mov	w10, #2
	csel	x10, x11, x10, ne
	orr	w8, w8, w13
	cmp	w9, #0
	mov	w9, #3
	csel	x9, x10, x9, ne
	cmp	x14, #14
	mov	w10, #5
	csel	x10, x10, x26, eq
	mov	w11, #4
	csel	x10, x11, x10, lo
	cmp	w8, #0
	csel	x26, x9, x10, ne
	ldr	x8, [x22, #8]
	ldr	x8, [x8, x26, lsl #3]
	tst	w19, #0x1
	mov	w9, #8
	csel	x9, xzr, x9, ne
	add	x9, x9, x20
	ldr	w8, [x8, x9, lsl #2]
	ldr	w9, [x24, x27, lsl #2]
	add	w25, w9, w8
Lloh17:
	adrp	x8, _FPHY@GOTPAGE
Lloh18:
	ldr	x8, [x8, _FPHY@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	ldr	w2, [x21]
	mov	w8, #65
	cinc	w4, w8, eq
	mov	x0, x22
Lloh20:
	adrp	x3, l_.str.1@PAGE
Lloh21:
	add	x3, x3, l_.str.1@PAGEOFF
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	w25, [x24, x27, lsl #2]
Lloh22:
	adrp	x8, _FPHY@GOTPAGE
Lloh23:
	ldr	x8, [x8, _FPHY@GOTPAGEOFF]
Lloh24:
	ldr	w1, [x8]
	ldr	w2, [x21]
	tst	w19, #0x1
	mov	w8, #65
	cinc	w4, w8, eq
	mov	x0, x22
Lloh25:
	adrp	x3, l_.str.2@PAGE
Lloh26:
	add	x3, x3, l_.str.2@PAGEOFF
LBB0_9:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x5, x25
	bl	_RTPRINT
	b	LBB0_16
LBB0_10:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x22, #20]
Lloh27:
	adrp	x10, _HT_CHANNEL_WIDTH_20_40@GOTPAGE
Lloh28:
	ldr	x10, [x10, _HT_CHANNEL_WIDTH_20_40@GOTPAGEOFF]
Lloh29:
	ldr	w10, [x10]
Lloh30:
	adrp	x11, _FPHY@GOTPAGE
Lloh31:
	ldr	x11, [x11, _FPHY@GOTPAGEOFF]
Lloh32:
	ldr	w1, [x11]
	ldr	w2, [x21]
	cmp	w8, w10
	ldp	x10, x8, [sp, #24]              ; 16-byte Folded Reload
	csel	x8, x10, x8, eq
Lloh33:
	adrp	x10, l_.str.4@PAGE
Lloh34:
	add	x10, x10, l_.str.4@PAGEOFF
Lloh35:
	adrp	x11, l_.str.3@PAGE
Lloh36:
	add	x11, x11, l_.str.3@PAGEOFF
	csel	x3, x11, x10, eq
	ldr	x8, [x8]
	ldr	x8, [x8, x27, lsl #3]
	ldr	x25, [sp, #16]                  ; 8-byte Folded Reload
	ldr	w5, [x8, x25, lsl #2]
	sxtb	w4, w9
	mov	x0, x22
	bl	_RTPRINT
	cmp	x20, #1
	b.hi	LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x23, #24]
	ldr	x8, [x8, x27, lsl #3]
	ldr	x28, [x8, x25, lsl #3]
	ldr	w8, [x22, #20]
	b	LBB0_14
LBB0_12:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x22, #20]
Lloh37:
	adrp	x9, _HT_CHANNEL_WIDTH_20@GOTPAGE
Lloh38:
	ldr	x9, [x9, _HT_CHANNEL_WIDTH_20@GOTPAGEOFF]
Lloh39:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_14
; %bb.13:                               ;   in Loop: Header=BB0_3 Depth=1
	ldr	x9, [x23, #32]
	ldr	x9, [x9, x27, lsl #3]
	ldr	x28, [x9, x25, lsl #3]
LBB0_14:                                ;   in Loop: Header=BB0_3 Depth=1
Lloh40:
	adrp	x9, _HT_CHANNEL_WIDTH_20_40@GOTPAGE
Lloh41:
	ldr	x9, [x9, _HT_CHANNEL_WIDTH_20_40@GOTPAGEOFF]
Lloh42:
	ldr	w9, [x9]
	cmp	w8, w9
	ldp	x9, x8, [sp, #24]               ; 16-byte Folded Reload
	csel	x8, x9, x8, eq
	ldr	x8, [x8]
	ldr	x8, [x8, x27, lsl #3]
	ldrsw	x8, [x8, x25, lsl #2]
	subs	x8, x8, x28
	csel	x28, xzr, x8, lo
	ldr	x8, [x22, #8]
	ldr	x8, [x8]
	tst	w19, #0x1
	mov	w9, #8
	csel	x9, xzr, x9, ne
	add	x9, x9, x20
	ldr	w8, [x8, x9, lsl #2]
	and	x9, x8, #0x7f
	mov	w10, #65
	cinc	w26, w10, eq
	ubfx	x10, x8, #8, #7
	cmp	x28, x9
	csel	x9, x28, x9, lo
	ubfx	x11, x8, #16, #7
	cmp	x28, x10
	csel	x10, x28, x10, lo
	ubfx	x8, x8, #24, #7
	cmp	x28, x11
	csel	x11, x28, x11, lo
	cmp	x28, x8
	csel	x8, x28, x8, lo
	lsl	w11, w11, #16
	orr	w8, w11, w8, lsl #24
	orr	w8, w8, w10, lsl #8
	orr	w25, w8, w9
Lloh43:
	adrp	x24, _FPHY@GOTPAGE
Lloh44:
	ldr	x24, [x24, _FPHY@GOTPAGEOFF]
	ldr	w1, [x24]
Lloh45:
	adrp	x21, _PHY_TXPWR@GOTPAGE
Lloh46:
	ldr	x21, [x21, _PHY_TXPWR@GOTPAGEOFF]
	ldr	w2, [x21]
	mov	x0, x22
Lloh47:
	adrp	x3, l_.str.5@PAGE
Lloh48:
	add	x3, x3, l_.str.5@PAGEOFF
	mov	x4, x26
	mov	x5, x25
	bl	_RTPRINT
	ldr	x9, [sp]                        ; 8-byte Folded Reload
	ldr	w8, [x9, x27, lsl #2]
	add	w25, w8, w25
	ldr	w1, [x24]
	mov	x24, x9
	ldr	w2, [x21]
	mov	x0, x22
Lloh49:
	adrp	x3, l_.str.6@PAGE
Lloh50:
	add	x3, x3, l_.str.6@PAGEOFF
	mov	x4, x26
LBB0_15:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x5, x25
	bl	_RTPRINT
	mov	x26, #0
LBB0_16:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [x22]
Lloh51:
	adrp	x9, _TXHIGHPWRLEVEL_BT1@GOTPAGE
Lloh52:
	ldr	x9, [x9, _TXHIGHPWRLEVEL_BT1@GOTPAGEOFF]
Lloh53:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_1
; %bb.17:                               ;   in Loop: Header=BB0_3 Depth=1
	mov	w8, #63994
	movk	w8, #63993, lsl #16
	add	w9, w25, w8
	b	LBB0_2
LBB0_18:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpAdd	Lloh49, Lloh50
	.loh AdrpAdd	Lloh47, Lloh48
	.loh AdrpLdrGot	Lloh45, Lloh46
	.loh AdrpLdrGot	Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh51, Lloh52, Lloh53
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_5-LBB0_5)>>2
	.byte	(LBB0_7-LBB0_5)>>2
	.byte	(LBB0_8-LBB0_5)>>2
	.byte	(LBB0_10-LBB0_5)>>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"

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"

	.comm	_HT_CHANNEL_WIDTH_20,4,2        ; @HT_CHANNEL_WIDTH_20
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"

	.comm	_TXHIGHPWRLEVEL_BT1,8,3         ; @TXHIGHPWRLEVEL_BT1
	.comm	_TXHIGHPWRLEVEL_BT2,8,3         ; @TXHIGHPWRLEVEL_BT2
	.no_dead_strip	_get_txpower_writeval_by_regulatory
.subsections_via_symbols
