	.file	"extr_mesh_rsn.c_mesh_rsn_sae_group.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"SME: Selected SAE group %d"
	.text
	.p2align 4
	.type	mesh_rsn_sae_group, @function
mesh_rsn_sae_group:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rax, QWORD PTR 8[rdi]
	mov	rbx, rsi
	mov	rax, QWORD PTR [rax]
	mov	rax, QWORD PTR [rax]
	mov	rax, QWORD PTR [rax]
	mov	rbp, QWORD PTR [rax]
	mov	rax, QWORD PTR [rdi]
	mov	rsi, QWORD PTR [rax]
	mov	rdi, rbp
	call	index_within_array@PLT
	test	eax, eax
	je	.L2
	mov	rax, QWORD PTR [r12]
	mov	rax, QWORD PTR [rax]
	mov	esi, DWORD PTR 0[rbp+rax*4]
	test	esi, esi
	jg	.L5
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L3:
	mov	rdx, QWORD PTR [r12]
	mov	rax, QWORD PTR [rdx]
	add	rax, 1
	mov	esi, DWORD PTR 0[rbp+rax*4]
	mov	QWORD PTR [rdx], rax
	test	esi, esi
	jle	.L2
.L5:
	mov	rdi, rbx
	call	sae_set_group@PLT
	test	rax, rax
	jne	.L3
	mov	ecx, DWORD PTR [rbx]
	mov	esi, DWORD PTR MSG_DEBUG[rip]
	mov	rdi, r12
	lea	rdx, .LC0[rip]
	call	wpa_dbg@PLT
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xor	eax, eax
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	pop	rbx
	.cfi_def_cfa_offset 24
	mov	eax, -1
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	mesh_rsn_sae_group, .-mesh_rsn_sae_group
	.comm	MSG_DEBUG,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_mesh_rsn.c_mesh_rsn_sae_group.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"SME: Selected SAE group %d\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	mesh_rsn_sae_group, %function
mesh_rsn_sae_group:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldm	r0, {r2, r3}
	ldr	r3, [r3]
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r3, [r3]
	mov	r7, r0
	ldr	r3, [r3]
	mov	r5, r1
	ldr	r6, [r3]
	ldr	r1, [r2]
	mov	r0, r6
	bl	index_within_array
	cmp	r0, #0
	beq	.L2
	ldr	r3, [r7]
	ldr	r3, [r3]
	ldr	r1, [r6, r3, lsl #2]
	cmp	r1, #0
	bgt	.L5
	b	.L2
.L3:
	ldr	r2, [r7]
	ldr	r3, [r2]
	add	r3, r3, #1
	ldr	r1, [r6, r3, lsl #2]
	str	r3, [r2]
	cmp	r1, #0
	ble	.L2
.L5:
	mov	r0, r5
	bl	sae_set_group
	subs	r4, r0, #0
	bne	.L3
	ldr	r2, .L12
	mov	r0, r7
	ldr	r1, [r2]
	ldr	r3, [r5]
	ldr	r2, .L12+4
	bl	wpa_dbg
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L2:
	mvn	r4, #0
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L13:
	.align	2
.L12:
	.word	MSG_DEBUG
	.word	.LC0
	.size	mesh_rsn_sae_group, .-mesh_rsn_sae_group
	.comm	MSG_DEBUG,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
