	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_il3945_rs_next_rate            ## -- Begin function il3945_rs_next_rate
	.p2align	4, 0x90
_il3945_rs_next_rate:                   ## @il3945_rs_next_rate
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r12d
	movq	%rdi, %rbx
	movl	%esi, %edi
	callq	_il3945_get_prev_ieee_rate
	movl	%eax, %r14d
	movl	%eax, %r15d
	movl	(%rbx), %eax
	cmpl	$129, %eax
	je	LBB0_5
## %bb.1:
	cmpl	$128, %eax
	jne	LBB0_9
## %bb.2:
	movq	_RATE_12M_IDX@GOTPCREL(%rip), %rax
	cmpl	%r12d, (%rax)
	jne	LBB0_4
## %bb.3:
	movq	_RATE_9M_IDX@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	jmp	LBB0_9
LBB0_5:
	movq	_IL_OFDM_RATES_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 4(%rbx)
	jne	LBB0_9
## %bb.6:
	movq	%rbx, %rdi
	callq	_il_is_associated
	movq	_RATE_11M_IDX@GOTPCREL(%rip), %rcx
	cmpl	%r12d, (%rcx)
	jne	LBB0_8
## %bb.7:
	movq	_RATE_5M_IDX@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r15d
LBB0_8:
	testl	%eax, %eax
	cmovel	%r14d, %r15d
	jmp	LBB0_9
LBB0_4:
	movq	_RATE_6M_IDX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	%r12d, %eax
	cmovel	%eax, %r14d
	movl	%r14d, %r15d
LBB0_9:
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RATE_12M_IDX,4,2               ## @RATE_12M_IDX
	.comm	_RATE_9M_IDX,4,2                ## @RATE_9M_IDX
	.comm	_RATE_6M_IDX,4,2                ## @RATE_6M_IDX
	.comm	_IL_OFDM_RATES_MASK,4,2         ## @IL_OFDM_RATES_MASK
	.comm	_RATE_11M_IDX,4,2               ## @RATE_11M_IDX
	.comm	_RATE_5M_IDX,4,2                ## @RATE_5M_IDX
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_il3945_rs_next_rate            ; -- Begin function il3945_rs_next_rate
	.p2align	2
_il3945_rs_next_rate:                   ; @il3945_rs_next_rate
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x1
	mov	x21, x0
	mov	x0, x1
	bl	_il3945_get_prev_ieee_rate
	mov	x19, x0
	ldr	w8, [x21]
	cmp	w8, #129
	b.eq	LBB0_4
; %bb.1:
	cmp	w8, #128
	b.ne	LBB0_7
; %bb.2:
Lloh0:
	adrp	x8, _RATE_12M_IDX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RATE_12M_IDX@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w20
	b.ne	LBB0_6
; %bb.3:
Lloh3:
	adrp	x8, _RATE_9M_IDX@GOTPAGE
Lloh4:
	ldr	x8, [x8, _RATE_9M_IDX@GOTPAGEOFF]
Lloh5:
	ldr	w19, [x8]
	b	LBB0_7
LBB0_4:
	ldr	w8, [x21, #4]
Lloh6:
	adrp	x9, _IL_OFDM_RATES_MASK@GOTPAGE
Lloh7:
	ldr	x9, [x9, _IL_OFDM_RATES_MASK@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_7
; %bb.5:
	mov	x0, x21
	bl	_il_is_associated
Lloh9:
	adrp	x8, _RATE_11M_IDX@GOTPAGE
Lloh10:
	ldr	x8, [x8, _RATE_11M_IDX@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	cmp	w8, w20
	ccmp	w0, #0, #4, eq
Lloh12:
	adrp	x8, _RATE_5M_IDX@GOTPAGE
Lloh13:
	ldr	x8, [x8, _RATE_5M_IDX@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	csel	w19, w8, w19, ne
	b	LBB0_7
LBB0_6:
Lloh15:
	adrp	x8, _RATE_6M_IDX@GOTPAGE
Lloh16:
	ldr	x8, [x8, _RATE_6M_IDX@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	cmp	w8, w20
	csel	w19, w8, w19, eq
LBB0_7:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_RATE_12M_IDX,4,2               ; @RATE_12M_IDX
	.comm	_RATE_9M_IDX,4,2                ; @RATE_9M_IDX
	.comm	_RATE_6M_IDX,4,2                ; @RATE_6M_IDX
	.comm	_IL_OFDM_RATES_MASK,4,2         ; @IL_OFDM_RATES_MASK
	.comm	_RATE_11M_IDX,4,2               ; @RATE_11M_IDX
	.comm	_RATE_5M_IDX,4,2                ; @RATE_5M_IDX
.subsections_via_symbols
