	.file	"extr_libipw_geo.c_libipw_channel_to_index.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	libipw_channel_to_index
	.type	libipw_channel_to_index, @function
libipw_channel_to_index:
.LFB0:
	.cfi_startproc
	endbr64
	cmp	QWORD PTR 8[rdi], 0
	je	.L9
	mov	r10d, DWORD PTR [rdi]
	test	DWORD PTR LIBIPW_24GHZ_BAND[rip], r10d
	jne	.L16
.L3:
	test	DWORD PTR LIBIPW_52GHZ_BAND[rip], r10d
	je	.L9
	mov	eax, DWORD PTR 12[rdi]
	test	eax, eax
	jle	.L9
	mov	rcx, QWORD PTR 16[rdi]
	lea	edi, -1[rax]
	xor	eax, eax
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L17:
	lea	rdx, 1[rax]
	cmp	rax, rdi
	je	.L9
	mov	rax, rdx
.L5:
	mov	r8d, eax
	cmp	QWORD PTR [rcx+rax*8], rsi
	jne	.L17
	mov	eax, r8d
	ret
	.p2align 4,,10
	.p2align 3
.L16:
	mov	eax, DWORD PTR 8[rdi]
	test	eax, eax
	jle	.L3
	lea	r9d, -1[rax]
	mov	rcx, QWORD PTR 24[rdi]
	xor	eax, eax
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L18:
	lea	rdx, 1[rax]
	cmp	rax, r9
	je	.L3
	mov	rax, rdx
.L4:
	mov	r8d, eax
	cmp	QWORD PTR [rcx+rax*8], rsi
	jne	.L18
	mov	eax, r8d
	ret
	.p2align 4,,10
	.p2align 3
.L9:
	mov	r8d, -1
	mov	eax, r8d
	ret
	.cfi_endproc
.LFE0:
	.size	libipw_channel_to_index, .-libipw_channel_to_index
	.comm	LIBIPW_52GHZ_BAND,4,4
	.comm	LIBIPW_24GHZ_BAND,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_libipw_geo.c_libipw_channel_to_index.c"
	.text
	.align	2
	.global	libipw_channel_to_index
	.syntax unified
	.arm
	.fpu softvfp
	.type	libipw_channel_to_index, %function
libipw_channel_to_index:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	ip, [r0, #4]
	push	{r4, lr}
	cmp	ip, #0
	mov	lr, r0
	bne	.L2
	ldr	r3, [r0, #8]
	cmp	r3, #0
	ldrne	r4, [r0]
	beq	.L10
.L5:
	ldr	r3, .L19
	ldr	r3, [r3]
	tst	r4, r3
	beq	.L10
	ldr	ip, [lr, #8]
	cmp	ip, #0
	ble	.L10
	mov	r0, #0
	ldr	r3, [lr, #12]
	sub	r3, r3, #4
.L7:
	ldr	r2, [r3, #4]!
	cmp	r2, r1
	popeq	{r4, pc}
	add	r0, r0, #1
	cmp	r0, ip
	bne	.L7
.L10:
	mvn	r0, #0
	pop	{r4, pc}
.L2:
	ldr	r3, .L19+4
	ldr	r4, [r0]
	ldr	r3, [r3]
	tst	r4, r3
	beq	.L5
	cmp	ip, #0
	ble	.L5
	mov	r0, #0
	ldr	r3, [lr, #16]
	sub	r3, r3, #4
.L6:
	ldr	r2, [r3, #4]!
	cmp	r2, r1
	popeq	{r4, pc}
	add	r0, r0, #1
	cmp	ip, r0
	bne	.L6
	b	.L5
.L20:
	.align	2
.L19:
	.word	LIBIPW_52GHZ_BAND
	.word	LIBIPW_24GHZ_BAND
	.size	libipw_channel_to_index, .-libipw_channel_to_index
	.comm	LIBIPW_52GHZ_BAND,4,4
	.comm	LIBIPW_24GHZ_BAND,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
