	.file	"extr_base.c_ath5k_hw_to_driver_rix.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"hw_rix out of bounds: %x\n"
.LC1:
	.string	"invalid hw_rix: %x\n"
	.text
	.p2align 4
	.type	ath5k_hw_to_driver_rix, @function
ath5k_hw_to_driver_rix:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12d, esi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rbx, rdi
	mov	edi, 1
	test	esi, esi
	js	.L2
	xor	edi, edi
	cmp	DWORD PTR AR5K_MAX_RATES[rip], esi
	setle	dil
.L2:
	mov	edx, r12d
	lea	rsi, .LC0[rip]
	call	WARN@PLT
	test	rax, rax
	je	.L13
.L3:
	xor	r13d, r13d
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	mov	eax, r13d
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L13:
	.cfi_restore_state
	mov	rax, QWORD PTR 8[rbx]
	movsx	rdx, r12d
	lea	rsi, .LC1[rip]
	mov	rcx, QWORD PTR [rax]
	mov	rax, QWORD PTR [rbx]
	mov	rax, QWORD PTR [rax+rcx*8]
	mov	r13d, DWORD PTR [rax+rdx*4]
	mov	edx, r12d
	mov	edi, r13d
	shr	edi, 31
	call	WARN@PLT
	test	rax, rax
	jne	.L3
	mov	eax, r13d
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	ath5k_hw_to_driver_rix, .-ath5k_hw_to_driver_rix
	.comm	AR5K_MAX_RATES,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_base.c_ath5k_hw_to_driver_rix.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"hw_rix out of bounds: %x\012\000"
	.align	2
.LC1:
	.ascii	"invalid hw_rix: %x\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ath5k_hw_to_driver_rix, %function
ath5k_hw_to_driver_rix:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	subs	r4, r1, #0
	mov	r5, r0
	movlt	r0, #1
	blt	.L2
	ldr	r3, .L13
	ldr	r0, [r3]
	cmp	r0, r4
	movgt	r0, #0
	movle	r0, #1
.L2:
	mov	r2, r4
	ldr	r1, .L13+4
	bl	WARN
	cmp	r0, #0
	beq	.L12
.L3:
	mov	r4, #0
	mov	r0, r4
	pop	{r4, r5, r6, pc}
.L12:
	ldr	r2, [r5, #4]
	ldr	r3, [r5]
	ldr	r1, [r2]
	mov	r2, r4
	ldr	r3, [r3, r1, lsl #2]
	ldr	r1, .L13+8
	ldr	r4, [r3, r4, lsl #2]
	lsr	r0, r4, #31
	bl	WARN
	cmp	r0, #0
	bne	.L3
	mov	r0, r4
	pop	{r4, r5, r6, pc}
.L14:
	.align	2
.L13:
	.word	AR5K_MAX_RATES
	.word	.LC0
	.word	.LC1
	.size	ath5k_hw_to_driver_rix, .-ath5k_hw_to_driver_rix
	.comm	AR5K_MAX_RATES,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
