	.file	"extr_ctrl_iface_udp.c_wpa_supplicant_ctrl_iface_receive.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"recvfrom(ctrl_iface): %s"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC1:
	.string	"CTRL: Drop packet from unexpected source %s"
	.section	.rodata.str1.1
.LC2:
	.string	"GET_COOKIE"
.LC3:
	.string	"COOKIE="
	.section	.rodata.str1.8
	.align 8
.LC4:
	.string	"CTLR: No cookie in the request - drop request"
	.align 8
.LC5:
	.string	"CTLR: Invalid cookie format in the request - drop request"
	.align 8
.LC6:
	.string	"CTLR: Invalid cookie in the request - drop request"
	.section	.rodata.str1.1
.LC7:
	.string	"ATTACH"
.LC8:
	.string	"OK\n"
.LC9:
	.string	"DETACH"
.LC10:
	.string	"LEVEL "
.LC11:
	.string	"FAIL\n"
	.text
	.p2align 4
	.type	wpa_supplicant_ctrl_iface_receive, @function
wpa_supplicant_ctrl_iface_receive:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r15
	push	r14
	push	r13
	push	r12
	push	rbx
	sub	rsp, 4096
	or	QWORD PTR [rsp], 0
	sub	rsp, 88
	.cfi_offset 15, -24
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	mov	QWORD PTR -4200[rbp], rsi
	mov	r13, rdx
	mov	rcx, rsp
	mov	r12d, edi
	mov	rbx, rsp
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -56[rbp], rax
	xor	eax, eax
	movsx	rax, DWORD PTR COOKIE_LEN[rip]
	mov	DWORD PTR -4188[rbp], 16
	mov	QWORD PTR -4184[rbp], 0
	lea	rax, 15[0+rax*4]
	mov	rdx, rax
	and	rax, -4096
	sub	rcx, rax
	and	rdx, -16
	mov	rax, rcx
	cmp	rsp, rax
	je	.L3
.L36:
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	cmp	rsp, rax
	jne	.L36
.L3:
	and	edx, 4095
	sub	rsp, rdx
	test	rdx, rdx
	jne	.L37
.L4:
	lea	rax, -4176[rbp]
	lea	r15, -4160[rbp]
	xor	ecx, ecx
	mov	edx, 4095
	lea	r9, -4188[rbp]
	mov	r8, rax
	mov	rsi, r15
	mov	edi, r12d
	mov	QWORD PTR -4216[rbp], rsp
	mov	QWORD PTR -4224[rbp], rax
	call	recvfrom@PLT
	mov	DWORD PTR -4204[rbp], eax
	test	eax, eax
	js	.L38
	mov	r14, QWORD PTR -4176[rbp]
	mov	edi, 2130706433
	call	htonl@PLT
	cmp	r14, rax
	je	.L7
	mov	rdi, QWORD PTR -4176[rbp]
	call	inet_ntoa@PLT
	mov	edi, DWORD PTR MSG_DEBUG[rip]
	lea	rsi, .LC1[rip]
	mov	edx, eax
	xor	eax, eax
	call	wpa_printf@PLT
.L6:
	mov	rax, QWORD PTR -56[rbp]
	xor	rax, QWORD PTR fs:40
	mov	rsp, rbx
	jne	.L39
	lea	rsp, -40[rbp]
	pop	rbx
	pop	r12
	pop	r13
	pop	r14
	pop	r15
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	movsx	rax, DWORD PTR -4204[rbp]
	lea	rsi, .LC2[rip]
	mov	rdi, r15
	mov	BYTE PTR -4160[rbp+rax], 0
	call	os_strcmp@PLT
	test	rax, rax
	je	.L40
	mov	edx, 7
	lea	rsi, .LC3[rip]
	mov	rdi, r15
	call	os_strncmp@PLT
	test	rax, rax
	jne	.L41
	mov	edx, DWORD PTR COOKIE_LEN[rip]
	mov	rsi, QWORD PTR -4216[rbp]
	lea	rdi, -4153[rbp]
	call	hexstr2bin@PLT
	test	rax, rax
	js	.L42
	mov	esi, DWORD PTR 4[r13]
	mov	edx, DWORD PTR COOKIE_LEN[rip]
	mov	rdi, QWORD PTR -4216[rbp]
	call	os_memcmp@PLT
	test	rax, rax
	jne	.L43
	mov	eax, DWORD PTR COOKIE_LEN[rip]
	add	eax, eax
	cdqe
	lea	r14, 7[r15+rax]
	cmp	BYTE PTR [r14], 32
	jne	.L13
	.p2align 4,,10
	.p2align 3
.L14:
	add	r14, 1
	cmp	BYTE PTR [r14], 32
	je	.L14
.L13:
	lea	rsi, .LC7[rip]
	mov	rdi, r14
	call	os_strcmp@PLT
	test	rax, rax
	je	.L44
	lea	rsi, .LC9[rip]
	mov	rdi, r14
	call	os_strcmp@PLT
	test	rax, rax
	jne	.L19
	mov	edx, DWORD PTR -4188[rbp]
	mov	rsi, QWORD PTR -4224[rbp]
	mov	rdi, r13
	call	wpa_supplicant_ctrl_iface_detach@PLT
	test	rax, rax
	jne	.L20
.L22:
	mov	QWORD PTR -4184[rbp], 2
.L24:
	mov	r9d, DWORD PTR -4188[rbp]
	xor	ecx, ecx
	mov	edx, 3
	mov	edi, r12d
	mov	r8, QWORD PTR -4224[rbp]
	lea	rsi, .LC8[rip]
	call	sendto@PLT
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L38:
	mov	edi, DWORD PTR errno[rip]
	call	strerror@PLT
	mov	edi, DWORD PTR MSG_ERROR[rip]
	lea	rsi, .LC0[rip]
	mov	edx, eax
	xor	eax, eax
	call	wpa_printf@PLT
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L37:
	or	QWORD PTR -8[rsp+rdx], 0
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L41:
	mov	edi, DWORD PTR MSG_DEBUG[rip]
	lea	rsi, .LC4[rip]
	xor	eax, eax
	call	wpa_printf@PLT
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L40:
	mov	rdi, r13
	lea	rsi, -4184[rbp]
	call	wpa_supplicant_ctrl_iface_get_cookie@PLT
	mov	r13, rax
.L9:
	mov	rdx, QWORD PTR -4184[rbp]
	test	r13, r13
	je	.L23
	mov	r9d, DWORD PTR -4188[rbp]
	mov	edi, r12d
	xor	ecx, ecx
	mov	rsi, r13
	mov	r8, QWORD PTR -4224[rbp]
	call	sendto@PLT
	mov	rdi, r13
	call	os_free@PLT
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L23:
	cmp	rdx, 1
	je	.L17
	cmp	rdx, 2
	jne	.L6
	jmp	.L24
	.p2align 4,,10
	.p2align 3
.L44:
	mov	edx, DWORD PTR -4188[rbp]
	mov	rsi, QWORD PTR -4224[rbp]
	mov	rdi, r13
	call	wpa_supplicant_ctrl_iface_attach@PLT
	test	rax, rax
	je	.L16
.L20:
	mov	QWORD PTR -4184[rbp], 1
.L17:
	mov	r9d, DWORD PTR -4188[rbp]
	xor	ecx, ecx
	mov	edx, 5
	mov	edi, r12d
	mov	r8, QWORD PTR -4224[rbp]
	lea	rsi, .LC11[rip]
	call	sendto@PLT
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L16:
	mov	r9d, DWORD PTR -4188[rbp]
	mov	r8, QWORD PTR -4224[rbp]
	mov	edi, r12d
	xor	ecx, ecx
	mov	edx, 3
	lea	rsi, .LC8[rip]
	mov	QWORD PTR -4184[rbp], 2
	call	sendto@PLT
	mov	rax, QWORD PTR -4200[rbp]
	mov	edi, DWORD PTR [rax]
	call	eapol_sm_notify_ctrl_attached@PLT
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L42:
	mov	edi, DWORD PTR MSG_DEBUG[rip]
	lea	rsi, .LC5[rip]
	xor	eax, eax
	call	wpa_printf@PLT
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L43:
	mov	edi, DWORD PTR MSG_DEBUG[rip]
	lea	rsi, .LC6[rip]
	xor	eax, eax
	call	wpa_printf@PLT
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L19:
	mov	edx, 6
	lea	rsi, .LC10[rip]
	mov	rdi, r14
	call	os_strncmp@PLT
	test	rax, rax
	jne	.L21
	mov	edx, DWORD PTR -4188[rbp]
	mov	rsi, QWORD PTR -4224[rbp]
	lea	rcx, 6[r14]
	mov	rdi, r13
	call	wpa_supplicant_ctrl_iface_level@PLT
	test	rax, rax
	jne	.L20
	jmp	.L22
	.p2align 4,,10
	.p2align 3
.L21:
	mov	rdi, QWORD PTR -4200[rbp]
	lea	rdx, -4184[rbp]
	mov	rsi, r14
	call	wpa_supplicant_ctrl_iface_process@PLT
	mov	r13, rax
	jmp	.L9
.L39:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	wpa_supplicant_ctrl_iface_receive, .-wpa_supplicant_ctrl_iface_receive
	.comm	errno,4,4
	.comm	MSG_ERROR,4,4
	.comm	MSG_DEBUG,4,4
	.comm	INET6_ADDRSTRLEN,4,4
	.comm	COOKIE_LEN,4,4
	.comm	AF_INET6,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_ctrl_iface_udp.c_wpa_supplicant_ctrl_iface_receive.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"recvfrom(ctrl_iface): %s\000"
	.align	2
.LC1:
	.ascii	"CTRL: Drop packet from unexpected source %s\000"
	.align	2
.LC2:
	.ascii	"GET_COOKIE\000"
	.align	2
.LC3:
	.ascii	"COOKIE=\000"
	.align	2
.LC4:
	.ascii	"CTLR: No cookie in the request - drop request\000"
	.align	2
.LC5:
	.ascii	"CTLR: Invalid cookie format in the request - drop r"
	.ascii	"equest\000"
	.align	2
.LC6:
	.ascii	"CTLR: Invalid cookie in the request - drop request\000"
	.align	2
.LC7:
	.ascii	"ATTACH\000"
	.align	2
.LC8:
	.ascii	"OK\012\000"
	.align	2
.LC9:
	.ascii	"DETACH\000"
	.align	2
.LC10:
	.ascii	"LEVEL \000"
	.align	2
.LC11:
	.ascii	"FAIL\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC12:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	wpa_supplicant_ctrl_iface_receive, %function
wpa_supplicant_ctrl_iface_receive:
	@ args = 0, pretend = 0, frame = 4136
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	add	fp, sp, #32
	sub	sp, sp, #4096
	sub	sp, sp, #52
	mov	lr, #8
	mov	ip, r1
	mov	r10, #0
	ldr	r7, .L37
	mov	r6, r2
	ldr	r2, [r7]
	sub	r4, fp, #4096
	ldr	r3, .L37+4
	lsl	r2, r2, #2
	sub	r4, r4, #36
	add	r2, r2, #7
	ldr	r3, [r3]
	str	r3, [fp, #-40]
	mov	r3,#0
	bic	r2, r2, #7
	str	lr, [r4, #-20]
	sub	lr, fp, #4160
	sub	lr, lr, #12
	mov	r9, sp
	sub	r8, r4, #12
	sub	sp, sp, r2
	sub	r2, r4, #20
	str	r10, [r4, #-16]
	str	r2, [sp, #4]
	str	r8, [sp]
	str	ip, [lr]
	sub	ip, fp, #4160
	sub	r1, fp, #4096
	mov	r3, r10
	ldr	r2, .L37+8
	sub	r1, r1, #40
	str	r0, [ip, #-8]
	sub	ip, ip, #8
	bl	recvfrom
	sub	r2, fp, #4160
	subs	r3, r0, #0
	str	r3, [r2]
	sub	r2, fp, #4160
	add	r3, sp, #8
	sub	r2, r2, #4
	str	r3, [r2]
	blt	.L31
	ldr	r0, .L37+12
	ldr	r5, [r4, #-12]
	bl	htonl
	cmp	r5, r0
	beq	.L4
	ldr	r3, .L37+16
	ldr	r0, [r4, #-12]
	ldr	r4, [r3]
	bl	inet_ntoa
	ldr	r1, .L37+20
	mov	r2, r0
	mov	r0, r4
	bl	wpa_printf
.L3:
	ldr	r3, .L37+4
	mov	sp, r9
	ldr	r2, [r3]
	ldr	r3, [fp, #-40]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L32
	sub	sp, fp, #32
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L4:
	sub	r3, fp, #4160
	ldr	r3, [r3]
	sub	r0, fp, #4096
	add	r5, r4, r3
	ldr	r1, .L37+24
	sub	r0, r0, #40
	strb	r10, [r5, #-4]
	bl	os_strcmp
	cmp	r0, #0
	beq	.L33
	sub	r0, fp, #4096
	mov	r2, #7
	ldr	r1, .L37+28
	sub	r0, r0, #40
	bl	os_strncmp
	cmp	r0, #0
	bne	.L34
	sub	r3, fp, #4160
	ldr	r2, [r7]
	add	r0, r4, #3
	ldr	r1, [r3, #-4]
	sub	r3, r3, #4
	bl	hexstr2bin
	cmp	r0, #0
	blt	.L35
	sub	r3, fp, #4160
	ldr	r2, [r7]
	ldr	r1, [r6, #4]
	ldr	r0, [r3, #-4]
	sub	r3, r3, #4
	bl	os_memcmp
	cmp	r0, #0
	bne	.L36
	ldr	r5, [r7]
	sub	r3, fp, #4096
	lsl	r5, r5, #1
	add	r5, r5, #7
	sub	r3, r3, #40
	ldrb	r3, [r3, r5]	@ zero_extendqisi2
	sub	r2, fp, #4096
	sub	r2, r2, #40
	cmp	r3, #32
	add	r5, r2, r5
	bne	.L10
.L11:
	ldrb	r3, [r5, #1]!	@ zero_extendqisi2
	cmp	r3, #32
	beq	.L11
.L10:
	mov	r0, r5
	ldr	r1, .L37+32
	bl	os_strcmp
	cmp	r0, #0
	bne	.L12
	mov	r0, r6
	mov	r1, r8
	ldr	r2, [r4, #-20]
	bl	wpa_supplicant_ctrl_iface_attach
	subs	r3, r0, #0
	beq	.L13
.L17:
	mov	r3, #1
	str	r3, [r4, #-16]
.L14:
	ldr	r3, [r4, #-20]
	sub	r2, fp, #4160
	ldr	r0, [r2, #-8]
	sub	r2, r2, #8
	str	r3, [sp, #4]
	mov	r2, #5
	mov	r3, #0
	ldr	r1, .L37+36
	str	r8, [sp]
	bl	sendto
	b	.L3
.L31:
	ldr	r3, .L37+40
	ldr	r2, .L37+44
	ldr	r0, [r3]
	ldr	r4, [r2]
	bl	strerror
	ldr	r1, .L37+48
	mov	r2, r0
	mov	r0, r4
	bl	wpa_printf
	b	.L3
.L34:
	ldr	r3, .L37+16
	ldr	r1, .L37+52
	ldr	r0, [r3]
	bl	wpa_printf
	b	.L3
.L33:
	mov	r0, r6
	sub	r1, r4, #16
	bl	wpa_supplicant_ctrl_iface_get_cookie
	mov	r5, r0
.L6:
	cmp	r5, #0
	ldr	r2, [r4, #-16]
	beq	.L20
	ldr	r3, [r4, #-20]
	str	r8, [sp]
	str	r3, [sp, #4]
	sub	r3, fp, #4160
	mov	r1, r5
	sub	r3, r3, #8
	ldr	r0, [r3]
	mov	r3, #0
	bl	sendto
	mov	r0, r5
	bl	os_free
	b	.L3
.L20:
	cmp	r2, #1
	beq	.L14
	cmp	r2, #2
	bne	.L3
	ldr	r2, [r4, #-20]
	str	r8, [sp]
	str	r2, [sp, #4]
	sub	r2, fp, #4160
	sub	r2, r2, #8
	mov	r3, r5
	ldr	r1, .L37+56
	ldr	r0, [r2]
	mov	r2, #3
	bl	sendto
	b	.L3
.L12:
	mov	r0, r5
	ldr	r1, .L37+60
	bl	os_strcmp
	cmp	r0, #0
	bne	.L16
	mov	r0, r6
	mov	r1, r8
	ldr	r2, [r4, #-20]
	bl	wpa_supplicant_ctrl_iface_detach
	cmp	r0, #0
	bne	.L17
.L19:
	mov	r3, #2
	ldr	r2, [r4, #-20]
	sub	r1, fp, #4160
	str	r3, [r4, #-16]
	ldr	r0, [r1, #-8]
	sub	r1, r1, #8
	str	r2, [sp, #4]
	mov	r3, #0
	mov	r2, #3
	ldr	r1, .L37+56
	str	r8, [sp]
	bl	sendto
	b	.L3
.L13:
	mov	r2, #2
	ldr	r1, [r4, #-20]
	sub	r0, fp, #4160
	sub	r0, r0, #8
	str	r2, [r4, #-16]
	ldr	r0, [r0]
	mov	r2, #3
	str	r1, [sp, #4]
	str	r8, [sp]
	ldr	r1, .L37+56
	bl	sendto
	sub	r3, fp, #4160
	sub	r3, r3, #12
	ldr	r3, [r3]
	ldr	r0, [r3]
	bl	eapol_sm_notify_ctrl_attached
	b	.L3
.L35:
	ldr	r3, .L37+16
	ldr	r1, .L37+64
	ldr	r0, [r3]
	bl	wpa_printf
	b	.L3
.L36:
	ldr	r3, .L37+16
	ldr	r1, .L37+68
	ldr	r0, [r3]
	bl	wpa_printf
	b	.L3
.L16:
	mov	r2, #6
	mov	r0, r5
	ldr	r1, .L37+72
	bl	os_strncmp
	cmp	r0, #0
	bne	.L18
	mov	r0, r6
	mov	r1, r8
	ldr	r2, [r4, #-20]
	add	r3, r5, #6
	bl	wpa_supplicant_ctrl_iface_level
	cmp	r0, #0
	bne	.L17
	b	.L19
.L18:
	sub	r3, fp, #4160
	mov	r1, r5
	sub	r2, r4, #16
	ldr	r0, [r3, #-12]
	sub	r3, r3, #12
	bl	wpa_supplicant_ctrl_iface_process
	mov	r5, r0
	b	.L6
.L32:
	bl	__stack_chk_fail
.L38:
	.align	2
.L37:
	.word	COOKIE_LEN
	.word	.LC12
	.word	4095
	.word	2130706433
	.word	MSG_DEBUG
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC7
	.word	.LC11
	.word	errno
	.word	MSG_ERROR
	.word	.LC0
	.word	.LC4
	.word	.LC8
	.word	.LC9
	.word	.LC5
	.word	.LC6
	.word	.LC10
	.size	wpa_supplicant_ctrl_iface_receive, .-wpa_supplicant_ctrl_iface_receive
	.comm	errno,4,4
	.comm	MSG_ERROR,4,4
	.comm	MSG_DEBUG,4,4
	.comm	INET6_ADDRSTRLEN,4,4
	.comm	COOKIE_LEN,4,4
	.comm	AF_INET6,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
