	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function il3945_init_hw_rates
_il3945_init_hw_rates:                  ## @il3945_init_hw_rates
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_RATE_COUNT_LEGACY@GOTPCREL(%rip), %r10
	cmpl	$0, (%r10)
	jle	LBB0_8
## %bb.1:
	movq	_il3945_rates@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	addq	$12, %rsi
	xorl	%edx, %edx
	movq	_IL39_LAST_OFDM_RATE@GOTPCREL(%rip), %rdi
	movq	_IL_FIRST_OFDM_RATE@GOTPCREL(%rip), %r8
	movq	_IEEE80211_RATE_SHORT_PREAMBLE@GOTPCREL(%rip), %r9
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	%eax, (%rsi)
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%rdx
	movslq	(%r10), %rax
	addq	$16, %rsi
	cmpq	%rax, %rdx
	jge	LBB0_8
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rcx,%rdx,8), %eax
	leal	(%rax,%rax,4), %eax
	movl	%eax, -12(%rsi)
	movl	%edx, -8(%rsi)
	movl	%edx, -4(%rsi)
	movl	$0, (%rsi)
	movslq	(%rdi), %rax
	cmpq	%rax, %rdx
	jg	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movslq	(%r8), %rax
	cmpq	%rax, %rdx
	jge	LBB0_7
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	xorl	%eax, %eax
	cmpl	$10, 4(%rcx,%rdx,8)
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r9), %eax
	jmp	LBB0_6
LBB0_8:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RATE_COUNT_LEGACY,4,2          ## @RATE_COUNT_LEGACY
	.comm	_il3945_rates,8,3               ## @il3945_rates
	.comm	_IL39_LAST_OFDM_RATE,4,2        ## @IL39_LAST_OFDM_RATE
	.comm	_IL_FIRST_OFDM_RATE,4,2         ## @IL_FIRST_OFDM_RATE
	.comm	_IEEE80211_RATE_SHORT_PREAMBLE,4,2 ## @IEEE80211_RATE_SHORT_PREAMBLE
	.no_dead_strip	_il3945_init_hw_rates
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function il3945_init_hw_rates
_il3945_init_hw_rates:                  ; @il3945_init_hw_rates
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _RATE_COUNT_LEGACY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RATE_COUNT_LEGACY@GOTPAGEOFF]
	ldr	w9, [x8]
	cmp	w9, #1
	b.lt	LBB0_5
; %bb.1:
	mov	x9, #0
Lloh2:
	adrp	x10, _il3945_rates@GOTPAGE
Lloh3:
	ldr	x10, [x10, _il3945_rates@GOTPAGEOFF]
Lloh4:
	ldr	x10, [x10]
	add	x10, x10, #4
	add	x11, x1, #12
Lloh5:
	adrp	x12, _IL39_LAST_OFDM_RATE@GOTPAGE
Lloh6:
	ldr	x12, [x12, _IL39_LAST_OFDM_RATE@GOTPAGEOFF]
Lloh7:
	adrp	x13, _IL_FIRST_OFDM_RATE@GOTPAGE
Lloh8:
	ldr	x13, [x13, _IL_FIRST_OFDM_RATE@GOTPAGEOFF]
Lloh9:
	adrp	x14, _IEEE80211_RATE_SHORT_PREAMBLE@GOTPAGE
Lloh10:
	ldr	x14, [x14, _IEEE80211_RATE_SHORT_PREAMBLE@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x9, x9, #1
	ldrsw	x15, [x8]
	add	x10, x10, #8
	add	x11, x11, #16
	cmp	x9, x15
	b.ge	LBB0_5
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldur	w15, [x10, #-4]
	add	w15, w15, w15, lsl #2
	stp	w15, w9, [x11, #-12]
	stp	w9, wzr, [x11, #-4]
	ldrsw	x15, [x12]
	ldrsw	x16, [x13]
	cmp	x9, x15
	ccmp	x9, x16, #8, le
	b.ge	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w15, [x10]
	ldr	w16, [x14]
	cmp	w15, #10
	csel	w15, wzr, w16, eq
	str	w15, [x11]
	b	LBB0_2
LBB0_5:
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_RATE_COUNT_LEGACY,4,2          ; @RATE_COUNT_LEGACY
	.comm	_il3945_rates,8,3               ; @il3945_rates
	.comm	_IL39_LAST_OFDM_RATE,4,2        ; @IL39_LAST_OFDM_RATE
	.comm	_IL_FIRST_OFDM_RATE,4,2         ; @IL_FIRST_OFDM_RATE
	.comm	_IEEE80211_RATE_SHORT_PREAMBLE,4,2 ; @IEEE80211_RATE_SHORT_PREAMBLE
	.no_dead_strip	_il3945_init_hw_rates
.subsections_via_symbols
