	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function ath5k_setup_rate_powertable
LCPI0_0:
	.long	63                              ## 0x3f
	.long	63                              ## 0x3f
	.long	63                              ## 0x3f
	.long	63                              ## 0x3f
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_ath5k_setup_rate_powertable:           ## @ath5k_setup_rate_powertable
	.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	%rcx, %r14
	movq	%rdx, %r15
                                        ## kill: def $esi killed $esi def $rsi
	movq	%rdi, %r12
	leal	(%rsi,%rsi), %edi
	movl	40(%r12), %esi
	callq	_min
	movl	%eax, %r13d
	shrl	$31, %r13d
	addl	%eax, %r13d
	sarl	%r13d
	movq	8(%r12), %rbx
	movl	(%r15), %esi
	movl	%r13d, %edi
	callq	_min
	movl	%eax, (%rbx)
	movl	(%r15), %esi
	movl	%r13d, %edi
	callq	_min
	movl	%eax, 4(%rbx)
	movl	(%r15), %esi
	movl	%r13d, %edi
	callq	_min
	movl	%eax, 8(%rbx)
	movl	(%r15), %esi
	movl	%r13d, %edi
	callq	_min
	movl	%eax, 12(%rbx)
	movl	(%r15), %esi
	movl	%r13d, %edi
	callq	_min
	movl	%eax, 16(%rbx)
	movl	(%rbx), %edi
	movl	4(%r15), %esi
	callq	_min
	movl	%eax, 20(%rbx)
	movl	(%rbx), %edi
	movl	8(%r15), %esi
	callq	_min
	movl	%eax, 24(%rbx)
	movl	(%rbx), %edi
	movl	12(%r15), %esi
	callq	_min
	movl	%eax, 28(%rbx)
	movl	(%rbx), %edi
	movl	(%r15), %esi
	callq	_min
	movl	%eax, 32(%rbx)
	movl	(%rbx), %edi
	movl	4(%r15), %esi
	callq	_min
	movl	%eax, 36(%rbx)
	movl	(%rbx), %edi
	movl	4(%r15), %esi
	callq	_min
	movl	%eax, 40(%rbx)
	movl	(%rbx), %edi
	movl	8(%r15), %esi
	callq	_min
	movl	%eax, 44(%rbx)
	movl	(%rbx), %edi
	movl	8(%r15), %esi
	callq	_min
	movl	%eax, 48(%rbx)
	movl	(%rbx), %edi
	movl	12(%r15), %esi
	callq	_min
	movl	%eax, 52(%rbx)
	movl	(%rbx), %edi
	movl	12(%r15), %esi
	callq	_min
	movl	%eax, 56(%rbx)
	movl	(%rbx), %edi
	movl	(%r15), %esi
	callq	_min
	movl	%eax, 60(%rbx)
	movq	_AR5K_EEPROM_MODE_11G@GOTPCREL(%rip), %rcx
	cmpq	%r14, (%rcx)
	jne	LBB0_3
## %bb.1:
	movq	(%r12), %rcx
	movq	_AR5K_SREV_PHY_5212A@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jge	LBB0_3
## %bb.2:
	movdqu	32(%rbx), %xmm0
	movd	32(%r12), %xmm1                 ## xmm1 = mem[0],zero,zero,zero
	pshufd	$0, %xmm1, %xmm1                ## xmm1 = xmm1[0,0,0,0]
	psubd	%xmm1, %xmm0
	movdqu	%xmm0, 32(%rbx)
	movq	52(%rbx), %xmm0                 ## xmm0 = mem[0],zero
	movd	48(%rbx), %xmm2                 ## xmm2 = mem[0],zero,zero,zero
	pshufd	$80, %xmm0, %xmm0               ## xmm0 = xmm0[0,0,1,1]
	pblendw	$3, %xmm2, %xmm0                ## xmm0 = xmm2[0,1],xmm0[2,3,4,5,6,7]
	pinsrd	$3, %eax, %xmm0
	psubd	%xmm1, %xmm0
	movdqu	%xmm0, 48(%rbx)
LBB0_3:
	movl	28(%rbx), %eax
	addl	%eax, %eax
	movl	%eax, 16(%r12)
	movl	(%rbx), %eax
	addl	%eax, %eax
	movl	%eax, 20(%r12)
	movl	28(%rbx), %eax
	movl	%eax, 24(%r12)
	leaq	32(%r12), %rax
	cmpq	%rax, %rbx
	jae	LBB0_12
## %bb.4:
	leaq	64(%rbx), %rax
	leaq	28(%r12), %rcx
	cmpq	%rax, %rcx
	jae	LBB0_12
## %bb.5:
	xorl	%eax, %eax
	movl	$63, %ecx
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_6 Depth=1
	movl	%edx, 4(%rbx,%rax,4)
	addq	$2, %rax
	cmpq	$16, %rax
	je	LBB0_11
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movl	28(%r12), %edx
	addl	(%rbx,%rax,4), %edx
	cmpl	$63, %edx
	cmovgel	%ecx, %edx
	testl	%edx, %edx
	jg	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	xorl	%edx, %edx
LBB0_8:                                 ##   in Loop: Header=BB0_6 Depth=1
	movl	%edx, (%rbx,%rax,4)
	movl	28(%r12), %edx
	addl	4(%rbx,%rax,4), %edx
	cmpl	$63, %edx
	cmovgel	%ecx, %edx
	testl	%edx, %edx
	jg	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_6 Depth=1
	xorl	%edx, %edx
	jmp	LBB0_10
LBB0_12:
	movd	28(%r12), %xmm0                 ## xmm0 = mem[0],zero,zero,zero
	pshufd	$0, %xmm0, %xmm0                ## xmm0 = xmm0[0,0,0,0]
	movdqu	(%rbx), %xmm1
	paddd	%xmm0, %xmm1
	movdqu	16(%rbx), %xmm0
	movdqu	32(%rbx), %xmm2
	movdqu	48(%rbx), %xmm3
	movdqa	LCPI0_0(%rip), %xmm4            ## xmm4 = [63,63,63,63]
	pminsd	%xmm4, %xmm1
	pxor	%xmm5, %xmm5
	pmaxsd	%xmm5, %xmm1
	movdqu	%xmm1, (%rbx)
	movd	28(%r12), %xmm1                 ## xmm1 = mem[0],zero,zero,zero
	pshufd	$0, %xmm1, %xmm1                ## xmm1 = xmm1[0,0,0,0]
	paddd	%xmm0, %xmm1
	pminsd	%xmm4, %xmm1
	pmaxsd	%xmm5, %xmm1
	movdqu	%xmm1, 16(%rbx)
	movd	28(%r12), %xmm0                 ## xmm0 = mem[0],zero,zero,zero
	pshufd	$0, %xmm0, %xmm0                ## xmm0 = xmm0[0,0,0,0]
	paddd	%xmm2, %xmm0
	pminsd	%xmm4, %xmm0
	pmaxsd	%xmm5, %xmm0
	movdqu	%xmm0, 32(%rbx)
	movd	28(%r12), %xmm0                 ## xmm0 = mem[0],zero,zero,zero
	pshufd	$0, %xmm0, %xmm0                ## xmm0 = xmm0[0,0,0,0]
	paddd	%xmm3, %xmm0
	pminsd	%xmm4, %xmm0
	pmaxsd	%xmm5, %xmm0
	movdqu	%xmm0, 48(%rbx)
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AR5K_EEPROM_MODE_11G,8,3       ## @AR5K_EEPROM_MODE_11G
	.comm	_AR5K_SREV_PHY_5212A,8,3        ## @AR5K_SREV_PHY_5212A
	.no_dead_strip	_ath5k_setup_rate_powertable
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ath5k_setup_rate_powertable
_ath5k_setup_rate_powertable:           ; @ath5k_setup_rate_powertable
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x20, x3
	mov	x21, x2
	mov	x19, x0
	lsl	w0, w1, #1
	ldr	w1, [x19, #40]
	bl	_min
	cmp	w0, #0
	cinc	w8, w0, lt
	asr	w22, w8, #1
	ldr	x23, [x19, #8]
	ldr	w1, [x21]
	mov	x0, x22
	bl	_min
	str	w0, [x23]
	ldr	w1, [x21]
	mov	x0, x22
	bl	_min
	str	w0, [x23, #4]
	ldr	w1, [x21]
	mov	x0, x22
	bl	_min
	str	w0, [x23, #8]
	ldr	w1, [x21]
	mov	x0, x22
	bl	_min
	str	w0, [x23, #12]
	ldr	w1, [x21]
	mov	x0, x22
	bl	_min
	str	w0, [x23, #16]
	ldr	w0, [x23]
	ldr	w1, [x21, #4]
	bl	_min
	str	w0, [x23, #20]
	ldr	w0, [x23]
	ldr	w1, [x21, #8]
	bl	_min
	str	w0, [x23, #24]
	ldr	w0, [x23]
	ldr	w1, [x21, #12]
	bl	_min
	str	w0, [x23, #28]
	ldr	w0, [x23]
	ldr	w1, [x21]
	bl	_min
	str	w0, [x23, #32]
	ldr	w0, [x23]
	ldr	w1, [x21, #4]
	bl	_min
	str	w0, [x23, #36]
	ldr	w0, [x23]
	ldr	w1, [x21, #4]
	bl	_min
	str	w0, [x23, #40]
	ldr	w0, [x23]
	ldr	w1, [x21, #8]
	bl	_min
	str	w0, [x23, #44]
	ldr	w0, [x23]
	ldr	w1, [x21, #8]
	bl	_min
	str	w0, [x23, #48]
	ldr	w0, [x23]
	ldr	w1, [x21, #12]
	bl	_min
	str	w0, [x23, #52]
	ldr	w0, [x23]
	ldr	w1, [x21, #12]
	bl	_min
	str	w0, [x23, #56]
	ldr	w0, [x23]
	ldr	w1, [x21]
	bl	_min
	str	w0, [x23, #60]
Lloh0:
	adrp	x8, _AR5K_EEPROM_MODE_11G@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AR5K_EEPROM_MODE_11G@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x8, x20
	b.ne	LBB0_3
; %bb.1:
	ldr	x8, [x19]
Lloh3:
	adrp	x9, _AR5K_SREV_PHY_5212A@GOTPAGE
Lloh4:
	ldr	x9, [x9, _AR5K_SREV_PHY_5212A@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ge	LBB0_3
; %bb.2:
	ldr	w8, [x19, #32]
	ldr	q0, [x23, #32]
	dup.4s	v1, w8
	sub.4s	v0, v0, v1
	str	q0, [x23, #32]
	ldr	d0, [x23, #48]
	dup.2s	v1, w8
	sub.2s	v0, v0, v1
	str	d0, [x23, #48]
	ldr	w9, [x23, #56]
	sub	w9, w9, w8
	sub	w8, w0, w8
	stp	w9, w8, [x23, #56]
LBB0_3:
	ldr	w8, [x23, #28]
	lsl	w8, w8, #1
	str	w8, [x19, #16]
	ldr	w8, [x23]
	lsl	w8, w8, #1
	str	w8, [x19, #20]
	ldr	w8, [x23, #28]
	str	w8, [x19, #24]
	ldr	w8, [x19, #28]
	ldp	w9, w10, [x23]
	add	w9, w8, w9
	mov	w8, #63
	cmp	w9, #63
	csel	w9, w9, w8, lt
	cmp	w9, #0
	csel	w9, w9, wzr, gt
	str	w9, [x23]
	ldr	w9, [x19, #28]
	add	w9, w9, w10
	cmp	w9, #63
	csel	w9, w9, w8, lt
	cmp	w9, #0
	csel	w9, w9, wzr, gt
	str	w9, [x23, #4]
	ldr	w9, [x19, #28]
	ldp	w10, w11, [x23, #8]
	add	w9, w9, w10
	cmp	w9, #63
	csel	w9, w9, w8, lt
	cmp	w9, #0
	csel	w9, w9, wzr, gt
	str	w9, [x23, #8]
	ldr	w9, [x19, #28]
	add	w9, w9, w11
	cmp	w9, #63
	csel	w9, w9, w8, lt
	cmp	w9, #0
	csel	w9, w9, wzr, gt
	str	w9, [x23, #12]
	ldr	w9, [x19, #28]
	ldp	w10, w11, [x23, #16]
	add	w9, w9, w10
	cmp	w9, #63
	csel	w9, w9, w8, lt
	cmp	w9, #0
	csel	w9, w9, wzr, gt
	str	w9, [x23, #16]
	ldr	w9, [x19, #28]
	add	w9, w9, w11
	cmp	w9, #63
	csel	w9, w9, w8, lt
	cmp	w9, #0
	csel	w9, w9, wzr, gt
	str	w9, [x23, #20]
	ldr	w9, [x19, #28]
	ldp	w10, w11, [x23, #24]
	add	w9, w9, w10
	cmp	w9, #63
	csel	w9, w9, w8, lt
	cmp	w9, #0
	csel	w9, w9, wzr, gt
	str	w9, [x23, #24]
	ldr	w9, [x19, #28]
	add	w9, w9, w11
	cmp	w9, #63
	csel	w9, w9, w8, lt
	cmp	w9, #0
	csel	w9, w9, wzr, gt
	str	w9, [x23, #28]
	ldr	w9, [x19, #28]
	ldp	w10, w11, [x23, #32]
	add	w9, w9, w10
	cmp	w9, #63
	csel	w9, w9, w8, lt
	cmp	w9, #0
	csel	w9, w9, wzr, gt
	str	w9, [x23, #32]
	ldr	w9, [x19, #28]
	add	w9, w9, w11
	cmp	w9, #63
	csel	w9, w9, w8, lt
	cmp	w9, #0
	csel	w9, w9, wzr, gt
	str	w9, [x23, #36]
	ldr	w9, [x19, #28]
	ldp	w10, w11, [x23, #40]
	add	w9, w9, w10
	cmp	w9, #63
	csel	w9, w9, w8, lt
	cmp	w9, #0
	csel	w9, w9, wzr, gt
	str	w9, [x23, #40]
	ldr	w9, [x19, #28]
	add	w9, w9, w11
	cmp	w9, #63
	csel	w9, w9, w8, lt
	cmp	w9, #0
	csel	w9, w9, wzr, gt
	str	w9, [x23, #44]
	ldr	w9, [x19, #28]
	ldp	w10, w11, [x23, #48]
	add	w9, w9, w10
	cmp	w9, #63
	csel	w9, w9, w8, lt
	cmp	w9, #0
	csel	w9, w9, wzr, gt
	str	w9, [x23, #48]
	ldr	w9, [x19, #28]
	add	w9, w9, w11
	cmp	w9, #63
	csel	w9, w9, w8, lt
	cmp	w9, #0
	csel	w9, w9, wzr, gt
	str	w9, [x23, #52]
	ldr	w9, [x19, #28]
	ldp	w10, w11, [x23, #56]
	add	w9, w9, w10
	cmp	w9, #63
	csel	w9, w9, w8, lt
	cmp	w9, #0
	csel	w9, w9, wzr, gt
	str	w9, [x23, #56]
	ldr	w9, [x19, #28]
	add	w9, w9, w11
	cmp	w9, #63
	csel	w8, w9, w8, lt
	cmp	w8, #0
	csel	w8, w8, wzr, gt
	str	w8, [x23, #60]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_AR5K_EEPROM_MODE_11G,8,3       ; @AR5K_EEPROM_MODE_11G
	.comm	_AR5K_SREV_PHY_5212A,8,3        ; @AR5K_SREV_PHY_5212A
	.no_dead_strip	_ath5k_setup_rate_powertable
.subsections_via_symbols
