	.file	"577621.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"%d.%d.%d.%d"
	.align 8
.LC1:
	.string	"params = %d, errno = %d strerror = %s\n"
.LC2:
	.string	"\n\n  %d %d %d %d\n"
.LC3:
	.string	"*(uint32_t*)&ip[0] : %u \n"
.LC4:
	.string	"%u \n"
	.text
	.globl	check_ipv4_valid
	.type	check_ipv4_valid, @function
check_ipv4_valid:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	rbx
	sub	rsp, 40
	.cfi_offset 3, -24
	mov	QWORD PTR -40[rbp], rdi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rax
	xor	eax, eax
	cmp	QWORD PTR -40[rbp], 0
	jne	.L2
	mov	eax, -1
	jmp	.L5
.L2:
	lea	rax, -28[rbp]
	lea	rdi, 3[rax]
	lea	rax, -28[rbp]
	lea	rsi, 2[rax]
	lea	rax, -28[rbp]
	lea	rcx, 1[rax]
	lea	rdx, -28[rbp]
	mov	rax, QWORD PTR -40[rbp]
	mov	r9, rdi
	mov	r8, rsi
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_sscanf@PLT
	mov	DWORD PTR -32[rbp], eax
	cmp	DWORD PTR -32[rbp], 4
	je	.L4
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	strerror@PLT
	mov	rbx, rax
	call	__errno_location@PLT
	mov	edx, DWORD PTR [rax]
	mov	eax, DWORD PTR -32[rbp]
	mov	rcx, rbx
	mov	esi, eax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, -2
	jmp	.L5
.L4:
	movzx	eax, BYTE PTR -25[rbp]
	movzx	esi, al
	movzx	eax, BYTE PTR -26[rbp]
	movzx	ecx, al
	movzx	eax, BYTE PTR -27[rbp]
	movzx	edx, al
	movzx	eax, BYTE PTR -28[rbp]
	movzx	eax, al
	mov	r8d, esi
	mov	esi, eax
	lea	rdi, .LC2[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -28[rbp]
	mov	eax, DWORD PTR [rax]
	mov	esi, eax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -28[rbp]
	mov	eax, DWORD PTR [rax]
	mov	edi, eax
	call	htonl@PLT
	mov	esi, eax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	movzx	eax, BYTE PTR -28[rbp]
	movzx	eax, al
	sal	eax, 8
	mov	edx, eax
	movzx	eax, BYTE PTR -27[rbp]
	movzx	eax, al
	add	eax, edx
	sal	eax, 8
	mov	edx, eax
	movzx	eax, BYTE PTR -26[rbp]
	movzx	eax, al
	add	eax, edx
	sal	eax, 8
	mov	edx, eax
	movzx	eax, BYTE PTR -25[rbp]
	movzx	eax, al
	add	eax, edx
	mov	esi, eax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
.L5:
	mov	rbx, QWORD PTR -24[rbp]
	sub	rbx, QWORD PTR fs:40
	je	.L6
	call	__stack_chk_fail@PLT
.L6:
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	check_ipv4_valid, .-check_ipv4_valid
	.globl	ipv4_to_int
	.type	ipv4_to_int, @function
ipv4_to_int:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	QWORD PTR -32[rbp], rsi
	cmp	QWORD PTR -24[rbp], 0
	je	.L8
	cmp	QWORD PTR -32[rbp], 0
	jne	.L9
.L8:
	mov	eax, -1
	jmp	.L10
.L9:
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	check_ipv4_valid
	test	eax, eax
	je	.L11
	mov	eax, -2
	jmp	.L10
.L11:
	mov	DWORD PTR -4[rbp], 16777216
	mov	BYTE PTR -5[rbp], 0
	mov	rax, QWORD PTR -32[rbp]
	mov	DWORD PTR [rax], 0
.L17:
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR [rax]
	test	al, al
	je	.L19
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 47
	jle	.L14
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 57
	jg	.L14
	movzx	edx, BYTE PTR -5[rbp]
	mov	eax, edx
	sal	eax, 2
	add	eax, edx
	add	eax, eax
	mov	edx, eax
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR [rax]
	add	eax, edx
	sub	eax, 48
	mov	BYTE PTR -5[rbp], al
.L14:
	mov	rax, QWORD PTR -24[rbp]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 46
	je	.L15
	mov	rax, QWORD PTR -24[rbp]
	add	rax, 1
	movzx	eax, BYTE PTR [rax]
	test	al, al
	jne	.L16
.L15:
	mov	rax, QWORD PTR -32[rbp]
	mov	edx, DWORD PTR [rax]
	movzx	eax, BYTE PTR -5[rbp]
	imul	eax, DWORD PTR -4[rbp]
	add	edx, eax
	mov	rax, QWORD PTR -32[rbp]
	mov	DWORD PTR [rax], edx
	mov	BYTE PTR -5[rbp], 0
	mov	eax, DWORD PTR -4[rbp]
	shr	eax, 8
	mov	DWORD PTR -4[rbp], eax
.L16:
	add	QWORD PTR -24[rbp], 1
	jmp	.L17
.L19:
	nop
	mov	eax, 0
.L10:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	ipv4_to_int, .-ipv4_to_int
	.section	.rodata
.LC5:
	.string	"1.1.1.1"
.LC6:
	.string	"ret = %d, ip_int : %u\n"
.LC7:
	.string	"255.255.255.255"
.LC8:
	.string	"123.1.1.1"
.LC9:
	.string	"asd1as.asdasd.1"
	.text
	.globl	main
	.type	main, @function
main:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 16
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -12[rbp], -1
	mov	DWORD PTR -16[rbp], 0
	lea	rax, -16[rbp]
	mov	rsi, rax
	lea	rdi, .LC5[rip]
	call	ipv4_to_int
	mov	DWORD PTR -12[rbp], eax
	mov	edx, DWORD PTR -16[rbp]
	mov	eax, DWORD PTR -12[rbp]
	mov	esi, eax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -16[rbp]
	mov	rsi, rax
	lea	rdi, .LC7[rip]
	call	ipv4_to_int
	mov	DWORD PTR -12[rbp], eax
	mov	edx, DWORD PTR -16[rbp]
	mov	eax, DWORD PTR -12[rbp]
	mov	esi, eax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -16[rbp]
	mov	rsi, rax
	lea	rdi, .LC8[rip]
	call	ipv4_to_int
	mov	DWORD PTR -12[rbp], eax
	mov	edx, DWORD PTR -16[rbp]
	mov	eax, DWORD PTR -12[rbp]
	mov	esi, eax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -16[rbp]
	mov	rsi, rax
	lea	rdi, .LC9[rip]
	call	ipv4_to_int
	mov	DWORD PTR -12[rbp], eax
	mov	edx, DWORD PTR -16[rbp]
	mov	eax, DWORD PTR -12[rbp]
	mov	esi, eax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L22
	call	__stack_chk_fail@PLT
.L22:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	main, .-main
	.ident	"GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.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, 6
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"577621.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"%d.%d.%d.%d\000"
	.align	2
.LC1:
	.ascii	"params = %d, errno = %d strerror = %s\012\000"
	.align	2
.LC2:
	.ascii	"\012\012  %d %d %d %d\012\000"
	.align	2
.LC3:
	.ascii	"*(uint32_t*)&ip[0] : %u \012\000"
	.align	2
.LC4:
	.ascii	"%u \012\000"
	.align	2
.LC5:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	check_ipv4_valid
	.syntax unified
	.arm
	.fpu softvfp
	.type	check_ipv4_valid, %function
check_ipv4_valid:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #36
	str	r0, [fp, #-32]
	ldr	r3, .L7
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	ldr	r3, [fp, #-32]
	cmp	r3, #0
	bne	.L2
	mvn	r3, #0
	b	.L5
.L2:
	sub	r3, fp, #20
	add	r1, r3, #1
	sub	r2, fp, #20
	sub	r3, fp, #20
	add	r3, r3, #3
	str	r3, [sp, #4]
	sub	r3, fp, #20
	add	r3, r3, #2
	str	r3, [sp]
	mov	r3, r1
	ldr	r1, .L7+4
	ldr	r0, [fp, #-32]
	bl	__isoc99_sscanf
	str	r0, [fp, #-24]
	ldr	r3, [fp, #-24]
	cmp	r3, #4
	beq	.L4
	bl	__errno_location
	mov	r3, r0
	ldr	r4, [r3]
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r0, r3
	bl	strerror
	mov	r3, r0
	mov	r2, r4
	ldr	r1, [fp, #-24]
	ldr	r0, .L7+8
	bl	printf
	mvn	r3, #1
	b	.L5
.L4:
	ldrb	r3, [fp, #-20]	@ zero_extendqisi2
	mov	r1, r3
	ldrb	r3, [fp, #-19]	@ zero_extendqisi2
	mov	r2, r3
	ldrb	r3, [fp, #-18]	@ zero_extendqisi2
	mov	r0, r3
	ldrb	r3, [fp, #-17]	@ zero_extendqisi2
	str	r3, [sp]
	mov	r3, r0
	ldr	r0, .L7+12
	bl	printf
	sub	r3, fp, #20
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, .L7+16
	bl	printf
	sub	r3, fp, #20
	ldr	r3, [r3]
	mov	r0, r3
	bl	htonl
	mov	r3, r0
	mov	r1, r3
	ldr	r0, .L7+16
	bl	printf
	ldrb	r3, [fp, #-20]	@ zero_extendqisi2
	lsl	r3, r3, #8
	ldrb	r2, [fp, #-19]	@ zero_extendqisi2
	add	r3, r3, r2
	lsl	r3, r3, #8
	ldrb	r2, [fp, #-18]	@ zero_extendqisi2
	add	r3, r3, r2
	lsl	r3, r3, #8
	ldrb	r2, [fp, #-17]	@ zero_extendqisi2
	add	r3, r3, r2
	mov	r1, r3
	ldr	r0, .L7+20
	bl	printf
	mov	r3, #0
.L5:
	ldr	r2, .L7
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L6
	bl	__stack_chk_fail
.L6:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L8:
	.align	2
.L7:
	.word	.LC5
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.size	check_ipv4_valid, .-check_ipv4_valid
	.align	2
	.global	ipv4_to_int
	.syntax unified
	.arm
	.fpu softvfp
	.type	ipv4_to_int, %function
ipv4_to_int:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	beq	.L10
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	bne	.L11
.L10:
	mvn	r3, #0
	b	.L12
.L11:
	ldr	r0, [fp, #-16]
	bl	check_ipv4_valid
	mov	r3, r0
	cmp	r3, #0
	beq	.L13
	mvn	r3, #1
	b	.L12
.L13:
	mov	r3, #16777216
	str	r3, [fp, #-8]
	mov	r3, #0
	strb	r3, [fp, #-9]
	ldr	r3, [fp, #-20]
	mov	r2, #0
	str	r2, [r3]
.L19:
	ldr	r3, [fp, #-16]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L21
	ldr	r3, [fp, #-16]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #47
	bls	.L16
	ldr	r3, [fp, #-16]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #57
	bhi	.L16
	ldrb	r3, [fp, #-9]
	mov	r2, r3
	lsl	r2, r2, #2
	add	r3, r2, r3
	lsl	r3, r3, #1
	and	r2, r3, #255
	ldr	r3, [fp, #-16]
	ldrb	r3, [r3]	@ zero_extendqisi2
	add	r3, r2, r3
	and	r3, r3, #255
	sub	r3, r3, #48
	strb	r3, [fp, #-9]
.L16:
	ldr	r3, [fp, #-16]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #46
	beq	.L17
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L18
.L17:
	ldr	r3, [fp, #-20]
	ldr	r2, [r3]
	ldrb	r3, [fp, #-9]	@ zero_extendqisi2
	ldr	r1, [fp, #-8]
	mul	r3, r1, r3
	add	r2, r2, r3
	ldr	r3, [fp, #-20]
	str	r2, [r3]
	mov	r3, #0
	strb	r3, [fp, #-9]
	ldr	r3, [fp, #-8]
	lsr	r3, r3, #8
	str	r3, [fp, #-8]
.L18:
	ldr	r3, [fp, #-16]
	add	r3, r3, #1
	str	r3, [fp, #-16]
	b	.L19
.L21:
	nop
	mov	r3, #0
.L12:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	ipv4_to_int, .-ipv4_to_int
	.section	.rodata
	.align	2
.LC6:
	.ascii	"1.1.1.1\000"
	.align	2
.LC7:
	.ascii	"ret = %d, ip_int : %u\012\000"
	.align	2
.LC8:
	.ascii	"255.255.255.255\000"
	.align	2
.LC9:
	.ascii	"123.1.1.1\000"
	.align	2
.LC10:
	.ascii	"asd1as.asdasd.1\000"
	.align	2
.LC11:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	ldr	r3, .L25
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mvn	r3, #0
	str	r3, [fp, #-12]
	mov	r3, #0
	str	r3, [fp, #-16]
	sub	r3, fp, #16
	mov	r1, r3
	ldr	r0, .L25+4
	bl	ipv4_to_int
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-16]
	mov	r2, r3
	ldr	r1, [fp, #-12]
	ldr	r0, .L25+8
	bl	printf
	sub	r3, fp, #16
	mov	r1, r3
	ldr	r0, .L25+12
	bl	ipv4_to_int
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-16]
	mov	r2, r3
	ldr	r1, [fp, #-12]
	ldr	r0, .L25+8
	bl	printf
	sub	r3, fp, #16
	mov	r1, r3
	ldr	r0, .L25+16
	bl	ipv4_to_int
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-16]
	mov	r2, r3
	ldr	r1, [fp, #-12]
	ldr	r0, .L25+8
	bl	printf
	sub	r3, fp, #16
	mov	r1, r3
	ldr	r0, .L25+20
	bl	ipv4_to_int
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-16]
	mov	r2, r3
	ldr	r1, [fp, #-12]
	ldr	r0, .L25+8
	bl	printf
	mov	r3, #0
	ldr	r2, .L25
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L24
	bl	__stack_chk_fail
.L24:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L26:
	.align	2
.L25:
	.word	.LC11
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
