	.file	"182912.c"
	.intel_syntax noprefix
	.text
	.globl	bqr_whois
	.data
	.align 8
	.type	bqr_whois, @object
	.size	bqr_whois, 12
bqr_whois:
	.string	"\201\n"
	.string	"\f\001 \377\377"
	.ascii	"\377\020\b"
	.globl	brp_im
	.align 16
	.type	brp_im, @object
	.size	brp_im, 25
brp_im:
	.string	"\201\013"
	.string	"\031\001 \377\377"
	.string	"\377\020"
	.string	"\304\002"
	.string	"\003\361\"\004"
	.ascii	"\221\003\"\001\004"
	.globl	sockfd
	.bss
	.align 4
	.type	sockfd, @object
	.size	sockfd, 4
sockfd:
	.zero	4
	.globl	hname
	.align 32
	.type	hname, @object
	.size	hname, 128
hname:
	.zero	128
	.globl	buffer
	.align 32
	.type	buffer, @object
	.size	buffer, 1500
buffer:
	.zero	1500
	.globl	hello
	.section	.rodata
.LC0:
	.string	"Hello from server"
	.section	.data.rel.local,"aw"
	.align 8
	.type	hello, @object
	.size	hello, 8
hello:
	.quad	.LC0
	.globl	servaddr
	.bss
	.align 16
	.type	servaddr, @object
	.size	servaddr, 16
servaddr:
	.zero	16
	.globl	cliaddr
	.align 16
	.type	cliaddr, @object
	.size	cliaddr, 16
cliaddr:
	.zero	16
	.globl	hent
	.align 8
	.type	hent, @object
	.size	hent, 8
hent:
	.zero	8
	.section	.rodata
.LC1:
	.string	"w"
.LC2:
	.string	"bacnet0.log"
.LC3:
	.string	"Cannot open logfile %s\n"
	.text
	.globl	bacnet0_log
	.type	bacnet0_log, @function
bacnet0_log:
.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, 240
	mov	QWORD PTR -232[rbp], rdi
	mov	QWORD PTR -168[rbp], rsi
	mov	QWORD PTR -160[rbp], rdx
	mov	QWORD PTR -152[rbp], rcx
	mov	QWORD PTR -144[rbp], r8
	mov	QWORD PTR -136[rbp], r9
	test	al, al
	je	.L2
	movaps	XMMWORD PTR -128[rbp], xmm0
	movaps	XMMWORD PTR -112[rbp], xmm1
	movaps	XMMWORD PTR -96[rbp], xmm2
	movaps	XMMWORD PTR -80[rbp], xmm3
	movaps	XMMWORD PTR -64[rbp], xmm4
	movaps	XMMWORD PTR -48[rbp], xmm5
	movaps	XMMWORD PTR -32[rbp], xmm6
	movaps	XMMWORD PTR -16[rbp], xmm7
.L2:
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -184[rbp], rax
	xor	eax, eax
	cmp	QWORD PTR -232[rbp], 0
	jne	.L3
	mov	rax, QWORD PTR logfile.0[rip]
	test	rax, rax
	je	.L8
.L3:
	mov	rax, QWORD PTR logfile.0[rip]
	test	rax, rax
	jne	.L5
	lea	rsi, .LC1[rip]
	lea	rdi, .LC2[rip]
	call	fopen@PLT
	mov	QWORD PTR logfile.0[rip], rax
	mov	rax, QWORD PTR logfile.0[rip]
	test	rax, rax
	jne	.L5
	mov	rax, QWORD PTR stderr[rip]
	lea	rdx, .LC2[rip]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
.L5:
	cmp	QWORD PTR -232[rbp], 0
	je	.L6
	mov	rax, QWORD PTR -232[rbp]
	mov	rdi, rax
	call	strlen@PLT
	add	eax, 2
	mov	DWORD PTR -220[rbp], eax
	mov	eax, DWORD PTR -220[rbp]
	cdqe
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -216[rbp], rax
	mov	eax, DWORD PTR -220[rbp]
	sub	eax, 2
	movsx	rdx, eax
	mov	rcx, QWORD PTR -232[rbp]
	mov	rax, QWORD PTR -216[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	strncpy@PLT
	mov	eax, DWORD PTR -220[rbp]
	cdqe
	lea	rdx, -2[rax]
	mov	rax, QWORD PTR -216[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 0
	mov	eax, DWORD PTR -220[rbp]
	cdqe
	lea	rdx, -1[rax]
	mov	rax, QWORD PTR -216[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 0
	mov	DWORD PTR -208[rbp], 8
	mov	DWORD PTR -204[rbp], 48
	lea	rax, 16[rbp]
	mov	QWORD PTR -200[rbp], rax
	lea	rax, -176[rbp]
	mov	QWORD PTR -192[rbp], rax
	mov	rax, QWORD PTR logfile.0[rip]
	lea	rdx, -208[rbp]
	mov	rcx, QWORD PTR -216[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	vfprintf@PLT
	mov	rax, QWORD PTR logfile.0[rip]
	mov	rdi, rax
	call	fflush@PLT
	mov	rax, QWORD PTR -216[rbp]
	mov	rdi, rax
	call	free@PLT
	jmp	.L8
.L6:
	mov	rax, QWORD PTR logfile.0[rip]
	mov	rdi, rax
	call	fclose@PLT
.L8:
	nop
	mov	rax, QWORD PTR -184[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L7
	call	__stack_chk_fail@PLT
.L7:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	bacnet0_log, .-bacnet0_log
	.globl	cmd_str
	.bss
	.align 32
	.type	cmd_str, @object
	.size	cmd_str, 1024
cmd_str:
	.zero	1024
	.text
	.globl	make_internet_address
	.type	make_internet_address, @function
make_internet_address:
.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, 48
	mov	QWORD PTR -24[rbp], rdi
	mov	DWORD PTR -28[rbp], esi
	mov	QWORD PTR -40[rbp], rdx
	mov	rax, QWORD PTR -40[rbp]
	mov	QWORD PTR [rax], 0
	mov	QWORD PTR 8[rax], 0
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	gethostbyname@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	jne	.L10
	mov	eax, -1
	jmp	.L11
.L10:
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR 20[rax]
	movsx	rdx, eax
	mov	rax, QWORD PTR -40[rbp]
	lea	rcx, 4[rax]
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 24[rax]
	mov	rax, QWORD PTR [rax]
	mov	rsi, rax
	mov	rdi, rcx
	call	memmove@PLT
	mov	eax, DWORD PTR -28[rbp]
	movzx	eax, ax
	mov	edi, eax
	call	htons@PLT
	mov	rdx, QWORD PTR -40[rbp]
	mov	WORD PTR 2[rdx], ax
	mov	rax, QWORD PTR -40[rbp]
	mov	WORD PTR [rax], 2
	mov	eax, 0
.L11:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	make_internet_address, .-make_internet_address
	.section	.rodata
.LC4:
	.string	"socket creation failed"
.LC5:
	.string	"bind failed"
.LC6:
	.string	"I am %d\n"
.LC7:
	.string	"%s\n"
.LC8:
	.string	"whois\n"
.LC9:
	.string	"whois"
.LC10:
	.string	"192.168.0.255"
.LC11:
	.string	"udp send failed\n"
.LC12:
	.string	"quit\n"
.LC13:
	.string	"good-bye"
	.text
	.globl	main
	.type	main, @function
main:
.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, 80
	mov	DWORD PTR -68[rbp], edi
	mov	QWORD PTR -80[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	esi, 128
	lea	rdi, hname[rip]
	call	gethostname@PLT
	lea	rdi, hname[rip]
	call	gethostbyname@PLT
	mov	QWORD PTR hent[rip], rax
	mov	edx, 0
	mov	esi, 2
	mov	edi, 2
	call	socket@PLT
	mov	DWORD PTR sockfd[rip], eax
	mov	eax, DWORD PTR sockfd[rip]
	test	eax, eax
	jns	.L13
	lea	rdi, .LC4[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L13:
	mov	DWORD PTR -60[rbp], 1
	mov	eax, DWORD PTR sockfd[rip]
	lea	rdx, -60[rbp]
	mov	r8d, 4
	mov	rcx, rdx
	mov	edx, 6
	mov	esi, 1
	mov	edi, eax
	call	setsockopt@PLT
	mov	QWORD PTR -32[rbp], 6
	mov	QWORD PTR -24[rbp], 0
	mov	eax, DWORD PTR sockfd[rip]
	lea	rdx, -32[rbp]
	mov	r8d, 16
	mov	rcx, rdx
	mov	edx, 20
	mov	esi, 1
	mov	edi, eax
	call	setsockopt@PLT
	mov	edx, 16
	mov	esi, 0
	lea	rdi, servaddr[rip]
	call	memset@PLT
	mov	edx, 16
	mov	esi, 0
	lea	rdi, cliaddr[rip]
	call	memset@PLT
	mov	WORD PTR servaddr[rip], 2
	mov	DWORD PTR servaddr[rip+4], 0
	mov	edi, 47808
	call	htons@PLT
	mov	WORD PTR servaddr[rip+2], ax
	mov	eax, DWORD PTR sockfd[rip]
	mov	edx, 16
	lea	rsi, servaddr[rip]
	mov	edi, eax
	call	bind@PLT
	test	eax, eax
	jns	.L14
	lea	rdi, .LC5[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L14:
	mov	DWORD PTR -56[rbp], 16
	mov	edx, 1500
	mov	esi, 0
	lea	rdi, buffer[rip]
	call	memset@PLT
.L19:
	mov	eax, DWORD PTR sockfd[rip]
	lea	rdx, -56[rbp]
	mov	r9, rdx
	lea	r8, cliaddr[rip]
	mov	ecx, 0
	mov	edx, 1500
	lea	rsi, buffer[rip]
	mov	edi, eax
	call	recvfrom@PLT
	mov	DWORD PTR -52[rbp], eax
	movzx	eax, BYTE PTR buffer[rip+12]
	cmp	al, -60
	jne	.L15
	movzx	eax, BYTE PTR buffer[rip+13]
	cmp	al, 2
	jne	.L15
	mov	esi, 1009
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	movzx	eax, BYTE PTR buffer[rip+14]
	movzx	eax, al
	sal	eax, 16
	mov	edx, eax
	movzx	eax, BYTE PTR buffer[rip+15]
	movzx	eax, al
	sal	eax, 8
	or	edx, eax
	movzx	eax, BYTE PTR buffer[rip+16]
	movzx	eax, al
	or	eax, edx
	mov	esi, eax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
	lea	rax, -48[rbp]
	mov	rdi, rax
	call	time@PLT
	lea	rax, -48[rbp]
	mov	rdi, rax
	call	ctime@PLT
	mov	QWORD PTR -40[rbp], rax
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	strlen@PLT
	lea	rdx, -1[rax]
	mov	rax, QWORD PTR -40[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 0
	mov	rax, QWORD PTR -40[rbp]
	mov	rsi, rax
	lea	rdi, .LC7[rip]
	mov	eax, 0
	call	bacnet0_log
	movzx	eax, BYTE PTR buffer[rip+14]
	movzx	eax, al
	sal	eax, 16
	mov	edx, eax
	movzx	eax, BYTE PTR buffer[rip+15]
	movzx	eax, al
	sal	eax, 8
	or	edx, eax
	movzx	eax, BYTE PTR buffer[rip+16]
	movzx	eax, al
	or	eax, edx
	mov	esi, eax
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	bacnet0_log
.L15:
	movzx	eax, BYTE PTR buffer[rip+5]
	cmp	al, 32
	jne	.L16
	mov	esi, 1009
	lea	rdi, .LC6[rip]
	mov	eax, 0
	call	printf@PLT
.L16:
	lea	rsi, .LC8[rip]
	lea	rdi, buffer[rip]
	call	strcmp@PLT
	test	eax, eax
	jne	.L17
	lea	rdi, .LC9[rip]
	call	puts@PLT
	lea	rdx, cliaddr[rip]
	mov	esi, 47808
	lea	rdi, .LC10[rip]
	call	make_internet_address
	mov	eax, DWORD PTR sockfd[rip]
	mov	r9d, 16
	lea	r8, cliaddr[rip]
	mov	ecx, 0
	mov	edx, 12
	lea	rsi, bqr_whois[rip]
	mov	edi, eax
	call	sendto@PLT
	cmp	rax, -1
	jne	.L17
	lea	rdi, .LC11[rip]
	call	perror@PLT
	mov	edi, 1
	call	exit@PLT
.L17:
	lea	rsi, .LC12[rip]
	lea	rdi, buffer[rip]
	call	strcmp@PLT
	test	eax, eax
	jne	.L18
	lea	rdi, .LC13[rip]
	call	puts@PLT
	mov	edi, 0
	call	exit@PLT
.L18:
	mov	edx, 1500
	mov	esi, 0
	lea	rdi, buffer[rip]
	call	memset@PLT
	jmp	.L19
	.cfi_endproc
.LFE8:
	.size	main, .-main
	.local	logfile.0
	.comm	logfile.0,8,8
	.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	"182912.c"
	.text
	.global	bqr_whois
	.data
	.align	2
	.type	bqr_whois, %object
	.size	bqr_whois, 12
bqr_whois:
	.ascii	"\201\012\000\014\001 \377\377\000\377\020\010"
	.global	brp_im
	.align	2
	.type	brp_im, %object
	.size	brp_im, 25
brp_im:
	.ascii	"\201\013\000\031\001 \377\377\000\377\020\000\304\002"
	.ascii	"\000\003\361\"\004\000\221\003\"\001\004"
	.comm	sockfd,4,4
	.global	hname
	.bss
	.align	2
	.type	hname, %object
	.size	hname, 128
hname:
	.space	128
	.comm	buffer,1500,4
	.global	hello
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Hello from server\000"
	.data
	.align	2
	.type	hello, %object
	.size	hello, 4
hello:
	.word	.LC0
	.comm	servaddr,16,4
	.comm	cliaddr,16,4
	.global	hent
	.bss
	.align	2
	.type	hent, %object
	.size	hent, 4
hent:
	.space	4
	.section	.rodata
	.align	2
.LC1:
	.ascii	"w\000"
	.align	2
.LC2:
	.ascii	"bacnet0.log\000"
	.align	2
.LC3:
	.ascii	"Cannot open logfile %s\012\000"
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	bacnet0_log
	.syntax unified
	.arm
	.fpu softvfp
	.type	bacnet0_log, %function
bacnet0_log:
	@ args = 4, pretend = 16, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 1
	push	{r0, r1, r2, r3}
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #24
	ldr	r3, [fp, #4]
	str	r3, [fp, #-24]
	ldr	r3, .L8
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	bne	.L2
	ldr	r3, .L8+4
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L7
.L2:
	ldr	r3, .L8+4
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L4
	ldr	r1, .L8+8
	ldr	r0, .L8+12
	bl	fopen
	mov	r3, r0
	ldr	r2, .L8+4
	str	r3, [r2]
	ldr	r3, .L8+4
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L4
	ldr	r3, .L8+16
	ldr	r3, [r3]
	ldr	r2, .L8+12
	ldr	r1, .L8+20
	mov	r0, r3
	bl	fprintf
	mov	r0, #1
	bl	exit
.L4:
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	beq	.L5
	ldr	r0, [fp, #-24]
	bl	strlen
	mov	r3, r0
	add	r3, r3, #2
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-16]
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-12]
	ldr	r3, [fp, #-16]
	sub	r3, r3, #2
	mov	r2, r3
	ldr	r1, [fp, #-24]
	ldr	r0, [fp, #-12]
	bl	strncpy
	ldr	r3, [fp, #-16]
	sub	r3, r3, #2
	ldr	r2, [fp, #-12]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
	ldr	r3, [fp, #-16]
	sub	r3, r3, #1
	ldr	r2, [fp, #-12]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
	add	r3, fp, #8
	str	r3, [fp, #-20]
	ldr	r3, .L8+4
	ldr	r3, [r3]
	ldr	r2, [fp, #-20]
	ldr	r1, [fp, #-12]
	mov	r0, r3
	bl	vfprintf
	ldr	r3, .L8+4
	ldr	r3, [r3]
	mov	r0, r3
	bl	fflush
	ldr	r0, [fp, #-12]
	bl	free
	b	.L7
.L5:
	ldr	r3, .L8+4
	ldr	r3, [r3]
	mov	r0, r3
	bl	fclose
.L7:
	nop
	ldr	r3, .L8
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L6
	bl	__stack_chk_fail
.L6:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, lr}
	add	sp, sp, #16
	bx	lr
.L9:
	.align	2
.L8:
	.word	.LC4
	.word	logfile.7232
	.word	.LC1
	.word	.LC2
	.word	stderr
	.word	.LC3
	.size	bacnet0_log, .-bacnet0_log
	.comm	cmd_str,1024,4
	.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]
	str	r1, [fp, #-20]
	str	r2, [fp, #-24]
	ldr	r3, [fp, #-24]
	mov	r0, r3
	mov	r3, #16
	mov	r2, r3
	mov	r1, #0
	bl	memset
	ldr	r0, [fp, #-16]
	bl	gethostbyname
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L11
	mvn	r3, #0
	b	.L12
.L11:
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #16]
	ldr	r1, [r3]
	ldr	r3, [fp, #-24]
	add	r0, r3, #4
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #12]
	mov	r2, r3
	bl	memmove
	ldr	r3, [fp, #-20]
	lsl	r3, r3, #16
	lsr	r3, r3, #16
	mov	r0, r3
	bl	htons
	mov	r3, r0
	mov	r2, r3
	ldr	r3, [fp, #-24]
	strh	r2, [r3, #2]	@ movhi
	ldr	r3, [fp, #-24]
	mov	r2, #2
	strh	r2, [r3]	@ movhi
	mov	r3, #0
.L12:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	make_internet_address, .-make_internet_address
	.section	.rodata
	.align	2
.LC5:
	.ascii	"socket creation failed\000"
	.align	2
.LC6:
	.ascii	"bind failed\000"
	.align	2
.LC7:
	.ascii	"I am %d\012\000"
	.align	2
.LC8:
	.ascii	"%s\012\000"
	.align	2
.LC9:
	.ascii	"whois\012\000"
	.align	2
.LC10:
	.ascii	"whois\000"
	.align	2
.LC11:
	.ascii	"192.168.0.255\000"
	.align	2
.LC12:
	.ascii	"udp send failed\012\000"
	.align	2
.LC13:
	.ascii	"quit\012\000"
	.align	2
.LC14:
	.ascii	"good-bye\000"
	.align	2
.LC15:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 40
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #48
	str	r0, [fp, #-40]
	str	r1, [fp, #-44]
	ldr	r3, .L22
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r1, #128
	ldr	r0, .L22+4
	bl	gethostname
	ldr	r0, .L22+4
	bl	gethostbyname
	mov	r3, r0
	ldr	r2, .L22+8
	str	r3, [r2]
	mov	r2, #0
	mov	r1, #2
	mov	r0, #2
	bl	socket
	mov	r3, r0
	ldr	r2, .L22+12
	str	r3, [r2]
	ldr	r3, .L22+12
	ldr	r3, [r3]
	cmp	r3, #0
	bge	.L14
	ldr	r0, .L22+16
	bl	perror
	mov	r0, #1
	bl	exit
.L14:
	mov	r3, #1
	str	r3, [fp, #-36]
	ldr	r3, .L22+12
	ldr	r0, [r3]
	sub	r3, fp, #36
	mov	r2, #4
	str	r2, [sp]
	mov	r2, #6
	mov	r1, #1
	bl	setsockopt
	mov	r3, #6
	str	r3, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-12]
	ldr	r3, .L22+12
	ldr	r0, [r3]
	sub	r3, fp, #16
	mov	r2, #8
	str	r2, [sp]
	mov	r2, #20
	mov	r1, #1
	bl	setsockopt
	mov	r2, #16
	mov	r1, #0
	ldr	r0, .L22+20
	bl	memset
	mov	r2, #16
	mov	r1, #0
	ldr	r0, .L22+24
	bl	memset
	ldr	r3, .L22+20
	mov	r2, #2
	strh	r2, [r3]	@ movhi
	ldr	r3, .L22+20
	mov	r2, #0
	str	r2, [r3, #4]
	ldr	r0, .L22+28
	bl	htons
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L22+20
	strh	r2, [r3, #2]	@ movhi
	ldr	r3, .L22+12
	ldr	r3, [r3]
	mov	r2, #16
	ldr	r1, .L22+20
	mov	r0, r3
	bl	bind
	mov	r3, r0
	cmp	r3, #0
	bge	.L15
	ldr	r0, .L22+32
	bl	perror
	mov	r0, #1
	bl	exit
.L15:
	mov	r3, #16
	str	r3, [fp, #-32]
	ldr	r2, .L22+36
	mov	r1, #0
	ldr	r0, .L22+40
	bl	memset
.L20:
	ldr	r3, .L22+12
	ldr	r0, [r3]
	sub	r3, fp, #32
	str	r3, [sp, #4]
	ldr	r3, .L22+24
	str	r3, [sp]
	mov	r3, #0
	ldr	r2, .L22+36
	ldr	r1, .L22+40
	bl	recvfrom
	str	r0, [fp, #-24]
	ldr	r3, .L22+40
	ldrb	r3, [r3, #12]	@ zero_extendqisi2
	cmp	r3, #196
	bne	.L16
	ldr	r3, .L22+40
	ldrb	r3, [r3, #13]	@ zero_extendqisi2
	cmp	r3, #2
	bne	.L16
	ldr	r1, .L22+44
	ldr	r0, .L22+48
	bl	printf
	ldr	r3, .L22+40
	ldrb	r3, [r3, #14]	@ zero_extendqisi2
	lsl	r2, r3, #16
	ldr	r3, .L22+40
	ldrb	r3, [r3, #15]	@ zero_extendqisi2
	lsl	r3, r3, #8
	orr	r3, r2, r3
	ldr	r2, .L22+40
	ldrb	r2, [r2, #16]	@ zero_extendqisi2
	orr	r3, r3, r2
	mov	r1, r3
	ldr	r0, .L22+48
	bl	printf
	sub	r3, fp, #28
	mov	r0, r3
	bl	time
	sub	r3, fp, #28
	mov	r0, r3
	bl	ctime
	str	r0, [fp, #-20]
	ldr	r0, [fp, #-20]
	bl	strlen
	mov	r3, r0
	sub	r3, r3, #1
	ldr	r2, [fp, #-20]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
	ldr	r1, [fp, #-20]
	ldr	r0, .L22+52
	bl	bacnet0_log
	ldr	r3, .L22+40
	ldrb	r3, [r3, #14]	@ zero_extendqisi2
	lsl	r2, r3, #16
	ldr	r3, .L22+40
	ldrb	r3, [r3, #15]	@ zero_extendqisi2
	lsl	r3, r3, #8
	orr	r3, r2, r3
	ldr	r2, .L22+40
	ldrb	r2, [r2, #16]	@ zero_extendqisi2
	orr	r3, r3, r2
	mov	r1, r3
	ldr	r0, .L22+48
	bl	bacnet0_log
.L16:
	ldr	r3, .L22+40
	ldrb	r3, [r3, #5]	@ zero_extendqisi2
	cmp	r3, #32
	bne	.L17
	ldr	r1, .L22+44
	ldr	r0, .L22+48
	bl	printf
.L17:
	ldr	r1, .L22+56
	ldr	r0, .L22+40
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L18
	ldr	r0, .L22+60
	bl	puts
	ldr	r2, .L22+24
	ldr	r1, .L22+28
	ldr	r0, .L22+64
	bl	make_internet_address
	ldr	r3, .L22+12
	ldr	r0, [r3]
	mov	r3, #16
	str	r3, [sp, #4]
	ldr	r3, .L22+24
	str	r3, [sp]
	mov	r3, #0
	mov	r2, #12
	ldr	r1, .L22+68
	bl	sendto
	mov	r3, r0
	cmn	r3, #1
	bne	.L18
	ldr	r0, .L22+72
	bl	perror
	mov	r0, #1
	bl	exit
.L18:
	ldr	r1, .L22+76
	ldr	r0, .L22+40
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L19
	ldr	r0, .L22+80
	bl	puts
	mov	r0, #0
	bl	exit
.L19:
	ldr	r2, .L22+36
	mov	r1, #0
	ldr	r0, .L22+40
	bl	memset
	b	.L20
.L23:
	.align	2
.L22:
	.word	.LC15
	.word	hname
	.word	hent
	.word	sockfd
	.word	.LC5
	.word	servaddr
	.word	cliaddr
	.word	47808
	.word	.LC6
	.word	1500
	.word	buffer
	.word	1009
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.word	bqr_whois
	.word	.LC12
	.word	.LC13
	.word	.LC14
	.size	main, .-main
	.local	logfile.7232
	.comm	logfile.7232,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
