	.file	"791250.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
	.align 8
.LC0:
	.string	"----------------------------------------------"
.LC1:
	.string	"ip is %s\n"
	.text
	.globl	getlocalhostip
	.type	getlocalhostip, @function
getlocalhostip:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r12
	push	rbx
	add	rsp, -128
	.cfi_offset 12, -24
	.cfi_offset 3, -32
	mov	rbx, QWORD PTR fs:40
	mov	QWORD PTR -24[rbp], rbx
	xor	ebx, ebx
	mov	rcx, rsp
	mov	r12, rcx
	mov	QWORD PTR -80[rbp], 0
	mov	QWORD PTR -72[rbp], 0
	mov	QWORD PTR -64[rbp], 0
	mov	QWORD PTR -56[rbp], 0
	mov	QWORD PTR -48[rbp], 0
	mov	QWORD PTR -40[rbp], 0
	mov	WORD PTR -32[rbp], 0
	mov	DWORD PTR -132[rbp], 16
	mov	DWORD PTR -128[rbp], 0
	mov	ebx, DWORD PTR -132[rbp]
	movsx	rcx, ebx
	sub	rcx, 1
	mov	QWORD PTR -112[rbp], rcx
	movsx	rcx, ebx
	mov	rax, rcx
	mov	edx, 0
	imul	r8, rdx, 320
	imul	rcx, rax, 0
	add	rcx, r8
	mov	r8d, 320
	mul	r8
	add	rcx, rdx
	mov	rdx, rcx
	movsx	rdx, ebx
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 3
	movsx	rax, ebx
	mov	rsi, rax
	mov	edi, 0
	imul	rdx, rdi, 320
	imul	rax, rsi, 0
	lea	rcx, [rdx+rax]
	mov	eax, 320
	mul	rsi
	add	rcx, rdx
	mov	rdx, rcx
	movsx	rdx, ebx
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 3
	mov	rdx, rax
	mov	eax, 16
	sub	rax, 1
	add	rax, rdx
	mov	esi, 16
	mov	edx, 0
	div	rsi
	imul	rax, rax, 16
	mov	rcx, rax
	and	rcx, -4096
	mov	rdx, rsp
	sub	rdx, rcx
.L2:
	cmp	rsp, rdx
	je	.L3
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	jmp	.L2
.L3:
	mov	rdx, rax
	and	edx, 4095
	sub	rsp, rdx
	mov	rdx, rax
	and	edx, 4095
	test	rdx, rdx
	je	.L4
	and	eax, 4095
	sub	rax, 8
	add	rax, rsp
	or	QWORD PTR [rax], 0
.L4:
	mov	rax, rsp
	add	rax, 7
	shr	rax, 3
	sal	rax, 3
	mov	QWORD PTR -104[rbp], rax
	mov	QWORD PTR -120[rbp], -1
	mov	edx, 0
	mov	esi, 2
	mov	edi, 2
	call	socket@PLT
	mov	DWORD PTR -124[rbp], eax
	cmp	DWORD PTR -124[rbp], 0
	js	.L5
	movsx	rax, ebx
	mov	edx, eax
	mov	eax, edx
	sal	eax, 2
	add	eax, edx
	sal	eax, 3
	mov	DWORD PTR -96[rbp], eax
	mov	rax, QWORD PTR -104[rbp]
	mov	QWORD PTR -88[rbp], rax
	lea	rdx, -96[rbp]
	mov	eax, DWORD PTR -124[rbp]
	mov	esi, 35090
	mov	edi, eax
	mov	eax, 0
	call	ioctl@PLT
	test	eax, eax
	jne	.L6
	mov	eax, DWORD PTR -96[rbp]
	cdqe
	movabs	rdx, -3689348814741910323
	mul	rdx
	mov	rax, rdx
	shr	rax, 5
	mov	DWORD PTR -136[rbp], eax
	jmp	.L7
.L8:
	mov	eax, DWORD PTR -136[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 3
	mov	rdx, QWORD PTR -104[rbp]
	add	rdx, rax
	mov	eax, DWORD PTR -124[rbp]
	mov	esi, 35093
	mov	edi, eax
	mov	eax, 0
	call	ioctl@PLT
	test	eax, eax
	jne	.L7
	mov	eax, DWORD PTR -136[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 3
	lea	rdx, 16[rax]
	mov	rax, QWORD PTR -104[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR 4[rax]
	mov	edi, eax
	call	inet_ntoa@PLT
	mov	rdi, rax
	call	inet_addr@PLT
	mov	eax, eax
	mov	QWORD PTR -120[rbp], rax
	mov	eax, DWORD PTR -136[rbp]
	movsx	rdx, eax
	mov	rax, rdx
	sal	rax, 2
	add	rax, rdx
	sal	rax, 3
	lea	rdx, 16[rax]
	mov	rax, QWORD PTR -104[rbp]
	add	rax, rdx
	mov	eax, DWORD PTR 4[rax]
	mov	edi, eax
	call	inet_ntoa@PLT
	mov	rdx, rax
	lea	rax, -80[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
	lea	rdi, .LC0[rip]
	call	puts@PLT
	lea	rax, -80[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	printf@PLT
	jmp	.L6
.L7:
	mov	eax, DWORD PTR -136[rbp]
	lea	edx, -1[rax]
	mov	DWORD PTR -136[rbp], edx
	test	eax, eax
	jg	.L8
.L6:
	mov	eax, DWORD PTR -124[rbp]
	mov	edi, eax
	mov	eax, 0
	call	close@PLT
.L5:
	mov	rax, QWORD PTR -120[rbp]
	mov	rsp, r12
	mov	rbx, QWORD PTR -24[rbp]
	sub	rbx, QWORD PTR fs:40
	je	.L10
	call	__stack_chk_fail@PLT
.L10:
	lea	rsp, -16[rbp]
	pop	rbx
	pop	r12
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	getlocalhostip, .-getlocalhostip
	.globl	main
	.type	main, @function
main:
.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	DWORD PTR -20[rbp], edi
	mov	QWORD PTR -32[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	eax, 0
	call	getlocalhostip
	mov	QWORD PTR -16[rbp], rax
	mov	eax, 0
	mov	rdx, QWORD PTR -8[rbp]
	sub	rdx, QWORD PTR fs:40
	je	.L13
	call	__stack_chk_fail@PLT
.L13:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.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	"791250.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"----------------------------------------------\000"
	.align	2
.LC1:
	.ascii	"ip is %s\012\000"
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	getlocalhostip
	.syntax unified
	.arm
	.fpu softvfp
	.type	getlocalhostip, %function
getlocalhostip:
	@ args = 0, pretend = 0, frame = 96
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #96
	ldr	r3, .L8
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r3, sp
	mov	r5, r3
	mov	r3, #0
	str	r3, [fp, #-68]
	sub	r3, fp, #64
	mov	r2, #46
	mov	r1, #0
	mov	r0, r3
	bl	memset
	mov	r3, #16
	str	r3, [fp, #-96]
	mov	r3, #0
	str	r3, [fp, #-92]
	ldr	r4, [fp, #-96]
	sub	r3, r4, #1
	str	r3, [fp, #-88]
	mov	r3, r4
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #8
	orr	r3, r3, r0, lsr #24
	lsl	r2, r0, #8
	mov	r3, r4
	mov	r0, r3
	mov	r1, #0
	mov	r2, #0
	mov	r3, #0
	lsl	r3, r1, #8
	orr	r3, r3, r0, lsr #24
	lsl	r2, r0, #8
	mov	r3, r4
	lsl	r3, r3, #5
	add	r3, r3, #7
	lsr	r3, r3, #3
	lsl	r3, r3, #3
	sub	sp, sp, r3
	mov	r3, sp
	add	r3, r3, #3
	lsr	r3, r3, #2
	lsl	r3, r3, #2
	str	r3, [fp, #-84]
	mvn	r3, #0
	str	r3, [fp, #-100]
	mov	r2, #0
	mov	r1, #2
	mov	r0, #2
	bl	socket
	str	r0, [fp, #-80]
	ldr	r3, [fp, #-80]
	cmp	r3, #0
	blt	.L2
	mov	r3, r4
	lsl	r3, r3, #5
	str	r3, [fp, #-76]
	ldr	r3, [fp, #-84]
	str	r3, [fp, #-72]
	sub	r3, fp, #76
	mov	r2, r3
	ldr	r1, .L8+4
	ldr	r0, [fp, #-80]
	bl	ioctl
	mov	r3, r0
	cmp	r3, #0
	bne	.L3
	ldr	r3, [fp, #-76]
	lsr	r3, r3, #5
	str	r3, [fp, #-104]
	b	.L4
.L5:
	ldr	r3, [fp, #-104]
	lsl	r3, r3, #5
	ldr	r2, [fp, #-84]
	add	r3, r2, r3
	mov	r2, r3
	ldr	r1, .L8+8
	ldr	r0, [fp, #-80]
	bl	ioctl
	mov	r3, r0
	cmp	r3, #0
	bne	.L4
	ldr	r3, [fp, #-104]
	lsl	r3, r3, #5
	add	r3, r3, #16
	ldr	r2, [fp, #-84]
	add	r3, r2, r3
	ldr	r0, [r3, #4]
	bl	inet_ntoa
	mov	r3, r0
	mov	r0, r3
	bl	inet_addr
	mov	r3, r0
	str	r3, [fp, #-100]
	ldr	r3, [fp, #-104]
	lsl	r3, r3, #5
	add	r3, r3, #16
	ldr	r2, [fp, #-84]
	add	r3, r2, r3
	ldr	r0, [r3, #4]
	bl	inet_ntoa
	mov	r2, r0
	sub	r3, fp, #68
	mov	r1, r2
	mov	r0, r3
	bl	strcpy
	ldr	r0, .L8+12
	bl	puts
	sub	r3, fp, #68
	mov	r1, r3
	ldr	r0, .L8+16
	bl	printf
	b	.L3
.L4:
	ldr	r3, [fp, #-104]
	sub	r2, r3, #1
	str	r2, [fp, #-104]
	cmp	r3, #0
	bgt	.L5
.L3:
	ldr	r0, [fp, #-80]
	bl	close
.L2:
	ldr	r3, [fp, #-100]
	mov	sp, r5
	ldr	r2, .L8
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L7
	bl	__stack_chk_fail
.L7:
	mov	r0, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L9:
	.align	2
.L8:
	.word	.LC2
	.word	35090
	.word	35093
	.word	.LC0
	.word	.LC1
	.size	getlocalhostip, .-getlocalhostip
	.section	.rodata
	.align	2
.LC3:
	.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
	str	r0, [fp, #-16]
	str	r1, [fp, #-20]
	ldr	r3, .L13
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	bl	getlocalhostip
	mov	r3, r0
	str	r3, [fp, #-12]
	mov	r3, #0
	ldr	r2, .L13
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L12
	bl	__stack_chk_fail
.L12:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L14:
	.align	2
.L13:
	.word	.LC3
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
