	.file	"28262697.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
	.align 16
	.type	TREADMILL_EPH_TCP_PORTS_FILE_ENV, @object
	.size	TREADMILL_EPH_TCP_PORTS_FILE_ENV, 29
TREADMILL_EPH_TCP_PORTS_FILE_ENV:
	.string	"TREADMILL_EPH_TCP_PORTS_FILE"
	.align 16
	.type	TREADMILL_EPH_UDP_PORTS_FILE_ENV, @object
	.size	TREADMILL_EPH_UDP_PORTS_FILE_ENV, 29
TREADMILL_EPH_UDP_PORTS_FILE_ENV:
	.string	"TREADMILL_EPH_UDP_PORTS_FILE"
	.align 16
	.type	TREADMILL_CONTAINER_IPV4_FILE_ENV, @object
	.size	TREADMILL_CONTAINER_IPV4_FILE_ENV, 30
TREADMILL_CONTAINER_IPV4_FILE_ENV:
	.string	"TREADMILL_CONTAINER_IPV4_FILE"
	.align 16
	.type	TREADMILL_CONTAINER_IPV6_FILE_ENV, @object
	.size	TREADMILL_CONTAINER_IPV6_FILE_ENV, 30
TREADMILL_CONTAINER_IPV6_FILE_ENV:
	.string	"TREADMILL_CONTAINER_IPV6_FILE"
	.align 16
	.type	TREADMILL_HOST_IPV4_FILE_ENV, @object
	.size	TREADMILL_HOST_IPV4_FILE_ENV, 25
TREADMILL_HOST_IPV4_FILE_ENV:
	.string	"TREADMILL_HOST_IPV4_FILE"
	.align 16
	.type	TREADMILL_HOST_IPV6_FILE_ENV, @object
	.size	TREADMILL_HOST_IPV6_FILE_ENV, 25
TREADMILL_HOST_IPV6_FILE_ENV:
	.string	"TREADMILL_HOST_IPV6_FILE"
	.align 16
	.type	TREADMILL_BIND_WHITELIST, @object
	.size	TREADMILL_BIND_WHITELIST, 25
TREADMILL_BIND_WHITELIST:
	.string	"TREADMILL_BIND_WHITELIST"
	.align 16
	.type	TREADMILL_BIND_WHITELIST_FILE, @object
	.size	TREADMILL_BIND_WHITELIST_FILE, 30
TREADMILL_BIND_WHITELIST_FILE:
	.string	"/env/TREADMILL_BIND_WHITELIST"
	.align 16
	.type	TREADMILL_BIND_BLACKLIST, @object
	.size	TREADMILL_BIND_BLACKLIST, 25
TREADMILL_BIND_BLACKLIST:
	.string	"TREADMILL_BIND_BLACKLIST"
	.align 16
	.type	TREADMILL_BIND_BLACKLIST_FILE, @object
	.size	TREADMILL_BIND_BLACKLIST_FILE, 30
TREADMILL_BIND_BLACKLIST_FILE:
	.string	"/env/TREADMILL_BIND_BLACKLIST"
	.align 32
	.type	TREADMILL_EPH_TCP_PORTS_FILE, @object
	.size	TREADMILL_EPH_TCP_PORTS_FILE, 35
TREADMILL_EPH_TCP_PORTS_FILE:
	.string	"/env/TREADMILL_EPHEMERAL_TCP_PORTS"
	.align 32
	.type	TREADMILL_EPH_UDP_PORTS_FILE, @object
	.size	TREADMILL_EPH_UDP_PORTS_FILE, 35
TREADMILL_EPH_UDP_PORTS_FILE:
	.string	"/env/TREADMILL_EPHEMERAL_UDP_PORTS"
	.align 16
	.type	TREADMILL_CONTAINER_IPV4_FILE, @object
	.size	TREADMILL_CONTAINER_IPV4_FILE, 28
TREADMILL_CONTAINER_IPV4_FILE:
	.string	"/env/TREADMILL_CONTAINER_IP"
	.align 16
	.type	TREADMILL_CONTAINER_IPV6_FILE, @object
	.size	TREADMILL_CONTAINER_IPV6_FILE, 30
TREADMILL_CONTAINER_IPV6_FILE:
	.string	"/env/TREADMILL_CONTAINER_IPV6"
	.align 16
	.type	TREADMILL_HOST_IPV4_FILE, @object
	.size	TREADMILL_HOST_IPV4_FILE, 23
TREADMILL_HOST_IPV4_FILE:
	.string	"/env/TREADMILL_HOST_IP"
	.align 16
	.type	TREADMILL_HOST_IPV6_FILE, @object
	.size	TREADMILL_HOST_IPV6_FILE, 25
TREADMILL_HOST_IPV6_FILE:
	.string	"/env/TREADMILL_HOST_IPV6"
	.align 16
	.type	TREADMILL_APP_FILE, @object
	.size	TREADMILL_APP_FILE, 19
TREADMILL_APP_FILE:
	.string	"/env/TREADMILL_APP"
	.align 16
	.type	TREADMILL_INSTANCE_FILE, @object
	.size	TREADMILL_INSTANCE_FILE, 26
TREADMILL_INSTANCE_FILE:
	.string	"/env/TREADMILL_INSTANCEID"
	.align 4
	.type	_SYSLOG_NOTICE, @object
	.size	_SYSLOG_NOTICE, 4
_SYSLOG_NOTICE:
	.long	141
	.align 4
	.type	_SYSLOG_INFO, @object
	.size	_SYSLOG_INFO, 4
_SYSLOG_INFO:
	.long	142
	.align 4
	.type	_SYSLOG_WARNING, @object
	.size	_SYSLOG_WARNING, 4
_SYSLOG_WARNING:
	.long	140
	.align 4
	.type	_SYSLOG_ERR, @object
	.size	_SYSLOG_ERR, 4
_SYSLOG_ERR:
	.long	139
	.globl	_tcp_ports
	.bss
	.align 8
	.type	_tcp_ports, @object
	.size	_tcp_ports, 8
_tcp_ports:
	.zero	8
	.globl	_udp_ports
	.align 8
	.type	_udp_ports, @object
	.size	_udp_ports, 8
_udp_ports:
	.zero	8
	.globl	_tcp_port_iter
	.align 8
	.type	_tcp_port_iter, @object
	.size	_tcp_port_iter, 8
_tcp_port_iter:
	.zero	8
	.globl	_udp_port_iter
	.align 8
	.type	_udp_port_iter, @object
	.size	_udp_port_iter, 8
_udp_port_iter:
	.zero	8
	.local	_container_in_addr
	.comm	_container_in_addr,4,4
	.local	_container_in6_addr
	.comm	_container_in6_addr,16,16
	.local	_host_in_addr
	.comm	_host_in_addr,4,4
	.local	_host_in6_addr
	.comm	_host_in6_addr,16,16
	.local	_proc_name
	.comm	_proc_name,8,8
	.local	_real_bind
	.comm	_real_bind,8,8
	.data
	.align 4
	.type	_intercept, @object
	.size	_intercept, 4
_intercept:
	.long	1
	.local	_syslog_sock
	.comm	_syslog_sock,4,4
	.local	_syslog_sock_name
	.comm	_syslog_sock_name,110,32
	.text
	.type	_treadmill_app, @function
_treadmill_app:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	movzx	eax, BYTE PTR _buf.2[rip]
	test	al, al
	je	.L2
	lea	rax, _buf.2[rip]
	jmp	.L3
.L2:
	mov	edx, 128
	lea	rsi, _buf.2[rip]
	lea	rdi, TREADMILL_APP_FILE[rip]
	call	_read_file_to_buf_zeroed
	lea	rax, _buf.2[rip]
.L3:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	_treadmill_app, .-_treadmill_app
	.type	_treadmill_instance_id, @function
_treadmill_instance_id:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	movzx	eax, BYTE PTR _buf.1[rip]
	test	al, al
	je	.L5
	lea	rax, _buf.1[rip]
	jmp	.L6
.L5:
	mov	edx, 16
	lea	rsi, _buf.1[rip]
	lea	rdi, TREADMILL_INSTANCE_FILE[rip]
	call	_read_file_to_buf_zeroed
	lea	rax, _buf.1[rip]
.L6:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	_treadmill_instance_id, .-_treadmill_instance_id
	.type	_init_syslog, @function
_init_syslog:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	WORD PTR _syslog_sock_name[rip], 1
	movabs	rax, 7453294859427079215
	mov	QWORD PTR _syslog_sock_name[rip+2], rax
	mov	BYTE PTR _syslog_sock_name[rip+10], 0
	mov	edx, 0
	mov	esi, 2
	mov	edi, 1
	call	socket@PLT
	mov	DWORD PTR _syslog_sock[rip], eax
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE8:
	.size	_init_syslog, .-_init_syslog
	.section	.rodata
.LC0:
	.string	"%FT%TZ"
	.align 8
.LC1:
	.string	"<%d>%s - treadmill-bind %s#%s %s[%d]: "
	.text
	.type	syslog, @function
syslog:
.LFB9:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r13
	push	r12
	push	rbx
	sub	rsp, 952
	.cfi_offset 13, -24
	.cfi_offset 12, -32
	.cfi_offset 3, -40
	mov	DWORD PTR -964[rbp], edi
	mov	QWORD PTR -976[rbp], rsi
	mov	QWORD PTR -192[rbp], rdx
	mov	QWORD PTR -184[rbp], rcx
	mov	QWORD PTR -176[rbp], r8
	mov	QWORD PTR -168[rbp], r9
	test	al, al
	je	.L9
	movaps	XMMWORD PTR -160[rbp], xmm0
	movaps	XMMWORD PTR -144[rbp], xmm1
	movaps	XMMWORD PTR -128[rbp], xmm2
	movaps	XMMWORD PTR -112[rbp], xmm3
	movaps	XMMWORD PTR -96[rbp], xmm4
	movaps	XMMWORD PTR -80[rbp], xmm5
	movaps	XMMWORD PTR -64[rbp], xmm6
	movaps	XMMWORD PTR -48[rbp], xmm7
.L9:
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -216[rbp], rax
	xor	eax, eax
	mov	eax, DWORD PTR _syslog_sock[rip]
	cmp	eax, -1
	je	.L13
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR -956[rbp], eax
	mov	DWORD PTR -888[rbp], 16
	mov	DWORD PTR -884[rbp], 48
	lea	rax, 16[rbp]
	mov	QWORD PTR -880[rbp], rax
	lea	rax, -208[rbp]
	mov	QWORD PTR -872[rbp], rax
	mov	edi, 0
	call	time@PLT
	mov	QWORD PTR -952[rbp], rax
	lea	rdx, -944[rbp]
	lea	rax, -952[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	localtime_r@PLT
	lea	rdx, -944[rbp]
	lea	rax, -864[rbp]
	mov	rcx, rdx
	lea	rdx, .LC0[rip]
	mov	esi, 128
	mov	rdi, rax
	call	strftime@PLT
	call	getpid@PLT
	mov	r12d, eax
	mov	r13, QWORD PTR _proc_name[rip]
	mov	eax, 0
	call	_treadmill_instance_id
	mov	rbx, rax
	mov	eax, 0
	call	_treadmill_app
	mov	rcx, rax
	lea	rsi, -864[rbp]
	mov	edx, DWORD PTR -964[rbp]
	lea	rax, -736[rbp]
	sub	rsp, 8
	push	r12
	push	r13
	push	rbx
	mov	r9, rcx
	mov	r8, rsi
	mov	ecx, edx
	lea	rdx, .LC1[rip]
	mov	esi, 512
	mov	rdi, rax
	mov	eax, 0
	call	snprintf@PLT
	add	rsp, 32
	lea	rax, -736[rbp]
	mov	rdi, rax
	call	strlen@PLT
	mov	edx, 512
	mov	rbx, rdx
	sub	rbx, rax
	lea	rax, -736[rbp]
	mov	rdi, rax
	call	strlen@PLT
	lea	rdx, -736[rbp]
	lea	rdi, [rdx+rax]
	lea	rdx, -888[rbp]
	mov	rax, QWORD PTR -976[rbp]
	mov	rcx, rdx
	mov	rdx, rax
	mov	rsi, rbx
	call	vsnprintf@PLT
	lea	rbx, _syslog_sock_name[rip]
	lea	rax, -736[rbp]
	mov	rdi, rax
	call	strlen@PLT
	lea	rdx, 1[rax]
	mov	eax, DWORD PTR _syslog_sock[rip]
	lea	rsi, -736[rbp]
	mov	r9d, 110
	mov	r8, rbx
	mov	ecx, 0
	mov	edi, eax
	call	sendto@PLT
	call	__errno_location@PLT
	mov	edx, DWORD PTR -956[rbp]
	mov	DWORD PTR [rax], edx
	jmp	.L8
.L13:
	nop
.L8:
	mov	rax, QWORD PTR -216[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L12
	call	__stack_chk_fail@PLT
.L12:
	lea	rsp, -24[rbp]
	pop	rbx
	pop	r12
	pop	r13
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	syslog, .-syslog
	.section	.rodata
.LC2:
	.string	"unknown error"
	.text
	.type	_get_dlerror, @function
_get_dlerror:
.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, 16
	call	dlerror@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	jne	.L15
	lea	rax, .LC2[rip]
	mov	QWORD PTR -8[rbp], rax
.L15:
	mov	rax, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE10:
	.size	_get_dlerror, .-_get_dlerror
	.section	.rodata
.LC3:
	.string	"Error locating 'bind': %s\n"
	.text
	.type	_print_error, @function
_print_error:
.LFB11:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	eax, 0
	call	_get_dlerror
	mov	rdx, rax
	mov	rax, QWORD PTR stderr[rip]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE11:
	.size	_print_error, .-_print_error
	.type	_print_error_and__exit, @function
_print_error_and__exit:
.LFB12:
	.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
	call	_print_error
	mov	eax, DWORD PTR -4[rbp]
	mov	edi, eax
	call	_exit@PLT
	.cfi_endproc
.LFE12:
	.size	_print_error_and__exit, .-_print_error_and__exit
	.type	_set_sockaddr_port, @function
_set_sockaddr_port:
.LFB13:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -8[rbp], rdi
	mov	eax, esi
	mov	WORD PTR -12[rbp], ax
	mov	rax, QWORD PTR -8[rbp]
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	cmp	eax, 2
	je	.L20
	cmp	eax, 10
	je	.L21
	jmp	.L23
.L20:
	mov	rax, QWORD PTR -8[rbp]
	movzx	edx, WORD PTR -12[rbp]
	mov	WORD PTR 2[rax], dx
	jmp	.L22
.L21:
	mov	rax, QWORD PTR -8[rbp]
	movzx	edx, WORD PTR -12[rbp]
	mov	WORD PTR 2[rax], dx
	nop
.L22:
.L23:
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE13:
	.size	_set_sockaddr_port, .-_set_sockaddr_port
	.section	.rodata
	.align 8
.LC4:
	.string	"setsockopt SO_REUSEADDR: fd = %d, errno: %d"
.LC5:
	.string	"free port found: %d"
	.align 8
.LC6:
	.string	"real bind failed: port = %d, errno = %d"
	.align 8
.LC7:
	.string	"all ports in use, EADDFNOTAVAIL"
	.text
	.type	_bind_to_available_port, @function
_bind_to_available_port:
.LFB14:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 192
	mov	QWORD PTR -168[rbp], rdi
	mov	DWORD PTR -172[rbp], esi
	mov	QWORD PTR -184[rbp], rdx
	mov	DWORD PTR -176[rbp], ecx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -152[rbp], 0
	mov	DWORD PTR -160[rbp], 0
	mov	edx, DWORD PTR -176[rbp]
	mov	rcx, QWORD PTR -184[rbp]
	lea	rax, -144[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	memcpy@PLT
	lea	rdx, -160[rbp]
	mov	eax, DWORD PTR -172[rbp]
	mov	r8d, 4
	mov	rcx, rdx
	mov	edx, 2
	mov	esi, 1
	mov	edi, eax
	call	setsockopt@PLT
	mov	DWORD PTR -156[rbp], eax
	cmp	DWORD PTR -156[rbp], 0
	je	.L25
	call	__errno_location@PLT
	mov	edx, DWORD PTR [rax]
	mov	edi, 140
	mov	eax, DWORD PTR -172[rbp]
	mov	ecx, edx
	mov	edx, eax
	lea	rsi, .LC4[rip]
	mov	eax, 0
	call	syslog
	mov	eax, DWORD PTR -156[rbp]
	jmp	.L31
.L25:
	mov	rax, QWORD PTR -168[rbp]
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR -152[rbp], rax
	jmp	.L27
.L30:
	mov	rax, QWORD PTR -152[rbp]
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	mov	edi, eax
	call	htons@PLT
	movzx	edx, ax
	lea	rax, -144[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	_set_sockaddr_port
	mov	r8, QWORD PTR _real_bind[rip]
	mov	edx, DWORD PTR -176[rbp]
	lea	rcx, -144[rbp]
	mov	eax, DWORD PTR -172[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	r8
	mov	DWORD PTR -156[rbp], eax
	cmp	DWORD PTR -156[rbp], 0
	jne	.L28
	mov	rax, QWORD PTR -152[rbp]
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	mov	ecx, 142
	mov	edx, eax
	lea	rsi, .LC5[rip]
	mov	edi, ecx
	mov	eax, 0
	call	syslog
	call	__errno_location@PLT
	mov	DWORD PTR [rax], 0
	mov	eax, 0
	jmp	.L31
.L28:
	cmp	DWORD PTR -156[rbp], -1
	jne	.L29
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 98
	je	.L29
	call	__errno_location@PLT
	mov	edx, DWORD PTR [rax]
	mov	rax, QWORD PTR -152[rbp]
	movzx	eax, WORD PTR [rax]
	movzx	eax, ax
	mov	edi, 142
	mov	ecx, edx
	mov	edx, eax
	lea	rsi, .LC6[rip]
	mov	eax, 0
	call	syslog
	mov	eax, DWORD PTR -156[rbp]
	jmp	.L31
.L29:
	mov	rax, QWORD PTR -152[rbp]
	mov	rax, QWORD PTR 8[rax]
	mov	QWORD PTR -152[rbp], rax
.L27:
	cmp	QWORD PTR -152[rbp], 0
	jne	.L30
	mov	eax, 140
	lea	rsi, .LC7[rip]
	mov	edi, eax
	mov	eax, 0
	call	syslog
	call	__errno_location@PLT
	mov	DWORD PTR [rax], 99
	mov	eax, -1
.L31:
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L32
	call	__stack_chk_fail@PLT
.L32:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE14:
	.size	_bind_to_available_port, .-_bind_to_available_port
	.type	_valid_sockaddr, @function
_valid_sockaddr:
.LFB15:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -8[rbp], rdi
	mov	DWORD PTR -12[rbp], esi
	cmp	QWORD PTR -8[rbp], 0
	je	.L34
	cmp	DWORD PTR -12[rbp], 0
	je	.L34
	mov	eax, 1
	jmp	.L36
.L34:
	mov	eax, 0
.L36:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE15:
	.size	_valid_sockaddr, .-_valid_sockaddr
	.type	_is_targetted_addr_or_any, @function
_is_targetted_addr_or_any:
.LFB16:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -24[rbp], rdi
	mov	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	mov	eax, DWORD PTR 4[rax]
	test	eax, eax
	je	.L38
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, DWORD PTR 4[rax]
	mov	eax, DWORD PTR _container_in_addr[rip]
	cmp	edx, eax
	je	.L38
	mov	rax, QWORD PTR -8[rbp]
	mov	edx, DWORD PTR 4[rax]
	mov	eax, DWORD PTR _host_in_addr[rip]
	cmp	edx, eax
	jne	.L39
.L38:
	mov	eax, 1
	jmp	.L41
.L39:
	mov	eax, 0
.L41:
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE16:
	.size	_is_targetted_addr_or_any, .-_is_targetted_addr_or_any
	.type	_is_targetted_addr6_or_any, @function
_is_targetted_addr6_or_any:
.LFB17:
	.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	rax, QWORD PTR -24[rbp]
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -8[rbp]
	add	rax, 8
	mov	edx, 16
	lea	rsi, in6addr_any[rip]
	mov	rdi, rax
	call	memcmp@PLT
	test	eax, eax
	je	.L43
	mov	rax, QWORD PTR -8[rbp]
	add	rax, 8
	mov	edx, 16
	lea	rsi, _container_in6_addr[rip]
	mov	rdi, rax
	call	memcmp@PLT
	test	eax, eax
	je	.L43
	mov	rax, QWORD PTR -8[rbp]
	add	rax, 8
	mov	edx, 16
	lea	rsi, _host_in6_addr[rip]
	mov	rdi, rax
	call	memcmp@PLT
	test	eax, eax
	jne	.L44
.L43:
	mov	eax, 1
	jmp	.L46
.L44:
	mov	eax, 0
.L46:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE17:
	.size	_is_targetted_addr6_or_any, .-_is_targetted_addr6_or_any
	.type	_sockaddr_in_port_equals, @function
_sockaddr_in_port_equals:
.LFB18:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -8[rbp], rdi
	mov	eax, esi
	mov	WORD PTR -12[rbp], ax
	mov	rax, QWORD PTR -8[rbp]
	movzx	eax, WORD PTR 2[rax]
	cmp	WORD PTR -12[rbp], ax
	sete	al
	movzx	eax, al
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE18:
	.size	_sockaddr_in_port_equals, .-_sockaddr_in_port_equals
	.type	_sockaddr_in6_port_equals, @function
_sockaddr_in6_port_equals:
.LFB19:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	mov	QWORD PTR -8[rbp], rdi
	mov	eax, esi
	mov	WORD PTR -12[rbp], ax
	mov	rax, QWORD PTR -8[rbp]
	movzx	eax, WORD PTR 2[rax]
	cmp	WORD PTR -12[rbp], ax
	sete	al
	movzx	eax, al
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE19:
	.size	_sockaddr_in6_port_equals, .-_sockaddr_in6_port_equals
	.type	_sockaddr_in_port_equals_zero, @function
_sockaddr_in_port_equals_zero:
.LFB20:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 8
	mov	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR -8[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	_sockaddr_in_port_equals
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE20:
	.size	_sockaddr_in_port_equals_zero, .-_sockaddr_in_port_equals_zero
	.type	_sockaddr_in6_port_equals_zero, @function
_sockaddr_in6_port_equals_zero:
.LFB21:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 8
	mov	QWORD PTR -8[rbp], rdi
	mov	rax, QWORD PTR -8[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	_sockaddr_in6_port_equals
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE21:
	.size	_sockaddr_in6_port_equals_zero, .-_sockaddr_in6_port_equals_zero
	.type	_is_in_targetted_socket, @function
_is_in_targetted_socket:
.LFB22:
	.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	DWORD PTR -12[rbp], esi
	mov	rax, QWORD PTR -8[rbp]
	movzx	eax, WORD PTR [rax]
	cmp	ax, 2
	jne	.L56
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	_is_targetted_addr_or_any
	test	eax, eax
	je	.L56
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	_sockaddr_in_port_equals_zero
	jmp	.L57
.L56:
	mov	eax, 0
.L57:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE22:
	.size	_is_in_targetted_socket, .-_is_in_targetted_socket
	.type	_is_in6_targetted_socket, @function
_is_in6_targetted_socket:
.LFB23:
	.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	DWORD PTR -12[rbp], esi
	mov	rax, QWORD PTR -8[rbp]
	movzx	eax, WORD PTR [rax]
	cmp	ax, 10
	jne	.L59
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	_is_targetted_addr6_or_any
	test	eax, eax
	je	.L59
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	_sockaddr_in6_port_equals_zero
	jmp	.L60
.L59:
	mov	eax, 0
.L60:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE23:
	.size	_is_in6_targetted_socket, .-_is_in6_targetted_socket
	.type	_is_targetted_socket, @function
_is_targetted_socket:
.LFB24:
	.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	DWORD PTR -12[rbp], esi
	mov	edx, DWORD PTR -12[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	_valid_sockaddr
	test	eax, eax
	jne	.L62
	mov	eax, 0
	jmp	.L63
.L62:
	mov	edx, DWORD PTR -12[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	_is_in_targetted_socket
	test	eax, eax
	jne	.L64
	mov	edx, DWORD PTR -12[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	_is_in6_targetted_socket
	test	eax, eax
	je	.L65
.L64:
	mov	eax, 1
	jmp	.L63
.L65:
	mov	eax, 0
.L63:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE24:
	.size	_is_targetted_socket, .-_is_targetted_socket
	.type	_read_file_to_buf, @function
_read_file_to_buf:
.LFB25:
	.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	QWORD PTR -32[rbp], rsi
	mov	QWORD PTR -40[rbp], rdx
	mov	rax, QWORD PTR -24[rbp]
	mov	esi, 0
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -12[rbp], eax
	cmp	DWORD PTR -12[rbp], -1
	jne	.L68
	mov	rax, -1
	jmp	.L69
.L68:
	mov	rdx, QWORD PTR -40[rbp]
	mov	rcx, QWORD PTR -32[rbp]
	mov	eax, DWORD PTR -12[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], -1
	jne	.L70
	mov	rax, -1
	jmp	.L69
.L70:
	mov	eax, DWORD PTR -12[rbp]
	mov	edi, eax
	call	close@PLT
	mov	rax, QWORD PTR -8[rbp]
.L69:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE25:
	.size	_read_file_to_buf, .-_read_file_to_buf
	.type	_read_file_to_buf_zeroed, @function
_read_file_to_buf_zeroed:
.LFB26:
	.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	QWORD PTR -32[rbp], rsi
	mov	QWORD PTR -40[rbp], rdx
	mov	rax, QWORD PTR -40[rbp]
	lea	rdx, -1[rax]
	mov	rcx, QWORD PTR -32[rbp]
	mov	rax, QWORD PTR -24[rbp]
	mov	rsi, rcx
	mov	rdi, rax
	call	_read_file_to_buf
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	js	.L72
	mov	rdx, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR -32[rbp]
	add	rax, rdx
	mov	BYTE PTR [rax], 0
.L72:
	mov	rax, QWORD PTR -8[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE26:
	.size	_read_file_to_buf_zeroed, .-_read_file_to_buf_zeroed
	.section	.rodata
.LC8:
	.string	"processing port file: %s"
.LC9:
	.string	"r"
	.align 8
.LC10:
	.string	"unable to open file: %s, errno = %d"
.LC11:
	.string	"adding port: %d"
.LC12:
	.string	"%hu"
	.text
	.type	_populate_ports_via_file, @function
_populate_ports_via_file:
.LFB27:
	.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 -40[rbp], rdi
	mov	QWORD PTR -48[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	QWORD PTR -24[rbp], 0
	mov	ecx, 142
	mov	rax, QWORD PTR -40[rbp]
	mov	rdx, rax
	lea	rsi, .LC8[rip]
	mov	edi, ecx
	mov	eax, 0
	call	syslog
	mov	rax, QWORD PTR -40[rbp]
	lea	rsi, .LC9[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -24[rbp], rax
	cmp	QWORD PTR -24[rbp], 0
	jne	.L77
	call	__errno_location@PLT
	mov	edx, DWORD PTR [rax]
	mov	edi, 140
	mov	rax, QWORD PTR -40[rbp]
	mov	ecx, edx
	mov	rdx, rax
	lea	rsi, .LC10[rip]
	mov	eax, 0
	call	syslog
	mov	eax, -1
	jmp	.L80
.L79:
	mov	edi, 24
	call	malloc@PLT
	mov	QWORD PTR -16[rbp], rax
	movzx	edx, WORD PTR -26[rbp]
	mov	rax, QWORD PTR -16[rbp]
	mov	WORD PTR [rax], dx
	movzx	eax, WORD PTR -26[rbp]
	movzx	eax, ax
	mov	ecx, 142
	mov	edx, eax
	lea	rsi, .LC11[rip]
	mov	edi, ecx
	mov	eax, 0
	call	syslog
	mov	rax, QWORD PTR -48[rbp]
	mov	rdx, QWORD PTR [rax]
	mov	rax, QWORD PTR -16[rbp]
	mov	QWORD PTR 8[rax], rdx
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR 8[rax]
	test	rax, rax
	je	.L78
	mov	rax, QWORD PTR -48[rbp]
	mov	rax, QWORD PTR [rax]
	mov	rdx, QWORD PTR -16[rbp]
	add	rdx, 8
	mov	QWORD PTR 16[rax], rdx
.L78:
	mov	rax, QWORD PTR -48[rbp]
	mov	rdx, QWORD PTR -16[rbp]
	mov	QWORD PTR [rax], rdx
	mov	rdx, QWORD PTR -48[rbp]
	mov	rax, QWORD PTR -16[rbp]
	mov	QWORD PTR 16[rax], rdx
.L77:
	lea	rdx, -26[rbp]
	mov	rax, QWORD PTR -24[rbp]
	lea	rsi, .LC12[rip]
	mov	rdi, rax
	mov	eax, 0
	call	__isoc99_fscanf@PLT
	cmp	eax, 1
	je	.L79
	mov	rax, QWORD PTR -24[rbp]
	mov	rdi, rax
	call	fclose@PLT
	mov	eax, 0
.L80:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L81
	call	__stack_chk_fail@PLT
.L81:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE27:
	.size	_populate_ports_via_file, .-_populate_ports_via_file
	.type	_populate_ports, @function
_populate_ports:
.LFB28:
	.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	QWORD PTR -32[rbp], rsi
	mov	QWORD PTR -40[rbp], rdx
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	getenv@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	jne	.L83
	mov	rax, QWORD PTR -40[rbp]
	mov	QWORD PTR -8[rbp], rax
.L83:
	mov	rdx, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	_populate_ports_via_file
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE28:
	.size	_populate_ports, .-_populate_ports
	.type	_populate_in_addr, @function
_populate_in_addr:
.LFB29:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 304
	mov	QWORD PTR -296[rbp], rdi
	mov	QWORD PTR -304[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rax, QWORD PTR -296[rbp]
	mov	DWORD PTR [rax], 0
	lea	rcx, -272[rbp]
	mov	rax, QWORD PTR -304[rbp]
	mov	edx, 256
	mov	rsi, rcx
	mov	rdi, rax
	call	_read_file_to_buf_zeroed
	mov	QWORD PTR -280[rbp], rax
	cmp	QWORD PTR -280[rbp], -1
	je	.L88
	mov	rdx, QWORD PTR -296[rbp]
	lea	rax, -272[rbp]
	mov	rsi, rax
	mov	edi, 2
	call	inet_pton@PLT
	jmp	.L84
.L88:
	nop
.L84:
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L87
	call	__stack_chk_fail@PLT
.L87:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE29:
	.size	_populate_in_addr, .-_populate_in_addr
	.section	.rodata
.LC13:
	.string	"::FFFF:%s"
	.text
	.type	_populate_in6_addr, @function
_populate_in6_addr:
.LFB30:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 576
	mov	QWORD PTR -552[rbp], rdi
	mov	QWORD PTR -560[rbp], rsi
	mov	QWORD PTR -568[rbp], rdx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	rcx, QWORD PTR -552[rbp]
	mov	rax, QWORD PTR in6addr_any[rip]
	mov	rdx, QWORD PTR in6addr_any[rip+8]
	mov	QWORD PTR [rcx], rax
	mov	QWORD PTR 8[rcx], rdx
	lea	rcx, -528[rbp]
	mov	rax, QWORD PTR -560[rbp]
	mov	edx, 256
	mov	rsi, rcx
	mov	rdi, rax
	call	_read_file_to_buf_zeroed
	mov	QWORD PTR -536[rbp], rax
	cmp	QWORD PTR -536[rbp], -1
	jne	.L90
	lea	rcx, -272[rbp]
	mov	rax, QWORD PTR -568[rbp]
	mov	edx, 256
	mov	rsi, rcx
	mov	rdi, rax
	call	_read_file_to_buf_zeroed
	mov	QWORD PTR -536[rbp], rax
	cmp	QWORD PTR -536[rbp], -1
	je	.L89
	lea	rdx, -272[rbp]
	lea	rax, -528[rbp]
	mov	rcx, rdx
	lea	rdx, .LC13[rip]
	mov	esi, 255
	mov	rdi, rax
	mov	eax, 0
	call	snprintf@PLT
.L90:
	mov	rdx, QWORD PTR -552[rbp]
	lea	rax, -528[rbp]
	mov	rsi, rax
	mov	edi, 10
	call	inet_pton@PLT
.L89:
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L93
	call	__stack_chk_fail@PLT
.L93:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE30:
	.size	_populate_in6_addr, .-_populate_in6_addr
	.type	_populate_container_in_addr, @function
_populate_container_in_addr:
.LFB31:
	.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
	lea	rdi, TREADMILL_CONTAINER_IPV4_FILE_ENV[rip]
	call	getenv@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	jne	.L95
	lea	rax, TREADMILL_CONTAINER_IPV4_FILE[rip]
	mov	QWORD PTR -8[rbp], rax
.L95:
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, rax
	lea	rdi, _container_in_addr[rip]
	call	_populate_in_addr
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE31:
	.size	_populate_container_in_addr, .-_populate_container_in_addr
	.type	_populate_container_in6_addr, @function
_populate_container_in6_addr:
.LFB32:
	.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
	lea	rdi, TREADMILL_CONTAINER_IPV6_FILE_ENV[rip]
	call	getenv@PLT
	mov	QWORD PTR -16[rbp], rax
	cmp	QWORD PTR -16[rbp], 0
	jne	.L97
	lea	rax, TREADMILL_CONTAINER_IPV6_FILE[rip]
	mov	QWORD PTR -16[rbp], rax
.L97:
	lea	rdi, TREADMILL_CONTAINER_IPV4_FILE_ENV[rip]
	call	getenv@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	jne	.L98
	lea	rax, TREADMILL_CONTAINER_IPV4_FILE[rip]
	mov	QWORD PTR -8[rbp], rax
.L98:
	mov	rdx, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR -16[rbp]
	mov	rsi, rax
	lea	rdi, _container_in6_addr[rip]
	call	_populate_in6_addr
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE32:
	.size	_populate_container_in6_addr, .-_populate_container_in6_addr
	.type	_populate_host_in_addr, @function
_populate_host_in_addr:
.LFB33:
	.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
	lea	rdi, TREADMILL_HOST_IPV4_FILE_ENV[rip]
	call	getenv@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	jne	.L100
	lea	rax, TREADMILL_HOST_IPV4_FILE[rip]
	mov	QWORD PTR -8[rbp], rax
.L100:
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, rax
	lea	rdi, _host_in_addr[rip]
	call	_populate_in_addr
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE33:
	.size	_populate_host_in_addr, .-_populate_host_in_addr
	.type	_populate_host_in6_addr, @function
_populate_host_in6_addr:
.LFB34:
	.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
	lea	rdi, TREADMILL_HOST_IPV6_FILE_ENV[rip]
	call	getenv@PLT
	mov	QWORD PTR -16[rbp], rax
	cmp	QWORD PTR -16[rbp], 0
	jne	.L102
	lea	rax, TREADMILL_HOST_IPV6_FILE[rip]
	mov	QWORD PTR -16[rbp], rax
.L102:
	lea	rdi, TREADMILL_HOST_IPV4_FILE_ENV[rip]
	call	getenv@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	jne	.L103
	lea	rax, TREADMILL_HOST_IPV4_FILE[rip]
	mov	QWORD PTR -8[rbp], rax
.L103:
	mov	rdx, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR -16[rbp]
	mov	rsi, rax
	lea	rdi, _host_in6_addr[rip]
	call	_populate_in6_addr
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE34:
	.size	_populate_host_in6_addr, .-_populate_host_in6_addr
	.section	.rodata
.LC14:
	.string	"/proc/%d/cmdline"
	.text
	.type	_get_process_name_by_pid, @function
_get_process_name_by_pid:
.LFB35:
	.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	DWORD PTR -20[rbp], edi
	mov	QWORD PTR -16[rbp], 0
	movzx	eax, BYTE PTR name.0[rip]
	test	al, al
	je	.L105
	lea	rax, name.0[rip]
	jmp	.L106
.L105:
	mov	eax, DWORD PTR -20[rbp]
	mov	edx, eax
	lea	rsi, .LC14[rip]
	lea	rdi, name.0[rip]
	mov	eax, 0
	call	sprintf@PLT
	lea	rsi, .LC9[rip]
	lea	rdi, name.0[rip]
	call	fopen@PLT
	mov	QWORD PTR -16[rbp], rax
	cmp	QWORD PTR -16[rbp], 0
	je	.L107
	mov	rax, QWORD PTR -16[rbp]
	mov	rcx, rax
	mov	edx, 255
	mov	esi, 1
	lea	rdi, name.0[rip]
	call	fread@PLT
	mov	QWORD PTR -8[rbp], rax
	cmp	QWORD PTR -8[rbp], 0
	je	.L108
	mov	rax, QWORD PTR -8[rbp]
	lea	rdx, -1[rax]
	lea	rax, name.0[rip]
	movzx	eax, BYTE PTR [rdx+rax]
	cmp	al, 10
	jne	.L108
	mov	rax, QWORD PTR -8[rbp]
	lea	rdx, -1[rax]
	lea	rax, name.0[rip]
	mov	BYTE PTR [rdx+rax], 0
.L108:
	mov	rax, QWORD PTR -16[rbp]
	mov	rdi, rax
	call	fclose@PLT
.L107:
	lea	rax, name.0[rip]
.L106:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE35:
	.size	_get_process_name_by_pid, .-_get_process_name_by_pid
	.type	_is_in_list, @function
_is_in_list:
.LFB36:
	.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	QWORD PTR -56[rbp], rdx
	mov	DWORD PTR -20[rbp], 0
	mov	QWORD PTR -16[rbp], 0
	mov	rax, QWORD PTR -40[rbp]
	mov	rdi, rax
	call	strdup@PLT
	mov	QWORD PTR -8[rbp], rax
	mov	rdx, QWORD PTR -48[rbp]
	mov	rax, QWORD PTR -8[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strtok@PLT
	mov	QWORD PTR -16[rbp], rax
	jmp	.L110
.L113:
	mov	rdx, QWORD PTR -56[rbp]
	mov	rax, QWORD PTR -16[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L111
	mov	DWORD PTR -20[rbp], 1
	jmp	.L112
.L111:
	mov	rax, QWORD PTR -48[rbp]
	mov	rsi, rax
	mov	edi, 0
	call	strtok@PLT
	mov	QWORD PTR -16[rbp], rax
.L110:
	cmp	QWORD PTR -16[rbp], 0
	jne	.L113
.L112:
	mov	rax, QWORD PTR -8[rbp]
	mov	rdi, rax
	call	free@PLT
	mov	eax, DWORD PTR -20[rbp]
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE36:
	.size	_is_in_list, .-_is_in_list
	.section	.rodata
.LC15:
	.string	":"
	.align 8
.LC16:
	.string	"not intercepting: %s, whitelist: %s"
	.align 8
.LC17:
	.string	"not intercepting: %s, blacklist: %s"
	.text
	.type	_check_if_intercept, @function
_check_if_intercept:
.LFB37:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 544
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	lea	rdi, TREADMILL_BIND_WHITELIST[rip]
	call	getenv@PLT
	mov	QWORD PTR -544[rbp], rax
	lea	rdi, TREADMILL_BIND_BLACKLIST[rip]
	call	getenv@PLT
	mov	QWORD PTR -536[rbp], rax
	mov	QWORD PTR -528[rbp], 0
	mov	QWORD PTR -520[rbp], 0
	mov	QWORD PTR -512[rbp], 0
	mov	QWORD PTR -504[rbp], 0
	mov	QWORD PTR -496[rbp], 0
	mov	QWORD PTR -488[rbp], 0
	mov	QWORD PTR -480[rbp], 0
	mov	QWORD PTR -472[rbp], 0
	mov	QWORD PTR -464[rbp], 0
	mov	QWORD PTR -456[rbp], 0
	mov	QWORD PTR -448[rbp], 0
	mov	QWORD PTR -440[rbp], 0
	mov	QWORD PTR -432[rbp], 0
	mov	QWORD PTR -424[rbp], 0
	mov	QWORD PTR -416[rbp], 0
	mov	QWORD PTR -408[rbp], 0
	mov	QWORD PTR -400[rbp], 0
	mov	QWORD PTR -392[rbp], 0
	mov	QWORD PTR -384[rbp], 0
	mov	QWORD PTR -376[rbp], 0
	mov	QWORD PTR -368[rbp], 0
	mov	QWORD PTR -360[rbp], 0
	mov	QWORD PTR -352[rbp], 0
	mov	QWORD PTR -344[rbp], 0
	mov	QWORD PTR -336[rbp], 0
	mov	QWORD PTR -328[rbp], 0
	mov	QWORD PTR -320[rbp], 0
	mov	QWORD PTR -312[rbp], 0
	mov	QWORD PTR -304[rbp], 0
	mov	QWORD PTR -296[rbp], 0
	mov	QWORD PTR -288[rbp], 0
	mov	QWORD PTR -280[rbp], 0
	mov	QWORD PTR -272[rbp], 0
	mov	QWORD PTR -264[rbp], 0
	mov	QWORD PTR -256[rbp], 0
	mov	QWORD PTR -248[rbp], 0
	mov	QWORD PTR -240[rbp], 0
	mov	QWORD PTR -232[rbp], 0
	mov	QWORD PTR -224[rbp], 0
	mov	QWORD PTR -216[rbp], 0
	mov	QWORD PTR -208[rbp], 0
	mov	QWORD PTR -200[rbp], 0
	mov	QWORD PTR -192[rbp], 0
	mov	QWORD PTR -184[rbp], 0
	mov	QWORD PTR -176[rbp], 0
	mov	QWORD PTR -168[rbp], 0
	mov	QWORD PTR -160[rbp], 0
	mov	QWORD PTR -152[rbp], 0
	mov	QWORD PTR -144[rbp], 0
	mov	QWORD PTR -136[rbp], 0
	mov	QWORD PTR -128[rbp], 0
	mov	QWORD PTR -120[rbp], 0
	mov	QWORD PTR -112[rbp], 0
	mov	QWORD PTR -104[rbp], 0
	mov	QWORD PTR -96[rbp], 0
	mov	QWORD PTR -88[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	QWORD PTR -48[rbp], 0
	mov	QWORD PTR -40[rbp], 0
	mov	QWORD PTR -32[rbp], 0
	mov	QWORD PTR -24[rbp], 0
	cmp	QWORD PTR -544[rbp], 0
	je	.L116
	mov	rcx, QWORD PTR -544[rbp]
	lea	rax, -528[rbp]
	mov	edx, 256
	mov	rsi, rcx
	mov	rdi, rax
	call	strncpy@PLT
	jmp	.L117
.L116:
	lea	rax, -528[rbp]
	mov	edx, 256
	mov	rsi, rax
	lea	rdi, TREADMILL_BIND_WHITELIST_FILE[rip]
	call	_read_file_to_buf_zeroed
.L117:
	cmp	QWORD PTR -536[rbp], 0
	je	.L118
	mov	rcx, QWORD PTR -536[rbp]
	lea	rax, -272[rbp]
	mov	edx, 256
	mov	rsi, rcx
	mov	rdi, rax
	call	strncpy@PLT
	jmp	.L119
.L118:
	lea	rax, -272[rbp]
	mov	edx, 256
	mov	rsi, rax
	lea	rdi, TREADMILL_BIND_BLACKLIST_FILE[rip]
	call	_read_file_to_buf_zeroed
.L119:
	movzx	eax, BYTE PTR -528[rbp]
	test	al, al
	je	.L120
	lea	rax, -528[rbp]
	mov	rdi, rax
	call	strlen@PLT
	sub	rax, 1
	movzx	eax, BYTE PTR -528[rbp+rax]
	cmp	al, 10
	jne	.L120
	lea	rax, -528[rbp]
	mov	rdi, rax
	call	strlen@PLT
	sub	rax, 1
	mov	BYTE PTR -528[rbp+rax], 0
.L120:
	movzx	eax, BYTE PTR -272[rbp]
	test	al, al
	je	.L121
	lea	rax, -272[rbp]
	mov	rdi, rax
	call	strlen@PLT
	sub	rax, 1
	movzx	eax, BYTE PTR -272[rbp+rax]
	cmp	al, 10
	jne	.L121
	lea	rax, -272[rbp]
	mov	rdi, rax
	call	strlen@PLT
	sub	rax, 1
	mov	BYTE PTR -272[rbp+rax], 0
.L121:
	movzx	eax, BYTE PTR -528[rbp]
	test	al, al
	je	.L122
	mov	rdx, QWORD PTR _proc_name[rip]
	lea	rax, -528[rbp]
	lea	rsi, .LC15[rip]
	mov	rdi, rax
	call	_is_in_list
	test	eax, eax
	jne	.L122
	mov	rax, QWORD PTR _proc_name[rip]
	mov	edi, 142
	lea	rdx, -528[rbp]
	mov	rcx, rdx
	mov	rdx, rax
	lea	rsi, .LC16[rip]
	mov	eax, 0
	call	syslog
	mov	DWORD PTR _intercept[rip], 0
.L122:
	movzx	eax, BYTE PTR -272[rbp]
	test	al, al
	je	.L125
	mov	rdx, QWORD PTR _proc_name[rip]
	lea	rax, -272[rbp]
	lea	rsi, .LC15[rip]
	mov	rdi, rax
	call	_is_in_list
	test	eax, eax
	je	.L125
	mov	rax, QWORD PTR _proc_name[rip]
	mov	edi, 142
	lea	rdx, -272[rbp]
	mov	rcx, rdx
	mov	rdx, rax
	lea	rsi, .LC17[rip]
	mov	eax, 0
	call	syslog
	mov	DWORD PTR _intercept[rip], 0
.L125:
	nop
	mov	rax, QWORD PTR -8[rbp]
	sub	rax, QWORD PTR fs:40
	je	.L124
	call	__stack_chk_fail@PLT
.L124:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE37:
	.size	_check_if_intercept, .-_check_if_intercept
	.section	.rodata
.LC18:
	.string	"bind"
	.text
	.type	_real_bind_init, @function
_real_bind_init:
.LFB38:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	lea	rsi, .LC18[rip]
	mov	rdi, -1
	call	dlsym@PLT
	mov	QWORD PTR _real_bind[rip], rax
	mov	rax, QWORD PTR _real_bind[rip]
	test	rax, rax
	jne	.L127
	mov	edi, 1
	call	_print_error_and__exit
.L127:
	mov	eax, 0
	call	_init_syslog
	mov	rax, QWORD PTR _proc_name[rip]
	test	rax, rax
	jne	.L128
	call	getpid@PLT
	mov	edi, eax
	call	_get_process_name_by_pid
	mov	rdi, rax
	call	__xpg_basename@PLT
	mov	QWORD PTR _proc_name[rip], rax
.L128:
	mov	QWORD PTR _tcp_ports[rip], 0
	mov	QWORD PTR _udp_ports[rip], 0
	mov	eax, 0
	call	_check_if_intercept
	mov	eax, DWORD PTR _intercept[rip]
	test	eax, eax
	je	.L129
	lea	rdx, TREADMILL_EPH_TCP_PORTS_FILE[rip]
	lea	rsi, TREADMILL_EPH_TCP_PORTS_FILE_ENV[rip]
	lea	rdi, _tcp_ports[rip]
	call	_populate_ports
	lea	rdx, TREADMILL_EPH_UDP_PORTS_FILE[rip]
	lea	rsi, TREADMILL_EPH_UDP_PORTS_FILE_ENV[rip]
	lea	rdi, _udp_ports[rip]
	call	_populate_ports
	call	_populate_container_in_addr
	call	_populate_container_in6_addr
	call	_populate_host_in_addr
	call	_populate_host_in6_addr
.L129:
	call	__errno_location@PLT
	mov	DWORD PTR [rax], 0
	nop
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE38:
	.size	_real_bind_init, .-_real_bind_init
	.section	.rodata
.LC19:
	.string	"bind: fd = %d, type = %d"
	.text
	.type	_new_bind, @function
_new_bind:
.LFB39:
	.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	DWORD PTR -36[rbp], edi
	mov	QWORD PTR -48[rbp], rsi
	mov	DWORD PTR -40[rbp], edx
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	eax, DWORD PTR _intercept[rip]
	test	eax, eax
	je	.L131
	mov	edx, DWORD PTR -40[rbp]
	mov	rax, QWORD PTR -48[rbp]
	mov	esi, edx
	mov	rdi, rax
	call	_is_targetted_socket
	test	eax, eax
	je	.L131
	mov	DWORD PTR -16[rbp], 4
	lea	rcx, -16[rbp]
	lea	rdx, -20[rbp]
	mov	eax, DWORD PTR -36[rbp]
	mov	r8, rcx
	mov	rcx, rdx
	mov	edx, 3
	mov	esi, 1
	mov	edi, eax
	call	getsockopt@PLT
	mov	DWORD PTR -12[rbp], eax
	cmp	DWORD PTR -12[rbp], -1
	jne	.L132
	mov	r8, QWORD PTR _real_bind[rip]
	mov	edx, DWORD PTR -40[rbp]
	mov	rcx, QWORD PTR -48[rbp]
	mov	eax, DWORD PTR -36[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	r8
	jmp	.L136
.L132:
	mov	edx, DWORD PTR -20[rbp]
	mov	edi, 142
	mov	eax, DWORD PTR -36[rbp]
	mov	ecx, edx
	mov	edx, eax
	lea	rsi, .LC19[rip]
	mov	eax, 0
	call	syslog
	mov	eax, DWORD PTR -20[rbp]
	cmp	eax, 1
	jne	.L134
	mov	rax, QWORD PTR _tcp_ports[rip]
	test	rax, rax
	je	.L134
	mov	ecx, DWORD PTR -40[rbp]
	mov	rdx, QWORD PTR -48[rbp]
	mov	eax, DWORD PTR -36[rbp]
	mov	esi, eax
	lea	rdi, _tcp_ports[rip]
	call	_bind_to_available_port
	jmp	.L136
.L134:
	mov	eax, DWORD PTR -20[rbp]
	cmp	eax, 2
	jne	.L135
	mov	rax, QWORD PTR _udp_ports[rip]
	test	rax, rax
	je	.L135
	mov	ecx, DWORD PTR -40[rbp]
	mov	rdx, QWORD PTR -48[rbp]
	mov	eax, DWORD PTR -36[rbp]
	mov	esi, eax
	lea	rdi, _udp_ports[rip]
	call	_bind_to_available_port
	jmp	.L136
.L135:
	mov	r8, QWORD PTR _real_bind[rip]
	mov	edx, DWORD PTR -40[rbp]
	mov	rcx, QWORD PTR -48[rbp]
	mov	eax, DWORD PTR -36[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	r8
	jmp	.L136
.L131:
	mov	r8, QWORD PTR _real_bind[rip]
	mov	edx, DWORD PTR -40[rbp]
	mov	rcx, QWORD PTR -48[rbp]
	mov	eax, DWORD PTR -36[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	r8
.L136:
	mov	rsi, QWORD PTR -8[rbp]
	sub	rsi, QWORD PTR fs:40
	je	.L137
	call	__stack_chk_fail@PLT
.L137:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE39:
	.size	_new_bind, .-_new_bind
	.globl	bind
	.type	bind, @function
bind:
.LFB40:
	.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
	mov	QWORD PTR -16[rbp], rsi
	mov	DWORD PTR -8[rbp], edx
	mov	rax, QWORD PTR _real_bind[rip]
	test	rax, rax
	jne	.L139
	call	_real_bind_init
.L139:
	mov	edx, DWORD PTR -8[rbp]
	mov	rcx, QWORD PTR -16[rbp]
	mov	eax, DWORD PTR -4[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	_new_bind
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE40:
	.size	bind, .-bind
	.local	_buf.2
	.comm	_buf.2,128,32
	.local	_buf.1
	.comm	_buf.1,16,16
	.local	name.0
	.comm	name.0,256,32
	.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	"28262697.c"
	.text
	.section	.rodata
	.align	2
	.type	TREADMILL_EPH_TCP_PORTS_FILE_ENV, %object
	.size	TREADMILL_EPH_TCP_PORTS_FILE_ENV, 29
TREADMILL_EPH_TCP_PORTS_FILE_ENV:
	.ascii	"TREADMILL_EPH_TCP_PORTS_FILE\000"
	.align	2
	.type	TREADMILL_EPH_UDP_PORTS_FILE_ENV, %object
	.size	TREADMILL_EPH_UDP_PORTS_FILE_ENV, 29
TREADMILL_EPH_UDP_PORTS_FILE_ENV:
	.ascii	"TREADMILL_EPH_UDP_PORTS_FILE\000"
	.align	2
	.type	TREADMILL_CONTAINER_IPV4_FILE_ENV, %object
	.size	TREADMILL_CONTAINER_IPV4_FILE_ENV, 30
TREADMILL_CONTAINER_IPV4_FILE_ENV:
	.ascii	"TREADMILL_CONTAINER_IPV4_FILE\000"
	.align	2
	.type	TREADMILL_CONTAINER_IPV6_FILE_ENV, %object
	.size	TREADMILL_CONTAINER_IPV6_FILE_ENV, 30
TREADMILL_CONTAINER_IPV6_FILE_ENV:
	.ascii	"TREADMILL_CONTAINER_IPV6_FILE\000"
	.align	2
	.type	TREADMILL_HOST_IPV4_FILE_ENV, %object
	.size	TREADMILL_HOST_IPV4_FILE_ENV, 25
TREADMILL_HOST_IPV4_FILE_ENV:
	.ascii	"TREADMILL_HOST_IPV4_FILE\000"
	.align	2
	.type	TREADMILL_HOST_IPV6_FILE_ENV, %object
	.size	TREADMILL_HOST_IPV6_FILE_ENV, 25
TREADMILL_HOST_IPV6_FILE_ENV:
	.ascii	"TREADMILL_HOST_IPV6_FILE\000"
	.align	2
	.type	TREADMILL_BIND_WHITELIST, %object
	.size	TREADMILL_BIND_WHITELIST, 25
TREADMILL_BIND_WHITELIST:
	.ascii	"TREADMILL_BIND_WHITELIST\000"
	.align	2
	.type	TREADMILL_BIND_WHITELIST_FILE, %object
	.size	TREADMILL_BIND_WHITELIST_FILE, 30
TREADMILL_BIND_WHITELIST_FILE:
	.ascii	"/env/TREADMILL_BIND_WHITELIST\000"
	.align	2
	.type	TREADMILL_BIND_BLACKLIST, %object
	.size	TREADMILL_BIND_BLACKLIST, 25
TREADMILL_BIND_BLACKLIST:
	.ascii	"TREADMILL_BIND_BLACKLIST\000"
	.align	2
	.type	TREADMILL_BIND_BLACKLIST_FILE, %object
	.size	TREADMILL_BIND_BLACKLIST_FILE, 30
TREADMILL_BIND_BLACKLIST_FILE:
	.ascii	"/env/TREADMILL_BIND_BLACKLIST\000"
	.align	2
	.type	TREADMILL_EPH_TCP_PORTS_FILE, %object
	.size	TREADMILL_EPH_TCP_PORTS_FILE, 35
TREADMILL_EPH_TCP_PORTS_FILE:
	.ascii	"/env/TREADMILL_EPHEMERAL_TCP_PORTS\000"
	.align	2
	.type	TREADMILL_EPH_UDP_PORTS_FILE, %object
	.size	TREADMILL_EPH_UDP_PORTS_FILE, 35
TREADMILL_EPH_UDP_PORTS_FILE:
	.ascii	"/env/TREADMILL_EPHEMERAL_UDP_PORTS\000"
	.align	2
	.type	TREADMILL_CONTAINER_IPV4_FILE, %object
	.size	TREADMILL_CONTAINER_IPV4_FILE, 28
TREADMILL_CONTAINER_IPV4_FILE:
	.ascii	"/env/TREADMILL_CONTAINER_IP\000"
	.align	2
	.type	TREADMILL_CONTAINER_IPV6_FILE, %object
	.size	TREADMILL_CONTAINER_IPV6_FILE, 30
TREADMILL_CONTAINER_IPV6_FILE:
	.ascii	"/env/TREADMILL_CONTAINER_IPV6\000"
	.align	2
	.type	TREADMILL_HOST_IPV4_FILE, %object
	.size	TREADMILL_HOST_IPV4_FILE, 23
TREADMILL_HOST_IPV4_FILE:
	.ascii	"/env/TREADMILL_HOST_IP\000"
	.align	2
	.type	TREADMILL_HOST_IPV6_FILE, %object
	.size	TREADMILL_HOST_IPV6_FILE, 25
TREADMILL_HOST_IPV6_FILE:
	.ascii	"/env/TREADMILL_HOST_IPV6\000"
	.align	2
	.type	TREADMILL_APP_FILE, %object
	.size	TREADMILL_APP_FILE, 19
TREADMILL_APP_FILE:
	.ascii	"/env/TREADMILL_APP\000"
	.align	2
	.type	TREADMILL_INSTANCE_FILE, %object
	.size	TREADMILL_INSTANCE_FILE, 26
TREADMILL_INSTANCE_FILE:
	.ascii	"/env/TREADMILL_INSTANCEID\000"
	.align	2
	.type	_SYSLOG_NOTICE, %object
	.size	_SYSLOG_NOTICE, 4
_SYSLOG_NOTICE:
	.word	141
	.align	2
	.type	_SYSLOG_INFO, %object
	.size	_SYSLOG_INFO, 4
_SYSLOG_INFO:
	.word	142
	.align	2
	.type	_SYSLOG_WARNING, %object
	.size	_SYSLOG_WARNING, 4
_SYSLOG_WARNING:
	.word	140
	.align	2
	.type	_SYSLOG_ERR, %object
	.size	_SYSLOG_ERR, 4
_SYSLOG_ERR:
	.word	139
	.comm	_tcp_ports,4,4
	.comm	_udp_ports,4,4
	.global	_tcp_port_iter
	.bss
	.align	2
	.type	_tcp_port_iter, %object
	.size	_tcp_port_iter, 4
_tcp_port_iter:
	.space	4
	.global	_udp_port_iter
	.align	2
	.type	_udp_port_iter, %object
	.size	_udp_port_iter, 4
_udp_port_iter:
	.space	4
	.local	_container_in_addr
	.comm	_container_in_addr,4,4
	.local	_container_in6_addr
	.comm	_container_in6_addr,16,4
	.local	_host_in_addr
	.comm	_host_in_addr,4,4
	.local	_host_in6_addr
	.comm	_host_in6_addr,16,4
	.local	_proc_name
	.comm	_proc_name,4,4
	.local	_real_bind
	.comm	_real_bind,4,4
	.data
	.align	2
	.type	_intercept, %object
	.size	_intercept, 4
_intercept:
	.word	1
	.local	_syslog_sock
	.comm	_syslog_sock,4,4
	.local	_syslog_sock_name
	.comm	_syslog_sock_name,110,4
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	_treadmill_app, %function
_treadmill_app:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r3, .L4
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L2
	ldr	r3, .L4
	b	.L3
.L2:
	mov	r2, #128
	ldr	r1, .L4
	ldr	r0, .L4+4
	bl	_read_file_to_buf_zeroed
	ldr	r3, .L4
.L3:
	mov	r0, r3
	pop	{fp, pc}
.L5:
	.align	2
.L4:
	.word	_buf.7542
	.word	TREADMILL_APP_FILE
	.size	_treadmill_app, .-_treadmill_app
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	_treadmill_instance_id, %function
_treadmill_instance_id:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r3, .L9
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L7
	ldr	r3, .L9
	b	.L8
.L7:
	mov	r2, #16
	ldr	r1, .L9
	ldr	r0, .L9+4
	bl	_read_file_to_buf_zeroed
	ldr	r3, .L9
.L8:
	mov	r0, r3
	pop	{fp, pc}
.L10:
	.align	2
.L9:
	.word	_buf.7545
	.word	TREADMILL_INSTANCE_FILE
	.size	_treadmill_instance_id, .-_treadmill_instance_id
	.section	.rodata
	.align	2
.LC0:
	.ascii	"/dev/log\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	_init_syslog, %function
_init_syslog:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r3, .L12
	mov	r2, #1
	strh	r2, [r3]	@ movhi
	ldr	r2, .L12+4
	ldr	r3, .L12+8
	mov	r0, r2
	mov	r1, r3
	mov	r3, #9
	mov	r2, r3
	bl	memcpy
	mov	r2, #0
	mov	r1, #2
	mov	r0, #1
	bl	socket
	mov	r3, r0
	ldr	r2, .L12+12
	str	r3, [r2]
	nop
	pop	{fp, pc}
.L13:
	.align	2
.L12:
	.word	_syslog_sock_name
	.word	_syslog_sock_name+2
	.word	.LC0
	.word	_syslog_sock
	.size	_init_syslog, .-_init_syslog
	.section	.rodata
	.align	2
.LC1:
	.ascii	"%FT%TZ\000"
	.align	2
.LC2:
	.ascii	"<%d>%s - treadmill-bind %s#%s %s[%d]: \000"
	.align	2
.LC3:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	syslog, %function
syslog:
	@ args = 4, pretend = 12, frame = 712
	@ frame_needed = 1, uses_anonymous_args = 1
	push	{r1, r2, r3}
	push	{r4, r5, r6, fp, lr}
	add	fp, sp, #16
	sub	sp, sp, #736
	str	r0, [fp, #-724]
	ldr	r3, [fp, #4]
	str	r3, [fp, #-728]
	ldr	r3, .L19
	ldr	r3, [r3]
	str	r3, [fp, #-20]
	mov	r3,#0
	ldr	r3, .L19+4
	ldr	r3, [r3]
	cmn	r3, #1
	beq	.L18
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	str	r3, [fp, #-708]
	add	r3, fp, #8
	str	r3, [fp, #-712]
	mov	r0, #0
	bl	time
	mov	r3, r0
	str	r3, [fp, #-716]
	sub	r2, fp, #704
	sub	r3, fp, #716
	mov	r1, r2
	mov	r0, r3
	bl	localtime_r
	sub	r3, fp, #704
	sub	r0, fp, #660
	ldr	r2, .L19+8
	mov	r1, #128
	bl	strftime
	bl	_treadmill_app
	mov	r5, r0
	bl	_treadmill_instance_id
	mov	r6, r0
	ldr	r3, .L19+12
	ldr	r4, [r3]
	bl	getpid
	mov	r3, r0
	sub	r0, fp, #532
	str	r3, [sp, #16]
	str	r4, [sp, #12]
	str	r6, [sp, #8]
	str	r5, [sp, #4]
	sub	r3, fp, #660
	str	r3, [sp]
	ldr	r3, [fp, #-724]
	ldr	r2, .L19+16
	mov	r1, #512
	bl	snprintf
	sub	r3, fp, #532
	mov	r0, r3
	bl	strlen
	mov	r2, r0
	sub	r3, fp, #532
	add	r4, r3, r2
	sub	r3, fp, #532
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	rsb	r1, r3, #512
	ldr	r3, [fp, #-712]
	ldr	r2, [fp, #-728]
	mov	r0, r4
	bl	vsnprintf
	ldr	r3, .L19+4
	ldr	r4, [r3]
	sub	r3, fp, #532
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	add	r2, r3, #1
	ldr	r3, .L19+20
	sub	r1, fp, #532
	mov	r0, #110
	str	r0, [sp, #4]
	str	r3, [sp]
	mov	r3, #0
	mov	r0, r4
	bl	sendto
	bl	__errno_location
	mov	r2, r0
	ldr	r3, [fp, #-708]
	str	r3, [r2]
	b	.L14
.L18:
	nop
.L14:
	ldr	r3, .L19
	ldr	r2, [r3]
	ldr	r3, [fp, #-20]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L17
	bl	__stack_chk_fail
.L17:
	sub	sp, fp, #16
	@ sp needed
	pop	{r4, r5, r6, fp, lr}
	add	sp, sp, #12
	bx	lr
.L20:
	.align	2
.L19:
	.word	.LC3
	.word	_syslog_sock
	.word	.LC1
	.word	_proc_name
	.word	.LC2
	.word	_syslog_sock_name
	.size	syslog, .-syslog
	.section	.rodata
	.align	2
.LC4:
	.ascii	"unknown error\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	_get_dlerror, %function
_get_dlerror:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	bl	dlerror
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L22
	ldr	r3, .L24
	str	r3, [fp, #-8]
.L22:
	ldr	r3, [fp, #-8]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L25:
	.align	2
.L24:
	.word	.LC4
	.size	_get_dlerror, .-_get_dlerror
	.section	.rodata
	.align	2
.LC5:
	.ascii	"Error locating 'bind': %s\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	_print_error, %function
_print_error:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	ldr	r3, .L27
	ldr	r4, [r3]
	bl	_get_dlerror
	mov	r3, r0
	mov	r2, r3
	ldr	r1, .L27+4
	mov	r0, r4
	bl	fprintf
	nop
	pop	{r4, r5, fp, pc}
.L28:
	.align	2
.L27:
	.word	stderr
	.word	.LC5
	.size	_print_error, .-_print_error
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	_print_error_and__exit, %function
_print_error_and__exit:
	@ 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]
	bl	_print_error
	ldr	r0, [fp, #-8]
	bl	_exit
	.size	_print_error_and__exit, .-_print_error_and__exit
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	_set_sockaddr_port, %function
_set_sockaddr_port:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	str	r0, [fp, #-8]
	mov	r3, r1
	strh	r3, [fp, #-10]	@ movhi
	ldr	r3, [fp, #-8]
	ldrh	r3, [r3]
	cmp	r3, #2
	beq	.L31
	cmp	r3, #10
	beq	.L32
	b	.L34
.L31:
	ldr	r3, [fp, #-8]
	ldrh	r2, [fp, #-10]	@ movhi
	strh	r2, [r3, #2]	@ movhi
	b	.L33
.L32:
	ldr	r3, [fp, #-8]
	ldrh	r2, [fp, #-10]	@ movhi
	strh	r2, [r3, #2]	@ movhi
	nop
.L33:
.L34:
	nop
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	_set_sockaddr_port, .-_set_sockaddr_port
	.section	.rodata
	.align	2
.LC6:
	.ascii	"setsockopt SO_REUSEADDR: fd = %d, errno: %d\000"
	.align	2
.LC7:
	.ascii	"free port found: %d\000"
	.align	2
.LC8:
	.ascii	"real bind failed: port = %d, errno = %d\000"
	.align	2
.LC9:
	.ascii	"all ports in use, EADDFNOTAVAIL\000"
	.align	2
.LC10:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	_bind_to_available_port, %function
_bind_to_available_port:
	@ args = 0, pretend = 0, frame = 160
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #168
	str	r0, [fp, #-160]
	str	r1, [fp, #-164]
	str	r2, [fp, #-168]
	str	r3, [fp, #-172]
	ldr	r3, .L44
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-152]
	mov	r3, #0
	str	r3, [fp, #-156]
	sub	r3, fp, #144
	ldr	r2, [fp, #-172]
	ldr	r1, [fp, #-168]
	mov	r0, r3
	bl	memcpy
	sub	r3, fp, #156
	mov	r2, #4
	str	r2, [sp]
	mov	r2, #2
	mov	r1, #1
	ldr	r0, [fp, #-164]
	bl	setsockopt
	str	r0, [fp, #-148]
	ldr	r3, [fp, #-148]
	cmp	r3, #0
	beq	.L36
	mov	r4, #140
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	ldr	r2, [fp, #-164]
	ldr	r1, .L44+4
	mov	r0, r4
	bl	syslog
	ldr	r3, [fp, #-148]
	b	.L42
.L36:
	ldr	r3, [fp, #-160]
	ldr	r3, [r3]
	str	r3, [fp, #-152]
	b	.L38
.L41:
	ldr	r3, [fp, #-152]
	ldrh	r3, [r3]
	mov	r0, r3
	bl	htons
	mov	r3, r0
	mov	r2, r3
	sub	r3, fp, #144
	mov	r1, r2
	mov	r0, r3
	bl	_set_sockaddr_port
	ldr	r3, .L44+8
	ldr	r3, [r3]
	sub	r1, fp, #144
	ldr	r2, [fp, #-172]
	ldr	r0, [fp, #-164]
	blx	r3
	str	r0, [fp, #-148]
	ldr	r3, [fp, #-148]
	cmp	r3, #0
	bne	.L39
	mov	r0, #142
	ldr	r3, [fp, #-152]
	ldrh	r3, [r3]
	mov	r2, r3
	ldr	r1, .L44+12
	bl	syslog
	bl	__errno_location
	mov	r3, r0
	mov	r2, #0
	str	r2, [r3]
	mov	r3, #0
	b	.L42
.L39:
	ldr	r3, [fp, #-148]
	cmn	r3, #1
	bne	.L40
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #98
	beq	.L40
	mov	r4, #142
	ldr	r3, [fp, #-152]
	ldrh	r3, [r3]
	mov	r5, r3
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	mov	r2, r5
	ldr	r1, .L44+16
	mov	r0, r4
	bl	syslog
	ldr	r3, [fp, #-148]
	b	.L42
.L40:
	ldr	r3, [fp, #-152]
	ldr	r3, [r3, #4]
	str	r3, [fp, #-152]
.L38:
	ldr	r3, [fp, #-152]
	cmp	r3, #0
	bne	.L41
	mov	r3, #140
	ldr	r1, .L44+20
	mov	r0, r3
	bl	syslog
	bl	__errno_location
	mov	r3, r0
	mov	r2, #99
	str	r2, [r3]
	mvn	r3, #0
.L42:
	ldr	r2, .L44
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L43
	bl	__stack_chk_fail
.L43:
	mov	r0, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L45:
	.align	2
.L44:
	.word	.LC10
	.word	.LC6
	.word	_real_bind
	.word	.LC7
	.word	.LC8
	.word	.LC9
	.size	_bind_to_available_port, .-_bind_to_available_port
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	_valid_sockaddr, %function
_valid_sockaddr:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	str	r0, [fp, #-8]
	str	r1, [fp, #-12]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L47
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	beq	.L47
	mov	r3, #1
	b	.L49
.L47:
	mov	r3, #0
.L49:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	_valid_sockaddr, .-_valid_sockaddr
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	_is_targetted_addr_or_any, %function
_is_targetted_addr_or_any:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #20
	str	r0, [fp, #-16]
	ldr	r3, [fp, #-16]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	ldr	r3, [r3, #4]
	cmp	r3, #0
	beq	.L51
	ldr	r3, [fp, #-8]
	ldr	r2, [r3, #4]
	ldr	r3, .L55
	ldr	r3, [r3]
	cmp	r2, r3
	beq	.L51
	ldr	r3, [fp, #-8]
	ldr	r2, [r3, #4]
	ldr	r3, .L55+4
	ldr	r3, [r3]
	cmp	r2, r3
	bne	.L52
.L51:
	mov	r3, #1
	b	.L54
.L52:
	mov	r3, #0
.L54:
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
.L56:
	.align	2
.L55:
	.word	_container_in_addr
	.word	_host_in_addr
	.size	_is_targetted_addr_or_any, .-_is_targetted_addr_or_any
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	_is_targetted_addr6_or_any, %function
_is_targetted_addr6_or_any:
	@ 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]
	ldr	r3, [fp, #-16]
	str	r3, [fp, #-8]
	ldr	r3, [fp, #-8]
	add	r3, r3, #8
	mov	r2, #16
	ldr	r1, .L62
	mov	r0, r3
	bl	memcmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L58
	ldr	r3, [fp, #-8]
	add	r3, r3, #8
	mov	r2, #16
	ldr	r1, .L62+4
	mov	r0, r3
	bl	memcmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L58
	ldr	r3, [fp, #-8]
	add	r3, r3, #8
	mov	r2, #16
	ldr	r1, .L62+8
	mov	r0, r3
	bl	memcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L59
.L58:
	mov	r3, #1
	b	.L61
.L59:
	mov	r3, #0
.L61:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L63:
	.align	2
.L62:
	.word	in6addr_any
	.word	_container_in6_addr
	.word	_host_in6_addr
	.size	_is_targetted_addr6_or_any, .-_is_targetted_addr6_or_any
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	_sockaddr_in_port_equals, %function
_sockaddr_in_port_equals:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	str	r0, [fp, #-8]
	mov	r3, r1
	strh	r3, [fp, #-10]	@ movhi
	ldr	r3, [fp, #-8]
	ldrh	r3, [r3, #2]
	ldrh	r2, [fp, #-10]
	cmp	r2, r3
	moveq	r3, #1
	movne	r3, #0
	and	r3, r3, #255
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	_sockaddr_in_port_equals, .-_sockaddr_in_port_equals
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	_sockaddr_in6_port_equals, %function
_sockaddr_in6_port_equals:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	@ link register save eliminated.
	str	fp, [sp, #-4]!
	add	fp, sp, #0
	sub	sp, sp, #12
	str	r0, [fp, #-8]
	mov	r3, r1
	strh	r3, [fp, #-10]	@ movhi
	ldr	r3, [fp, #-8]
	ldrh	r3, [r3, #2]
	ldrh	r2, [fp, #-10]
	cmp	r2, r3
	moveq	r3, #1
	movne	r3, #0
	and	r3, r3, #255
	mov	r0, r3
	add	sp, fp, #0
	@ sp needed
	ldr	fp, [sp], #4
	bx	lr
	.size	_sockaddr_in6_port_equals, .-_sockaddr_in6_port_equals
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	_sockaddr_in_port_equals_zero, %function
_sockaddr_in_port_equals_zero:
	@ 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]
	mov	r1, #0
	ldr	r0, [fp, #-8]
	bl	_sockaddr_in_port_equals
	mov	r3, r0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	_sockaddr_in_port_equals_zero, .-_sockaddr_in_port_equals_zero
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	_sockaddr_in6_port_equals_zero, %function
_sockaddr_in6_port_equals_zero:
	@ 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]
	mov	r1, #0
	ldr	r0, [fp, #-8]
	bl	_sockaddr_in6_port_equals
	mov	r3, r0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	_sockaddr_in6_port_equals_zero, .-_sockaddr_in6_port_equals_zero
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	_is_in_targetted_socket, %function
_is_in_targetted_socket:
	@ 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]
	str	r1, [fp, #-12]
	ldr	r3, [fp, #-8]
	ldrh	r3, [r3]
	cmp	r3, #2
	bne	.L73
	ldr	r0, [fp, #-8]
	bl	_is_targetted_addr_or_any
	mov	r3, r0
	cmp	r3, #0
	beq	.L73
	ldr	r0, [fp, #-8]
	bl	_sockaddr_in_port_equals_zero
	mov	r3, r0
	b	.L74
.L73:
	mov	r3, #0
.L74:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	_is_in_targetted_socket, .-_is_in_targetted_socket
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	_is_in6_targetted_socket, %function
_is_in6_targetted_socket:
	@ 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]
	str	r1, [fp, #-12]
	ldr	r3, [fp, #-8]
	ldrh	r3, [r3]
	cmp	r3, #10
	bne	.L76
	ldr	r0, [fp, #-8]
	bl	_is_targetted_addr6_or_any
	mov	r3, r0
	cmp	r3, #0
	beq	.L76
	ldr	r0, [fp, #-8]
	bl	_sockaddr_in6_port_equals_zero
	mov	r3, r0
	b	.L77
.L76:
	mov	r3, #0
.L77:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	_is_in6_targetted_socket, .-_is_in6_targetted_socket
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	_is_targetted_socket, %function
_is_targetted_socket:
	@ 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]
	str	r1, [fp, #-12]
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-8]
	bl	_valid_sockaddr
	mov	r3, r0
	cmp	r3, #0
	bne	.L79
	mov	r3, #0
	b	.L80
.L79:
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-8]
	bl	_is_in_targetted_socket
	mov	r3, r0
	cmp	r3, #0
	bne	.L81
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-8]
	bl	_is_in6_targetted_socket
	mov	r3, r0
	cmp	r3, #0
	beq	.L82
.L81:
	mov	r3, #1
	b	.L80
.L82:
	mov	r3, #0
.L80:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	_is_targetted_socket, .-_is_targetted_socket
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	_read_file_to_buf, %function
_read_file_to_buf:
	@ 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]
	mov	r1, #0
	ldr	r0, [fp, #-16]
	bl	open
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmn	r3, #1
	bne	.L85
	mvn	r3, #0
	b	.L86
.L85:
	ldr	r2, [fp, #-24]
	ldr	r1, [fp, #-20]
	ldr	r0, [fp, #-12]
	bl	read
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmn	r3, #1
	bne	.L87
	mvn	r3, #0
	b	.L86
.L87:
	ldr	r0, [fp, #-12]
	bl	close
	ldr	r3, [fp, #-8]
.L86:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	_read_file_to_buf, .-_read_file_to_buf
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	_read_file_to_buf_zeroed, %function
_read_file_to_buf_zeroed:
	@ 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]
	sub	r3, r3, #1
	mov	r2, r3
	ldr	r1, [fp, #-20]
	ldr	r0, [fp, #-16]
	bl	_read_file_to_buf
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	blt	.L89
	ldr	r3, [fp, #-8]
	ldr	r2, [fp, #-20]
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3]
.L89:
	ldr	r3, [fp, #-8]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	_read_file_to_buf_zeroed, .-_read_file_to_buf_zeroed
	.section	.rodata
	.align	2
.LC11:
	.ascii	"processing port file: %s\000"
	.align	2
.LC12:
	.ascii	"r\000"
	.align	2
.LC13:
	.ascii	"unable to open file: %s, errno = %d\000"
	.align	2
.LC14:
	.ascii	"adding port: %d\000"
	.align	2
.LC15:
	.ascii	"%hu\000"
	.align	2
.LC16:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	_populate_ports_via_file, %function
_populate_ports_via_file:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, fp, lr}
	add	fp, sp, #8
	sub	sp, sp, #28
	str	r0, [fp, #-32]
	str	r1, [fp, #-36]
	ldr	r3, .L99
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-24]
	mov	r3, #142
	ldr	r2, [fp, #-32]
	ldr	r1, .L99+4
	mov	r0, r3
	bl	syslog
	ldr	r1, .L99+8
	ldr	r0, [fp, #-32]
	bl	fopen
	str	r0, [fp, #-24]
	ldr	r3, [fp, #-24]
	cmp	r3, #0
	bne	.L94
	mov	r4, #140
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	ldr	r2, [fp, #-32]
	ldr	r1, .L99+12
	mov	r0, r4
	bl	syslog
	mvn	r3, #0
	b	.L97
.L96:
	mov	r0, #12
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-20]
	ldrh	r2, [fp, #-26]
	ldr	r3, [fp, #-20]
	strh	r2, [r3]	@ movhi
	mov	r3, #142
	ldrh	r2, [fp, #-26]
	ldr	r1, .L99+16
	mov	r0, r3
	bl	syslog
	ldr	r3, [fp, #-36]
	ldr	r2, [r3]
	ldr	r3, [fp, #-20]
	str	r2, [r3, #4]
	ldr	r3, [fp, #-20]
	ldr	r3, [r3, #4]
	cmp	r3, #0
	beq	.L95
	ldr	r3, [fp, #-36]
	ldr	r3, [r3]
	ldr	r2, [fp, #-20]
	add	r2, r2, #4
	str	r2, [r3, #8]
.L95:
	ldr	r3, [fp, #-36]
	ldr	r2, [fp, #-20]
	str	r2, [r3]
	ldr	r2, [fp, #-36]
	ldr	r3, [fp, #-20]
	str	r2, [r3, #8]
.L94:
	sub	r3, fp, #26
	mov	r2, r3
	ldr	r1, .L99+20
	ldr	r0, [fp, #-24]
	bl	__isoc99_fscanf
	mov	r3, r0
	cmp	r3, #1
	beq	.L96
	ldr	r0, [fp, #-24]
	bl	fclose
	mov	r3, #0
.L97:
	ldr	r2, .L99
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L98
	bl	__stack_chk_fail
.L98:
	mov	r0, r3
	sub	sp, fp, #8
	@ sp needed
	pop	{r4, fp, pc}
.L100:
	.align	2
.L99:
	.word	.LC16
	.word	.LC11
	.word	.LC12
	.word	.LC13
	.word	.LC14
	.word	.LC15
	.size	_populate_ports_via_file, .-_populate_ports_via_file
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	_populate_ports, %function
_populate_ports:
	@ 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	r0, [fp, #-20]
	bl	getenv
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L102
	ldr	r3, [fp, #-24]
	str	r3, [fp, #-8]
.L102:
	ldr	r1, [fp, #-16]
	ldr	r0, [fp, #-8]
	bl	_populate_ports_via_file
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	_populate_ports, .-_populate_ports
	.section	.rodata
	.align	2
.LC17:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	_populate_in_addr, %function
_populate_in_addr:
	@ args = 0, pretend = 0, frame = 272
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #272
	str	r0, [fp, #-272]
	str	r1, [fp, #-276]
	ldr	r3, .L108
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-272]
	mov	r2, #0
	str	r2, [r3]
	sub	r3, fp, #264
	mov	r2, #256
	mov	r1, r3
	ldr	r0, [fp, #-276]
	bl	_read_file_to_buf_zeroed
	str	r0, [fp, #-268]
	ldr	r3, [fp, #-268]
	cmn	r3, #1
	beq	.L107
	sub	r3, fp, #264
	ldr	r2, [fp, #-272]
	mov	r1, r3
	mov	r0, #2
	bl	inet_pton
	b	.L103
.L107:
	nop
.L103:
	ldr	r3, .L108
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L106
	bl	__stack_chk_fail
.L106:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L109:
	.align	2
.L108:
	.word	.LC17
	.size	_populate_in_addr, .-_populate_in_addr
	.section	.rodata
	.align	2
.LC18:
	.ascii	"::FFFF:%s\000"
	.align	2
.LC19:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	_populate_in6_addr, %function
_populate_in6_addr:
	@ args = 0, pretend = 0, frame = 536
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #536
	str	r0, [fp, #-528]
	str	r1, [fp, #-532]
	str	r2, [fp, #-536]
	ldr	r3, .L115
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, [fp, #-528]
	ldr	r2, .L115+4
	mov	ip, r3
	mov	r3, r2
	ldm	r3, {r0, r1, r2, r3}
	stm	ip, {r0, r1, r2, r3}
	sub	r3, fp, #520
	mov	r2, #256
	mov	r1, r3
	ldr	r0, [fp, #-532]
	bl	_read_file_to_buf_zeroed
	str	r0, [fp, #-524]
	ldr	r3, [fp, #-524]
	cmn	r3, #1
	bne	.L111
	sub	r3, fp, #264
	mov	r2, #256
	mov	r1, r3
	ldr	r0, [fp, #-536]
	bl	_read_file_to_buf_zeroed
	str	r0, [fp, #-524]
	ldr	r3, [fp, #-524]
	cmn	r3, #1
	beq	.L110
	sub	r3, fp, #264
	sub	r0, fp, #520
	ldr	r2, .L115+8
	mov	r1, #255
	bl	snprintf
.L111:
	sub	r3, fp, #520
	ldr	r2, [fp, #-528]
	mov	r1, r3
	mov	r0, #10
	bl	inet_pton
.L110:
	ldr	r3, .L115
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L114
	bl	__stack_chk_fail
.L114:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L116:
	.align	2
.L115:
	.word	.LC19
	.word	in6addr_any
	.word	.LC18
	.size	_populate_in6_addr, .-_populate_in6_addr
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	_populate_container_in_addr, %function
_populate_container_in_addr:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	ldr	r0, .L119
	bl	getenv
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L118
	ldr	r3, .L119+4
	str	r3, [fp, #-8]
.L118:
	ldr	r1, [fp, #-8]
	ldr	r0, .L119+8
	bl	_populate_in_addr
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L120:
	.align	2
.L119:
	.word	TREADMILL_CONTAINER_IPV4_FILE_ENV
	.word	TREADMILL_CONTAINER_IPV4_FILE
	.word	_container_in_addr
	.size	_populate_container_in_addr, .-_populate_container_in_addr
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	_populate_container_in6_addr, %function
_populate_container_in6_addr:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	ldr	r0, .L124
	bl	getenv
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bne	.L122
	ldr	r3, .L124+4
	str	r3, [fp, #-12]
.L122:
	ldr	r0, .L124+8
	bl	getenv
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L123
	ldr	r3, .L124+12
	str	r3, [fp, #-8]
.L123:
	ldr	r2, [fp, #-8]
	ldr	r1, [fp, #-12]
	ldr	r0, .L124+16
	bl	_populate_in6_addr
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L125:
	.align	2
.L124:
	.word	TREADMILL_CONTAINER_IPV6_FILE_ENV
	.word	TREADMILL_CONTAINER_IPV6_FILE
	.word	TREADMILL_CONTAINER_IPV4_FILE_ENV
	.word	TREADMILL_CONTAINER_IPV4_FILE
	.word	_container_in6_addr
	.size	_populate_container_in6_addr, .-_populate_container_in6_addr
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	_populate_host_in_addr, %function
_populate_host_in_addr:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	ldr	r0, .L128
	bl	getenv
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L127
	ldr	r3, .L128+4
	str	r3, [fp, #-8]
.L127:
	ldr	r1, [fp, #-8]
	ldr	r0, .L128+8
	bl	_populate_in_addr
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L129:
	.align	2
.L128:
	.word	TREADMILL_HOST_IPV4_FILE_ENV
	.word	TREADMILL_HOST_IPV4_FILE
	.word	_host_in_addr
	.size	_populate_host_in_addr, .-_populate_host_in_addr
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	_populate_host_in6_addr, %function
_populate_host_in6_addr:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #8
	ldr	r0, .L133
	bl	getenv
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bne	.L131
	ldr	r3, .L133+4
	str	r3, [fp, #-12]
.L131:
	ldr	r0, .L133+8
	bl	getenv
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	bne	.L132
	ldr	r3, .L133+12
	str	r3, [fp, #-8]
.L132:
	ldr	r2, [fp, #-8]
	ldr	r1, [fp, #-12]
	ldr	r0, .L133+16
	bl	_populate_in6_addr
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L134:
	.align	2
.L133:
	.word	TREADMILL_HOST_IPV6_FILE_ENV
	.word	TREADMILL_HOST_IPV6_FILE
	.word	TREADMILL_HOST_IPV4_FILE_ENV
	.word	TREADMILL_HOST_IPV4_FILE
	.word	_host_in6_addr
	.size	_populate_host_in6_addr, .-_populate_host_in6_addr
	.section	.rodata
	.align	2
.LC20:
	.ascii	"/proc/%d/cmdline\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	_get_process_name_by_pid, %function
_get_process_name_by_pid:
	@ 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]
	mov	r3, #0
	str	r3, [fp, #-12]
	ldr	r3, .L140
	ldrb	r3, [r3]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L136
	ldr	r3, .L140
	b	.L137
.L136:
	ldr	r2, [fp, #-16]
	ldr	r1, .L140+4
	ldr	r0, .L140
	bl	sprintf
	ldr	r1, .L140+8
	ldr	r0, .L140
	bl	fopen
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	beq	.L138
	ldr	r3, [fp, #-12]
	mov	r2, #255
	mov	r1, #1
	ldr	r0, .L140
	bl	fread
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmp	r3, #0
	beq	.L139
	ldr	r3, [fp, #-8]
	sub	r3, r3, #1
	ldr	r2, .L140
	ldrb	r3, [r2, r3]	@ zero_extendqisi2
	cmp	r3, #10
	bne	.L139
	ldr	r3, [fp, #-8]
	sub	r3, r3, #1
	ldr	r2, .L140
	mov	r1, #0
	strb	r1, [r2, r3]
.L139:
	ldr	r0, [fp, #-12]
	bl	fclose
.L138:
	ldr	r3, .L140
.L137:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L141:
	.align	2
.L140:
	.word	name.7690
	.word	.LC20
	.word	.LC12
	.size	_get_process_name_by_pid, .-_get_process_name_by_pid
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	_is_in_list, %function
_is_in_list:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	str	r2, [fp, #-32]
	mov	r3, #0
	str	r3, [fp, #-16]
	mov	r3, #0
	str	r3, [fp, #-12]
	ldr	r0, [fp, #-24]
	bl	strdup
	mov	r3, r0
	str	r3, [fp, #-8]
	ldr	r1, [fp, #-28]
	ldr	r0, [fp, #-8]
	bl	strtok
	str	r0, [fp, #-12]
	b	.L143
.L146:
	ldr	r1, [fp, #-32]
	ldr	r0, [fp, #-12]
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L144
	mov	r3, #1
	str	r3, [fp, #-16]
	b	.L145
.L144:
	ldr	r1, [fp, #-28]
	mov	r0, #0
	bl	strtok
	str	r0, [fp, #-12]
.L143:
	ldr	r3, [fp, #-12]
	cmp	r3, #0
	bne	.L146
.L145:
	ldr	r0, [fp, #-8]
	bl	free
	ldr	r3, [fp, #-16]
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
	.size	_is_in_list, .-_is_in_list
	.section	.rodata
	.align	2
.LC21:
	.ascii	":\000"
	.align	2
.LC22:
	.ascii	"not intercepting: %s, whitelist: %s\000"
	.align	2
.LC23:
	.ascii	"not intercepting: %s, blacklist: %s\000"
	.align	2
.LC24:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	_check_if_intercept, %function
_check_if_intercept:
	@ args = 0, pretend = 0, frame = 528
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #528
	ldr	r3, .L159
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r0, .L159+4
	bl	getenv
	str	r0, [fp, #-528]
	ldr	r0, .L159+8
	bl	getenv
	str	r0, [fp, #-524]
	mov	r3, #0
	str	r3, [fp, #-520]
	sub	r3, fp, #516
	mov	r2, #252
	mov	r1, #0
	mov	r0, r3
	bl	memset
	mov	r3, #0
	str	r3, [fp, #-264]
	sub	r3, fp, #260
	mov	r2, #252
	mov	r1, #0
	mov	r0, r3
	bl	memset
	ldr	r3, [fp, #-528]
	cmp	r3, #0
	beq	.L149
	sub	r3, fp, #520
	mov	r2, #256
	ldr	r1, [fp, #-528]
	mov	r0, r3
	bl	strncpy
	b	.L150
.L149:
	sub	r3, fp, #520
	mov	r2, #256
	mov	r1, r3
	ldr	r0, .L159+12
	bl	_read_file_to_buf_zeroed
.L150:
	ldr	r3, [fp, #-524]
	cmp	r3, #0
	beq	.L151
	sub	r3, fp, #264
	mov	r2, #256
	ldr	r1, [fp, #-524]
	mov	r0, r3
	bl	strncpy
	b	.L152
.L151:
	sub	r3, fp, #264
	mov	r2, #256
	mov	r1, r3
	ldr	r0, .L159+16
	bl	_read_file_to_buf_zeroed
.L152:
	ldrb	r3, [fp, #-520]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L153
	sub	r3, fp, #520
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	sub	r3, r3, #1
	sub	r2, fp, #4
	add	r3, r2, r3
	ldrb	r3, [r3, #-516]	@ zero_extendqisi2
	cmp	r3, #10
	bne	.L153
	sub	r3, fp, #520
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	sub	r3, r3, #1
	sub	r2, fp, #4
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3, #-516]
.L153:
	ldrb	r3, [fp, #-264]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L154
	sub	r3, fp, #264
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	sub	r3, r3, #1
	sub	r2, fp, #4
	add	r3, r2, r3
	ldrb	r3, [r3, #-260]	@ zero_extendqisi2
	cmp	r3, #10
	bne	.L154
	sub	r3, fp, #264
	mov	r0, r3
	bl	strlen
	mov	r3, r0
	sub	r3, r3, #1
	sub	r2, fp, #4
	add	r3, r2, r3
	mov	r2, #0
	strb	r2, [r3, #-260]
.L154:
	ldrb	r3, [fp, #-520]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L155
	ldr	r3, .L159+20
	ldr	r2, [r3]
	sub	r3, fp, #520
	ldr	r1, .L159+24
	mov	r0, r3
	bl	_is_in_list
	mov	r3, r0
	cmp	r3, #0
	bne	.L155
	mov	r0, #142
	ldr	r3, .L159+20
	ldr	r2, [r3]
	sub	r3, fp, #520
	ldr	r1, .L159+28
	bl	syslog
	ldr	r3, .L159+32
	mov	r2, #0
	str	r2, [r3]
.L155:
	ldrb	r3, [fp, #-264]	@ zero_extendqisi2
	cmp	r3, #0
	beq	.L158
	ldr	r3, .L159+20
	ldr	r2, [r3]
	sub	r3, fp, #264
	ldr	r1, .L159+24
	mov	r0, r3
	bl	_is_in_list
	mov	r3, r0
	cmp	r3, #0
	beq	.L158
	mov	r0, #142
	ldr	r3, .L159+20
	ldr	r2, [r3]
	sub	r3, fp, #264
	ldr	r1, .L159+36
	bl	syslog
	ldr	r3, .L159+32
	mov	r2, #0
	str	r2, [r3]
.L158:
	nop
	ldr	r3, .L159
	ldr	r2, [r3]
	ldr	r3, [fp, #-8]
	eors	r2, r3, r2
	mov	r3, #0
	beq	.L157
	bl	__stack_chk_fail
.L157:
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L160:
	.align	2
.L159:
	.word	.LC24
	.word	TREADMILL_BIND_WHITELIST
	.word	TREADMILL_BIND_BLACKLIST
	.word	TREADMILL_BIND_WHITELIST_FILE
	.word	TREADMILL_BIND_BLACKLIST_FILE
	.word	_proc_name
	.word	.LC21
	.word	.LC22
	.word	_intercept
	.word	.LC23
	.size	_check_if_intercept, .-_check_if_intercept
	.section	.rodata
	.align	2
.LC25:
	.ascii	"bind\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	_real_bind_init, %function
_real_bind_init:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	ldr	r1, .L165
	mvn	r0, #0
	bl	dlsym
	mov	r3, r0
	mov	r2, r3
	ldr	r3, .L165+4
	str	r2, [r3]
	ldr	r3, .L165+4
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L162
	mov	r0, #1
	bl	_print_error_and__exit
.L162:
	bl	_init_syslog
	ldr	r3, .L165+8
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L163
	bl	getpid
	mov	r3, r0
	mov	r0, r3
	bl	_get_process_name_by_pid
	mov	r3, r0
	mov	r0, r3
	bl	__xpg_basename
	mov	r3, r0
	ldr	r2, .L165+8
	str	r3, [r2]
.L163:
	ldr	r3, .L165+12
	mov	r2, #0
	str	r2, [r3]
	ldr	r3, .L165+16
	mov	r2, #0
	str	r2, [r3]
	bl	_check_if_intercept
	ldr	r3, .L165+20
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L164
	ldr	r2, .L165+24
	ldr	r1, .L165+28
	ldr	r0, .L165+12
	bl	_populate_ports
	ldr	r2, .L165+32
	ldr	r1, .L165+36
	ldr	r0, .L165+16
	bl	_populate_ports
	bl	_populate_container_in_addr
	bl	_populate_container_in6_addr
	bl	_populate_host_in_addr
	bl	_populate_host_in6_addr
.L164:
	bl	__errno_location
	mov	r3, r0
	mov	r2, #0
	str	r2, [r3]
	nop
	pop	{fp, pc}
.L166:
	.align	2
.L165:
	.word	.LC25
	.word	_real_bind
	.word	_proc_name
	.word	_tcp_ports
	.word	_udp_ports
	.word	_intercept
	.word	TREADMILL_EPH_TCP_PORTS_FILE
	.word	TREADMILL_EPH_TCP_PORTS_FILE_ENV
	.word	TREADMILL_EPH_UDP_PORTS_FILE
	.word	TREADMILL_EPH_UDP_PORTS_FILE_ENV
	.size	_real_bind_init, .-_real_bind_init
	.section	.rodata
	.align	2
.LC26:
	.ascii	"bind: fd = %d, type = %d\000"
	.align	2
.LC27:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	_new_bind, %function
_new_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]
	ldr	r3, .L175
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	ldr	r3, .L175+4
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L168
	ldr	r1, [fp, #-32]
	ldr	r0, [fp, #-28]
	bl	_is_targetted_socket
	mov	r3, r0
	cmp	r3, #0
	beq	.L168
	mov	r3, #4
	str	r3, [fp, #-16]
	sub	r2, fp, #20
	sub	r3, fp, #16
	str	r3, [sp]
	mov	r3, r2
	mov	r2, #3
	mov	r1, #1
	ldr	r0, [fp, #-24]
	bl	getsockopt
	str	r0, [fp, #-12]
	ldr	r3, [fp, #-12]
	cmn	r3, #1
	bne	.L169
	ldr	r3, .L175+8
	ldr	r3, [r3]
	ldr	r2, [fp, #-32]
	ldr	r1, [fp, #-28]
	ldr	r0, [fp, #-24]
	blx	r3
	mov	r3, r0
	b	.L173
.L169:
	mov	r0, #142
	ldr	r3, [fp, #-20]
	ldr	r2, [fp, #-24]
	ldr	r1, .L175+12
	bl	syslog
	ldr	r3, [fp, #-20]
	cmp	r3, #1
	bne	.L171
	ldr	r3, .L175+16
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L171
	ldr	r3, [fp, #-32]
	ldr	r2, [fp, #-28]
	ldr	r1, [fp, #-24]
	ldr	r0, .L175+16
	bl	_bind_to_available_port
	mov	r3, r0
	b	.L173
.L171:
	ldr	r3, [fp, #-20]
	cmp	r3, #2
	bne	.L172
	ldr	r3, .L175+20
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L172
	ldr	r3, [fp, #-32]
	ldr	r2, [fp, #-28]
	ldr	r1, [fp, #-24]
	ldr	r0, .L175+20
	bl	_bind_to_available_port
	mov	r3, r0
	b	.L173
.L172:
	ldr	r3, .L175+8
	ldr	r3, [r3]
	ldr	r2, [fp, #-32]
	ldr	r1, [fp, #-28]
	ldr	r0, [fp, #-24]
	blx	r3
	mov	r3, r0
	b	.L173
.L168:
	ldr	r3, .L175+8
	ldr	r3, [r3]
	ldr	r2, [fp, #-32]
	ldr	r1, [fp, #-28]
	ldr	r0, [fp, #-24]
	blx	r3
	mov	r3, r0
.L173:
	ldr	r2, .L175
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L174
	bl	__stack_chk_fail
.L174:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L176:
	.align	2
.L175:
	.word	.LC27
	.word	_intercept
	.word	_real_bind
	.word	.LC26
	.word	_tcp_ports
	.word	_udp_ports
	.size	_new_bind, .-_new_bind
	.align	2
	.global	bind
	.syntax unified
	.arm
	.fpu softvfp
	.type	bind, %function
bind:
	@ 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]
	ldr	r3, .L180
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L178
	bl	_real_bind_init
.L178:
	ldr	r2, [fp, #-16]
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-8]
	bl	_new_bind
	mov	r3, r0
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L181:
	.align	2
.L180:
	.word	_real_bind
	.size	bind, .-bind
	.local	_buf.7542
	.comm	_buf.7542,128,4
	.local	_buf.7545
	.comm	_buf.7545,16,4
	.local	name.7690
	.comm	name.7690,256,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
