	.file	"extr_if_upgt.c_upgt_setup_rates.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	upgt_setup_rates, @function
upgt_setup_rates:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rbx, rsi
	add	rsp, -128
	.cfi_def_cfa_offset 160
	mov	rbp, QWORD PTR [rdi]
	mov	edi, DWORD PTR 8[rsi]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 120[rsp], rax
	xor	eax, eax
	mov	r12, QWORD PTR 16[rsi]
	movabs	rax, 81604378643
	mov	QWORD PTR [rsp], rax
	movabs	rax, 73014444050
	mov	QWORD PTR 8[rsp], rax
	movabs	rax, 68719476753
	mov	QWORD PTR 16[rsp], rax
	sub	rax, 1
	mov	QWORD PTR 24[rsp], rax
	movabs	rax, 42949672971
	mov	QWORD PTR 32[rsp], rax
	movabs	rax, 34359738377
	mov	QWORD PTR 40[rsp], rax
	movabs	rax, 25769803783
	mov	QWORD PTR 48[rsp], rax
	movabs	rax, 4294967300
	mov	QWORD PTR 56[rsp], rax
	movabs	rax, 73014444048
	mov	QWORD PTR 64[rsp], rax
	movabs	rax, 81604378642
	mov	QWORD PTR 72[rsp], rax
	movabs	rax, 17179869185
	mov	QWORD PTR 80[rsp], rax
	movabs	rax, 30064771078
	mov	QWORD PTR 88[rsp], rax
	movabs	rax, 38654705672
	mov	QWORD PTR 96[rsp], rax
	movabs	rax, 47244640266
	mov	QWORD PTR 104[rsp], rax
	call	ieee80211_chan2mode@PLT
	mov	rax, QWORD PTR 0[rbp+rax*8]
	cmp	rax, QWORD PTR IEEE80211_FIXED_RATE_NONE[rip]
	jne	.L2
	mov	rax, QWORD PTR [rbx]
	cmp	rax, QWORD PTR IEEE80211_MODE_11B[rip]
	je	.L9
	cmp	QWORD PTR IEEE80211_MODE_11G[rip], rax
	je	.L4
.L11:
	cmp	QWORD PTR IEEE80211_MODE_AUTO[rip], rax
	je	.L4
.L1:
	mov	rax, QWORD PTR 120[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L10
	sub	rsp, -128
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L4:
	.cfi_restore_state
	mov	edi, DWORD PTR [r12]
	lea	rsi, 32[rsp]
	mov	edx, 4
	call	memcpy@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L2:
	mov	esi, DWORD PTR 64[rsp+rax*4]
	mov	edi, DWORD PTR [r12]
	mov	edx, 4
	call	memset@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L9:
	mov	edi, DWORD PTR [r12]
	mov	rsi, rsp
	mov	edx, 4
	call	memcpy@PLT
	mov	rax, QWORD PTR [rbx]
	cmp	QWORD PTR IEEE80211_MODE_11G[rip], rax
	jne	.L11
	jmp	.L4
.L10:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	upgt_setup_rates, .-upgt_setup_rates
	.comm	IEEE80211_MODE_AUTO,8,8
	.comm	IEEE80211_MODE_11G,8,8
	.comm	IEEE80211_MODE_11B,8,8
	.comm	IEEE80211_FIXED_RATE_NONE,8,8
	.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_if_upgt.c_upgt_setup_rates.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	upgt_setup_rates, %function
upgt_setup_rates:
	@ args = 0, pretend = 0, frame = 120
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	mov	r6, r1
	mov	r7, r0
	sub	sp, sp, #124
	ldr	r3, .L12
	ldr	ip, .L12+4
	add	r5, sp, #4
	ldr	r3, [r3]
	str	r3, [sp, #116]
	mov	r3,#0
	ldmia	ip!, {r0, r1, r2, r3}
	stmia	r5!, {r0, r1, r2, r3}
	ldm	ip, {r0, r1, r2, r3}
	add	lr, ip, #16
	add	r4, sp, #36
	stm	r5, {r0, r1, r2, r3}
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	r4!, {r0, r1, r2, r3}
	ldm	lr, {r0, r1, r2, r3}
	add	ip, ip, #48
	add	lr, sp, #68
	ldr	r5, [r6, #8]
	stm	r4, {r0, r1, r2, r3}
	ldmia	ip!, {r0, r1, r2, r3}
	stmia	lr!, {r0, r1, r2, r3}
	ldmia	ip!, {r0, r1, r2, r3}
	stmia	lr!, {r0, r1, r2, r3}
	ldm	ip, {r0, r1, r2, r3}
	stm	lr, {r0, r1, r2, r3}
	ldr	r0, [r6, #4]
	ldr	r4, [r7]
	bl	ieee80211_chan2mode
	ldr	r2, .L12+8
	ldr	r3, [r4, r0, lsl #2]
	ldr	r2, [r2]
	cmp	r3, r2
	bne	.L2
	ldr	r2, .L12+12
	ldr	r3, [r6]
	ldr	r2, [r2]
	cmp	r3, r2
	beq	.L9
	ldr	r2, .L12+16
	ldr	r2, [r2]
	cmp	r2, r3
	beq	.L4
.L11:
	ldr	r2, .L12+20
	ldr	r2, [r2]
	cmp	r2, r3
	beq	.L4
.L1:
	ldr	r3, .L12
	ldr	r2, [r3]
	ldr	r3, [sp, #116]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L10
	add	sp, sp, #124
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L4:
	mov	r2, #4
	ldr	r0, [r5]
	add	r1, sp, #36
	bl	memcpy
	b	.L1
.L2:
	add	r2, sp, #120
	add	r3, r2, r3, lsl #2
	ldr	r1, [r3, #-52]
	mov	r2, #4
	ldr	r0, [r5]
	bl	memset
	b	.L1
.L9:
	mov	r2, #4
	ldr	r0, [r5]
	add	r1, sp, #4
	bl	memcpy
	ldr	r2, .L12+16
	ldr	r3, [r6]
	ldr	r2, [r2]
	cmp	r2, r3
	bne	.L11
	b	.L4
.L10:
	bl	__stack_chk_fail
.L13:
	.align	2
.L12:
	.word	.LC3
	.word	.LANCHOR0
	.word	IEEE80211_FIXED_RATE_NONE
	.word	IEEE80211_MODE_11B
	.word	IEEE80211_MODE_11G
	.word	IEEE80211_MODE_AUTO
	.size	upgt_setup_rates, .-upgt_setup_rates
	.comm	IEEE80211_MODE_AUTO,4,4
	.comm	IEEE80211_MODE_11G,4,4
	.comm	IEEE80211_MODE_11B,4,4
	.comm	IEEE80211_FIXED_RATE_NONE,4,4
	.section	.rodata
	.align	2
	.set	.LANCHOR0,. + 0
.LC0:
	.word	19
	.word	19
	.word	18
	.word	17
	.word	17
	.word	16
	.word	16
	.word	16
.LC1:
	.word	11
	.word	10
	.word	9
	.word	8
	.word	7
	.word	6
	.word	4
	.word	1
.LC2:
	.word	16
	.word	17
	.word	18
	.word	19
	.word	1
	.word	4
	.word	6
	.word	7
	.word	8
	.word	9
	.word	10
	.word	11
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
