	.file	"745251.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
	.align 8
.LC0:
	.string	"Cannot pass file descriptor to tty"
.LC1:
	.string	"poll"
.LC2:
	.string	"sendmsg"
	.align 8
.LC3:
	.string	"sendmsg: unexpected return value"
	.text
	.type	fdpass, @function
fdpass:
.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, 160
	mov	DWORD PTR -148[rbp], edi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	BYTE PTR -137[rbp], 0
	mov	edi, 1
	call	isatty@PLT
	test	eax, eax
	je	.L2
	lea	rdi, .LC0[rip]
	call	perror@PLT
	mov	eax, -1
	jmp	.L12
.L2:
	lea	rax, -96[rbp]
	mov	edx, 56
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	lea	rax, -32[rbp]
	mov	edx, 24
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	lea	rax, -112[rbp]
	mov	edx, 16
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	lea	rax, -32[rbp]
	mov	QWORD PTR -64[rbp], rax
	mov	QWORD PTR -56[rbp], 24
	mov	rax, QWORD PTR -56[rbp]
	cmp	rax, 15
	jbe	.L4
	mov	rax, QWORD PTR -64[rbp]
	jmp	.L5
.L4:
	mov	eax, 0
.L5:
	mov	QWORD PTR -136[rbp], rax
	mov	rax, QWORD PTR -136[rbp]
	mov	QWORD PTR [rax], 20
	mov	rax, QWORD PTR -136[rbp]
	mov	DWORD PTR 8[rax], 1
	mov	rax, QWORD PTR -136[rbp]
	mov	DWORD PTR 12[rax], 1
	mov	rax, QWORD PTR -136[rbp]
	lea	rdx, 16[rax]
	mov	eax, DWORD PTR -148[rbp]
	mov	DWORD PTR [rdx], eax
	lea	rax, -137[rbp]
	mov	QWORD PTR -112[rbp], rax
	mov	QWORD PTR -104[rbp], 1
	lea	rax, -112[rbp]
	mov	QWORD PTR -80[rbp], rax
	mov	QWORD PTR -72[rbp], 1
	lea	rax, -120[rbp]
	mov	edx, 8
	mov	esi, 0
	mov	rdi, rax
	call	memset@PLT
	mov	DWORD PTR -120[rbp], 1
	mov	WORD PTR -116[rbp], 4
.L10:
	lea	rax, -96[rbp]
	mov	edx, 0
	mov	rsi, rax
	mov	edi, 1
	call	sendmsg@PLT
	mov	QWORD PTR -128[rbp], rax
	cmp	QWORD PTR -128[rbp], -1
	jne	.L6
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 11
	je	.L7
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 4
	jne	.L8
.L7:
	lea	rax, -120[rbp]
	mov	edx, -1
	mov	esi, 1
	mov	rdi, rax
	call	poll@PLT
	cmp	eax, -1
	jne	.L10
	lea	rdi, .LC1[rip]
	call	perror@PLT
	mov	eax, -1
	jmp	.L12
.L8:
	lea	rdi, .LC2[rip]
	call	perror@PLT
	mov	eax, -1
	jmp	.L12
.L6:
	cmp	QWORD PTR -128[rbp], 1
	je	.L15
	lea	rdi, .LC3[rip]
	call	perror@PLT
	mov	eax, -1
	jmp	.L12
.L15:
	nop
	mov	eax, 0
.L12:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L13
	call	__stack_chk_fail@PLT
.L13:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	fdpass, .-fdpass
	.section	.rodata
.LC4:
	.string	"sock"
.LC5:
	.string	"socket"
.LC6:
	.string	"setsockopt SO_KEEPALIVE"
.LC7:
	.string	"setsockopt SO_REUSEADDR"
.LC8:
	.string	"setsockopt IPPROTO_IPV6"
.LC9:
	.string	"bind"
.LC10:
	.string	"listen"
	.text
	.globl	callhome_bind
	.type	callhome_bind, @function
callhome_bind:
.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, 64
	mov	QWORD PTR -40[rbp], rdi
	mov	QWORD PTR -48[rbp], rsi
	mov	DWORD PTR -52[rbp], edx
	mov	QWORD PTR -64[rbp], rcx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -16[rbp], -1
	mov	DWORD PTR -12[rbp], -1
	mov	DWORD PTR -20[rbp], 1
	cmp	QWORD PTR -64[rbp], 0
	jne	.L17
	call	__errno_location@PLT
	mov	DWORD PTR [rax], 22
	lea	rdi, .LC4[rip]
	call	perror@PLT
	jmp	.L18
.L17:
	mov	rax, QWORD PTR -40[rbp]
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	mov	edx, 0
	mov	esi, 1
	mov	edi, eax
	call	socket@PLT
	mov	DWORD PTR -12[rbp], eax
	cmp	DWORD PTR -12[rbp], 0
	jns	.L19
	lea	rdi, .LC5[rip]
	call	perror@PLT
	jmp	.L18
.L19:
	lea	rdx, -20[rbp]
	mov	eax, DWORD PTR -12[rbp]
	mov	r8d, 4
	mov	rcx, rdx
	mov	edx, 9
	mov	esi, 1
	mov	edi, eax
	call	setsockopt@PLT
	cmp	eax, -1
	jne	.L20
	lea	rdi, .LC6[rip]
	call	perror@PLT
	jmp	.L18
.L20:
	lea	rdx, -20[rbp]
	mov	eax, DWORD PTR -12[rbp]
	mov	r8d, 4
	mov	rcx, rdx
	mov	edx, 2
	mov	esi, 1
	mov	edi, eax
	call	setsockopt@PLT
	cmp	eax, -1
	jne	.L21
	lea	rdi, .LC7[rip]
	call	perror@PLT
	jmp	.L18
.L21:
	mov	rax, QWORD PTR -40[rbp]
	movzx	eax, WORD PTR [rax]
	cmp	ax, 10
	jne	.L22
	lea	rdx, -20[rbp]
	mov	eax, DWORD PTR -12[rbp]
	mov	r8d, 4
	mov	rcx, rdx
	mov	edx, 26
	mov	esi, 41
	mov	edi, eax
	call	setsockopt@PLT
	cmp	eax, -1
	jne	.L22
	lea	rdi, .LC8[rip]
	call	perror@PLT
	jmp	.L18
.L22:
	mov	rax, QWORD PTR -48[rbp]
	mov	edx, eax
	mov	rcx, QWORD PTR -40[rbp]
	mov	eax, DWORD PTR -12[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	bind@PLT
	cmp	eax, -1
	jne	.L23
	lea	rdi, .LC9[rip]
	call	perror@PLT
	jmp	.L18
.L23:
	mov	edx, DWORD PTR -52[rbp]
	mov	eax, DWORD PTR -12[rbp]
	mov	esi, edx
	mov	edi, eax
	call	listen@PLT
	test	eax, eax
	jns	.L24
	lea	rdi, .LC10[rip]
	call	perror@PLT
	jmp	.L18
.L24:
	cmp	QWORD PTR -64[rbp], 0
	je	.L25
	mov	rax, QWORD PTR -64[rbp]
	mov	edx, DWORD PTR -12[rbp]
	mov	DWORD PTR [rax], edx
.L25:
	mov	DWORD PTR -16[rbp], 0
.L18:
	cmp	DWORD PTR -16[rbp], 0
	je	.L26
	cmp	DWORD PTR -12[rbp], -1
	je	.L26
	mov	eax, DWORD PTR -12[rbp]
	mov	edi, eax
	call	close@PLT
.L26:
	mov	eax, DWORD PTR -16[rbp]
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L28
	call	__stack_chk_fail@PLT
.L28:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	callhome_bind, .-callhome_bind
	.section	.rodata
	.align 8
.LC11:
	.string	"usage:%s [options]\nwhere options are\n\t-h           \tHelp\n\t-D <level>   \tDebug\n\t-f ipv4|ipv6 \tSocket address family(ipv4 default)\n\t-a <addrstr> \tIP address (eg 1.2.3.4) - mandatory\n\t-p <port>    \tPort (default 4334)\n"
	.text
	.type	usage, @function
usage:
.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
	mov	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -8[rbp]
	lea	rsi, .LC11[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 0
	call	exit@PLT
	.cfi_endproc
.LFE8:
	.size	usage, .-usage
	.section	.rodata
.LC12:
	.string	"ipv4"
.LC13:
	.string	"hD:f:a:p:"
.LC14:
	.string	"-p <port> is invalid\n"
.LC15:
	.string	"-a <addr> is NULL\n"
.LC16:
	.string	"ipv6"
.LC17:
	.string	"-f <%s> is invalid family\n"
.LC18:
	.string	"accept"
	.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, 160
	mov	DWORD PTR -148[rbp], edi
	mov	QWORD PTR -160[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -128[rbp], -1
	lea	rax, .LC12[rip]
	mov	QWORD PTR -112[rbp], rax
	mov	QWORD PTR -104[rbp], 0
	mov	QWORD PTR -48[rbp], 0
	mov	QWORD PTR -40[rbp], 0
	mov	QWORD PTR -32[rbp], 0
	mov	DWORD PTR -24[rbp], 0
	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	DWORD PTR -124[rbp], 0
	mov	WORD PTR -138[rbp], 4334
	mov	DWORD PTR -132[rbp], -1
	mov	DWORD PTR -120[rbp], -1
	mov	DWORD PTR optind[rip], 1
	mov	DWORD PTR opterr[rip], 0
	jmp	.L31
.L38:
	cmp	DWORD PTR -116[rbp], 112
	je	.L32
	cmp	DWORD PTR -116[rbp], 112
	jg	.L33
	cmp	DWORD PTR -116[rbp], 104
	je	.L34
	cmp	DWORD PTR -116[rbp], 104
	jg	.L33
	cmp	DWORD PTR -116[rbp], 102
	je	.L35
	cmp	DWORD PTR -116[rbp], 102
	jg	.L33
	cmp	DWORD PTR -116[rbp], 68
	je	.L36
	cmp	DWORD PTR -116[rbp], 97
	je	.L37
	jmp	.L33
.L34:
	mov	rax, QWORD PTR -160[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	usage
	jmp	.L31
.L36:
	add	DWORD PTR -124[rbp], 1
	jmp	.L31
.L35:
	mov	rax, QWORD PTR optarg[rip]
	mov	QWORD PTR -112[rbp], rax
	jmp	.L31
.L37:
	mov	rax, QWORD PTR optarg[rip]
	mov	QWORD PTR -104[rbp], rax
	jmp	.L31
.L32:
	mov	rax, QWORD PTR optarg[rip]
	mov	rdi, rax
	call	atoi@PLT
	mov	WORD PTR -138[rbp], ax
	jmp	.L31
.L33:
	mov	rax, QWORD PTR -160[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	usage
	nop
.L31:
	mov	rcx, QWORD PTR -160[rbp]
	mov	eax, DWORD PTR -148[rbp]
	lea	rdx, .LC13[rip]
	mov	rsi, rcx
	mov	edi, eax
	call	getopt@PLT
	mov	DWORD PTR -116[rbp], eax
	cmp	DWORD PTR -116[rbp], -1
	jne	.L38
	cmp	WORD PTR -138[rbp], 0
	jne	.L39
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 21
	mov	esi, 1
	lea	rdi, .LC14[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR -160[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	usage
	jmp	.L40
.L39:
	cmp	QWORD PTR -104[rbp], 0
	jne	.L41
	mov	rax, QWORD PTR stderr[rip]
	mov	rcx, rax
	mov	edx, 18
	mov	esi, 1
	lea	rdi, .LC15[rip]
	call	fwrite@PLT
	mov	rax, QWORD PTR -160[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	usage
	jmp	.L40
.L41:
	mov	rax, QWORD PTR -112[rbp]
	lea	rsi, .LC16[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L42
	mov	QWORD PTR -88[rbp], 28
	movzx	eax, WORD PTR -138[rbp]
	mov	edi, eax
	call	htons@PLT
	mov	WORD PTR -46[rbp], ax
	mov	WORD PTR -48[rbp], 10
	lea	rax, -48[rbp]
	lea	rdx, 8[rax]
	mov	rax, QWORD PTR -104[rbp]
	mov	rsi, rax
	mov	edi, 10
	call	inet_pton@PLT
	lea	rax, -48[rbp]
	mov	QWORD PTR -96[rbp], rax
	jmp	.L43
.L42:
	mov	rax, QWORD PTR -112[rbp]
	lea	rsi, .LC12[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L44
	mov	QWORD PTR -88[rbp], 16
	mov	WORD PTR -80[rbp], 2
	movzx	eax, WORD PTR -138[rbp]
	mov	edi, eax
	call	htons@PLT
	mov	WORD PTR -78[rbp], ax
	mov	rax, QWORD PTR -104[rbp]
	mov	rdi, rax
	call	inet_addr@PLT
	mov	DWORD PTR -76[rbp], eax
	lea	rax, -80[rbp]
	mov	QWORD PTR -96[rbp], rax
	jmp	.L43
.L44:
	mov	rax, QWORD PTR stderr[rip]
	mov	rdx, QWORD PTR -112[rbp]
	lea	rsi, .LC17[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	jmp	.L40
.L43:
	lea	rdx, -132[rbp]
	mov	rsi, QWORD PTR -88[rbp]
	mov	rax, QWORD PTR -96[rbp]
	mov	rcx, rdx
	mov	edx, 1
	mov	rdi, rax
	call	callhome_bind
	test	eax, eax
	js	.L50
	mov	DWORD PTR -136[rbp], 16
	mov	eax, DWORD PTR -132[rbp]
	lea	rdx, -136[rbp]
	lea	rcx, -64[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	accept@PLT
	mov	DWORD PTR -120[rbp], eax
	cmp	DWORD PTR -120[rbp], 0
	jns	.L46
	lea	rdi, .LC18[rip]
	call	perror@PLT
	jmp	.L40
.L46:
	mov	eax, DWORD PTR -120[rbp]
	mov	edi, eax
	call	fdpass
	test	eax, eax
	js	.L51
	mov	DWORD PTR -128[rbp], 0
	jmp	.L40
.L50:
	nop
	jmp	.L40
.L51:
	nop
.L40:
	mov	eax, DWORD PTR -128[rbp]
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L49
	call	__stack_chk_fail@PLT
.L49:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.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	"745251.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"Cannot pass file descriptor to tty\000"
	.align	2
.LC1:
	.ascii	"poll\000"
	.align	2
.LC2:
	.ascii	"sendmsg\000"
	.align	2
.LC3:
	.ascii	"sendmsg: unexpected return value\000"
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	fdpass, %function
fdpass:
	@ args = 0, pretend = 0, frame = 88
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #88
	str	r0, [fp, #-88]
	ldr	r3, .L16
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	strb	r3, [fp, #-77]
	mov	r0, #1
	bl	isatty
	mov	r3, r0
	cmp	r3, #0
	beq	.L2
	ldr	r0, .L16+4
	bl	perror
	mvn	r3, #0
	b	.L12
.L2:
	sub	r3, fp, #52
	mov	r2, #28
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r3, fp, #24
	mov	r2, #16
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r3, fp, #68
	mov	r2, #8
	mov	r1, #0
	mov	r0, r3
	bl	memset
	sub	r3, fp, #24
	str	r3, [fp, #-36]
	mov	r3, #16
	str	r3, [fp, #-32]
	ldr	r3, [fp, #-32]
	cmp	r3, #11
	bls	.L4
	ldr	r3, [fp, #-36]
	b	.L5
.L4:
	mov	r3, #0
.L5:
	str	r3, [fp, #-76]
	ldr	r3, [fp, #-76]
	mov	r2, #16
	str	r2, [r3]
	ldr	r3, [fp, #-76]
	mov	r2, #1
	str	r2, [r3, #4]
	ldr	r3, [fp, #-76]
	mov	r2, #1
	str	r2, [r3, #8]
	ldr	r3, [fp, #-76]
	add	r3, r3, #12
	ldr	r2, [fp, #-88]
	str	r2, [r3]
	sub	r3, fp, #77
	str	r3, [fp, #-68]
	mov	r3, #1
	str	r3, [fp, #-64]
	sub	r3, fp, #68
	str	r3, [fp, #-44]
	mov	r3, #1
	str	r3, [fp, #-40]
	sub	r3, fp, #60
	mov	r2, #8
	mov	r1, #0
	mov	r0, r3
	bl	memset
	mov	r3, #1
	str	r3, [fp, #-60]
	mov	r3, #4
	strh	r3, [fp, #-56]	@ movhi
.L10:
	sub	r3, fp, #52
	mov	r2, #0
	mov	r1, r3
	mov	r0, #1
	bl	sendmsg
	str	r0, [fp, #-72]
	ldr	r3, [fp, #-72]
	cmn	r3, #1
	bne	.L6
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #11
	beq	.L7
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #4
	bne	.L8
.L7:
	sub	r3, fp, #60
	mvn	r2, #0
	mov	r1, #1
	mov	r0, r3
	bl	poll
	mov	r3, r0
	cmn	r3, #1
	bne	.L10
	ldr	r0, .L16+8
	bl	perror
	mvn	r3, #0
	b	.L12
.L8:
	ldr	r0, .L16+12
	bl	perror
	mvn	r3, #0
	b	.L12
.L6:
	ldr	r3, [fp, #-72]
	cmp	r3, #1
	beq	.L15
	ldr	r0, .L16+16
	bl	perror
	mvn	r3, #0
	b	.L12
.L15:
	nop
	mov	r3, #0
.L12:
	ldr	r2, .L16
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L13
	bl	__stack_chk_fail
.L13:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L17:
	.align	2
.L16:
	.word	.LC4
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.size	fdpass, .-fdpass
	.section	.rodata
	.align	2
.LC5:
	.ascii	"sock\000"
	.align	2
.LC6:
	.ascii	"socket\000"
	.align	2
.LC7:
	.ascii	"setsockopt SO_KEEPALIVE\000"
	.align	2
.LC8:
	.ascii	"setsockopt SO_REUSEADDR\000"
	.align	2
.LC9:
	.ascii	"setsockopt IPPROTO_IPV6\000"
	.align	2
.LC10:
	.ascii	"bind\000"
	.align	2
.LC11:
	.ascii	"listen\000"
	.align	2
.LC12:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	callhome_bind
	.syntax unified
	.arm
	.fpu softvfp
	.type	callhome_bind, %function
callhome_bind:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #40
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	str	r2, [fp, #-32]
	str	r3, [fp, #-36]
	ldr	r3, .L31
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mvn	r3, #0
	str	r3, [fp, #-16]
	mvn	r3, #0
	str	r3, [fp, #-12]
	mov	r3, #1
	str	r3, [fp, #-20]
	ldr	r3, [fp, #-36]
	cmp	r3, #0
	bne	.L19
	bl	__errno_location
	mov	r3, r0
	mov	r2, #22
	str	r2, [r3]
	ldr	r0, .L31+4
	bl	perror
	b	.L20
.L19:
	ldr	r3, [fp, #-24]
	ldrh	r3, [r3]
	mov	r2, #0
	mov	r1, #1
	mov	r0, r3
	bl	socket
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bge	.L21
	ldr	r0, .L31+8
	bl	perror
	b	.L20
.L21:
	sub	r3, fp, #20
	mov	r2, #4
	str	r2, [sp]
	mov	r2, #9
	mov	r1, #1
	ldr	r0, [fp, #-12]
	bl	setsockopt
	mov	r3, r0
	cmn	r3, #1
	bne	.L22
	ldr	r0, .L31+12
	bl	perror
	b	.L20
.L22:
	sub	r3, fp, #20
	mov	r2, #4
	str	r2, [sp]
	mov	r2, #2
	mov	r1, #1
	ldr	r0, [fp, #-12]
	bl	setsockopt
	mov	r3, r0
	cmn	r3, #1
	bne	.L23
	ldr	r0, .L31+16
	bl	perror
	b	.L20
.L23:
	ldr	r3, [fp, #-24]
	ldrh	r3, [r3]
	cmp	r3, #10
	bne	.L24
	sub	r3, fp, #20
	mov	r2, #4
	str	r2, [sp]
	mov	r2, #26
	mov	r1, #41
	ldr	r0, [fp, #-12]
	bl	setsockopt
	mov	r3, r0
	cmn	r3, #1
	bne	.L24
	ldr	r0, .L31+20
	bl	perror
	b	.L20
.L24:
	ldr	r2, [fp, #-28]
	ldr	r1, [fp, #-24]
	ldr	r0, [fp, #-12]
	bl	bind
	mov	r3, r0
	cmn	r3, #1
	bne	.L25
	ldr	r0, .L31+24
	bl	perror
	b	.L20
.L25:
	ldr	r1, [fp, #-32]
	ldr	r0, [fp, #-12]
	bl	listen
	mov	r3, r0
	cmp	r3, #0
	bge	.L26
	ldr	r0, .L31+28
	bl	perror
	b	.L20
.L26:
	ldr	r3, [fp, #-36]
	cmp	r3, #0
	beq	.L27
	ldr	r3, [fp, #-36]
	ldr	r2, [fp, #-12]
	str	r2, [r3]
.L27:
	mov	r3, #0
	str	r3, [fp, #-16]
.L20:
	ldr	r3, [fp, #-16]
	cmp	r3, #0
	beq	.L28
	ldr	r3, [fp, #-12]
	cmn	r3, #1
	beq	.L28
	ldr	r0, [fp, #-12]
	bl	close
.L28:
	ldr	r3, [fp, #-16]
	ldr	r2, .L31
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L30
	bl	__stack_chk_fail
.L30:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L32:
	.align	2
.L31:
	.word	.LC12
	.word	.LC5
	.word	.LC6
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.word	.LC10
	.word	.LC11
	.size	callhome_bind, .-callhome_bind
	.section	.rodata
	.align	2
.LC13:
	.ascii	"usage:%s [options]\012where options are\012\011-h  "
	.ascii	"         \011Help\012\011-D <level>   \011Debug\012"
	.ascii	"\011-f ipv4|ipv6 \011Socket address family(ipv4 def"
	.ascii	"ault)\012\011-a <addrstr> \011IP address (eg 1.2.3."
	.ascii	"4) - mandatory\012\011-p <port>    \011Port (defaul"
	.ascii	"t 4334)\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	usage, %function
usage:
	@ 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, .L34
	ldr	r3, [r3]
	ldr	r2, [fp, #-8]
	ldr	r1, .L34+4
	mov	r0, r3
	bl	fprintf
	mov	r0, #0
	bl	exit
.L35:
	.align	2
.L34:
	.word	stderr
	.word	.LC13
	.size	usage, .-usage
	.section	.rodata
	.align	2
.LC14:
	.ascii	"ipv4\000"
	.align	2
.LC15:
	.ascii	"hD:f:a:p:\000"
	.align	2
.LC16:
	.ascii	"-p <port> is invalid\012\000"
	.align	2
.LC17:
	.ascii	"-a <addr> is NULL\012\000"
	.align	2
.LC18:
	.ascii	"ipv6\000"
	.align	2
.LC19:
	.ascii	"-f <%s> is invalid family\012\000"
	.align	2
.LC20:
	.ascii	"accept\000"
	.align	2
.LC21:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 120
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #120
	str	r0, [fp, #-120]
	str	r1, [fp, #-124]
	ldr	r3, .L59
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mvn	r3, #0
	str	r3, [fp, #-100]
	ldr	r3, .L59+4
	str	r3, [fp, #-96]
	mov	r3, #0
	str	r3, [fp, #-92]
	sub	r3, fp, #36
	mov	r2, #0
	str	r2, [r3]
	str	r2, [r3, #4]
	str	r2, [r3, #8]
	str	r2, [r3, #12]
	str	r2, [r3, #16]
	str	r2, [r3, #20]
	str	r2, [r3, #24]
	sub	r3, fp, #68
	mov	r2, #0
	str	r2, [r3]
	str	r2, [r3, #4]
	str	r2, [r3, #8]
	str	r2, [r3, #12]
	sub	r3, fp, #52
	mov	r2, #0
	str	r2, [r3]
	str	r2, [r3, #4]
	str	r2, [r3, #8]
	str	r2, [r3, #12]
	mov	r3, #0
	str	r3, [fp, #-80]
	ldr	r3, .L59+8
	strh	r3, [fp, #-110]	@ movhi
	mvn	r3, #0
	str	r3, [fp, #-104]
	mvn	r3, #0
	str	r3, [fp, #-76]
	ldr	r3, .L59+12
	mov	r2, #1
	str	r2, [r3]
	ldr	r3, .L59+16
	mov	r2, #0
	str	r2, [r3]
	b	.L37
.L45:
	ldr	r3, [fp, #-72]
	cmp	r3, #68
	beq	.L38
	ldr	r3, [fp, #-72]
	cmp	r3, #68
	blt	.L39
	ldr	r3, [fp, #-72]
	cmp	r3, #112
	bgt	.L39
	ldr	r3, [fp, #-72]
	cmp	r3, #97
	blt	.L39
	ldr	r3, [fp, #-72]
	sub	r3, r3, #97
	cmp	r3, #15
	ldrls	pc, [pc, r3, asl #2]
	b	.L39
.L41:
	.word	.L44
	.word	.L39
	.word	.L39
	.word	.L39
	.word	.L39
	.word	.L43
	.word	.L39
	.word	.L42
	.word	.L39
	.word	.L39
	.word	.L39
	.word	.L39
	.word	.L39
	.word	.L39
	.word	.L39
	.word	.L40
.L42:
	ldr	r3, [fp, #-124]
	ldr	r3, [r3]
	mov	r0, r3
	bl	usage
	b	.L37
.L38:
	ldr	r3, [fp, #-80]
	add	r3, r3, #1
	str	r3, [fp, #-80]
	b	.L37
.L43:
	ldr	r3, .L59+20
	ldr	r3, [r3]
	str	r3, [fp, #-96]
	b	.L37
.L44:
	ldr	r3, .L59+20
	ldr	r3, [r3]
	str	r3, [fp, #-92]
	b	.L37
.L40:
	ldr	r3, .L59+20
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	mov	r3, r0
	strh	r3, [fp, #-110]	@ movhi
	b	.L37
.L39:
	ldr	r3, [fp, #-124]
	ldr	r3, [r3]
	mov	r0, r3
	bl	usage
	nop
.L37:
	ldr	r2, .L59+24
	ldr	r1, [fp, #-124]
	ldr	r0, [fp, #-120]
	bl	getopt
	str	r0, [fp, #-72]
	ldr	r3, [fp, #-72]
	cmn	r3, #1
	bne	.L45
	ldrh	r3, [fp, #-110]
	cmp	r3, #0
	bne	.L46
	ldr	r3, .L59+28
	ldr	r3, [r3]
	mov	r2, #21
	mov	r1, #1
	ldr	r0, .L59+32
	bl	fwrite
	ldr	r3, [fp, #-124]
	ldr	r3, [r3]
	mov	r0, r3
	bl	usage
	b	.L47
.L46:
	ldr	r3, [fp, #-92]
	cmp	r3, #0
	bne	.L48
	ldr	r3, .L59+28
	ldr	r3, [r3]
	mov	r2, #18
	mov	r1, #1
	ldr	r0, .L59+36
	bl	fwrite
	ldr	r3, [fp, #-124]
	ldr	r3, [r3]
	mov	r0, r3
	bl	usage
	b	.L47
.L48:
	ldr	r1, .L59+40
	ldr	r0, [fp, #-96]
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L49
	mov	r3, #28
	str	r3, [fp, #-84]
	ldrh	r3, [fp, #-110]
	mov	r0, r3
	bl	htons
	mov	r3, r0
	strh	r3, [fp, #-34]	@ movhi
	mov	r3, #10
	strh	r3, [fp, #-36]	@ movhi
	sub	r3, fp, #36
	add	r3, r3, #8
	mov	r2, r3
	ldr	r1, [fp, #-92]
	mov	r0, #10
	bl	inet_pton
	sub	r3, fp, #36
	str	r3, [fp, #-88]
	b	.L50
.L49:
	ldr	r1, .L59+4
	ldr	r0, [fp, #-96]
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L51
	mov	r3, #16
	str	r3, [fp, #-84]
	mov	r3, #2
	strh	r3, [fp, #-68]	@ movhi
	ldrh	r3, [fp, #-110]
	mov	r0, r3
	bl	htons
	mov	r3, r0
	strh	r3, [fp, #-66]	@ movhi
	ldr	r0, [fp, #-92]
	bl	inet_addr
	mov	r3, r0
	str	r3, [fp, #-64]
	sub	r3, fp, #68
	str	r3, [fp, #-88]
	b	.L50
.L51:
	ldr	r3, .L59+28
	ldr	r3, [r3]
	ldr	r2, [fp, #-96]
	ldr	r1, .L59+44
	mov	r0, r3
	bl	fprintf
	b	.L47
.L50:
	sub	r3, fp, #104
	mov	r2, #1
	ldr	r1, [fp, #-84]
	ldr	r0, [fp, #-88]
	bl	callhome_bind
	mov	r3, r0
	cmp	r3, #0
	blt	.L57
	mov	r3, #16
	str	r3, [fp, #-108]
	ldr	r3, [fp, #-104]
	sub	r2, fp, #108
	sub	r1, fp, #52
	mov	r0, r3
	bl	accept
	str	r0, [fp, #-76]
	ldr	r3, [fp, #-76]
	cmp	r3, #0
	bge	.L53
	ldr	r0, .L59+48
	bl	perror
	b	.L47
.L53:
	ldr	r0, [fp, #-76]
	bl	fdpass
	mov	r3, r0
	cmp	r3, #0
	blt	.L58
	mov	r3, #0
	str	r3, [fp, #-100]
	b	.L47
.L57:
	nop
	b	.L47
.L58:
	nop
.L47:
	ldr	r3, [fp, #-100]
	ldr	r2, .L59
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L56
	bl	__stack_chk_fail
.L56:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L60:
	.align	2
.L59:
	.word	.LC21
	.word	.LC14
	.word	4334
	.word	optind
	.word	opterr
	.word	optarg
	.word	.LC15
	.word	stderr
	.word	.LC16
	.word	.LC17
	.word	.LC18
	.word	.LC19
	.word	.LC20
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
