	.file	"extr_945.c_start_reverse_handler.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"--[ starting reverse handler [port: %u]..."
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"socket failed!"
.LC2:
	.string	"listen failed!"
.LC3:
	.string	"done!"
.LC4:
	.string	"accept failed!"
	.section	.rodata.str1.8
	.align 8
.LC5:
	.string	"--[ incomming connection from:\t%s\n"
	.text
	.p2align 4
	.globl	start_reverse_handler
	.type	start_reverse_handler, @function
start_reverse_handler:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	esi, 12
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12d, edi
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	movzx	r12d, r12w
	sub	rsp, 48
	.cfi_def_cfa_offset 80
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 40[rsp], rax
	xor	eax, eax
	lea	r13, 28[rsp]
	mov	DWORD PTR 12[rsp], 12
	mov	rdi, r13
	call	bzero@PLT
	mov	eax, DWORD PTR AF_INET[rip]
	mov	edi, DWORD PTR INADDR_ANY[rip]
	mov	DWORD PTR 36[rsp], eax
	call	htonl@PLT
	mov	edi, r12d
	mov	DWORD PTR 28[rsp], eax
	call	htons@PLT
	mov	esi, r12d
	lea	rdi, .LC0[rip]
	mov	DWORD PTR 32[rsp], eax
	xor	eax, eax
	call	printf@PLT
	mov	esi, DWORD PTR SOCK_STREAM[rip]
	mov	edi, DWORD PTR AF_INET[rip]
	xor	edx, edx
	call	socket@PLT
	mov	ebp, eax
	cmp	eax, -1
	je	.L8
.L2:
	mov	rsi, r13
	mov	edi, ebp
	mov	edx, 12
	call	bind@PLT
	mov	esi, 1
	mov	edi, ebp
	call	listen@PLT
	cmp	eax, -1
	je	.L9
.L3:
	lea	rdi, .LC3[rip]
	call	puts@PLT
	lea	rdx, 12[rsp]
	lea	rsi, 16[rsp]
	mov	edi, ebp
	call	accept@PLT
	mov	r13d, eax
	test	eax, eax
	js	.L10
.L4:
	mov	edi, ebp
	call	close@PLT
	mov	edi, DWORD PTR 16[rsp]
	call	inet_ntoa@PLT
	lea	rdi, .LC5[rip]
	mov	rsi, rax
	xor	eax, eax
	call	printf@PLT
	mov	edi, DWORD PTR 16[rsp]
	call	inet_ntoa@PLT
	mov	edx, r12d
	mov	edi, r13d
	mov	rsi, rax
	call	shell@PLT
	mov	edi, r13d
	call	close@PLT
	mov	rax, QWORD PTR 40[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L11
	add	rsp, 48
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore_state
	lea	rdi, .LC4[rip]
	call	puts@PLT
	mov	edi, 1
	call	exit@PLT
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L9:
	lea	rdi, .LC2[rip]
	call	puts@PLT
	mov	edi, 1
	call	exit@PLT
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L8:
	lea	rdi, .LC1[rip]
	call	puts@PLT
	mov	edi, 1
	call	exit@PLT
	jmp	.L2
.L11:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	start_reverse_handler, .-start_reverse_handler
	.comm	SOCK_STREAM,4,4
	.comm	INADDR_ANY,4,4
	.comm	AF_INET,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.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, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_945.c_start_reverse_handler.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"--[ starting reverse handler [port: %u]...\000"
	.align	2
.LC1:
	.ascii	"socket failed!\000"
	.align	2
.LC2:
	.ascii	"listen failed!\000"
	.align	2
.LC3:
	.ascii	"done!\000"
	.align	2
.LC4:
	.ascii	"accept failed!\000"
	.align	2
.LC5:
	.ascii	"--[ incomming connection from:\011%s\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC6:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	start_reverse_handler
	.syntax unified
	.arm
	.fpu softvfp
	.type	start_reverse_handler, %function
start_reverse_handler:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 0, uses_anonymous_args = 0
	mov	r1, #12
	push	{r4, r5, r6, lr}
	ldr	r3, .L12
	sub	sp, sp, #32
	mov	r6, r0
	ldr	r4, .L12+4
	add	r0, sp, #16
	ldr	r3, [r3]
	str	r3, [sp, #28]
	mov	r3,#0
	str	r1, [sp]
	bl	bzero
	ldr	r2, .L12+8
	ldr	r3, [r4]
	ldr	r0, [r2]
	str	r3, [sp, #24]
	bl	htonl
	mov	r3, r0
	mov	r0, r6
	str	r3, [sp, #16]
	bl	htons
	mov	r3, r0
	mov	r1, r6
	ldr	r0, .L12+12
	str	r3, [sp, #20]
	bl	printf
	ldr	r3, .L12+16
	ldr	r0, [r4]
	mov	r2, #0
	ldr	r1, [r3]
	bl	socket
	cmn	r0, #1
	mov	r4, r0
	beq	.L8
.L2:
	mov	r2, #12
	add	r1, sp, #16
	mov	r0, r4
	bl	bind
	mov	r1, #1
	mov	r0, r4
	bl	listen
	cmn	r0, #1
	beq	.L9
.L3:
	ldr	r0, .L12+20
	bl	puts
	mov	r2, sp
	mov	r0, r4
	add	r1, sp, #4
	bl	accept
	subs	r5, r0, #0
	blt	.L10
.L4:
	mov	r0, r4
	bl	close
	ldr	r0, [sp, #4]
	bl	inet_ntoa
	mov	r1, r0
	ldr	r0, .L12+24
	bl	printf
	ldr	r0, [sp, #4]
	bl	inet_ntoa
	mov	r2, r6
	mov	r1, r0
	mov	r0, r5
	bl	shell
	mov	r0, r5
	bl	close
	ldr	r3, .L12
	ldr	r2, [r3]
	ldr	r3, [sp, #28]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L11
	add	sp, sp, #32
	@ sp needed
	pop	{r4, r5, r6, pc}
.L10:
	ldr	r0, .L12+28
	bl	puts
	mov	r0, #1
	bl	exit
	b	.L4
.L9:
	ldr	r0, .L12+32
	bl	puts
	mov	r0, #1
	bl	exit
	b	.L3
.L8:
	ldr	r0, .L12+36
	bl	puts
	mov	r0, #1
	bl	exit
	b	.L2
.L11:
	bl	__stack_chk_fail
.L13:
	.align	2
.L12:
	.word	.LC6
	.word	AF_INET
	.word	INADDR_ANY
	.word	.LC0
	.word	SOCK_STREAM
	.word	.LC3
	.word	.LC5
	.word	.LC4
	.word	.LC2
	.word	.LC1
	.size	start_reverse_handler, .-start_reverse_handler
	.comm	SOCK_STREAM,4,4
	.comm	INADDR_ANY,4,4
	.comm	AF_INET,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
