	.file	"extr_13286.c_ip_str_to_dw.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%d.%d.%d.%d"
	.text
	.p2align 4
	.globl	ip_str_to_dw
	.type	ip_str_to_dw, @function
ip_str_to_dw:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	sub	rsp, 32
	.cfi_def_cfa_offset 48
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	test	rdi, rdi
	je	.L10
	mov	rbp, rdi
	call	strlen@PLT
	cmp	rax, QWORD PTR MAX_IP_STR_LEN[rip]
	jg	.L10
	cmp	rax, QWORD PTR MIN_IP_STR_LEN[rip]
	jl	.L10
	mov	rdx, rsp
	lea	rcx, 4[rsp]
	lea	r9, 12[rsp]
	mov	rdi, rbp
	lea	rsi, .LC0[rip]
	lea	r8, 8[rsp]
	call	sscanf@PLT
	mov	edx, DWORD PTR 12[rsp]
	mov	ecx, -1
	mov	eax, edx
	sal	eax, 24
	cmp	edx, 256
	mov	edx, DWORD PTR 8[rsp]
	cmovge	eax, ecx
	mov	esi, eax
	mov	eax, edx
	sal	eax, 16
	cmp	edx, 256
	mov	edx, DWORD PTR 4[rsp]
	cmovge	eax, ecx
	mov	edi, eax
	mov	eax, edx
	sal	eax, 8
	cmp	edx, 256
	mov	edx, DWORD PTR [rsp]
	cmovge	eax, ecx
	cmp	edx, 256
	cmovge	edx, ecx
	add	eax, edx
	add	eax, edi
	add	eax, esi
.L1:
	mov	rsi, QWORD PTR 24[rsp]
	xor	rsi, QWORD PTR fs:40
	jne	.L17
	add	rsp, 32
	.cfi_remember_state
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore_state
	mov	eax, -1
	jmp	.L1
.L17:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	ip_str_to_dw, .-ip_str_to_dw
	.comm	MIN_IP_STR_LEN,8,8
	.comm	MAX_IP_STR_LEN,8,8
	.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_13286.c_ip_str_to_dw.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"%d.%d.%d.%d\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	ip_str_to_dw
	.syntax unified
	.arm
	.fpu softvfp
	.type	ip_str_to_dw, %function
ip_str_to_dw:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, lr}
	ldr	r3, .L18
	sub	sp, sp, #32
	subs	r4, r0, #0
	ldr	r3, [r3]
	str	r3, [sp, #28]
	mov	r3,#0
	beq	.L10
	bl	strlen
	ldr	r3, .L18+4
	ldr	r3, [r3]
	cmp	r0, r3
	bgt	.L10
	ldr	r3, .L18+8
	ldr	r3, [r3]
	cmp	r0, r3
	blt	.L10
	add	r2, sp, #24
	add	r3, sp, #20
	ldr	r1, .L18+12
	str	r2, [sp, #4]
	str	r3, [sp]
	add	r2, sp, #12
	add	r3, sp, #16
	mov	r0, r4
	bl	sscanf
	ldr	r0, [sp, #24]
	ldr	r3, [sp, #16]
	cmp	r0, #255
	lslle	r2, r0, #24
	ldr	r0, [sp, #20]
	mvngt	r2, #0
	cmp	r0, #255
	lslle	r1, r0, #16
	mvngt	r1, #0
	cmp	r3, #255
	lslle	r0, r3, #8
	ldr	r3, [sp, #12]
	mvngt	r0, #0
	cmp	r3, #256
	mvnge	r3, #0
	add	r0, r0, r3
	add	r0, r0, r1
	add	r0, r0, r2
.L1:
	ldr	r3, .L18
	ldr	r2, [r3]
	ldr	r3, [sp, #28]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L17
	add	sp, sp, #32
	@ sp needed
	pop	{r4, pc}
.L10:
	mvn	r0, #0
	b	.L1
.L17:
	bl	__stack_chk_fail
.L19:
	.align	2
.L18:
	.word	.LC1
	.word	MAX_IP_STR_LEN
	.word	MIN_IP_STR_LEN
	.word	.LC0
	.size	ip_str_to_dw, .-ip_str_to_dw
	.comm	MIN_IP_STR_LEN,4,4
	.comm	MAX_IP_STR_LEN,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
