	.file	"extr_owipcalc.c_cidr_parse4.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%s"
	.text
	.p2align 4
	.type	cidr_parse4, @function
cidr_parse4:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13, rdi
	mov	edi, 24
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	sub	rsp, 40
	.cfi_def_cfa_offset 64
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	call	malloc@PLT
	mov	r12, rax
	test	rax, rax
	je	.L1
	mov	rdi, r13
	call	strlen@PLT
	cmp	eax, 7
	jbe	.L21
.L3:
	mov	rdi, r12
	xor	r12d, r12d
	call	free@PLT
.L1:
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L22
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	rax, r12
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L21:
	.cfi_restore_state
	mov	rdi, QWORD PTR 8[r12]
	mov	esi, 8
	mov	rcx, r13
	lea	rdx, .LC0[rip]
	call	snprintf@PLT
	mov	eax, DWORD PTR AF_INET[rip]
	mov	rdi, QWORD PTR 8[r12]
	mov	esi, 47
	mov	DWORD PTR 16[r12], eax
	call	strchr@PLT
	test	rax, rax
	je	.L4
	mov	BYTE PTR [rax], 0
	lea	r13, 1[rax]
	mov	esi, 46
	mov	rdi, r13
	call	strchr@PLT
	test	rax, rax
	je	.L5
	mov	edi, DWORD PTR AF_INET[rip]
	lea	rdx, 12[rsp]
	mov	rsi, r13
	call	inet_pton@PLT
	cmp	eax, 1
	jne	.L3
	mov	eax, DWORD PTR 12[rsp]
	mov	DWORD PTR [r12], 0
	xor	edx, edx
	test	eax, eax
	je	.L7
	.p2align 4,,10
	.p2align 3
.L6:
	mov	ecx, eax
	and	ecx, 1
	add	edx, ecx
	sar	eax
	jne	.L6
	mov	DWORD PTR [r12], edx
	mov	DWORD PTR 12[rsp], 0
.L7:
	mov	rsi, QWORD PTR 8[r12]
	lea	r8, 4[r12]
	lea	rax, 1[rsi]
	cmp	r13, rax
	jne	.L10
	mov	edx, 4
	xor	esi, esi
	mov	rdi, r8
	call	memset@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L4:
	mov	DWORD PTR [r12], 32
	mov	rsi, QWORD PTR 8[r12]
	lea	r8, 4[r12]
.L10:
	mov	edi, DWORD PTR AF_INET[rip]
	mov	rdx, r8
	call	inet_pton@PLT
	cmp	eax, 1
	je	.L1
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L5:
	mov	edx, 10
	lea	rsi, 16[rsp]
	mov	rdi, r13
	call	strtoul@PLT
	mov	rdx, QWORD PTR 16[rsp]
	mov	DWORD PTR [r12], eax
	cmp	rdx, r13
	je	.L3
	cmp	BYTE PTR [rdx], 0
	jne	.L3
	cmp	eax, 32
	jle	.L7
	jmp	.L3
.L22:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	cidr_parse4, .-cidr_parse4
	.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_owipcalc.c_cidr_parse4.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"%s\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	cidr_parse4, %function
cidr_parse4:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	ldr	r3, .L22
	sub	sp, sp, #20
	mov	r5, r0
	mov	r0, #16
	ldr	r3, [r3]
	str	r3, [sp, #12]
	mov	r3,#0
	bl	malloc
	subs	r4, r0, #0
	beq	.L1
	mov	r0, r5
	bl	strlen
	cmp	r0, #3
	ble	.L20
.L3:
	mov	r0, r4
	bl	free
	mov	r4, #0
.L1:
	ldr	r3, .L22
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L21
	mov	r0, r4
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L20:
	ldr	r7, .L22+4
	mov	r3, r5
	mov	r1, #4
	ldr	r2, .L22+8
	ldr	r0, [r4, #8]
	bl	snprintf
	ldr	r3, [r7]
	mov	r1, #47
	ldr	r0, [r4, #8]
	str	r3, [r4, #12]
	bl	strchr
	subs	r5, r0, #0
	beq	.L4
	mov	r6, #0
	strb	r6, [r5], #1
	mov	r0, r5
	mov	r1, #46
	bl	strchr
	cmp	r0, r6
	beq	.L5
	mov	r1, r5
	ldr	r0, [r7]
	add	r2, sp, #8
	bl	inet_pton
	cmp	r0, #1
	bne	.L3
	ldr	r3, [sp, #8]
	str	r6, [r4]
	cmp	r3, r6
	beq	.L7
	mov	r2, r6
.L6:
	and	r1, r3, #1
	asrs	r3, r3, #1
	add	r2, r2, r1
	bne	.L6
	str	r2, [r4]
	str	r3, [sp, #8]
.L7:
	ldr	r1, [r4, #8]
	add	r2, r4, #4
	add	r3, r1, #1
	cmp	r5, r3
	bne	.L10
	mov	r3, #0
	strb	r3, [r4, #4]
	strb	r3, [r2, #1]
	strb	r3, [r2, #2]
	strb	r3, [r2, #3]
	b	.L1
.L4:
	mov	r3, #32
	ldr	r1, [r4, #8]
	str	r3, [r4]
	add	r2, r4, #4
.L10:
	ldr	r0, [r7]
	bl	inet_pton
	cmp	r0, #1
	beq	.L1
	b	.L3
.L5:
	mov	r2, #10
	mov	r0, r5
	add	r1, sp, #4
	bl	strtoul
	ldr	r3, [sp, #4]
	str	r0, [r4]
	cmp	r3, r5
	beq	.L3
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r0, #32
	cmple	r3, #0
	bne	.L3
	b	.L7
.L21:
	bl	__stack_chk_fail
.L23:
	.align	2
.L22:
	.word	.LC1
	.word	AF_INET
	.word	.LC0
	.size	cidr_parse4, .-cidr_parse4
	.comm	AF_INET,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
