	.file	"64201351.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
	.align 8
.LC0:
	.string	"Usage: generate-ipv6-address [-p] [-s] {-r | prefix} [mac-48]\n"
.LC1:
	.string	"--"
.LC2:
	.string	"-p"
.LC3:
	.string	"-s"
.LC4:
	.string	"-r"
.LC5:
	.string	"/dev/urandom"
.LC6:
	.string	"open(random)"
.LC7:
	.string	"read(random)"
	.align 8
.LC8:
	.string	"Cannot use -s with this prefix.\n"
	.align 8
.LC9:
	.string	"%2hhx:%2hhx:%2hhx:%2hhx:%2hhx:%2hhx"
.LC10:
	.string	"Warning: group bit is not 0.\n"
.LC11:
	.string	"inet_ntop"
	.text
	.globl	main
	.type	main, @function
main:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 208
	mov	DWORD PTR -196[rbp], edi
	mov	QWORD PTR -208[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -168[rbp], 0
	mov	QWORD PTR -160[rbp], 0
	mov	DWORD PTR -184[rbp], 0
	mov	DWORD PTR -180[rbp], 0
	mov	DWORD PTR -176[rbp], 0
	lea	rax, .LC0[rip]
	mov	QWORD PTR -152[rbp], rax
	mov	DWORD PTR -192[rbp], 1
	jmp	.L2
.L10:
	mov	eax, DWORD PTR -192[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -208[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	movzx	eax, BYTE PTR [rax]
	cmp	al, 45
	jne	.L37
	mov	eax, DWORD PTR -192[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -208[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L5
	add	DWORD PTR -192[rbp], 1
	jmp	.L4
.L5:
	mov	eax, DWORD PTR -192[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -208[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L6
	mov	DWORD PTR -176[rbp], 1
	add	DWORD PTR -192[rbp], 1
	jmp	.L2
.L6:
	mov	eax, DWORD PTR -192[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -208[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L7
	mov	DWORD PTR -180[rbp], 1
	add	DWORD PTR -192[rbp], 1
	jmp	.L2
.L7:
	mov	eax, DWORD PTR -192[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -208[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L38
	mov	DWORD PTR -184[rbp], 1
	add	DWORD PTR -192[rbp], 1
.L2:
	mov	eax, DWORD PTR -192[rbp]
	cmp	eax, DWORD PTR -196[rbp]
	jl	.L10
	jmp	.L4
.L37:
	nop
.L4:
	cmp	DWORD PTR -184[rbp], 0
	jne	.L11
	mov	eax, DWORD PTR -192[rbp]
	cmp	eax, DWORD PTR -196[rbp]
	jge	.L39
	mov	eax, DWORD PTR -192[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -208[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -168[rbp], rax
	add	DWORD PTR -192[rbp], 1
.L11:
	mov	eax, DWORD PTR -192[rbp]
	cmp	eax, DWORD PTR -196[rbp]
	jge	.L13
	mov	eax, DWORD PTR -192[rbp]
	cdqe
	lea	rdx, 0[0+rax*8]
	mov	rax, QWORD PTR -208[rbp]
	add	rax, rdx
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -160[rbp], rax
	add	DWORD PTR -192[rbp], 1
	jmp	.L14
.L13:
	mov	QWORD PTR -160[rbp], 0
.L14:
	mov	eax, DWORD PTR -192[rbp]
	cmp	eax, DWORD PTR -196[rbp]
	jl	.L40
	cmp	QWORD PTR -160[rbp], 0
	je	.L16
	cmp	DWORD PTR -184[rbp], 0
	jne	.L16
	cmp	DWORD PTR -180[rbp], 0
	je	.L17
.L16:
	mov	esi, 0
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -188[rbp], eax
	cmp	DWORD PTR -188[rbp], 0
	jns	.L19
	lea	rdi, .LC6[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L17:
	mov	DWORD PTR -188[rbp], -1
.L19:
	cmp	DWORD PTR -184[rbp], 0
	je	.L20
	mov	BYTE PTR -128[rbp], -3
	lea	rax, -128[rbp]
	add	rax, 1
	mov	ecx, DWORD PTR -188[rbp]
	mov	edx, 5
	mov	rsi, rax
	mov	edi, ecx
	call	read@PLT
	mov	DWORD PTR -172[rbp], eax
	cmp	DWORD PTR -172[rbp], 5
	je	.L21
	lea	rdi, .LC7[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L21:
	lea	rax, -128[rbp]
	add	rax, 6
	mov	edx, 2
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	jmp	.L22
.L20:
	lea	rdx, -128[rbp]
	mov	rax, QWORD PTR -168[rbp]
	mov	rsi, rax
	mov	edi, 10
	call	inet_pton@PLT
	mov	DWORD PTR -172[rbp], eax
	cmp	DWORD PTR -172[rbp], 1
	jne	.L41
.L22:
	cmp	DWORD PTR -180[rbp], 0
	je	.L23
	movzx	eax, BYTE PTR -122[rbp]
	test	al, al
	jne	.L24
	movzx	eax, BYTE PTR -121[rbp]
	test	al, al
	je	.L25
.L24:
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 32
	mov	esi, 1
	lea	rdi, .LC8[rip]
	call	fwrite@PLT
	mov	edi, 1
	call	exit@PLT
.L25:
	lea	rax, -128[rbp]
	add	rax, 6
	mov	ecx, DWORD PTR -188[rbp]
	mov	edx, 2
	mov	rsi, rax
	mov	edi, ecx
	call	read@PLT
	mov	DWORD PTR -172[rbp], eax
	cmp	DWORD PTR -172[rbp], 2
	je	.L23
	lea	rdi, .LC7[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L23:
	cmp	DWORD PTR -176[rbp], 0
	je	.L26
	lea	rax, -128[rbp]
	add	rax, 8
	mov	edx, 8
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	jmp	.L27
.L26:
	cmp	QWORD PTR -160[rbp], 0
	je	.L28
	lea	rax, -134[rbp]
	lea	r8, 3[rax]
	lea	rax, -134[rbp]
	lea	rdi, 2[rax]
	lea	rax, -134[rbp]
	lea	rcx, 1[rax]
	lea	rdx, -134[rbp]
	mov	rax, QWORD PTR -160[rbp]
	lea	rsi, -134[rbp]
	add	rsi, 5
	push	rsi
	lea	rsi, -134[rbp]
	add	rsi, 4
	push	rsi
	mov	r9, r8
	mov	r8, rdi
	lea	rsi, .LC9[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_sscanf@PLT
	add	rsp, 16
	mov	DWORD PTR -172[rbp], eax
	cmp	DWORD PTR -172[rbp], 6
	jne	.L42
	movzx	eax, BYTE PTR -134[rbp]
	movzx	eax, al
	and	eax, 1
	test	eax, eax
	je	.L30
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 29
	mov	esi, 1
	lea	rdi, .LC10[rip]
	call	fwrite@PLT
	movzx	eax, BYTE PTR -134[rbp]
	and	eax, -2
	mov	BYTE PTR -134[rbp], al
.L30:
	movzx	eax, BYTE PTR -134[rbp]
	xor	eax, 2
	mov	BYTE PTR -120[rbp], al
	movzx	eax, BYTE PTR -133[rbp]
	mov	BYTE PTR -119[rbp], al
	movzx	eax, BYTE PTR -132[rbp]
	mov	BYTE PTR -118[rbp], al
	mov	BYTE PTR -117[rbp], -1
	mov	BYTE PTR -116[rbp], -2
	movzx	eax, BYTE PTR -131[rbp]
	mov	BYTE PTR -115[rbp], al
	movzx	eax, BYTE PTR -130[rbp]
	mov	BYTE PTR -114[rbp], al
	movzx	eax, BYTE PTR -129[rbp]
	mov	BYTE PTR -113[rbp], al
	jmp	.L27
.L28:
	lea	rax, -128[rbp]
	add	rax, 8
	mov	ecx, DWORD PTR -188[rbp]
	mov	edx, 8
	mov	rsi, rax
	mov	edi, ecx
	call	read@PLT
	mov	DWORD PTR -172[rbp], eax
	cmp	DWORD PTR -172[rbp], 8
	je	.L31
	lea	rdi, .LC7[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L31:
	movzx	eax, BYTE PTR -120[rbp]
	and	eax, -4
	mov	BYTE PTR -120[rbp], al
.L27:
	cmp	DWORD PTR -188[rbp], 0
	js	.L32
	mov	eax, DWORD PTR -188[rbp]
	mov	edi, eax
	call	close@PLT
.L32:
	lea	rdx, -112[rbp]
	lea	rax, -128[rbp]
	mov	ecx, 100
	mov	rsi, rax
	mov	edi, 10
	call	inet_ntop@PLT
	mov	QWORD PTR -144[rbp], rax
	cmp	QWORD PTR -144[rbp], 0
	jne	.L33
	lea	rdi, .LC11[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L33:
	mov	rax, QWORD PTR -144[rbp]
	mov	rdi, rax
	call	puts@PLT
	mov	eax, 0
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L35
	jmp	.L36
.L38:
	nop
	jmp	.L9
.L39:
	nop
	jmp	.L9
.L40:
	nop
	jmp	.L9
.L41:
	nop
	jmp	.L9
.L42:
	nop
.L9:
	mov	rdx, QWORD PTR stderr[rip]
	mov	rax, QWORD PTR -152[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	fputs@PLT
	mov	edi, 1
	call	exit@PLT
.L36:
	call	__stack_chk_fail@PLT
.L35:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.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	"64201351.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Usage: generate-ipv6-address [-p] [-s] {-r | prefix"
	.ascii	"} [mac-48]\012\000"
	.align	2
.LC1:
	.ascii	"--\000"
	.align	2
.LC2:
	.ascii	"-p\000"
	.align	2
.LC3:
	.ascii	"-s\000"
	.align	2
.LC4:
	.ascii	"-r\000"
	.align	2
.LC5:
	.ascii	"/dev/urandom\000"
	.align	2
.LC6:
	.ascii	"open(random)\000"
	.align	2
.LC7:
	.ascii	"read(random)\000"
	.align	2
.LC8:
	.ascii	"Cannot use -s with this prefix.\012\000"
	.align	2
.LC9:
	.ascii	"%2hhx:%2hhx:%2hhx:%2hhx:%2hhx:%2hhx\000"
	.align	2
.LC10:
	.ascii	"Warning: group bit is not 0.\012\000"
	.align	2
.LC11:
	.ascii	"inet_ntop\000"
	.align	2
.LC12:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 176
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #192
	str	r0, [fp, #-176]
	str	r1, [fp, #-180]
	ldr	r3, .L43
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-172]
	mov	r3, #0
	str	r3, [fp, #-168]
	mov	r3, #0
	str	r3, [fp, #-156]
	mov	r3, #0
	str	r3, [fp, #-152]
	mov	r3, #0
	str	r3, [fp, #-148]
	ldr	r3, .L43+4
	str	r3, [fp, #-144]
	mov	r3, #1
	str	r3, [fp, #-164]
	b	.L2
.L10:
	ldr	r3, [fp, #-164]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-180]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #45
	bne	.L37
	ldr	r3, [fp, #-164]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-180]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r1, .L43+8
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L5
	ldr	r3, [fp, #-164]
	add	r3, r3, #1
	str	r3, [fp, #-164]
	b	.L4
.L5:
	ldr	r3, [fp, #-164]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-180]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r1, .L43+12
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L6
	mov	r3, #1
	str	r3, [fp, #-148]
	ldr	r3, [fp, #-164]
	add	r3, r3, #1
	str	r3, [fp, #-164]
	b	.L2
.L6:
	ldr	r3, [fp, #-164]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-180]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r1, .L43+16
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L7
	mov	r3, #1
	str	r3, [fp, #-152]
	ldr	r3, [fp, #-164]
	add	r3, r3, #1
	str	r3, [fp, #-164]
	b	.L2
.L7:
	ldr	r3, [fp, #-164]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-180]
	add	r3, r2, r3
	ldr	r3, [r3]
	ldr	r1, .L43+20
	mov	r0, r3
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L38
	mov	r3, #1
	str	r3, [fp, #-156]
	ldr	r3, [fp, #-164]
	add	r3, r3, #1
	str	r3, [fp, #-164]
.L2:
	ldr	r2, [fp, #-164]
	ldr	r3, [fp, #-176]
	cmp	r2, r3
	blt	.L10
	b	.L4
.L37:
	nop
.L4:
	ldr	r3, [fp, #-156]
	cmp	r3, #0
	bne	.L11
	ldr	r2, [fp, #-164]
	ldr	r3, [fp, #-176]
	cmp	r2, r3
	bge	.L39
	ldr	r3, [fp, #-164]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-180]
	add	r3, r2, r3
	ldr	r3, [r3]
	str	r3, [fp, #-172]
	ldr	r3, [fp, #-164]
	add	r3, r3, #1
	str	r3, [fp, #-164]
.L11:
	ldr	r2, [fp, #-164]
	ldr	r3, [fp, #-176]
	cmp	r2, r3
	bge	.L13
	ldr	r3, [fp, #-164]
	lsl	r3, r3, #2
	ldr	r2, [fp, #-180]
	add	r3, r2, r3
	ldr	r3, [r3]
	str	r3, [fp, #-168]
	ldr	r3, [fp, #-164]
	add	r3, r3, #1
	str	r3, [fp, #-164]
	b	.L14
.L13:
	mov	r3, #0
	str	r3, [fp, #-168]
.L14:
	ldr	r2, [fp, #-164]
	ldr	r3, [fp, #-176]
	cmp	r2, r3
	blt	.L40
	ldr	r3, [fp, #-168]
	cmp	r3, #0
	beq	.L16
	ldr	r3, [fp, #-156]
	cmp	r3, #0
	bne	.L16
	ldr	r3, [fp, #-152]
	cmp	r3, #0
	beq	.L17
.L16:
	mov	r1, #0
	ldr	r0, .L43+24
	bl	open
	str	r0, [fp, #-160]
	ldr	r3, [fp, #-160]
	cmp	r3, #0
	bge	.L19
	ldr	r0, .L43+28
	bl	perror
	mov	r0, #1
	bl	exit
.L17:
	mvn	r3, #0
	str	r3, [fp, #-160]
.L19:
	ldr	r3, [fp, #-156]
	cmp	r3, #0
	beq	.L20
	mvn	r3, #2
	strb	r3, [fp, #-124]
	sub	r3, fp, #124
	add	r3, r3, #1
	mov	r2, #5
	mov	r1, r3
	ldr	r0, [fp, #-160]
	bl	read
	str	r0, [fp, #-140]
	ldr	r3, [fp, #-140]
	cmp	r3, #5
	beq	.L21
	ldr	r0, .L43+32
	bl	perror
	mov	r0, #1
	bl	exit
.L21:
	sub	r3, fp, #124
	add	r3, r3, #6
	mov	r2, #2
	mov	r1, #0
	mov	r0, r3
	bl	memset
	b	.L22
.L20:
	sub	r3, fp, #124
	mov	r2, r3
	ldr	r1, [fp, #-172]
	mov	r0, #10
	bl	inet_pton
	str	r0, [fp, #-140]
	ldr	r3, [fp, #-140]
	cmp	r3, #1
	bne	.L41
.L22:
	ldr	r3, [fp, #-152]
	cmp	r3, #0
	beq	.L23
	ldrb	r3, [fp, #-118]	@ zero_extendqisi2
	cmp	r3, #0
	bne	.L24
	ldrb	r3, [fp, #-117]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L25
.L24:
	ldr	r3, .L43+36
	ldr	r3, [r3]
	mov	r2, #32
	mov	r1, #1
	ldr	r0, .L43+40
	bl	fwrite
	mov	r0, #1
	bl	exit
.L25:
	sub	r3, fp, #124
	add	r3, r3, #6
	mov	r2, #2
	mov	r1, r3
	ldr	r0, [fp, #-160]
	bl	read
	str	r0, [fp, #-140]
	ldr	r3, [fp, #-140]
	cmp	r3, #2
	beq	.L23
	ldr	r0, .L43+32
	bl	perror
	mov	r0, #1
	bl	exit
.L23:
	ldr	r3, [fp, #-148]
	cmp	r3, #0
	beq	.L26
	sub	r3, fp, #124
	add	r3, r3, #8
	mov	r2, #8
	mov	r1, #0
	mov	r0, r3
	bl	memset
	b	.L27
.L26:
	ldr	r3, [fp, #-168]
	cmp	r3, #0
	beq	.L28
	sub	r3, fp, #132
	add	r1, r3, #1
	sub	r2, fp, #132
	sub	r3, fp, #132
	add	r3, r3, #5
	str	r3, [sp, #12]
	sub	r3, fp, #132
	add	r3, r3, #4
	str	r3, [sp, #8]
	sub	r3, fp, #132
	add	r3, r3, #3
	str	r3, [sp, #4]
	sub	r3, fp, #132
	add	r3, r3, #2
	str	r3, [sp]
	mov	r3, r1
	ldr	r1, .L43+44
	ldr	r0, [fp, #-168]
	bl	__isoc99_sscanf
	str	r0, [fp, #-140]
	ldr	r3, [fp, #-140]
	cmp	r3, #6
	bne	.L42
	ldrb	r3, [fp, #-132]	@ zero_extendqisi2
	and	r3, r3, #1
	cmp	r3, #0
	beq	.L30
	ldr	r3, .L43+36
	ldr	r3, [r3]
	mov	r2, #29
	mov	r1, #1
	ldr	r0, .L43+48
	bl	fwrite
	ldrb	r3, [fp, #-132]	@ zero_extendqisi2
	bic	r3, r3, #1
	and	r3, r3, #255
	strb	r3, [fp, #-132]
.L30:
	ldrb	r3, [fp, #-132]	@ zero_extendqisi2
	eor	r3, r3, #2
	and	r3, r3, #255
	strb	r3, [fp, #-116]
	ldrb	r3, [fp, #-131]	@ zero_extendqisi2
	strb	r3, [fp, #-115]
	ldrb	r3, [fp, #-130]	@ zero_extendqisi2
	strb	r3, [fp, #-114]
	mvn	r3, #0
	strb	r3, [fp, #-113]
	mvn	r3, #1
	strb	r3, [fp, #-112]
	ldrb	r3, [fp, #-129]	@ zero_extendqisi2
	strb	r3, [fp, #-111]
	ldrb	r3, [fp, #-128]	@ zero_extendqisi2
	strb	r3, [fp, #-110]
	ldrb	r3, [fp, #-127]	@ zero_extendqisi2
	strb	r3, [fp, #-109]
	b	.L27
.L28:
	sub	r3, fp, #124
	add	r3, r3, #8
	mov	r2, #8
	mov	r1, r3
	ldr	r0, [fp, #-160]
	bl	read
	str	r0, [fp, #-140]
	ldr	r3, [fp, #-140]
	cmp	r3, #8
	beq	.L31
	ldr	r0, .L43+32
	bl	perror
	mov	r0, #1
	bl	exit
.L31:
	ldrb	r3, [fp, #-116]	@ zero_extendqisi2
	bic	r3, r3, #3
	and	r3, r3, #255
	strb	r3, [fp, #-116]
.L27:
	ldr	r3, [fp, #-160]
	cmp	r3, #0
	blt	.L32
	ldr	r0, [fp, #-160]
	bl	close
.L32:
	sub	r2, fp, #108
	sub	r1, fp, #124
	mov	r3, #100
	mov	r0, #10
	bl	inet_ntop
	str	r0, [fp, #-136]
	ldr	r3, [fp, #-136]
	cmp	r3, #0
	bne	.L33
	ldr	r0, .L43+52
	bl	perror
	mov	r0, #1
	bl	exit
.L33:
	ldr	r0, [fp, #-136]
	bl	puts
	mov	r3, #0
	ldr	r2, .L43
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L35
	b	.L36
.L38:
	nop
	b	.L9
.L39:
	nop
	b	.L9
.L40:
	nop
	b	.L9
.L41:
	nop
	b	.L9
.L42:
	nop
.L9:
	ldr	r3, .L43+36
	ldr	r3, [r3]
	mov	r1, r3
	ldr	r0, [fp, #-144]
	bl	fputs
	mov	r0, #1
	bl	exit
.L36:
	bl	__stack_chk_fail
.L35:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L44:
	.align	2
.L43:
	.word	.LC12
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	stderr
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
