	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rtw_phy_init_tx_power          ## -- Begin function rtw_phy_init_tx_power
	.p2align	4, 0x90
_rtw_phy_init_tx_power:                 ## @rtw_phy_init_tx_power
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_RTW_RF_PATH_MAX@GOTPCREL(%rip), %r8
	movq	(%r8), %rsi
	testq	%rsi, %rsi
	je	LBB0_4
## %bb.1:
	movq	_DESC_RATE_MAX@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdi
	xorl	%edx, %edx
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_2 Depth=1
	xorl	%edi, %edi
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	incq	%rdx
	cmpq	%rsi, %rdx
	jae	LBB0_4
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_9 Depth 2
	testq	%rdi, %rdi
	je	LBB0_3
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r14), %rax
	movq	8(%r14), %rsi
	movq	(%rsi,%rdx,8), %rsi
	movq	(%rax,%rdx,8), %rbx
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_9:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	$0, (%rsi,%rax,8)
	movq	$0, (%rbx,%rax,8)
	incq	%rax
	movq	(%rcx), %rdi
	cmpq	%rdi, %rax
	jb	LBB0_9
## %bb.10:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r8), %rsi
	jmp	LBB0_11
LBB0_4:
	movq	_RTW_REGD_MAX@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	testq	%rcx, %rcx
	je	LBB0_21
## %bb.5:
	movq	_RTW_CHANNEL_WIDTH_MAX@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	xorl	%r15d, %r15d
	movq	_RTW_RATE_SECTION_MAX@GOTPCREL(%rip), %r13
	movq	%rax, %rdx
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_19:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	_RTW_REGD_MAX@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rax, %rdx
LBB0_20:                                ##   in Loop: Header=BB0_6 Depth=1
	incq	%r15
	cmpq	%rcx, %r15
	jae	LBB0_21
LBB0_6:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_13 Depth 2
                                        ##       Child Loop BB0_16 Depth 3
	testq	%rdx, %rdx
	je	LBB0_7
## %bb.12:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	(%r13), %rcx
	xorl	%r12d, %r12d
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_13 Depth=2
	xorl	%ecx, %ecx
LBB0_18:                                ##   in Loop: Header=BB0_13 Depth=2
	incq	%r12
	cmpq	%rax, %r12
	jae	LBB0_19
LBB0_13:                                ##   Parent Loop BB0_6 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_16 Depth 3
	testq	%rcx, %rcx
	je	LBB0_14
## %bb.15:                              ##   in Loop: Header=BB0_13 Depth=2
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_16:                                ##   Parent Loop BB0_6 Depth=1
                                        ##     Parent Loop BB0_13 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	%r12, %rdx
	movq	%rbx, %rcx
	callq	_rtw_phy_init_tx_power_limit
	incq	%rbx
	movq	(%r13), %rcx
	cmpq	%rcx, %rbx
	jb	LBB0_16
## %bb.17:                              ##   in Loop: Header=BB0_13 Depth=2
	movq	_RTW_CHANNEL_WIDTH_MAX@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	jmp	LBB0_18
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_6 Depth=1
	xorl	%edx, %edx
	jmp	LBB0_20
LBB0_21:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RTW_RF_PATH_MAX,8,3            ## @RTW_RF_PATH_MAX
	.comm	_DESC_RATE_MAX,8,3              ## @DESC_RATE_MAX
	.comm	_RTW_REGD_MAX,8,3               ## @RTW_REGD_MAX
	.comm	_RTW_CHANNEL_WIDTH_MAX,8,3      ## @RTW_CHANNEL_WIDTH_MAX
	.comm	_RTW_RATE_SECTION_MAX,8,3       ## @RTW_RATE_SECTION_MAX
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rtw_phy_init_tx_power          ; -- Begin function rtw_phy_init_tx_power
	.p2align	2
_rtw_phy_init_tx_power:                 ; @rtw_phy_init_tx_power
	.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	x19, x0
Lloh0:
	adrp	x8, _RTW_RF_PATH_MAX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RTW_RF_PATH_MAX@GOTPAGEOFF]
	ldr	x11, [x8]
	cbz	x11, LBB0_7
; %bb.1:
	mov	x9, #0
Lloh2:
	adrp	x10, _DESC_RATE_MAX@GOTPAGE
Lloh3:
	ldr	x10, [x10, _DESC_RATE_MAX@GOTPAGEOFF]
	ldr	x12, [x10]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x9, x9, #1
	cmp	x9, x11
	b.hs	LBB0_7
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_5 Depth 2
	cbz	x12, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x11, #0
	lsl	x12, x9, #3
	ldp	x14, x13, [x19]
	ldr	x13, [x13, x12]
	ldr	x14, [x14, x12]
LBB0_5:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	lsl	x12, x11, #3
	str	xzr, [x13, x12]
	str	xzr, [x14, x12]
	add	x11, x11, #1
	ldr	x12, [x10]
	cmp	x11, x12
	b.lo	LBB0_5
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x11, [x8]
	b	LBB0_2
LBB0_7:
Lloh4:
	adrp	x23, _RTW_REGD_MAX@GOTPAGE
Lloh5:
	ldr	x23, [x23, _RTW_REGD_MAX@GOTPAGEOFF]
	ldr	x9, [x23]
	cbz	x9, LBB0_18
; %bb.8:
	mov	x20, #0
Lloh6:
	adrp	x24, _RTW_CHANNEL_WIDTH_MAX@GOTPAGE
Lloh7:
	ldr	x24, [x24, _RTW_CHANNEL_WIDTH_MAX@GOTPAGEOFF]
	ldr	x8, [x24]
Lloh8:
	adrp	x25, _RTW_RATE_SECTION_MAX@GOTPAGE
Lloh9:
	ldr	x25, [x25, _RTW_RATE_SECTION_MAX@GOTPAGEOFF]
	mov	x10, x8
	b	LBB0_11
LBB0_9:                                 ;   in Loop: Header=BB0_11 Depth=1
	ldr	x9, [x23]
	mov	x10, x8
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=1
	add	x20, x20, #1
	cmp	x20, x9
	b.hs	LBB0_18
LBB0_11:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_14 Depth 2
                                        ;       Child Loop BB0_16 Depth 3
	cbz	x10, LBB0_10
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	mov	x21, #0
	ldr	x9, [x25]
	b	LBB0_14
LBB0_13:                                ;   in Loop: Header=BB0_14 Depth=2
	add	x21, x21, #1
	cmp	x21, x8
	b.hs	LBB0_9
LBB0_14:                                ;   Parent Loop BB0_11 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_16 Depth 3
	cbz	x9, LBB0_13
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=2
	mov	x22, #0
LBB0_16:                                ;   Parent Loop BB0_11 Depth=1
                                        ;     Parent Loop BB0_14 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	mov	x3, x22
	bl	_rtw_phy_init_tx_power_limit
	add	x22, x22, #1
	ldr	x9, [x25]
	cmp	x22, x9
	b.lo	LBB0_16
; %bb.17:                               ;   in Loop: Header=BB0_14 Depth=2
	ldr	x8, [x24]
	b	LBB0_13
LBB0_18:
	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
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_RTW_RF_PATH_MAX,8,3            ; @RTW_RF_PATH_MAX
	.comm	_DESC_RATE_MAX,8,3              ; @DESC_RATE_MAX
	.comm	_RTW_REGD_MAX,8,3               ; @RTW_REGD_MAX
	.comm	_RTW_CHANNEL_WIDTH_MAX,8,3      ; @RTW_CHANNEL_WIDTH_MAX
	.comm	_RTW_RATE_SECTION_MAX,8,3       ; @RTW_RATE_SECTION_MAX
.subsections_via_symbols
