	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ar5008_hw_init_txpower_ht
_ar5008_hw_init_txpower_ht:             ## @ar5008_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	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r10d
	movq	_AR5008_HT_SS_RATES@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	testl	%edx, %edx
	jle	LBB0_3
## %bb.1:
	leal	(%rdx,%r10), %eax
	testl	%r8d, %r8d
	jne	LBB0_4
## %bb.2:
	movq	_AR5008_HT20_SHIFT@GOTPCREL(%rip), %rbx
	jmp	LBB0_5
LBB0_3:
	movq	(%rdi), %r12
	movslq	%r10d, %r8
	jmp	LBB0_18
LBB0_4:
	movq	_AR5008_HT40_SHIFT@GOTPCREL(%rip), %rbx
LBB0_5:
	movslq	%r9d, %r9
	movq	(%rdi), %r12
	movslq	(%rbx), %r11
	movslq	%r10d, %r8
	movslq	%eax, %r13
	leaq	1(%r8), %r10
	cmpq	%r13, %r10
	cmovleq	%r13, %r10
	subq	%r8, %r10
	cmpq	$4, %r10
	jb	LBB0_6
## %bb.7:
	leaq	(%r12,%r8,8), %rax
	leaq	(%rsi,%r11,8), %rdi
	subq	%rdi, %rax
	cmpq	$32, %rax
	jae	LBB0_9
LBB0_6:
	movq	%r8, %rax
LBB0_16:
	leaq	(%rsi,%r11,8), %rsi
	.p2align	4, 0x90
LBB0_17:                                ## =>This Inner Loop Header: Depth=1
	movq	(%rsi), %rdi
	addq	%r9, %rdi
	movq	%rdi, (%r12,%rax,8)
	incq	%rax
	addq	$8, %rsi
	cmpq	%r13, %rax
	jl	LBB0_17
LBB0_18:
	movslq	%ecx, %rax
	leaq	(%r12,%rax,8), %rdi
	leaq	(%r12,%r8,8), %rsi
                                        ## kill: def $edx killed $edx killed $rdx
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_memcpy                         ## TAILCALL
LBB0_9:
	movq	%r10, %rdi
	andq	$-4, %rdi
	movq	%r9, %xmm0
	pshufd	$68, %xmm0, %xmm0               ## xmm0 = xmm0[0,1,0,1]
	leaq	-4(%rdi), %rax
	movq	%rax, %r15
	shrq	$2, %r15
	incq	%r15
	testq	%rax, %rax
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	je	LBB0_19
## %bb.10:
	movq	%r15, %rax
	andq	$-2, %rax
	leaq	(%rsi,%r11,8), %rdi
	addq	$48, %rdi
	leaq	(%r12,%r8,8), %r14
	addq	$48, %r14
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movdqu	-48(%rdi,%rbx,8), %xmm1
	movdqu	-32(%rdi,%rbx,8), %xmm2
	paddq	%xmm0, %xmm1
	paddq	%xmm0, %xmm2
	movdqu	%xmm1, -48(%r14,%rbx,8)
	movdqu	%xmm2, -32(%r14,%rbx,8)
	movdqu	-16(%rdi,%rbx,8), %xmm1
	movdqu	(%rdi,%rbx,8), %xmm2
	paddq	%xmm0, %xmm1
	paddq	%xmm0, %xmm2
	movdqu	%xmm1, -16(%r14,%rbx,8)
	movdqu	%xmm2, (%r14,%rbx,8)
	addq	$8, %rbx
	addq	$-2, %rax
	jne	LBB0_11
## %bb.12:
	testb	$1, %r15b
	je	LBB0_14
LBB0_13:
	leaq	(%rbx,%r11), %rax
	addq	%r8, %rbx
	movdqu	(%rsi,%rax,8), %xmm1
	movdqu	16(%rsi,%rax,8), %xmm2
	paddq	%xmm0, %xmm1
	paddq	%xmm0, %xmm2
	movdqu	%xmm1, (%r12,%rbx,8)
	movdqu	%xmm2, 16(%r12,%rbx,8)
LBB0_14:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	cmpq	%rdi, %r10
	je	LBB0_18
## %bb.15:
	leaq	(%rdi,%r8), %rax
	addq	%rdi, %r11
	jmp	LBB0_16
LBB0_19:
	xorl	%ebx, %ebx
	testb	$1, %r15b
	jne	LBB0_13
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_AR5008_HT40_SHIFT,4,2          ## @AR5008_HT40_SHIFT
	.comm	_AR5008_HT20_SHIFT,4,2          ## @AR5008_HT20_SHIFT
	.comm	_AR5008_HT_SS_RATES,4,2         ## @AR5008_HT_SS_RATES
	.no_dead_strip	_ar5008_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 ar5008_hw_init_txpower_ht
_ar5008_hw_init_txpower_ht:             ; @ar5008_hw_init_txpower_ht
	.cfi_startproc
; %bb.0:
                                        ; kill: def $w5 killed $w5 def $x5
	mov	x8, x2
Lloh0:
	adrp	x9, _AR5008_HT_SS_RATES@GOTPAGE
Lloh1:
	ldr	x9, [x9, _AR5008_HT_SS_RATES@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x9]
	cmp	w2, #0
	b.le	LBB0_3
; %bb.1:
	add	w11, w2, w8
Lloh3:
	adrp	x12, _AR5008_HT20_SHIFT@GOTPAGE
Lloh4:
	ldr	x12, [x12, _AR5008_HT20_SHIFT@GOTPAGEOFF]
Lloh5:
	adrp	x13, _AR5008_HT40_SHIFT@GOTPAGE
Lloh6:
	ldr	x13, [x13, _AR5008_HT40_SHIFT@GOTPAGEOFF]
	sxtw	x10, w5
	ldr	x9, [x0]
	cmp	w4, #0
	csel	x12, x12, x13, eq
	ldrsw	x12, [x12]
	sxtw	x8, w8
	sxtw	x11, w11
	add	x13, x8, #1
	cmp	x13, x11
	csinc	x13, x11, x8, le
	sub	x14, x13, x8
	cmp	x14, #8
	b.hs	LBB0_4
; %bb.2:
	mov	x13, x8
	b	LBB0_8
LBB0_3:
	ldr	x9, [x0]
                                        ; kill: def $w8 killed $w8 killed $x8 def $x8
	sxtw	x8, w8
	b	LBB0_10
LBB0_4:
	add	x17, x9, x8, lsl #3
	add	x16, x1, x12, lsl #3
	sub	x15, x17, x16
	mov	x13, x8
	cmp	x15, #64
	b.lo	LBB0_8
; %bb.5:
	and	x15, x14, #0xfffffffffffffff8
	add	x13, x15, x8
	add	x12, x15, x12
	dup.2d	v0, x10
	add	x16, x16, #32
	add	x17, x17, #32
	mov	x0, x15
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldp	q1, q2, [x16, #-32]
	ldp	q3, q4, [x16], #64
	add.2d	v1, v1, v0
	add.2d	v2, v2, v0
	add.2d	v3, v3, v0
	add.2d	v4, v4, v0
	stp	q1, q2, [x17, #-32]
	stp	q3, q4, [x17], #64
	subs	x0, x0, #8
	b.ne	LBB0_6
; %bb.7:
	cmp	x14, x15
	b.eq	LBB0_10
LBB0_8:
	add	x12, x1, x12, lsl #3
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x14, [x12], #8
	add	x14, x14, x10
	str	x14, [x9, x13, lsl #3]
	add	x13, x13, #1
	cmp	x13, x11
	b.lt	LBB0_9
LBB0_10:
	add	x0, x9, w3, sxtw #3
	add	x1, x9, x8, lsl #3
	b	_memcpy
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_AR5008_HT40_SHIFT,4,2          ; @AR5008_HT40_SHIFT
	.comm	_AR5008_HT20_SHIFT,4,2          ; @AR5008_HT20_SHIFT
	.comm	_AR5008_HT_SS_RATES,4,2         ; @AR5008_HT_SS_RATES
	.no_dead_strip	_ar5008_hw_init_txpower_ht
.subsections_via_symbols
