	.file	"extr_ctrl_iface_udp.c_wpa_supplicant_ctrl_iface_init.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"udp:"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC1:
	.string	"Invalid ctrl_iface UDP port: %s"
	.section	.rodata.str1.1
.LC2:
	.string	"socket(PF_INET): %s"
.LC3:
	.string	"bind(AF_INET): %s"
.LC4:
	.string	"udp:%d"
	.section	.rodata.str1.8
	.align 8
.LC5:
	.string	"Failed to malloc ctrl_interface"
	.text
	.p2align 4
	.globl	wpa_supplicant_ctrl_iface_init
	.type	wpa_supplicant_ctrl_iface_init, @function
wpa_supplicant_ctrl_iface_init:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	mov	r14, rdi
	mov	edi, 16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	sub	rsp, 80
	.cfi_def_cfa_offset 128
	mov	r12d, DWORD PTR WPA_CTRL_IFACE_PORT[rip]
	mov	ebp, DWORD PTR PF_INET[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 72[rsp], rax
	xor	eax, eax
	call	os_zalloc@PLT
	mov	r13, rax
	test	rax, rax
	je	.L1
	mov	edi, DWORD PTR 4[rax]
	mov	esi, DWORD PTR COOKIE_LEN[rip]
	mov	QWORD PTR 8[rax], r14
	mov	DWORD PTR [rax], -1
	call	os_get_random@PLT
	mov	rax, QWORD PTR [r14]
	mov	rdi, QWORD PTR [rax]
	test	rdi, rdi
	je	.L1
	lea	rsi, .LC0[rip]
	call	os_strstr@PLT
	test	rax, rax
	je	.L3
	lea	rdi, 4[rax]
	call	atoi@PLT
	mov	r12d, eax
	test	eax, eax
	jle	.L23
.L3:
	mov	esi, DWORD PTR SOCK_DGRAM[rip]
	xor	edx, edx
	mov	edi, ebp
	call	socket@PLT
	mov	DWORD PTR 0[r13], eax
	test	eax, eax
	js	.L24
	mov	rbx, rsp
	mov	edx, 32
	xor	esi, esi
	mov	rdi, rbx
	call	os_memset@PLT
	mov	eax, DWORD PTR AF_INET[rip]
	mov	edi, 2130706433
	mov	DWORD PTR 20[rsp], eax
	call	htonl@PLT
	mov	DWORD PTR 16[rsp], eax
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L26:
	mov	eax, DWORD PTR WPA_CTRL_IFACE_PORT[rip]
	sub	r12d, 1
	sub	eax, r12d
	cmp	eax, DWORD PTR WPA_CTRL_IFACE_PORT_LIMIT[rip]
	jge	.L25
.L6:
	mov	edi, r12d
	call	htons@PLT
	mov	edi, DWORD PTR 0[r13]
	mov	edx, 32
	mov	rsi, rbx
	mov	QWORD PTR [rsp], rax
	call	bind@PLT
	test	rax, rax
	js	.L26
	lea	rbp, 32[rsp]
	mov	ecx, r12d
	mov	esi, 40
	lea	rdx, .LC4[rip]
	mov	rdi, rbp
	call	os_snprintf@PLT
	mov	rax, QWORD PTR [r14]
	mov	rdi, QWORD PTR [rax]
	call	os_free@PLT
	mov	rbx, QWORD PTR [r14]
	mov	rdi, rbp
	call	os_strdup@PLT
	mov	QWORD PTR [rbx], rax
	mov	rax, QWORD PTR [r14]
	cmp	QWORD PTR [rax], 0
	je	.L27
	mov	edi, DWORD PTR 0[r13]
	mov	esi, DWORD PTR wpa_supplicant_ctrl_iface_receive[rip]
	mov	rcx, r13
	mov	rdx, r14
	call	eloop_register_read_sock@PLT
	mov	edi, DWORD PTR wpa_supplicant_ctrl_iface_msg_cb[rip]
	call	wpa_msg_register_cb@PLT
.L1:
	mov	rax, QWORD PTR 72[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L28
	add	rsp, 80
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	mov	rax, r13
	pop	rbx
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L25:
	.cfi_restore_state
	mov	edi, DWORD PTR errno[rip]
	call	strerror@PLT
	mov	edi, DWORD PTR MSG_ERROR[rip]
	lea	rsi, .LC3[rip]
	mov	rdx, rax
	call	wpa_printf@PLT
.L4:
	mov	edi, DWORD PTR 0[r13]
	test	edi, edi
	js	.L9
	call	close@PLT
.L9:
	mov	rdi, r13
	xor	r13d, r13d
	call	os_free@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L24:
	mov	edi, DWORD PTR errno[rip]
	call	strerror@PLT
	mov	edi, DWORD PTR MSG_ERROR[rip]
	lea	rsi, .LC2[rip]
	mov	rdx, rax
	call	wpa_printf@PLT
	jmp	.L4
.L23:
	mov	rax, QWORD PTR [r14]
	mov	edi, DWORD PTR MSG_ERROR[rip]
	lea	rsi, .LC1[rip]
	mov	rdx, QWORD PTR [rax]
	call	wpa_printf@PLT
	jmp	.L4
.L27:
	mov	esi, DWORD PTR MSG_ERROR[rip]
	lea	rdx, .LC5[rip]
	mov	rdi, r14
	xor	eax, eax
	call	wpa_msg@PLT
	jmp	.L4
.L28:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	wpa_supplicant_ctrl_iface_init, .-wpa_supplicant_ctrl_iface_init
	.comm	wpa_supplicant_ctrl_iface_receive,4,4
	.comm	wpa_supplicant_ctrl_iface_msg_cb,4,4
	.comm	in6addr_any,4,4
	.comm	errno,4,4
	.comm	WPA_CTRL_IFACE_PORT_LIMIT,4,4
	.comm	WPA_CTRL_IFACE_PORT,4,4
	.comm	SOCK_DGRAM,4,4
	.comm	PF_INET6,4,4
	.comm	PF_INET,4,4
	.comm	MSG_ERROR,4,4
	.comm	MSG_DEBUG,4,4
	.comm	INADDR_ANY,4,4
	.comm	COOKIE_LEN,4,4
	.comm	AF_INET6,4,4
	.comm	AF_INET,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_init.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"udp:\000"
	.align	2
.LC1:
	.ascii	"Invalid ctrl_iface UDP port: %s\000"
	.align	2
.LC2:
	.ascii	"socket(PF_INET): %s\000"
	.align	2
.LC3:
	.ascii	"bind(AF_INET): %s\000"
	.align	2
.LC4:
	.ascii	"udp:%d\000"
	.align	2
.LC5:
	.ascii	"Failed to malloc ctrl_interface\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC6:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	wpa_supplicant_ctrl_iface_init
	.syntax unified
	.arm
	.fpu softvfp
	.type	wpa_supplicant_ctrl_iface_init, %function
wpa_supplicant_ctrl_iface_init:
	@ args = 0, pretend = 0, frame = 72
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r3, .L29
	ldr	r2, .L29+4
	ldr	r6, .L29+8
	sub	sp, sp, #72
	mov	r7, r0
	mov	r0, #12
	ldr	r2, [r2]
	str	r2, [sp, #68]
	mov	r2,#0
	ldr	r4, [r6]
	ldr	r8, [r3]
	bl	os_zalloc
	subs	r5, r0, #0
	beq	.L1
	mvn	r2, #0
	ldr	r3, .L29+12
	ldr	r0, [r5, #4]
	ldr	r1, [r3]
	str	r7, [r5, #8]
	str	r2, [r5]
	bl	os_get_random
	ldr	r3, [r7]
	ldr	r0, [r3]
	cmp	r0, #0
	beq	.L1
	ldr	r1, .L29+16
	bl	os_strstr
	cmp	r0, #0
	beq	.L3
	add	r0, r0, #4
	bl	atoi
	subs	r4, r0, #0
	ble	.L23
.L3:
	ldr	r3, .L29+20
	mov	r0, r8
	mov	r2, #0
	ldr	r1, [r3]
	bl	socket
	cmp	r0, #0
	str	r0, [r5]
	blt	.L24
	mov	r2, #24
	mov	r1, #0
	add	r0, sp, #4
	bl	os_memset
	ldr	r3, .L29+24
	ldr	r0, .L29+28
	ldr	r3, [r3]
	ldr	r8, .L29+32
	str	r3, [sp, #16]
	bl	htonl
	str	r0, [sp, #12]
	b	.L6
.L26:
	ldr	r3, [r6]
	ldr	r2, [r8]
	sub	r4, r4, #1
	sub	r3, r3, r4
	cmp	r3, r2
	bge	.L25
.L6:
	mov	r0, r4
	bl	htons
	mov	r3, r0
	mov	r2, #24
	ldr	r0, [r5]
	add	r1, sp, #4
	str	r3, [sp, #4]
	bl	bind
	cmp	r0, #0
	blt	.L26
	mov	r3, r4
	mov	r1, #40
	ldr	r2, .L29+36
	add	r0, sp, #28
	bl	os_snprintf
	ldr	r3, [r7]
	ldr	r0, [r3]
	bl	os_free
	add	r0, sp, #28
	ldr	r4, [r7]
	bl	os_strdup
	ldr	r3, [r7]
	str	r0, [r4]
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L27
	ldr	r3, .L29+40
	mov	r2, r7
	ldr	r1, [r3]
	ldr	r0, [r5]
	mov	r3, r5
	bl	eloop_register_read_sock
	ldr	r3, .L29+44
	ldr	r0, [r3]
	bl	wpa_msg_register_cb
.L1:
	ldr	r3, .L29+4
	ldr	r2, [r3]
	ldr	r3, [sp, #68]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L28
	mov	r0, r5
	add	sp, sp, #72
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L25:
	ldr	r3, .L29+48
	ldr	r2, .L29+52
	ldr	r0, [r3]
	ldr	r4, [r2]
	bl	strerror
	ldr	r1, .L29+56
	mov	r2, r0
	mov	r0, r4
	bl	wpa_printf
.L4:
	ldr	r0, [r5]
	cmp	r0, #0
	blt	.L9
	bl	close
.L9:
	mov	r0, r5
	bl	os_free
	mov	r5, #0
	b	.L1
.L24:
	ldr	r3, .L29+48
	ldr	r2, .L29+52
	ldr	r0, [r3]
	ldr	r4, [r2]
	bl	strerror
	ldr	r1, .L29+60
	mov	r2, r0
	mov	r0, r4
	bl	wpa_printf
	b	.L4
.L23:
	ldr	r2, [r7]
	ldr	r3, .L29+52
	ldr	r2, [r2]
	ldr	r0, [r3]
	ldr	r1, .L29+64
	bl	wpa_printf
	b	.L4
.L27:
	ldr	r3, .L29+52
	mov	r0, r7
	ldr	r1, [r3]
	ldr	r2, .L29+68
	bl	wpa_msg
	b	.L4
.L28:
	bl	__stack_chk_fail
.L30:
	.align	2
.L29:
	.word	PF_INET
	.word	.LC6
	.word	WPA_CTRL_IFACE_PORT
	.word	COOKIE_LEN
	.word	.LC0
	.word	SOCK_DGRAM
	.word	AF_INET
	.word	2130706433
	.word	WPA_CTRL_IFACE_PORT_LIMIT
	.word	.LC4
	.word	wpa_supplicant_ctrl_iface_receive
	.word	wpa_supplicant_ctrl_iface_msg_cb
	.word	errno
	.word	MSG_ERROR
	.word	.LC3
	.word	.LC2
	.word	.LC1
	.word	.LC5
	.size	wpa_supplicant_ctrl_iface_init, .-wpa_supplicant_ctrl_iface_init
	.comm	wpa_supplicant_ctrl_iface_receive,4,4
	.comm	wpa_supplicant_ctrl_iface_msg_cb,4,4
	.comm	in6addr_any,4,4
	.comm	errno,4,4
	.comm	WPA_CTRL_IFACE_PORT_LIMIT,4,4
	.comm	WPA_CTRL_IFACE_PORT,4,4
	.comm	SOCK_DGRAM,4,4
	.comm	PF_INET6,4,4
	.comm	PF_INET,4,4
	.comm	MSG_ERROR,4,4
	.comm	MSG_DEBUG,4,4
	.comm	INADDR_ANY,4,4
	.comm	COOKIE_LEN,4,4
	.comm	AF_INET6,4,4
	.comm	AF_INET,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
