	.file	"808884.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"gethostbyname"
	.text
	.globl	make_internet_address
	.type	make_internet_address, @function
make_internet_address:
.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, 48
	mov	QWORD PTR -24[rbp], rdi
	mov	eax, esi
	mov	QWORD PTR -40[rbp], rdx
	mov	WORD PTR -28[rbp], ax
	mov	rax, QWORD PTR -40[rbp]
	mov	WORD PTR [rax], 2
	movzx	eax, WORD PTR -28[rbp]
	mov	edi, eax
	call	htons@PLT
	mov	rdx, QWORD PTR -40[rbp]
	mov	WORD PTR 2[rdx], ax
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	gethostbyname@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	je	.L2
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR 16[rax]
	cmp	eax, 2
	je	.L3
.L2:
	lea	rdi, .LC0[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L3:
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR 20[rax]
	movsx	rdx, eax
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 24[rax]
	mov	rax, QWORD PTR [rax]
	mov	rcx, QWORD PTR -40[rbp]
	add	rcx, 4
	mov	rsi, rax
	mov	rdi, rcx
	call	memcpy@PLT
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	make_internet_address, .-make_internet_address
	.globl	make_dgram_server_socket
	.type	make_dgram_server_socket, @function
make_dgram_server_socket:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	add	rsp, -128
	mov	eax, edi
	mov	WORD PTR -116[rbp], ax
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rax, -96[rbp]
	mov	edx, 16
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	lea	rax, -80[rbp]
	mov	edx, 64
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	lea	rax, -80[rbp]
	mov	esi, 64
	mov	rdi, rax
	call	gethostname@PLT
	mov	edx, 0
	mov	esi, 2
	mov	edi, 2
	call	socket@PLT
	mov	DWORD PTR -100[rbp], eax
	cmp	DWORD PTR -100[rbp], -1
	jne	.L5
	mov	eax, -1
	jmp	.L8
.L5:
	movzx	ecx, WORD PTR -116[rbp]
	lea	rdx, -96[rbp]
	lea	rax, -80[rbp]
	mov	esi, ecx
	mov	rdi, rax
	call	make_internet_address
	lea	rcx, -96[rbp]
	mov	eax, DWORD PTR -100[rbp]
	mov	edx, 16
	mov	rsi, rcx
	mov	edi, eax
	call	bind@PLT
	cmp	eax, -1
	jne	.L7
	mov	eax, -1
	jmp	.L8
.L7:
	mov	eax, DWORD PTR -100[rbp]
.L8:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L9
	call	__stack_chk_fail@PLT
.L9:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	make_dgram_server_socket, .-make_dgram_server_socket
	.globl	make_dgram_client_socket
	.type	make_dgram_client_socket, @function
make_dgram_client_socket:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	edx, 0
	mov	esi, 2
	mov	edi, 2
	call	socket@PLT
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	make_dgram_client_socket, .-make_dgram_client_socket
	.globl	get_internet_address
	.type	get_internet_address, @function
get_internet_address:
.LFB9:
	.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 -24[rbp], rdi
	mov	DWORD PTR -28[rbp], esi
	mov	QWORD PTR -40[rbp], rdx
	mov	QWORD PTR -48[rbp], rcx
	mov	eax, DWORD PTR -28[rbp]
	movsx	rbx, eax
	mov	rax, QWORD PTR -48[rbp]
	mov	eax, DWORD PTR 4[rax]
	mov	edi, eax
	call	inet_ntoa@PLT
	mov	rcx, rax
	mov	rax, QWORD PTR -24[rbp]
	mov	rdx, rbx
	mov	rsi, rcx
	mov	rdi, rax
	call	strncpy@PLT
	mov	rax, QWORD PTR -48[rbp]
	movzx	eax, WORD PTR 2[rax]
	movzx	eax, ax
	mov	edi, eax
	call	ntohs@PLT
	mov	rdx, QWORD PTR -40[rbp]
	mov	WORD PTR [rdx], ax
	nop
	mov	rbx, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	get_internet_address, .-get_internet_address
	.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	"808884.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"gethostbyname\000"
	.text
	.align	2
	.global	make_internet_address
	.syntax unified
	.arm
	.fpu softvfp
	.type	make_internet_address, %function
make_internet_address:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	str	r0, [fp, #-16]
	mov	r3, r1
	str	r2, [fp, #-24]
	strh	r3, [fp, #-18]	@ movhi
	ldr	r3, [fp, #-24]
	mov	r2, #2
	strh	r2, [r3]	@ movhi
	ldrh	r3, [fp, #-18]
	mov	r0, r3
	bl	htons
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-24]
	strh	r2, [r3, #2]	@ movhi
	ldr	r0, [fp, #-16]
	bl	gethostbyname
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L2
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #8]
	cmp	r3, #2
	beq	.L3
.L2:
	ldr	r0, .L4
	bl	perror
	mov	r0, #1
	bl	exit
.L3:
	ldr	r3, [fp, #-24]
	add	r0, r3, #4
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #16]
	ldr	r1, [r3]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #12]
	mov	r2, r3
	bl	memcpy
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L5:
	.align	2
.L4:
	.word	.LC0
	.size	make_internet_address, .-make_internet_address
	.section	.rodata
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	make_dgram_server_socket
	.syntax unified
	.arm
	.fpu softvfp
	.type	make_dgram_server_socket, %function
make_dgram_server_socket:
	@ args = 0, pretend = 0, frame = 96
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #96
	mov	r3, r0
	strh	r3, [fp, #-94]	@ movhi
	ldr	r3, .L12
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #88
	mov	r2, #16
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r3, fp, #72
	mov	r2, #64
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r3, fp, #72
	mov	r1, #64
	mov	r0, r3
	bl	gethostname
	mov	r2, #0
	mov	r1, #2
	mov	r0, #2
	bl	socket
	str	r0, [fp, #-92]
	ldr	r3, [fp, #-92]
	cmn	r3, #1
	bne	.L7
	mvn	r3, #0
	b	.L10
.L7:
	sub	r2, fp, #88
	ldrh	r1, [fp, #-94]
	sub	r3, fp, #72
	mov	r0, r3
	bl	make_internet_address
	sub	r3, fp, #88
	mov	r2, #16
	mov	r1, r3
	ldr	r0, [fp, #-92]
	bl	bind
	mov	r3, r0
	cmn	r3, #1
	bne	.L9
	mvn	r3, #0
	b	.L10
.L9:
	ldr	r3, [fp, #-92]
.L10:
	ldr	r2, .L12
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L11
	bl	__stack_chk_fail
.L11:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L13:
	.align	2
.L12:
	.word	.LC1
	.size	make_dgram_server_socket, .-make_dgram_server_socket
	.align	2
	.global	make_dgram_client_socket
	.syntax unified
	.arm
	.fpu softvfp
	.type	make_dgram_client_socket, %function
make_dgram_client_socket:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	mov	r2, #0
	mov	r1, #2
	mov	r0, #2
	bl	socket
	mov	r3, r0
	mov	r0, r3
	pop	{fp, pc}
	.size	make_dgram_client_socket, .-make_dgram_client_socket
	.align	2
	.global	get_internet_address
	.syntax unified
	.arm
	.fpu softvfp
	.type	get_internet_address, %function
get_internet_address:
	@ 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, #-8]
	str	r1, [fp, #-12]
	str	r2, [fp, #-16]
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-20]
	ldr	r0, [r3, #4]
	bl	inet_ntoa
	mov	r1, r0
	ldr	r3, [fp, #-12]
	mov	r2, r3
	ldr	r0, [fp, #-8]
	bl	strncpy
	ldr	r3, [fp, #-20]
	ldrh	r3, [r3, #2]
	mov	r0, r3
	bl	ntohs
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-16]
	strh	r2, [r3]	@ movhi
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	get_internet_address, .-get_internet_address
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
