	.file	"556355.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"Open socket failed"
	.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, 16
	mov	edi, 3
	call	htons@PLT
	movzx	eax, ax
	mov	edx, eax
	mov	esi, 3
	mov	edi, 17
	call	socket@PLT
	mov	DWORD PTR -8[rbp], eax
	cmp	DWORD PTR -8[rbp], -1
	jne	.L2
	lea	rdi, .LC0[rip]
	call	puts@PLT
	mov	eax, 1
	jmp	.L3
.L2:
	mov	eax, DWORD PTR -8[rbp]
	mov	edi, eax
	call	get_socket_data
	mov	DWORD PTR -4[rbp], eax
	mov	eax, DWORD PTR -8[rbp]
	mov	edi, eax
	call	close@PLT
	mov	eax, DWORD PTR -4[rbp]
.L3:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	main, .-main
	.section	.rodata
.LC1:
	.string	"%s"
.LC2:
	.string	"get socket index failed"
.LC3:
	.string	"socket index: %d\n"
.LC4:
	.string	"get mac address failed"
.LC5:
	.string	"MAC: "
.LC6:
	.string	"get ip address failed"
.LC7:
	.string	"IP: "
.LC8:
	.string	"get subnetwork mask failed"
.LC9:
	.string	"MASK: "
.LC10:
	.string	"get broadcast address failed"
.LC11:
	.string	"BROADCAST: "
	.text
	.globl	get_socket_data
	.type	get_socket_data, @function
get_socket_data:
.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, 96
	mov	DWORD PTR -84[rbp], edi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, -32[rbp]
	mov	rsi, rax
	lea	rdi, .LC1[rip]
	mov	eax, 0
	call	__isoc99_scanf@PLT
	lea	rdx, -32[rbp]
	lea	rax, -80[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcpy@PLT
	lea	rdx, -80[rbp]
	mov	eax, DWORD PTR -84[rbp]
	mov	esi, 35123
	mov	edi, eax
	mov	eax, 0
	call	ioctl@PLT
	cmp	eax, -1
	jne	.L5
	lea	rdi, .LC2[rip]
	call	puts@PLT
	mov	eax, 1
	jmp	.L11
.L5:
	mov	eax, DWORD PTR -64[rbp]
	mov	esi, eax
	lea	rdi, .LC3[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rdx, -80[rbp]
	mov	eax, DWORD PTR -84[rbp]
	mov	esi, 35111
	mov	edi, eax
	mov	eax, 0
	call	ioctl@PLT
	cmp	eax, -1
	jne	.L7
	lea	rdi, .LC4[rip]
	call	puts@PLT
	mov	eax, 1
	jmp	.L11
.L7:
	mov	eax, DWORD PTR -62[rbp]
	mov	DWORD PTR -38[rbp], eax
	movzx	eax, WORD PTR -58[rbp]
	mov	WORD PTR -34[rbp], ax
	lea	rdi, .LC5[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -38[rbp]
	mov	esi, 1
	mov	rdi, rax
	call	display
	lea	rdx, -80[rbp]
	mov	eax, DWORD PTR -84[rbp]
	mov	esi, 35093
	mov	edi, eax
	mov	eax, 0
	call	ioctl@PLT
	cmp	eax, -1
	jne	.L8
	lea	rdi, .LC6[rip]
	call	puts@PLT
	mov	eax, 1
	jmp	.L11
.L8:
	mov	eax, DWORD PTR -62[rbp]
	mov	DWORD PTR -38[rbp], eax
	movzx	eax, WORD PTR -58[rbp]
	mov	WORD PTR -34[rbp], ax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -38[rbp]
	mov	esi, 2
	mov	rdi, rax
	call	display
	lea	rdx, -80[rbp]
	mov	eax, DWORD PTR -84[rbp]
	mov	esi, 35099
	mov	edi, eax
	mov	eax, 0
	call	ioctl@PLT
	cmp	eax, -1
	jne	.L9
	lea	rdi, .LC8[rip]
	call	puts@PLT
	mov	eax, 1
	jmp	.L11
.L9:
	mov	eax, DWORD PTR -62[rbp]
	mov	DWORD PTR -38[rbp], eax
	movzx	eax, WORD PTR -58[rbp]
	mov	WORD PTR -34[rbp], ax
	lea	rdi, .LC9[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -38[rbp]
	mov	esi, 2
	mov	rdi, rax
	call	display
	lea	rdx, -80[rbp]
	mov	eax, DWORD PTR -84[rbp]
	mov	esi, 35097
	mov	edi, eax
	mov	eax, 0
	call	ioctl@PLT
	cmp	eax, -1
	jne	.L10
	lea	rdi, .LC10[rip]
	call	puts@PLT
	mov	eax, 1
	jmp	.L11
.L10:
	mov	eax, DWORD PTR -62[rbp]
	mov	DWORD PTR -38[rbp], eax
	movzx	eax, WORD PTR -58[rbp]
	mov	WORD PTR -34[rbp], ax
	lea	rdi, .LC11[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -38[rbp]
	mov	esi, 2
	mov	rdi, rax
	call	display
	mov	eax, 0
.L11:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L12
	call	__stack_chk_fail@PLT
.L12:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	get_socket_data, .-get_socket_data
	.section	.rodata
.LC12:
	.string	"%2x:"
.LC13:
	.string	"%2d:"
	.text
	.globl	display
	.type	display, @function
display:
.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, 32
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -28[rbp], esi
	cmp	DWORD PTR -28[rbp], 1
	jne	.L14
	mov	DWORD PTR -8[rbp], 0
	jmp	.L15
.L16:
	mov	eax, DWORD PTR -8[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	mov	esi, eax
	lea	rdi, .LC12[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -8[rbp], 1
.L15:
	cmp	DWORD PTR -8[rbp], 5
	jle	.L16
	jmp	.L17
.L14:
	mov	DWORD PTR -4[rbp], 2
	jmp	.L18
.L19:
	mov	eax, DWORD PTR -4[rbp]
	movsx	rdx, eax
	mov	rax, QWORD PTR -24[rbp]
	add	rax, rdx
	movzx	eax, BYTE PTR [rax]
	movzx	eax, al
	mov	esi, eax
	lea	rdi, .LC13[rip]
	mov	eax, 0
	call	printf@PLT
	add	DWORD PTR -4[rbp], 1
.L18:
	cmp	DWORD PTR -4[rbp], 5
	jle	.L19
.L17:
	mov	edi, 10
	call	putchar@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	display, .-display
	.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	"556355.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Open socket failed\000"
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	mov	r0, #3
	bl	htons
	mov	r3, r0
	mov	r2, r3
	mov	r1, #3
	mov	r0, #17
	bl	socket
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmn	r3, #1
	bne	.L2
	ldr	r0, .L4
	bl	puts
	mov	r3, #1
	b	.L3
.L2:
	ldr	r0, [fp, #-12]
	bl	get_socket_data
	str	r0, [fp, #-8]
	ldr	r0, [fp, #-12]
	bl	close
	ldr	r3, [fp, #-8]
.L3:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L5:
	.align	2
.L4:
	.word	.LC0
	.size	main, .-main
	.section	.rodata
	.align	2
.LC1:
	.ascii	"%s\000"
	.align	2
.LC2:
	.ascii	"get socket index failed\000"
	.align	2
.LC3:
	.ascii	"socket index: %d\012\000"
	.align	2
.LC4:
	.ascii	"get mac address failed\000"
	.align	2
.LC5:
	.ascii	"MAC: \000"
	.align	2
.LC6:
	.ascii	"get ip address failed\000"
	.align	2
.LC7:
	.ascii	"IP: \000"
	.align	2
.LC8:
	.ascii	"get subnetwork mask failed\000"
	.align	2
.LC9:
	.ascii	"MASK: \000"
	.align	2
.LC10:
	.ascii	"get broadcast address failed\000"
	.align	2
.LC11:
	.ascii	"BROADCAST: \000"
	.align	2
.LC12:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	get_socket_data
	.syntax unified
	.arm
	.fpu softvfp
	.type	get_socket_data, %function
get_socket_data:
	@ args = 0, pretend = 0, frame = 72
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #72
	str	r0, [fp, #-72]
	ldr	r3, .L15
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #28
	mov	r1, r3
	ldr	r0, .L15+4
	bl	__isoc99_scanf
	sub	r2, fp, #28
	sub	r3, fp, #68
	mov	r1, r2
	mov	r0, r3
	bl	strcpy
	sub	r3, fp, #68
	mov	r2, r3
	ldr	r1, .L15+8
	ldr	r0, [fp, #-72]
	bl	ioctl
	mov	r3, r0
	cmn	r3, #1
	bne	.L7
	ldr	r0, .L15+12
	bl	puts
	mov	r3, #1
	b	.L13
.L7:
	ldr	r3, [fp, #-52]
	mov	r1, r3
	ldr	r0, .L15+16
	bl	printf
	sub	r3, fp, #68
	mov	r2, r3
	ldr	r1, .L15+20
	ldr	r0, [fp, #-72]
	bl	ioctl
	mov	r3, r0
	cmn	r3, #1
	bne	.L9
	ldr	r0, .L15+24
	bl	puts
	mov	r3, #1
	b	.L13
.L9:
	sub	r3, fp, #36
	sub	r1, fp, #50
	mov	r2, #6
	mov	r0, r3
	bl	memcpy
	ldr	r0, .L15+28
	bl	printf
	sub	r3, fp, #36
	mov	r1, #1
	mov	r0, r3
	bl	display
	sub	r3, fp, #68
	mov	r2, r3
	ldr	r1, .L15+32
	ldr	r0, [fp, #-72]
	bl	ioctl
	mov	r3, r0
	cmn	r3, #1
	bne	.L10
	ldr	r0, .L15+36
	bl	puts
	mov	r3, #1
	b	.L13
.L10:
	sub	r3, fp, #36
	sub	r1, fp, #50
	mov	r2, #6
	mov	r0, r3
	bl	memcpy
	ldr	r0, .L15+40
	bl	printf
	sub	r3, fp, #36
	mov	r1, #2
	mov	r0, r3
	bl	display
	sub	r3, fp, #68
	mov	r2, r3
	ldr	r1, .L15+44
	ldr	r0, [fp, #-72]
	bl	ioctl
	mov	r3, r0
	cmn	r3, #1
	bne	.L11
	ldr	r0, .L15+48
	bl	puts
	mov	r3, #1
	b	.L13
.L11:
	sub	r3, fp, #36
	sub	r1, fp, #50
	mov	r2, #6
	mov	r0, r3
	bl	memcpy
	ldr	r0, .L15+52
	bl	printf
	sub	r3, fp, #36
	mov	r1, #2
	mov	r0, r3
	bl	display
	sub	r3, fp, #68
	mov	r2, r3
	ldr	r1, .L15+56
	ldr	r0, [fp, #-72]
	bl	ioctl
	mov	r3, r0
	cmn	r3, #1
	bne	.L12
	ldr	r0, .L15+60
	bl	puts
	mov	r3, #1
	b	.L13
.L12:
	sub	r3, fp, #36
	sub	r1, fp, #50
	mov	r2, #6
	mov	r0, r3
	bl	memcpy
	ldr	r0, .L15+64
	bl	printf
	sub	r3, fp, #36
	mov	r1, #2
	mov	r0, r3
	bl	display
	mov	r3, #0
.L13:
	ldr	r2, .L15
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L14
	bl	__stack_chk_fail
.L14:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L16:
	.align	2
.L15:
	.word	.LC12
	.word	.LC1
	.word	35123
	.word	.LC2
	.word	.LC3
	.word	35111
	.word	.LC4
	.word	.LC5
	.word	35093
	.word	.LC6
	.word	.LC7
	.word	35099
	.word	.LC8
	.word	.LC9
	.word	35097
	.word	.LC10
	.word	.LC11
	.size	get_socket_data, .-get_socket_data
	.section	.rodata
	.align	2
.LC13:
	.ascii	"%2x:\000"
	.align	2
.LC14:
	.ascii	"%2d:\000"
	.text
	.align	2
	.global	display
	.syntax unified
	.arm
	.fpu softvfp
	.type	display, %function
display:
	@ 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, #-20]
	cmp	r3, #1
	bne	.L18
	mov	r3, #0
	str	r3, [fp, #-12]
	b	.L19
.L20:
	ldr	r3, [fp, #-12]
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r0, .L24
	bl	printf
	ldr	r3, [fp, #-12]
	add	r3, r3, #1
	str	r3, [fp, #-12]
.L19:
	ldr	r3, [fp, #-12]
	cmp	r3, #5
	ble	.L20
	b	.L21
.L18:
	mov	r3, #2
	str	r3, [fp, #-8]
	b	.L22
.L23:
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-16]
	add	r3, r2, r3
	ldrb	r3, [r3]	@ zero_extendqisi2
	mov	r1, r3
	ldr	r0, .L24+4
	bl	printf
	ldr	r3, [fp, #-8]
	add	r3, r3, #1
	str	r3, [fp, #-8]
.L22:
	ldr	r3, [fp, #-8]
	cmp	r3, #5
	ble	.L23
.L21:
	mov	r0, #10
	bl	putchar
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L25:
	.align	2
.L24:
	.word	.LC13
	.word	.LC14
	.size	display, .-display
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
