	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ath5k_setup_rate_idx
_ath5k_setup_rate_idx:                  ## @ath5k_setup_rate_idx
	.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
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	_AR5K_MAX_RATES@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	testq	%rdx, %rdx
	je	LBB0_2
## %bb.1:
	movq	(%r14), %rax
	movq	(%rbx), %rcx
	movq	(%rax,%rcx,8), %rdi
	shlq	$2, %rdx
	movl	$255, %esi
	callq	_memset
LBB0_2:
	movq	8(%rbx), %r9
	testq	%r9, %r9
	je	LBB0_14
## %bb.3:
	movq	(%r14), %rax
	movq	(%rbx), %rcx
	movq	16(%rbx), %r8
	movq	(%rax,%rcx,8), %rax
	cmpq	$1, %r9
	jne	LBB0_5
## %bb.4:
	xorl	%esi, %esi
LBB0_11:
	testb	$1, %r9b
	je	LBB0_14
## %bb.12:
	movq	%rsi, %rcx
	shlq	$4, %rcx
	movq	(%r8,%rcx), %rdx
	movl	%esi, (%rax,%rdx,4)
	movslq	8(%r8,%rcx), %rcx
	testq	%rcx, %rcx
	je	LBB0_14
## %bb.13:
	movl	%esi, (%rax,%rcx,4)
LBB0_14:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_5:
	movq	%r9, %rdi
	andq	$-2, %rdi
	leaq	24(%r8), %rbx
	xorl	%esi, %esi
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_6 Depth=1
	addq	$2, %rsi
	addq	$32, %rbx
	cmpq	%rsi, %rdi
	je	LBB0_11
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	-24(%rbx), %rcx
	movl	%esi, (%rax,%rcx,4)
	movslq	-16(%rbx), %rcx
	testq	%rcx, %rcx
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movl	%esi, (%rax,%rcx,4)
LBB0_8:                                 ##   in Loop: Header=BB0_6 Depth=1
	leaq	1(%rsi), %rcx
	movq	-8(%rbx), %rdx
	movl	%ecx, (%rax,%rdx,4)
	movslq	(%rbx), %rdx
	testq	%rdx, %rdx
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_6 Depth=1
	movl	%ecx, (%rax,%rdx,4)
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_AR5K_MAX_RATES,8,3             ## @AR5K_MAX_RATES
	.no_dead_strip	_ath5k_setup_rate_idx
.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_idx
_ath5k_setup_rate_idx:                  ; @ath5k_setup_rate_idx
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _AR5K_MAX_RATES@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AR5K_MAX_RATES@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	x9, [x20]
	ldr	x10, [x19]
	ldr	x0, [x9, x10, lsl #3]
	lsl	x2, x8, #2
	mov	w1, #255
	bl	_memset
LBB0_2:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_7
; %bb.3:
	mov	x9, #0
	ldr	x10, [x20]
	ldr	x11, [x19]
	ldr	x10, [x10, x11, lsl #3]
	ldr	x11, [x19, #16]
	add	x11, x11, #8
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x9, x9, #1
	add	x11, x11, #16
	cmp	x8, x9
	b.eq	LBB0_7
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldur	x12, [x11, #-8]
	str	w9, [x10, x12, lsl #2]
	ldrsw	x12, [x11]
	cbz	w12, LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	str	w9, [x10, x12, lsl #2]
	b	LBB0_4
LBB0_7:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_AR5K_MAX_RATES,8,3             ; @AR5K_MAX_RATES
	.no_dead_strip	_ath5k_setup_rate_idx
.subsections_via_symbols
