	.file	"extr_wps_upnp_ssdp.c_advertisement_state_machine_stop.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"WPS UPnP: Advertisement sendto failed: %d (%s)"
	.text
	.p2align 4
	.globl	advertisement_state_machine_stop
	.type	advertisement_state_machine_stop, @function
advertisement_state_machine_stop:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	rdx, rdi
	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
	mov	ebp, esi
	xor	esi, esi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rdi
	sub	rsp, 40
	.cfi_def_cfa_offset 96
	mov	edi, DWORD PTR advertisement_state_machine_handler[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	mov	DWORD PTR 8[rsp], 0
	call	eloop_cancel_timeout@PLT
	test	ebp, ebp
	je	.L1
	cmp	QWORD PTR [rbx], 0
	js	.L1
	mov	eax, DWORD PTR ADVERTISE_DOWN[rip]
	mov	QWORD PTR 8[rbx], 0
	lea	r12, 12[rsp]
	xor	esi, esi
	mov	edx, 12
	mov	rdi, r12
	mov	DWORD PTR 16[rbx], eax
	call	os_memset@PLT
	mov	eax, DWORD PTR AF_INET[rip]
	mov	edi, DWORD PTR UPNP_MULTICAST_ADDRESS[rip]
	mov	DWORD PTR 20[rsp], eax
	call	inet_addr@PLT
	mov	edi, DWORD PTR UPNP_MULTICAST_PORT[rip]
	mov	DWORD PTR 16[rsp], eax
	call	htons@PLT
	mov	edx, DWORD PTR 8[rsp]
	mov	DWORD PTR 12[rsp], eax
	test	edx, edx
	jne	.L1
	lea	r14, 8[rbx]
	lea	r13, 8[rsp]
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L4:
	mov	rdi, rbp
	call	wpabuf_free@PLT
	mov	eax, DWORD PTR 8[rsp]
	add	QWORD PTR 8[rbx], 1
	test	eax, eax
	jne	.L1
.L5:
	mov	rdx, r13
	mov	rsi, r14
	mov	rdi, rbx
	call	next_advertisement@PLT
	mov	rbp, rax
	test	rax, rax
	je	.L1
	mov	rdi, rax
	call	wpabuf_len@PLT
	mov	rdi, rbp
	mov	r15d, eax
	call	wpabuf_head@PLT
	mov	rdi, QWORD PTR [rbx]
	xor	ecx, ecx
	mov	r9d, 12
	mov	esi, eax
	mov	r8, r12
	mov	edx, r15d
	call	sendto@PLT
	test	rax, rax
	jns	.L4
	mov	edi, DWORD PTR errno[rip]
	call	strerror@PLT
	mov	edx, DWORD PTR errno[rip]
	mov	edi, DWORD PTR MSG_INFO[rip]
	lea	rsi, .LC0[rip]
	mov	ecx, eax
	call	wpa_printf@PLT
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L1:
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L13
	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
.L13:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	advertisement_state_machine_stop, .-advertisement_state_machine_stop
	.comm	errno,4,4
	.comm	advertisement_state_machine_handler,4,4
	.comm	UPNP_MULTICAST_PORT,4,4
	.comm	UPNP_MULTICAST_ADDRESS,4,4
	.comm	MSG_INFO,4,4
	.comm	AF_INET,4,4
	.comm	ADVERTISE_DOWN,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_wps_upnp_ssdp.c_advertisement_state_machine_stop.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"WPS UPnP: Advertisement sendto failed: %d (%s)\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	advertisement_state_machine_stop
	.syntax unified
	.arm
	.fpu softvfp
	.type	advertisement_state_machine_stop, %function
advertisement_state_machine_stop:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r7, #0
	mov	r4, r1
	ldr	r3, .L15
	mov	r2, r0
	mov	r5, r0
	ldr	r0, [r3]
	ldr	r3, .L15+4
	sub	sp, sp, #36
	mov	r1, r7
	ldr	r3, [r3]
	str	r3, [sp, #28]
	mov	r3,#0
	str	r7, [sp, #12]
	bl	eloop_cancel_timeout
	cmp	r4, r7
	beq	.L1
	ldr	r3, [r5]
	cmp	r3, r7
	blt	.L1
	ldr	r3, .L15+8
	add	r6, sp, #16
	ldr	r3, [r3]
	mov	r1, r7
	mov	r2, #12
	str	r3, [r5, #8]
	mov	r0, r6
	str	r7, [r5, #4]
	bl	os_memset
	ldr	r3, .L15+12
	ldr	r2, .L15+16
	ldr	r3, [r3]
	ldr	r0, [r2]
	str	r3, [sp, #24]
	bl	inet_addr
	ldr	r3, .L15+20
	str	r0, [sp, #20]
	ldr	r0, [r3]
	bl	htons
	ldr	r3, [sp, #12]
	str	r0, [sp, #16]
	cmp	r3, r7
	bne	.L1
	ldr	r10, .L15+24
	ldr	r8, .L15+28
	add	r7, r5, #4
	b	.L5
.L4:
	mov	r0, r4
	bl	wpabuf_free
	ldr	r3, [r5, #4]
	ldr	r2, [sp, #12]
	add	r3, r3, #1
	cmp	r2, #0
	str	r3, [r5, #4]
	bne	.L1
.L5:
	mov	r1, r7
	mov	r0, r5
	add	r2, sp, #12
	bl	next_advertisement
	subs	r4, r0, #0
	beq	.L1
	ldr	r9, [r5]
	bl	wpabuf_head
	mov	fp, r0
	mov	r0, r4
	bl	wpabuf_len
	mov	ip, #12
	mov	r2, r0
	mov	r1, fp
	mov	r0, r9
	mov	r3, #0
	stm	sp, {r6, ip}
	bl	sendto
	cmp	r0, #0
	bge	.L4
	ldr	r3, .L15+32
	ldr	fp, [r10]
	ldr	r9, [r3]
	mov	r0, r9
	bl	strerror
	mov	r2, r9
	mov	r3, r0
	mov	r1, r8
	mov	r0, fp
	bl	wpa_printf
	b	.L4
.L1:
	ldr	r3, .L15+4
	ldr	r2, [r3]
	ldr	r3, [sp, #28]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L14
	add	sp, sp, #36
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L14:
	bl	__stack_chk_fail
.L16:
	.align	2
.L15:
	.word	advertisement_state_machine_handler
	.word	.LC1
	.word	ADVERTISE_DOWN
	.word	AF_INET
	.word	UPNP_MULTICAST_ADDRESS
	.word	UPNP_MULTICAST_PORT
	.word	MSG_INFO
	.word	.LC0
	.word	errno
	.size	advertisement_state_machine_stop, .-advertisement_state_machine_stop
	.comm	errno,4,4
	.comm	advertisement_state_machine_handler,4,4
	.comm	UPNP_MULTICAST_PORT,4,4
	.comm	UPNP_MULTICAST_ADDRESS,4,4
	.comm	MSG_INFO,4,4
	.comm	AF_INET,4,4
	.comm	ADVERTISE_DOWN,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
