	.file	"extr_ctrl_iface.c_hostapd_global_ctrl_iface_receive.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"recvfrom(ctrl_iface): %s"
.LC1:
	.string	"Global ctrl_iface command: %s"
.LC2:
	.string	"FAIL\n"
.LC3:
	.string	"CTRL: sendto failed: %s"
.LC4:
	.string	"OK\n"
.LC5:
	.string	"IFNAME="
.LC6:
	.string	"PING"
.LC7:
	.string	"PONG\n"
.LC8:
	.string	"RELOG"
.LC9:
	.string	"FLUSH"
.LC10:
	.string	"ADD "
.LC11:
	.string	"REMOVE "
.LC12:
	.string	"ATTACH"
.LC13:
	.string	"ATTACH "
.LC14:
	.string	"DETACH"
.LC15:
	.string	"DUP_NETWORK "
.LC16:
	.string	"INTERFACES"
.LC17:
	.string	"TERMINATE"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC18:
	.string	"Unrecognized global ctrl_iface command ignored"
	.text
	.p2align 4
	.type	hostapd_global_ctrl_iface_receive, @function
hostapd_global_ctrl_iface_receive:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	xor	ecx, ecx
	mov	edx, 255
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rsi
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	ebp, edi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 296
	.cfi_def_cfa_offset 352
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 280[rsp], rax
	xor	eax, eax
	lea	rbx, 8[rsp]
	lea	r12, 16[rsp]
	mov	DWORD PTR 12[rsp], 4
	lea	r9, 12[rsp]
	mov	r8, rbx
	mov	rsi, r12
	call	recvfrom@PLT
	test	eax, eax
	js	.L33
	mov	edi, DWORD PTR MSG_DEBUG[rip]
	cdqe
	mov	rdx, r12
	lea	rsi, .LC1[rip]
	mov	BYTE PTR 16[rsp+rax], 0
	xor	eax, eax
	call	wpa_printf@PLT
	mov	edi, 4096
	call	os_malloc@PLT
	mov	r14, rax
	test	rax, rax
	je	.L34
	mov	edx, 3
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	call	os_memcpy@PLT
	mov	edx, 7
	lea	rsi, .LC5[rip]
	mov	rdi, r12
	call	os_strncmp@PLT
	test	rax, rax
	je	.L35
.L5:
	lea	rsi, .LC6[rip]
	mov	rdi, r12
	call	os_strcmp@PLT
	mov	edx, 5
	test	rax, rax
	jne	.L7
	lea	rsi, .LC7[rip]
	mov	rdi, r14
	call	os_memcpy@PLT
	mov	edx, 5
.L8:
	mov	r9d, DWORD PTR 12[rsp]
	xor	ecx, ecx
	mov	r8, rbx
	mov	rsi, r14
	mov	edi, ebp
	call	sendto@PLT
	test	rax, rax
	js	.L36
.L22:
	mov	rdi, r14
	call	os_free@PLT
.L1:
	mov	rax, QWORD PTR 280[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L37
	add	rsp, 296
	.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
.L35:
	.cfi_restore_state
	lea	r15, 23[rsp]
	mov	esi, 32
	mov	rdi, r15
	call	os_strchr@PLT
	test	rax, rax
	je	.L5
	sub	rsp, 8
	.cfi_def_cfa_offset 360
	mov	BYTE PTR [rax], 0
	lea	rdx, 1[rax]
	mov	rcx, r14
	mov	eax, DWORD PTR 20[rsp]
	mov	r9, rbx
	mov	r8d, 4096
	mov	rsi, r15
	mov	rdi, r13
	push	rax
	.cfi_def_cfa_offset 368
	call	hostapd_global_ctrl_iface_ifname@PLT
	mov	edx, eax
	pop	rax
	.cfi_def_cfa_offset 360
	pop	rcx
	.cfi_def_cfa_offset 352
.L6:
	test	edx, edx
	jns	.L8
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L33:
	mov	edi, DWORD PTR errno[rip]
	call	strerror@PLT
	mov	edi, DWORD PTR MSG_ERROR[rip]
	lea	rsi, .LC0[rip]
	mov	rdx, rax
	xor	eax, eax
	call	wpa_printf@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L7:
	lea	rsi, .LC8[rip]
	mov	rdi, r12
	call	os_strncmp@PLT
	test	rax, rax
	je	.L38
	lea	rsi, .LC9[rip]
	mov	rdi, r12
	call	os_strcmp@PLT
	test	rax, rax
	jne	.L12
	mov	rdi, r13
	call	hostapd_ctrl_iface_flush@PLT
.L31:
	mov	edx, 3
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L38:
	call	wpa_debug_reopen_file@PLT
	test	rax, rax
	jns	.L31
.L11:
	mov	edx, 5
	lea	rsi, .LC2[rip]
	mov	rdi, r14
	call	os_memcpy@PLT
	mov	edx, 5
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L36:
	mov	edi, DWORD PTR errno[rip]
	call	strerror@PLT
	mov	edi, DWORD PTR MSG_DEBUG[rip]
	lea	rsi, .LC3[rip]
	mov	rdx, rax
	xor	eax, eax
	call	wpa_printf@PLT
	jmp	.L22
	.p2align 4,,10
	.p2align 3
.L34:
	mov	r9d, DWORD PTR 12[rsp]
	xor	ecx, ecx
	mov	r8, rbx
	mov	edx, 5
	lea	rsi, .LC2[rip]
	mov	edi, ebp
	call	sendto@PLT
	test	rax, rax
	jns	.L1
	mov	edi, DWORD PTR errno[rip]
	call	strerror@PLT
	mov	edi, DWORD PTR MSG_DEBUG[rip]
	lea	rsi, .LC3[rip]
	mov	rdx, rax
	xor	eax, eax
	call	wpa_printf@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L12:
	mov	edx, 4
	lea	rsi, .LC10[rip]
	mov	rdi, r12
	call	os_strncmp@PLT
	test	rax, rax
	je	.L39
	mov	edx, 7
	lea	rsi, .LC11[rip]
	mov	rdi, r12
	call	os_strncmp@PLT
	test	rax, rax
	jne	.L15
	lea	rsi, 23[rsp]
	mov	rdi, r13
	call	hostapd_ctrl_iface_remove@PLT
	test	rax, rax
	jns	.L31
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L39:
	lea	rsi, 20[rsp]
	mov	rdi, r13
	call	hostapd_ctrl_iface_add@PLT
	test	rax, rax
	jns	.L31
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L15:
	lea	rsi, .LC12[rip]
	mov	rdi, r12
	call	os_strcmp@PLT
	xor	ecx, ecx
	test	rax, rax
	je	.L30
	mov	edx, 7
	lea	rsi, .LC13[rip]
	mov	rdi, r12
	call	os_strncmp@PLT
	test	rax, rax
	jne	.L17
	lea	rcx, 23[rsp]
.L30:
	mov	edx, DWORD PTR 12[rsp]
	mov	rsi, rbx
	mov	rdi, r13
	call	hostapd_global_ctrl_iface_attach@PLT
	test	rax, rax
	jne	.L11
	jmp	.L31
.L17:
	lea	rsi, .LC14[rip]
	mov	rdi, r12
	call	os_strcmp@PLT
	test	rax, rax
	jne	.L18
	mov	edx, DWORD PTR 12[rsp]
	mov	rsi, rbx
	mov	rdi, r13
	call	hostapd_global_ctrl_iface_detach@PLT
	test	rax, rax
	jne	.L11
	jmp	.L31
.L18:
	mov	edx, 12
	lea	rsi, .LC15[rip]
	mov	rdi, r12
	call	os_strncmp@PLT
	test	rax, rax
	jne	.L19
	lea	rsi, 28[rsp]
	mov	rdi, r13
	call	hostapd_global_ctrl_iface_dup_network@PLT
	test	eax, eax
	jne	.L11
	lea	rdx, .LC4[rip]
	mov	esi, 4096
	mov	rdi, r14
	call	os_snprintf@PLT
	mov	edx, eax
	jmp	.L6
.L19:
	mov	edx, 10
	lea	rsi, .LC16[rip]
	mov	rdi, r12
	call	os_strncmp@PLT
	test	rax, rax
	jne	.L20
	mov	rdx, r14
	lea	rsi, 26[rsp]
	mov	ecx, 256
	mov	rdi, r13
	call	hostapd_global_ctrl_iface_interfaces@PLT
	mov	edx, eax
	jmp	.L6
.L20:
	lea	rsi, .LC17[rip]
	mov	rdi, r12
	call	os_strcmp@PLT
	test	rax, rax
	jne	.L21
	call	eloop_terminate@PLT
	mov	edx, 3
	jmp	.L8
.L37:
	call	__stack_chk_fail@PLT
.L21:
	mov	edi, DWORD PTR MSG_DEBUG[rip]
	lea	rsi, .LC18[rip]
	xor	eax, eax
	call	wpa_printf@PLT
	jmp	.L11
	.cfi_endproc
.LFE0:
	.size	hostapd_global_ctrl_iface_receive, .-hostapd_global_ctrl_iface_receive
	.comm	gcookie,4,4
	.comm	errno,4,4
	.comm	MSG_ERROR,4,4
	.comm	MSG_DEBUG,4,4
	.comm	COOKIE_LEN,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.c_hostapd_global_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	"Global ctrl_iface command: %s\000"
	.align	2
.LC2:
	.ascii	"FAIL\012\000"
	.align	2
.LC3:
	.ascii	"CTRL: sendto failed: %s\000"
	.align	2
.LC4:
	.ascii	"OK\012\000"
	.align	2
.LC5:
	.ascii	"IFNAME=\000"
	.align	2
.LC6:
	.ascii	"PING\000"
	.align	2
.LC7:
	.ascii	"PONG\012\000"
	.align	2
.LC8:
	.ascii	"RELOG\000"
	.align	2
.LC9:
	.ascii	"FLUSH\000"
	.align	2
.LC10:
	.ascii	"ADD \000"
	.align	2
.LC11:
	.ascii	"REMOVE \000"
	.align	2
.LC12:
	.ascii	"ATTACH\000"
	.align	2
.LC13:
	.ascii	"ATTACH \000"
	.align	2
.LC14:
	.ascii	"DETACH\000"
	.align	2
.LC15:
	.ascii	"DUP_NETWORK \000"
	.align	2
.LC16:
	.ascii	"INTERFACES\000"
	.align	2
.LC17:
	.ascii	"TERMINATE\000"
	.align	2
.LC18:
	.ascii	"Unrecognized global ctrl_iface command ignored\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC19:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	hostapd_global_ctrl_iface_receive, %function
hostapd_global_ctrl_iface_receive:
	@ args = 0, pretend = 0, frame = 272
	@ frame_needed = 0, uses_anonymous_args = 0
	mov	ip, #4
	push	{r4, r5, r6, r7, r8, r9, lr}
	sub	sp, sp, #292
	ldr	lr, .L40
	add	r3, sp, #24
	add	r7, sp, #20
	str	r3, [sp, #4]
	str	r7, [sp]
	mov	r6, r1
	mov	r3, #0
	mov	r2, #255
	add	r1, sp, #28
	ldr	lr, [lr]
	str	lr, [sp, #284]
	mov	lr,#0
	mov	r5, r0
	str	ip, [sp, #24]
	bl	recvfrom
	cmp	r0, #0
	blt	.L33
	mov	r1, #0
	ldr	r8, .L40+4
	add	r3, sp, #288
	add	r3, r3, r0
	strb	r1, [r3, #-260]
	add	r2, sp, #28
	ldr	r1, .L40+8
	ldr	r0, [r8]
	bl	wpa_printf
	mov	r0, #4096
	bl	os_malloc
	subs	r4, r0, #0
	beq	.L34
	mov	r2, #3
	ldr	r1, .L40+12
	bl	os_memcpy
	mov	r2, #7
	ldr	r1, .L40+16
	add	r0, sp, #28
	bl	os_strncmp
	subs	r9, r0, #0
	beq	.L35
.L5:
	ldr	r1, .L40+20
	add	r0, sp, #28
	bl	os_strcmp
	cmp	r0, #0
	mov	r2, #5
	bne	.L7
	mov	r0, r4
	ldr	r1, .L40+24
	bl	os_memcpy
	mov	r2, #5
.L8:
	ldr	r3, [sp, #24]
	mov	r0, r5
	str	r3, [sp, #4]
	mov	r1, r4
	mov	r3, #0
	str	r7, [sp]
	bl	sendto
	cmp	r0, #0
	blt	.L36
.L22:
	mov	r0, r4
	bl	os_free
.L1:
	ldr	r3, .L40
	ldr	r2, [r3]
	ldr	r3, [sp, #284]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L37
	add	sp, sp, #292
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L35:
	mov	r1, #32
	add	r0, sp, #35
	bl	os_strchr
	subs	r2, r0, #0
	beq	.L5
	mov	r3, #4096
	strb	r9, [r2], #1
	ldr	ip, [sp, #24]
	str	r3, [sp]
	mov	r0, r6
	mov	r3, r4
	str	r7, [sp, #4]
	add	r1, sp, #35
	str	ip, [sp, #8]
	bl	hostapd_global_ctrl_iface_ifname
	mov	r2, r0
.L6:
	cmp	r2, #0
	bge	.L8
	b	.L11
.L33:
	ldr	r3, .L40+28
	ldr	r2, .L40+32
	ldr	r0, [r3]
	ldr	r4, [r2]
	bl	strerror
	ldr	r1, .L40+36
	mov	r2, r0
	mov	r0, r4
	bl	wpa_printf
	b	.L1
.L7:
	ldr	r1, .L40+40
	add	r0, sp, #28
	bl	os_strncmp
	cmp	r0, #0
	beq	.L38
	ldr	r1, .L40+44
	add	r0, sp, #28
	bl	os_strcmp
	cmp	r0, #0
	bne	.L12
	mov	r0, r6
	bl	hostapd_ctrl_iface_flush
.L31:
	mov	r2, #3
	b	.L8
.L38:
	bl	wpa_debug_reopen_file
	cmp	r0, #0
	bge	.L31
.L11:
	mov	r2, #5
	mov	r0, r4
	ldr	r1, .L40+48
	bl	os_memcpy
	mov	r2, #5
	b	.L8
.L36:
	ldr	r3, .L40+28
	ldr	r5, [r8]
	ldr	r0, [r3]
	bl	strerror
	ldr	r1, .L40+52
	mov	r2, r0
	mov	r0, r5
	bl	wpa_printf
	b	.L22
.L34:
	ldr	r2, [sp, #24]
	mov	r3, r4
	str	r2, [sp, #4]
	mov	r0, r5
	mov	r2, #5
	ldr	r1, .L40+48
	str	r7, [sp]
	bl	sendto
	cmp	r0, #0
	bge	.L1
	ldr	r3, .L40+28
	ldr	r4, [r8]
	ldr	r0, [r3]
	bl	strerror
	ldr	r1, .L40+52
	mov	r2, r0
	mov	r0, r4
	bl	wpa_printf
	b	.L1
.L12:
	mov	r2, #4
	ldr	r1, .L40+56
	add	r0, sp, #28
	bl	os_strncmp
	cmp	r0, #0
	beq	.L39
	mov	r2, #7
	ldr	r1, .L40+60
	add	r0, sp, #28
	bl	os_strncmp
	cmp	r0, #0
	bne	.L15
	mov	r0, r6
	add	r1, sp, #35
	bl	hostapd_ctrl_iface_remove
	cmp	r0, #0
	bge	.L31
	b	.L11
.L39:
	mov	r0, r6
	add	r1, sp, #32
	bl	hostapd_ctrl_iface_add
	cmp	r0, #0
	bge	.L31
	b	.L11
.L15:
	ldr	r1, .L40+64
	add	r0, sp, #28
	bl	os_strcmp
	subs	r3, r0, #0
	moveq	r0, r6
	beq	.L30
	mov	r2, #7
	ldr	r1, .L40+68
	add	r0, sp, #28
	bl	os_strncmp
	cmp	r0, #0
	bne	.L17
	mov	r0, r6
	add	r3, sp, #35
.L30:
	mov	r1, r7
	ldr	r2, [sp, #24]
	bl	hostapd_global_ctrl_iface_attach
	cmp	r0, #0
	bne	.L11
	b	.L31
.L17:
	ldr	r1, .L40+72
	add	r0, sp, #28
	bl	os_strcmp
	cmp	r0, #0
	bne	.L18
	mov	r0, r6
	mov	r1, r7
	ldr	r2, [sp, #24]
	bl	hostapd_global_ctrl_iface_detach
	cmp	r0, #0
	bne	.L11
	b	.L31
.L18:
	mov	r2, #12
	ldr	r1, .L40+76
	add	r0, sp, #28
	bl	os_strncmp
	cmp	r0, #0
	bne	.L19
	mov	r0, r6
	add	r1, sp, #40
	bl	hostapd_global_ctrl_iface_dup_network
	cmp	r0, #0
	bne	.L11
	ldr	r2, .L40+12
	mov	r1, #4096
	mov	r0, r4
	bl	os_snprintf
	mov	r2, r0
	b	.L6
.L19:
	mov	r2, #10
	ldr	r1, .L40+80
	add	r0, sp, #28
	bl	os_strncmp
	cmp	r0, #0
	bne	.L20
	mov	r2, r4
	mov	r0, r6
	mov	r3, #256
	add	r1, sp, #38
	bl	hostapd_global_ctrl_iface_interfaces
	mov	r2, r0
	b	.L6
.L20:
	ldr	r1, .L40+84
	add	r0, sp, #28
	bl	os_strcmp
	cmp	r0, #0
	bne	.L21
	bl	eloop_terminate
	mov	r2, #3
	b	.L8
.L37:
	bl	__stack_chk_fail
.L21:
	ldr	r1, .L40+88
	ldr	r0, [r8]
	bl	wpa_printf
	b	.L11
.L41:
	.align	2
.L40:
	.word	.LC19
	.word	MSG_DEBUG
	.word	.LC1
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	errno
	.word	MSG_ERROR
	.word	.LC0
	.word	.LC8
	.word	.LC9
	.word	.LC2
	.word	.LC3
	.word	.LC10
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.word	.LC14
	.word	.LC15
	.word	.LC16
	.word	.LC17
	.word	.LC18
	.size	hostapd_global_ctrl_iface_receive, .-hostapd_global_ctrl_iface_receive
	.comm	gcookie,4,4
	.comm	errno,4,4
	.comm	MSG_ERROR,4,4
	.comm	MSG_DEBUG,4,4
	.comm	COOKIE_LEN,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
