	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rtw_get_tx_power_params        ## -- Begin function rtw_get_tx_power_params
	.p2align	4, 0x90
_rtw_get_tx_power_params:               ## @rtw_get_tx_power_params
	.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	%r9, -64(%rbp)                  ## 8-byte Spill
	movq	%r8, %rbx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	%rdx, %r12
	movq	%rsi, %r14
	movq	%rdi, %r13
	movq	(%rdi), %r15
	movq	%r8, %rdi
	callq	_rtw_get_channel_group
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	cmpq	$14, %rbx
	ja	LBB0_2
## %bb.1:
	movq	_PHY_BAND_2G@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	leaq	(%r15,%r14,8), %rsi
	addq	$4, %rsi
	movq	%r13, %rdi
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdx
	movq	%r12, %rcx
	movq	%rax, %r8
	callq	_rtw_phy_get_2g_tx_power_index
	movq	16(%rbp), %rbx
	movq	%rax, (%rbx)
	leaq	16(%r13), %rax
	jmp	LBB0_3
LBB0_2:
	movq	_PHY_BAND_5G@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	leaq	(%r15,%r14,8), %rsi
	movq	%r13, %rdi
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rdx
	movq	%r12, %rcx
	movq	%rax, %r8
	callq	_rtw_phy_get_5g_tx_power_index
	movq	16(%rbp), %rbx
	movq	%rax, (%rbx)
	leaq	8(%r13), %rax
LBB0_3:
	movq	(%rax), %rax
	movq	(%rax,%r14,8), %rax
	movl	(%rax,%r12,4), %eax
	movl	%eax, 12(%rbx)
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, (%rsp)
	movq	%r13, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movq	%r15, %rdx
	movq	%r14, %rcx
	movq	%r12, %r8
	movq	-72(%rbp), %r9                  ## 8-byte Reload
	callq	_rtw_phy_get_tx_power_limit
	movl	%eax, 8(%rbx)
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PHY_BAND_2G,8,3                ## @PHY_BAND_2G
	.comm	_PHY_BAND_5G,8,3                ## @PHY_BAND_5G
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rtw_get_tx_power_params        ; -- Begin function rtw_get_tx_power_params
	.p2align	2
_rtw_get_tx_power_params:               ; @rtw_get_tx_power_params
	.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	x19, x6
	mov	x20, x5
	mov	x21, x4
	mov	x23, x3
	mov	x22, x2
	mov	x24, x1
	mov	x25, x0
	ldr	x27, [x0]
	mov	x0, x4
	bl	_rtw_get_channel_group
	mov	x4, x0
	cmp	x21, #14
	b.hi	LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _PHY_BAND_2G@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PHY_BAND_2G@GOTPAGEOFF]
Lloh2:
	ldr	x26, [x8]
	add	x8, x27, x24, lsl #3
	add	x1, x8, #4
	mov	x0, x25
	mov	x2, x23
	mov	x3, x22
	bl	_rtw_phy_get_2g_tx_power_index
	str	x0, [x19]
	add	x8, x25, #16
	b	LBB0_3
LBB0_2:
Lloh3:
	adrp	x8, _PHY_BAND_5G@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PHY_BAND_5G@GOTPAGEOFF]
Lloh5:
	ldr	x26, [x8]
	add	x1, x27, x24, lsl #3
	mov	x0, x25
	mov	x2, x23
	mov	x3, x22
	bl	_rtw_phy_get_5g_tx_power_index
	str	x0, [x19]
	add	x8, x25, #8
LBB0_3:
	ldr	x8, [x8]
	ldr	x8, [x8, x24, lsl #3]
	ldr	w8, [x8, x22, lsl #2]
	str	w8, [x19, #12]
	mov	x0, x25
	mov	x1, x26
	mov	x2, x23
	mov	x3, x24
	mov	x4, x22
	mov	x5, x21
	mov	x6, x20
	bl	_rtw_phy_get_tx_power_limit
	str	w0, [x19, #8]
	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
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_PHY_BAND_2G,8,3                ; @PHY_BAND_2G
	.comm	_PHY_BAND_5G,8,3                ; @PHY_BAND_5G
.subsections_via_symbols
