	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function phy_convert_txpwr_dbm_to_rel_val
_phy_convert_txpwr_dbm_to_rel_val:      ## @phy_convert_txpwr_dbm_to_rel_val
	.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	%rdi, -48(%rbp)                 ## 8-byte Spill
	callq	_rtl_priv
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	_RF90_PATH_A@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movq	_RF90_PATH_B@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	cmpq	%r14, %rdx
	jbe	LBB0_1
LBB0_9:
	movq	_COMP_POWER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_DBG_TRACE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	L_.str(%rip), %rcx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_RT_TRACE                       ## TAILCALL
LBB0_1:
	movq	_BAND_ON_2_4G@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	%rdx, %rbx
	cmpq	%rdx, %rbx
	jne	LBB0_4
	.p2align	4, 0x90
LBB0_3:
	movq	_RF_1TX@GOTPCREL(%rip), %r15
	movq	(%r15), %rcx
	movq	_CCK@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	-72(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rsi
	movq	%rdx, %r14
	callq	__rtl92ee_phy_get_txpower_by_rate_base
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	movq	(%r12), %rcx
	movq	(%rcx,%r13,8), %rcx
	movq	(%rcx,%r14,8), %rdx
	movq	(%r15), %rcx
	movq	(%rdx,%rcx,8), %rdi
	addq	$8, %rdi
	movl	$1, %esi
	movl	$1, %edx
	movq	%rax, %rcx
	callq	__phy_convert_txpower_dbm_to_relative_value
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movl	$3, %edi
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_4:
	cmpq	%r14, %rbx
	movq	_RF_1TX@GOTPCREL(%rip), %r15
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	movq	-72(%rbp), %r13                 ## 8-byte Reload
	jne	LBB0_7
## %bb.5:
	movq	(%r15), %rcx
	movq	_CCK@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r13, %rsi
	movq	%r14, %rdx
	callq	__rtl92ee_phy_get_txpower_by_rate_base
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	(%r12), %rcx
	movq	(%rcx,%r13,8), %rcx
	movq	(%rcx,%r14,8), %rdx
	movq	(%r15), %rcx
	movq	(%rdx,%rcx,8), %rdi
	addq	$12, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	movq	%rax, %rcx
	callq	__phy_convert_txpower_dbm_to_relative_value
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movl	$2, %edi
LBB0_6:
	movq	(%r12), %rax
	movq	(%rax,%r13,8), %rax
	movq	(%rax,%r14,8), %rax
	movq	(%r15), %rdx
	shlq	$2, %rdi
	addq	(%rax,%rdx,8), %rdi
	movl	$1, %esi
	movl	$3, %edx
	callq	__phy_convert_txpower_dbm_to_relative_value
LBB0_7:
	movq	(%r15), %rcx
	movq	_OFDM@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r13, %rsi
	movq	%rbx, %rdx
	callq	__rtl92ee_phy_get_txpower_by_rate_base
	movq	%rax, %r14
	movq	(%r12), %rax
	movq	(%rax,%r13,8), %rax
	movq	(%rax,%rbx,8), %rax
	movq	(%r15), %rcx
	movq	(%rax,%rcx,8), %rdi
	xorl	%esi, %esi
	movl	$3, %edx
	movq	%r14, %rcx
	callq	__phy_convert_txpower_dbm_to_relative_value
	movq	(%r12), %rax
	movq	(%rax,%r13,8), %rax
	movq	(%rax,%rbx,8), %rax
	movq	(%r15), %rcx
	movq	(%rax,%rcx,8), %rdi
	addq	$4, %rdi
	xorl	%esi, %esi
	movl	$3, %edx
	movq	%r14, %rcx
	callq	__phy_convert_txpower_dbm_to_relative_value
	movq	(%r15), %rcx
	movq	_HT_MCS0_MCS7@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r13, %rsi
	movq	%rbx, %rdx
	callq	__rtl92ee_phy_get_txpower_by_rate_base
	movq	%rax, %r14
	movq	(%r12), %rax
	movq	(%rax,%r13,8), %rax
	movq	(%rax,%rbx,8), %rax
	movq	(%r15), %rcx
	movq	(%rax,%rcx,8), %rdi
	addq	$16, %rdi
	xorl	%esi, %esi
	movl	$3, %edx
	movq	%r14, %rcx
	callq	__phy_convert_txpower_dbm_to_relative_value
	movq	(%r12), %rax
	movq	(%rax,%r13,8), %rax
	movq	(%rax,%rbx,8), %rax
	movq	(%r15), %rcx
	movq	(%rax,%rcx,8), %rdi
	addq	$20, %rdi
	xorl	%esi, %esi
	movl	$3, %edx
	movq	%r14, %rcx
	callq	__phy_convert_txpower_dbm_to_relative_value
	movq	_RF_2TX@GOTPCREL(%rip), %r15
	movq	(%r15), %rcx
	movq	_HT_MCS8_MCS15@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r13, %rsi
	movq	%rbx, %rdx
	callq	__rtl92ee_phy_get_txpower_by_rate_base
	movq	%rax, %r14
	movq	(%r12), %rax
	movq	(%rax,%r13,8), %rax
	movq	(%rax,%rbx,8), %rax
	movq	(%r15), %rcx
	movq	(%rax,%rcx,8), %rdi
	addq	$24, %rdi
	xorl	%esi, %esi
	movl	$3, %edx
	movq	%r14, %rcx
	callq	__phy_convert_txpower_dbm_to_relative_value
	movq	(%r12), %rax
	movq	(%rax,%r13,8), %rax
	movq	(%rax,%rbx,8), %rax
	movq	(%r15), %rcx
	movq	(%rax,%rcx,8), %rdi
	addq	$28, %rdi
	xorl	%esi, %esi
	movl	$3, %edx
	movq	%r14, %rcx
	callq	__phy_convert_txpower_dbm_to_relative_value
	incq	%rbx
	movq	_RF90_PATH_B@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	cmpq	%r14, %rbx
	ja	LBB0_9
## %bb.8:
	movq	_RF90_PATH_A@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	cmpq	%rdx, %rbx
	jne	LBB0_4
	jmp	LBB0_3
	.cfi_endproc
                                        ## -- End function
	.comm	_BAND_ON_2_4G,8,3               ## @BAND_ON_2_4G
	.comm	_RF90_PATH_A,8,3                ## @RF90_PATH_A
	.comm	_RF90_PATH_B,8,3                ## @RF90_PATH_B
	.comm	_RF_1TX,8,3                     ## @RF_1TX
	.comm	_CCK,4,2                        ## @CCK
	.comm	_OFDM,4,2                       ## @OFDM
	.comm	_HT_MCS0_MCS7,4,2               ## @HT_MCS0_MCS7
	.comm	_RF_2TX,8,3                     ## @RF_2TX
	.comm	_HT_MCS8_MCS15,4,2              ## @HT_MCS8_MCS15
	.comm	_COMP_POWER,4,2                 ## @COMP_POWER
	.comm	_DBG_TRACE,4,2                  ## @DBG_TRACE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"<==phy_convert_txpwr_dbm_to_rel_val()\n"

	.no_dead_strip	_phy_convert_txpwr_dbm_to_rel_val
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function phy_convert_txpwr_dbm_to_rel_val
_phy_convert_txpwr_dbm_to_rel_val:      ; @phy_convert_txpwr_dbm_to_rel_val
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x20, x0
	bl	_rtl_priv
	mov	x19, x0
Lloh0:
	adrp	x8, _RF90_PATH_A@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RF90_PATH_A@GOTPAGEOFF]
Lloh2:
	ldr	x23, [x8]
Lloh3:
	adrp	x8, _RF90_PATH_B@GOTPAGE
Lloh4:
	ldr	x8, [x8, _RF90_PATH_B@GOTPAGEOFF]
Lloh5:
	ldr	x24, [x8]
	cmp	x23, x24
	b.ls	LBB0_2
LBB0_1:
Lloh6:
	adrp	x8, _COMP_POWER@GOTPAGE
Lloh7:
	ldr	x8, [x8, _COMP_POWER@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
Lloh9:
	adrp	x8, _DBG_TRACE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _DBG_TRACE@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
Lloh12:
	adrp	x3, l_.str@PAGE
Lloh13:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, x19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_RT_TRACE
LBB0_2:
Lloh14:
	adrp	x8, _BAND_ON_2_4G@GOTPAGE
Lloh15:
	ldr	x8, [x8, _BAND_ON_2_4G@GOTPAGEOFF]
Lloh16:
	ldr	x21, [x8]
Lloh17:
	adrp	x28, _RF_1TX@GOTPAGE
Lloh18:
	ldr	x28, [x28, _RF_1TX@GOTPAGEOFF]
	lsl	x26, x21, #3
Lloh19:
	adrp	x27, _RF_2TX@GOTPAGE
Lloh20:
	ldr	x27, [x27, _RF_2TX@GOTPAGEOFF]
	mov	x22, x23
	cmp	x22, x23
	b.ne	LBB0_4
LBB0_3:
	ldr	x3, [x28]
Lloh21:
	adrp	x8, _CCK@GOTPAGE
Lloh22:
	ldr	x8, [x8, _CCK@GOTPAGEOFF]
Lloh23:
	ldr	w4, [x8]
	mov	x0, x20
	mov	x1, x21
	mov	x2, x23
	bl	__rtl92ee_phy_get_txpower_by_rate_base
	mov	x25, x0
	ldr	x8, [x19]
	ldr	x8, [x8, x21, lsl #3]
	ldr	x8, [x8, x23, lsl #3]
	ldr	x9, [x28]
	ldr	x8, [x8, x9, lsl #3]
	add	x0, x8, #8
	mov	w1, #1
	mov	w2, #1
	mov	x3, x25
	bl	__phy_convert_txpower_dbm_to_relative_value
	mov	w8, #3
	b	LBB0_6
LBB0_4:
	cmp	x22, x24
	b.ne	LBB0_7
; %bb.5:
	ldr	x3, [x28]
Lloh24:
	adrp	x8, _CCK@GOTPAGE
Lloh25:
	ldr	x8, [x8, _CCK@GOTPAGEOFF]
Lloh26:
	ldr	w4, [x8]
	mov	x0, x20
	mov	x1, x21
	mov	x2, x24
	bl	__rtl92ee_phy_get_txpower_by_rate_base
	mov	x25, x0
	ldr	x8, [x19]
	ldr	x8, [x8, x21, lsl #3]
	ldr	x8, [x8, x24, lsl #3]
	ldr	x9, [x28]
	ldr	x8, [x8, x9, lsl #3]
	add	x0, x8, #12
	mov	w1, #0
	mov	w2, #0
	mov	x3, x25
	bl	__phy_convert_txpower_dbm_to_relative_value
	mov	x23, x24
	mov	w8, #2
LBB0_6:
	ldr	x9, [x19]
	ldr	x9, [x9, x21, lsl #3]
	ldr	x9, [x9, x23, lsl #3]
	ldr	x10, [x28]
	ldr	x9, [x9, x10, lsl #3]
	add	x0, x9, x8, lsl #2
	mov	w1, #1
	mov	w2, #3
	mov	x3, x25
	bl	__phy_convert_txpower_dbm_to_relative_value
LBB0_7:
	ldr	x3, [x28]
Lloh27:
	adrp	x8, _OFDM@GOTPAGE
Lloh28:
	ldr	x8, [x8, _OFDM@GOTPAGEOFF]
Lloh29:
	ldr	w4, [x8]
	mov	x0, x20
	mov	x1, x21
	mov	x2, x22
	bl	__rtl92ee_phy_get_txpower_by_rate_base
	mov	x23, x0
	ldr	x8, [x19]
	ldr	x8, [x8, x26]
	lsl	x24, x22, #3
	ldr	x8, [x8, x24]
	ldr	x9, [x28]
	ldr	x0, [x8, x9, lsl #3]
	mov	w1, #0
	mov	w2, #3
	mov	x3, x23
	bl	__phy_convert_txpower_dbm_to_relative_value
	ldr	x8, [x19]
	ldr	x8, [x8, x26]
	ldr	x8, [x8, x24]
	ldr	x9, [x28]
	ldr	x8, [x8, x9, lsl #3]
	add	x0, x8, #4
	mov	w1, #0
	mov	w2, #3
	mov	x3, x23
	bl	__phy_convert_txpower_dbm_to_relative_value
	ldr	x3, [x28]
Lloh30:
	adrp	x8, _HT_MCS0_MCS7@GOTPAGE
Lloh31:
	ldr	x8, [x8, _HT_MCS0_MCS7@GOTPAGEOFF]
Lloh32:
	ldr	w4, [x8]
	mov	x0, x20
	mov	x1, x21
	mov	x2, x22
	bl	__rtl92ee_phy_get_txpower_by_rate_base
	mov	x23, x0
	ldr	x8, [x19]
	ldr	x8, [x8, x26]
	ldr	x8, [x8, x24]
	ldr	x9, [x28]
	ldr	x8, [x8, x9, lsl #3]
	add	x0, x8, #16
	mov	w1, #0
	mov	w2, #3
	mov	x3, x23
	bl	__phy_convert_txpower_dbm_to_relative_value
	ldr	x8, [x19]
	ldr	x8, [x8, x26]
	ldr	x8, [x8, x24]
	ldr	x9, [x28]
	ldr	x8, [x8, x9, lsl #3]
	add	x0, x8, #20
	mov	w1, #0
	mov	w2, #3
	mov	x3, x23
	bl	__phy_convert_txpower_dbm_to_relative_value
	ldr	x3, [x27]
Lloh33:
	adrp	x8, _HT_MCS8_MCS15@GOTPAGE
Lloh34:
	ldr	x8, [x8, _HT_MCS8_MCS15@GOTPAGEOFF]
Lloh35:
	ldr	w4, [x8]
	mov	x0, x20
	mov	x1, x21
	mov	x2, x22
	bl	__rtl92ee_phy_get_txpower_by_rate_base
	mov	x23, x0
	ldr	x8, [x19]
	ldr	x8, [x8, x26]
	ldr	x8, [x8, x24]
	ldr	x9, [x27]
	ldr	x8, [x8, x9, lsl #3]
	add	x0, x8, #24
	mov	w1, #0
	mov	w2, #3
	mov	x3, x23
	bl	__phy_convert_txpower_dbm_to_relative_value
	ldr	x8, [x19]
	ldr	x8, [x8, x26]
	ldr	x8, [x8, x24]
	ldr	x9, [x27]
	ldr	x8, [x8, x9, lsl #3]
	add	x0, x8, #28
	mov	w1, #0
	mov	w2, #3
	mov	x3, x23
	bl	__phy_convert_txpower_dbm_to_relative_value
	add	x22, x22, #1
Lloh36:
	adrp	x8, _RF90_PATH_B@GOTPAGE
Lloh37:
	ldr	x8, [x8, _RF90_PATH_B@GOTPAGEOFF]
Lloh38:
	ldr	x24, [x8]
	cmp	x22, x24
	b.hi	LBB0_1
; %bb.8:
Lloh39:
	adrp	x8, _RF90_PATH_A@GOTPAGE
Lloh40:
	ldr	x8, [x8, _RF90_PATH_A@GOTPAGEOFF]
Lloh41:
	ldr	x23, [x8]
	cmp	x22, x23
	b.ne	LBB0_4
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.cfi_endproc
                                        ; -- End function
	.comm	_BAND_ON_2_4G,8,3               ; @BAND_ON_2_4G
	.comm	_RF90_PATH_A,8,3                ; @RF90_PATH_A
	.comm	_RF90_PATH_B,8,3                ; @RF90_PATH_B
	.comm	_RF_1TX,8,3                     ; @RF_1TX
	.comm	_CCK,4,2                        ; @CCK
	.comm	_OFDM,4,2                       ; @OFDM
	.comm	_HT_MCS0_MCS7,4,2               ; @HT_MCS0_MCS7
	.comm	_RF_2TX,8,3                     ; @RF_2TX
	.comm	_HT_MCS8_MCS15,4,2              ; @HT_MCS8_MCS15
	.comm	_COMP_POWER,4,2                 ; @COMP_POWER
	.comm	_DBG_TRACE,4,2                  ; @DBG_TRACE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"<==phy_convert_txpwr_dbm_to_rel_val()\n"

	.no_dead_strip	_phy_convert_txpwr_dbm_to_rel_val
.subsections_via_symbols
