	.file	"extr_ep.c_nn_ep_init.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	nn_ep_init
	.type	nn_ep_init, @function
nn_ep_init:
.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
	mov	r14d, ecx
	mov	ecx, esi
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	lea	r13, 4[rdi]
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rdx
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, r8
	mov	r8, rdi
	mov	rdi, r13
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	esi, DWORD PTR nn_ep_handler[rip]
	mov	DWORD PTR 12[rsp], r9d
	lea	r9, 4[rdx]
	mov	edx, DWORD PTR nn_ep_shutdown[rip]
	mov	r15, QWORD PTR 80[rsp]
	call	nn_fsm_init@PLT
	mov	eax, DWORD PTR NN_EP_STATE_IDLE[rip]
	mov	QWORD PTR 32[rbp], r12
	mov	DWORD PTR 0[rbp], r14d
	lea	r14, 8[rbp]
	mov	DWORD PTR 40[rbp], eax
	mov	rdi, r14
	mov	QWORD PTR 24[rbp], 0
	call	nn_list_item_init@PLT
	mov	edx, 4
	mov	rsi, r12
	lea	rdi, 16[rbp]
	call	memcpy@PLT
	mov	rdi, r15
	call	strlen@PLT
	xor	edi, edi
	cmp	rax, QWORD PTR NN_SOCKADDR_MAX[rip]
	setle	dil
	call	nn_assert@PLT
	mov	edi, DWORD PTR 12[rbp]
	mov	rsi, r15
	call	strcpy@PLT
	mov	r10d, DWORD PTR 12[rsp]
	mov	rdi, rbp
	test	r10d, r10d
	je	.L2
	call	[QWORD PTR [rbx]]
	mov	r12d, eax
	test	r12d, r12d
	js	.L8
.L5:
	xor	r12d, r12d
.L1:
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r12d
	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
.L2:
	.cfi_restore_state
	call	[QWORD PTR 8[rbx]]
	mov	r12d, eax
	test	r12d, r12d
	jns	.L5
.L8:
	mov	rdi, r14
	call	nn_list_item_term@PLT
	mov	rdi, r13
	call	nn_fsm_term@PLT
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	nn_ep_init, .-nn_ep_init
	.comm	nn_ep_shutdown,4,4
	.comm	nn_ep_handler,4,4
	.comm	NN_SOCKADDR_MAX,8,8
	.comm	NN_EP_STATE_IDLE,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_ep.c_nn_ep_init.c"
	.text
	.align	2
	.global	nn_ep_init
	.syntax unified
	.arm
	.fpu softvfp
	.type	nn_ep_init, %function
nn_ep_init:
	@ args = 12, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r5, r2
	sub	sp, sp, #12
	ldr	ip, .L9
	add	lr, r5, #4
	ldr	r2, .L9+4
	str	lr, [sp, #4]
	str	r0, [sp]
	add	r7, r0, #4
	mov	r4, r0
	mov	r6, r3
	ldr	r2, [r2]
	mov	r3, r1
	mov	r0, r7
	ldr	r1, [ip]
	ldr	r10, [sp, #48]
	ldr	r9, [sp, #56]
	ldr	fp, [sp, #52]
	bl	nn_fsm_init
	mov	r3, #0
	ldr	r2, .L9+8
	add	r8, r4, #8
	ldr	r2, [r2]
	str	r3, [r4, #20]
	str	r2, [r4, #28]
	str	r5, [r4, #24]
	str	r6, [r4]
	mov	r0, r8
	bl	nn_list_item_init
	mov	r2, #4
	mov	r1, r5
	add	r0, r4, #16
	bl	memcpy
	mov	r0, r9
	bl	strlen
	ldr	r3, .L9+12
	ldr	r3, [r3]
	cmp	r0, r3
	movgt	r0, #0
	movle	r0, #1
	bl	nn_assert
	mov	r1, r9
	ldr	r0, [r4, #12]
	bl	strcpy
	cmp	fp, #0
	mov	r0, r4
	ldrne	r3, [r10]
	ldreq	r3, [r10, #4]
	blx	r3
	cmp	r0, #0
	mov	r4, r0
	movge	r4, #0
	blt	.L8
	mov	r0, r4
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L8:
	mov	r0, r8
	bl	nn_list_item_term
	mov	r0, r7
	bl	nn_fsm_term
	mov	r0, r4
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L10:
	.align	2
.L9:
	.word	nn_ep_handler
	.word	nn_ep_shutdown
	.word	NN_EP_STATE_IDLE
	.word	NN_SOCKADDR_MAX
	.size	nn_ep_init, .-nn_ep_init
	.comm	nn_ep_shutdown,4,4
	.comm	nn_ep_handler,4,4
	.comm	NN_SOCKADDR_MAX,4,4
	.comm	NN_EP_STATE_IDLE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
