	.file	"extr_p2p_supplicant.c_wpas_p2p_optimize_listen_channel.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"P2P: Update Listen channel to %u based on operating channel"
	.text
	.p2align 4
	.type	wpas_p2p_optimize_listen_channel, @function
wpas_p2p_optimize_listen_channel:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 40
	.cfi_def_cfa_offset 96
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	mov	rax, QWORD PTR 24[rdi]
	mov	ecx, DWORD PTR [rax]
	test	ecx, ecx
	je	.L1
	mov	eax, DWORD PTR 16[rdi]
	mov	r15, rdi
	test	eax, eax
	je	.L1
	mov	rax, QWORD PTR WPA_COMPLETED[rip]
	cmp	QWORD PTR [rdi], rax
	je	.L17
.L1:
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L18
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L17:
	.cfi_restore_state
	mov	rax, QWORD PTR 8[rdi]
	mov	DWORD PTR 4[rsp], edx
	mov	QWORD PTR 8[rsp], rsi
	mov	edi, DWORD PTR [rax]
	call	p2p_get_listen_channel@PLT
	mov	edx, DWORD PTR 4[rsp]
	mov	ebp, eax
	test	edx, edx
	je	.L1
	mov	rsi, QWORD PTR 8[rsp]
	lea	eax, -1[rdx]
	xor	r12d, r12d
	lea	r13, 20[rsp]
	mov	rbx, rsi
	lea	r14, 4[rsi+rax*4]
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L20:
	cmp	ecx, 11
	ja	.L3
	mov	eax, 2114
	shr	rax, cl
	test	al, 1
	cmovne	r12d, ecx
.L3:
	add	rbx, 4
	cmp	rbx, r14
	je	.L19
.L4:
	mov	edi, DWORD PTR [rbx]
	mov	rsi, r13
	call	ieee80211_freq_to_chan@PLT
	mov	ecx, DWORD PTR 20[rsp]
	cmp	ecx, ebp
	jne	.L20
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L19:
	test	r12d, r12d
	je	.L1
	mov	esi, DWORD PTR MSG_DEBUG[rip]
	mov	ecx, r12d
	mov	rdi, r15
	lea	rdx, .LC0[rip]
	call	wpa_dbg@PLT
	mov	rax, QWORD PTR 8[r15]
	xor	ecx, ecx
	mov	edx, r12d
	mov	esi, 81
	mov	edi, DWORD PTR [rax]
	call	p2p_set_listen_channel@PLT
	jmp	.L1
.L18:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	wpas_p2p_optimize_listen_channel, .-wpas_p2p_optimize_listen_channel
	.comm	WPA_COMPLETED,8,8
	.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_p2p_supplicant.c_wpas_p2p_optimize_listen_channel.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"P2P: Update Listen channel to %u based on operating"
	.ascii	" channel\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	wpas_p2p_optimize_listen_channel, %function
wpas_p2p_optimize_listen_channel:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, lr}
	ldr	r3, [r0, #12]
	sub	sp, sp, #12
	ldr	r3, [r3]
	cmp	r3, #0
	ldr	r3, .L29
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	beq	.L1
	ldr	r3, [r0, #8]
	mov	r6, r0
	cmp	r3, #0
	beq	.L1
	ldr	r3, .L29+4
	mov	r7, r2
	ldr	r3, [r3]
	ldr	r2, [r0]
	cmp	r2, r3
	beq	.L25
.L1:
	ldr	r3, .L29
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L26
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L25:
	ldr	r3, [r0, #4]
	mov	r5, r1
	ldr	r0, [r3]
	bl	p2p_get_listen_channel
	cmp	r7, #0
	mov	r8, r0
	beq	.L1
	mov	r4, #0
	sub	r5, r5, #4
	mov	r9, r4
	b	.L4
.L28:
	cmp	r1, #6
	cmpne	r1, #1
	moveq	ip, #1
	movne	ip, #0
	cmp	r1, #11
	orreq	ip, ip, #1
	add	r4, r4, #1
	cmp	ip, #0
	movne	r9, r1
	cmp	r7, r4
	beq	.L27
.L4:
	mov	r1, sp
	ldr	r0, [r5, #4]!
	bl	ieee80211_freq_to_chan
	ldr	r1, [sp]
	cmp	r1, r8
	bne	.L28
	b	.L1
.L27:
	cmp	r9, #0
	beq	.L1
	ldr	r2, .L29+8
	mov	r3, r9
	ldr	r1, [r2]
	mov	r0, r6
	ldr	r2, .L29+12
	bl	wpa_dbg
	ldr	r3, [r6, #4]
	mov	r2, r9
	mov	r1, #81
	ldr	r0, [r3]
	mov	r3, #0
	bl	p2p_set_listen_channel
	b	.L1
.L26:
	bl	__stack_chk_fail
.L30:
	.align	2
.L29:
	.word	.LC1
	.word	WPA_COMPLETED
	.word	MSG_DEBUG
	.word	.LC0
	.size	wpas_p2p_optimize_listen_channel, .-wpas_p2p_optimize_listen_channel
	.comm	WPA_COMPLETED,4,4
	.comm	MSG_DEBUG,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
