	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ar9003_hw_init_txpower_ht
_ar9003_hw_init_txpower_ht:             ## @ar9003_hw_init_txpower_ht
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	testl	%r9d, %r9d
	jne	LBB0_1
## %bb.2:
	movq	_mcs2pwr_ht20@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_mcs2pwr_ht40@GOTPCREL(%rip), %rax
LBB0_3:
	movq	(%rax), %r10
	movq	_AR9300_HT_SS_RATES@GOTPCREL(%rip), %r9
	cmpl	$0, (%r9)
	jle	LBB0_4
## %bb.12:
	movslq	%edx, %r14
	leaq	(,%r14,4), %r11
	addq	(%rdi), %r11
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movslq	(%r10,%rdx,4), %rbx
	movl	(%rsi,%rbx,4), %ebx
	movl	%ebx, (%r11,%rdx,4)
	movslq	(%r9), %rbx
	addq	%r14, %rbx
	leaq	(%r14,%rdx), %rax
	incq	%rax
	incq	%rdx
	cmpq	%rbx, %rax
	jl	LBB0_13
	jmp	LBB0_5
LBB0_4:
	xorl	%edx, %edx
LBB0_5:
	movq	_AR9300_HT_DS_RATES@GOTPCREL(%rip), %r9
	cmpl	$0, (%r9)
	jle	LBB0_8
## %bb.6:
	movq	(%rdi), %r11
	movslq	%ecx, %rax
	movl	%edx, %edx
	movq	%rax, %rcx
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movslq	(%r10,%rdx,4), %rbx
	movl	(%rsi,%rbx,4), %ebx
	movl	%ebx, (%r11,%rcx,4)
	incq	%rdx
	incq	%rcx
	movslq	(%r9), %rbx
	addq	%rax, %rbx
	cmpq	%rbx, %rcx
	jl	LBB0_7
LBB0_8:
	movq	_AR9300_HT_TS_RATES@GOTPCREL(%rip), %r9
	cmpl	$0, (%r9)
	jle	LBB0_11
## %bb.9:
	movq	(%rdi), %rdi
	movslq	%r8d, %rcx
	movl	%edx, %eax
	leaq	(%r10,%rax,4), %rdx
	movq	%rcx, %rax
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movslq	(%rdx), %rbx
	movl	(%rsi,%rbx,4), %ebx
	movl	%ebx, (%rdi,%rax,4)
	incq	%rax
	movslq	(%r9), %rbx
	addq	%rcx, %rbx
	addq	$4, %rdx
	cmpq	%rbx, %rax
	jl	LBB0_10
LBB0_11:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_mcs2pwr_ht40,8,3               ## @mcs2pwr_ht40
	.comm	_mcs2pwr_ht20,8,3               ## @mcs2pwr_ht20
	.comm	_AR9300_HT_SS_RATES,4,2         ## @AR9300_HT_SS_RATES
	.comm	_AR9300_HT_DS_RATES,4,2         ## @AR9300_HT_DS_RATES
	.comm	_AR9300_HT_TS_RATES,4,2         ## @AR9300_HT_TS_RATES
	.no_dead_strip	_ar9003_hw_init_txpower_ht
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ar9003_hw_init_txpower_ht
_ar9003_hw_init_txpower_ht:             ; @ar9003_hw_init_txpower_ht
	.cfi_startproc
; %bb.0:
                                        ; kill: def $w4 killed $w4 def $x4
                                        ; kill: def $w3 killed $w3 def $x3
                                        ; kill: def $w2 killed $w2 def $x2
Lloh0:
	adrp	x8, _mcs2pwr_ht40@GOTPAGE
Lloh1:
	ldr	x8, [x8, _mcs2pwr_ht40@GOTPAGEOFF]
Lloh2:
	adrp	x9, _mcs2pwr_ht20@GOTPAGE
Lloh3:
	ldr	x9, [x9, _mcs2pwr_ht20@GOTPAGEOFF]
	cmp	w5, #0
	csel	x8, x9, x8, eq
	ldr	x8, [x8]
Lloh4:
	adrp	x10, _AR9300_HT_SS_RATES@GOTPAGE
Lloh5:
	ldr	x10, [x10, _AR9300_HT_SS_RATES@GOTPAGEOFF]
	ldr	w9, [x10]
	cmp	w9, #1
	b.lt	LBB0_3
; %bb.1:
	mov	x9, #0
	ldr	x12, [x0]
	sxtw	x11, w2
	add	x12, x12, w2, sxtw #2
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	lsl	x13, x9, #2
	ldrsw	x14, [x8, x13]
	ldr	w14, [x1, x14, lsl #2]
	str	w14, [x12, x13]
	add	x9, x9, #1
	ldrsw	x13, [x10]
	add	x13, x13, w2, sxtw
	add	x14, x11, x9
	cmp	x14, x13
	b.lt	LBB0_2
	b	LBB0_4
LBB0_3:
	mov	w9, #0
LBB0_4:
Lloh6:
	adrp	x10, _AR9300_HT_DS_RATES@GOTPAGE
Lloh7:
	ldr	x10, [x10, _AR9300_HT_DS_RATES@GOTPAGEOFF]
	ldr	w11, [x10]
	cmp	w11, #1
	b.lt	LBB0_8
; %bb.5:
	ldr	x11, [x0]
	sxtw	x12, w3
	mov	w9, w9
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldrsw	x13, [x8, x9, lsl #2]
	ldr	w13, [x1, x13, lsl #2]
	str	w13, [x11, x12, lsl #2]
	add	x9, x9, #1
	add	x12, x12, #1
	ldrsw	x13, [x10]
	add	x13, x13, w3, sxtw
	cmp	x12, x13
	b.lt	LBB0_6
; %bb.7:
                                        ; kill: def $w9 killed $w9 killed $x9 def $x9
LBB0_8:
Lloh8:
	adrp	x10, _AR9300_HT_TS_RATES@GOTPAGE
Lloh9:
	ldr	x10, [x10, _AR9300_HT_TS_RATES@GOTPAGEOFF]
	ldr	w11, [x10]
	cmp	w11, #1
	b.lt	LBB0_11
; %bb.9:
	ldr	x11, [x0]
	sxtw	x12, w4
	add	x8, x8, w9, uxtw #2
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldrsw	x9, [x8], #4
	ldr	w9, [x1, x9, lsl #2]
	str	w9, [x11, x12, lsl #2]
	add	x12, x12, #1
	ldrsw	x9, [x10]
	add	x9, x9, w4, sxtw
	cmp	x12, x9
	b.lt	LBB0_10
LBB0_11:
	ret
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_mcs2pwr_ht40,8,3               ; @mcs2pwr_ht40
	.comm	_mcs2pwr_ht20,8,3               ; @mcs2pwr_ht20
	.comm	_AR9300_HT_SS_RATES,4,2         ; @AR9300_HT_SS_RATES
	.comm	_AR9300_HT_DS_RATES,4,2         ; @AR9300_HT_DS_RATES
	.comm	_AR9300_HT_TS_RATES,4,2         ; @AR9300_HT_TS_RATES
	.no_dead_strip	_ar9003_hw_init_txpower_ht
.subsections_via_symbols
