	.file	"173578424.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"gethostname"
	.text
	.globl	check_host_name
	.type	check_host_name, @function
check_host_name:
.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, 16
	mov	DWORD PTR -4[rbp], edi
	cmp	DWORD PTR -4[rbp], -1
	jne	.L3
	lea	rdi, .LC0[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L3:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	check_host_name, .-check_host_name
	.section	.rodata
.LC1:
	.string	"gethostbyname"
	.text
	.globl	check_host_entry
	.type	check_host_entry, @function
check_host_entry:
.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, 16
	mov	QWORD PTR -8[rbp], rdi
	cmp	QWORD PTR -8[rbp], 0
	jne	.L6
	lea	rdi, .LC1[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L6:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	check_host_entry, .-check_host_entry
	.section	.rodata
.LC2:
	.string	"inet_ntoa"
	.text
	.globl	IP_formatter
	.type	IP_formatter, @function
IP_formatter:
.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	QWORD PTR -8[rbp], rdi
	cmp	QWORD PTR -8[rbp], 0
	jne	.L9
	lea	rdi, .LC2[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L9:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	IP_formatter, .-IP_formatter
	.section	.rodata
.LC3:
	.string	"Current Host Name: %s\n"
.LC4:
	.string	"Host IP: %s\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB9:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 320
	mov	DWORD PTR -308[rbp], edi
	mov	QWORD PTR -320[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, -272[rbp]
	mov	esi, 256
	mov	rdi, rax
	call	gethostname@PLT
	mov	DWORD PTR -292[rbp], eax
	mov	eax, DWORD PTR -292[rbp]
	mov	edi, eax
	call	check_host_name
	lea	rax, -272[rbp]
	mov	rdi, rax
	call	gethostbyname@PLT
	mov	QWORD PTR -288[rbp], rax
	mov	rax, QWORD PTR -288[rbp]
	mov	rdi, rax
	call	check_host_entry
	mov	rax, QWORD PTR -288[rbp]
	mov	rax, QWORD PTR 24[rax]
	mov	rax, QWORD PTR [rax]
	mov	edi, DWORD PTR [rax]
	call	inet_ntoa@PLT
	mov	QWORD PTR -280[rbp], rax
	lea	rax, -272[rbp]
	mov	rsi, rax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	mov	rax, QWORD PTR -280[rbp]
	mov	rsi, rax
	lea	rdi, .LC4[rip]
	mov	eax, 0
	call	printf@PLT
	mov	eax, 0
	call	ifs
	mov	eax, 0
	mov	rdx, QWORD PTR -8[rbp]
	sub	rdx, QWORD PTR fs:40
	je	.L12
	call	__stack_chk_fail@PLT
.L12:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	main, .-main
	.section	.rodata
.LC5:
	.string	"Interface: %s\tAddress: %s\n"
	.text
	.globl	ifs
	.type	ifs, @function
ifs:
.LFB10:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 48
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, -40[rbp]
	mov	rdi, rax
	call	getifaddrs@PLT
	mov	rax, QWORD PTR -40[rbp]
	mov	QWORD PTR -32[rbp], rax
	jmp	.L14
.L16:
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR 24[rax]
	movzx	eax, WORD PTR [rax]
	cmp	ax, 2
	jne	.L15
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR 32[rax]
	mov	QWORD PTR -24[rbp], rax
	mov	rax, QWORD PTR -24[rbp]
	mov	eax, DWORD PTR 4[rax]
	mov	edi, eax
	call	inet_ntoa@PLT
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	rdx, QWORD PTR -16[rbp]
	mov	rsi, rax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
.L15:
	mov	rax, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -32[rbp], rax
.L14:
	cmp	QWORD PTR -32[rbp], 0
	jne	.L16
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	freeifaddrs@PLT
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L17
	call	__stack_chk_fail@PLT
.L17:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	ifs, .-ifs
	.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	"173578424.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"gethostname\000"
	.text
	.align	2
	.global	check_host_name
	.syntax unified
	.arm
	.fpu softvfp
	.type	check_host_name, %function
check_host_name:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmn	r3, #1
	bne	.L3
	ldr	r0, .L4
	bl	perror
	mov	r0, #1
	bl	exit
.L3:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L5:
	.align	2
.L4:
	.word	.LC0
	.size	check_host_name, .-check_host_name
	.section	.rodata
	.align	2
.LC1:
	.ascii	"gethostbyname\000"
	.text
	.align	2
	.global	check_host_entry
	.syntax unified
	.arm
	.fpu softvfp
	.type	check_host_entry, %function
check_host_entry:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L8
	ldr	r0, .L9
	bl	perror
	mov	r0, #1
	bl	exit
.L8:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L10:
	.align	2
.L9:
	.word	.LC1
	.size	check_host_entry, .-check_host_entry
	.section	.rodata
	.align	2
.LC2:
	.ascii	"inet_ntoa\000"
	.text
	.align	2
	.global	IP_formatter
	.syntax unified
	.arm
	.fpu softvfp
	.type	IP_formatter, %function
IP_formatter:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L13
	ldr	r0, .L14
	bl	perror
	mov	r0, #1
	bl	exit
.L13:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L15:
	.align	2
.L14:
	.word	.LC2
	.size	IP_formatter, .-IP_formatter
	.section	.rodata
	.align	2
.LC3:
	.ascii	"Current Host Name: %s\012\000"
	.align	2
.LC4:
	.ascii	"Host IP: %s\012\000"
	.align	2
.LC5:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 280
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #280
	str	r0, [fp, #-280]
	str	r1, [fp, #-284]
	ldr	r3, .L19
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #264
	mov	r1, #256
	mov	r0, r3
	bl	gethostname
	str	r0, [fp, #-276]
	ldr	r0, [fp, #-276]
	bl	check_host_name
	sub	r3, fp, #264
	mov	r0, r3
	bl	gethostbyname
	str	r0, [fp, #-272]
	ldr	r0, [fp, #-272]
	bl	check_host_entry
	ldr	r3, [fp, #-272]
	ldr	r3, [r3, #16]
	ldr	r3, [r3]
	ldr	r0, [r3]
	bl	inet_ntoa
	str	r0, [fp, #-268]
	sub	r3, fp, #264
	mov	r1, r3
	ldr	r0, .L19+4
	bl	printf
	ldr	r1, [fp, #-268]
	ldr	r0, .L19+8
	bl	printf
	bl	ifs
	mov	r3, #0
	ldr	r2, .L19
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L18
	bl	__stack_chk_fail
.L18:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L20:
	.align	2
.L19:
	.word	.LC5
	.word	.LC3
	.word	.LC4
	.size	main, .-main
	.section	.rodata
	.align	2
.LC6:
	.ascii	"Interface: %s\011Address: %s\012\000"
	.align	2
.LC7:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	ifs
	.syntax unified
	.arm
	.fpu softvfp
	.type	ifs, %function
ifs:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	ldr	r3, .L26
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #24
	mov	r0, r3
	bl	getifaddrs
	ldr	r3, [fp, #-24]
	str	r3, [fp, #-20]
	b	.L22
.L24:
	ldr	r3, [fp, #-20]
	ldr	r3, [r3, #12]
	ldrh	r3, [r3]
	cmp	r3, #2
	bne	.L23
	ldr	r3, [fp, #-20]
	ldr	r3, [r3, #16]
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-16]
	ldr	r0, [r3, #4]
	bl	inet_ntoa
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-20]
	ldr	r3, [r3, #4]
	ldr	r2, [fp, #-12]
	mov	r1, r3
	ldr	r0, .L26+4
	bl	printf
.L23:
	ldr	r3, [fp, #-20]
	ldr	r3, [r3]
	str	r3, [fp, #-20]
.L22:
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	bne	.L24
	ldr	r3, [fp, #-24]
	mov	r0, r3
	bl	freeifaddrs
	nop
	ldr	r3, .L26
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L25
	bl	__stack_chk_fail
.L25:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L27:
	.align	2
.L26:
	.word	.LC7
	.word	.LC6
	.size	ifs, .-ifs
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
