	.file	"extr_buddy.c_main.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"socket()"
.LC1:
	.string	"bind()"
.LC2:
	.string	"listen()"
.LC3:
	.string	"signal()"
.LC4:
	.string	"accept()"
.LC5:
	.string	"Got dude %s\n"
.LC6:
	.string	"Done"
	.section	.text.startup,"ax",@progbits
	.p2align 4
	.globl	main
	.type	main, @function
main:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	edx, 12
	xor	esi, esi
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 40
	.cfi_def_cfa_offset 96
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	lea	r13, 12[rsp]
	mov	rdi, r13
	call	memset@PLT
	mov	eax, DWORD PTR PF_INET[rip]
	mov	edi, 666
	mov	DWORD PTR 16[rsp], eax
	call	htons@PLT
	mov	esi, DWORD PTR SOCK_RAW[rip]
	mov	edi, DWORD PTR PF_INET[rip]
	xor	edx, edx
	mov	DWORD PTR 20[rsp], eax
	mov	eax, DWORD PTR INADDR_ANY[rip]
	mov	DWORD PTR 12[rsp], eax
	call	socket@PLT
	mov	r12d, eax
	cmp	eax, -1
	je	.L12
.L2:
	mov	edx, DWORD PTR IPPROTO_TCP[rip]
	mov	esi, DWORD PTR SOCK_STREAM[rip]
	mov	edi, DWORD PTR 16[rsp]
	call	socket@PLT
	mov	ebx, eax
	cmp	eax, -1
	je	.L13
.L3:
	mov	edx, 12
	mov	rsi, r13
	mov	edi, ebx
	call	bind@PLT
	cmp	eax, -1
	je	.L14
.L4:
	mov	esi, 5
	mov	edi, ebx
	call	listen@PLT
	cmp	eax, -1
	je	.L15
.L5:
	mov	esi, DWORD PTR hand[rip]
	mov	edi, DWORD PTR SIGPIPE[rip]
	call	signal@PLT
	cmp	rax, QWORD PTR SIG_ERR[rip]
	je	.L16
.L6:
	lea	r14, 8[rsp]
	lea	r15, .LC4[rip]
	.p2align 4,,10
	.p2align 3
.L8:
	mov	rdx, r14
	mov	rsi, r13
	mov	edi, ebx
	mov	DWORD PTR 8[rsp], 12
	call	accept@PLT
	mov	ebp, eax
	cmp	eax, -1
	jne	.L7
	mov	rsi, r15
	mov	edi, 1
	call	err@PLT
.L7:
	mov	edi, DWORD PTR 12[rsp]
	call	inet_ntoa@PLT
	lea	rdi, .LC5[rip]
	mov	rsi, rax
	xor	eax, eax
	call	printf@PLT
	mov	edi, ebp
	mov	esi, r12d
	call	handle_dude@PLT
	lea	rdi, .LC6[rip]
	call	puts@PLT
	jmp	.L8
.L12:
	lea	rsi, .LC0[rip]
	mov	edi, 1
	call	err@PLT
	jmp	.L2
.L16:
	lea	rsi, .LC3[rip]
	mov	edi, 1
	call	err@PLT
	jmp	.L6
.L15:
	lea	rsi, .LC2[rip]
	mov	edi, 1
	call	err@PLT
	jmp	.L5
.L14:
	lea	rsi, .LC1[rip]
	mov	edi, 1
	call	err@PLT
	jmp	.L4
.L13:
	lea	rsi, .LC0[rip]
	mov	edi, 1
	call	err@PLT
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	main, .-main
	.comm	hand,4,4
	.comm	SOCK_STREAM,4,4
	.comm	SOCK_RAW,4,4
	.comm	SIG_ERR,8,8
	.comm	SIGPIPE,4,4
	.comm	PF_INET,4,4
	.comm	IPPROTO_TCP,4,4
	.comm	INADDR_ANY,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_buddy.c_main.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"socket()\000"
	.align	2
.LC1:
	.ascii	"bind()\000"
	.align	2
.LC2:
	.ascii	"listen()\000"
	.align	2
.LC3:
	.ascii	"signal()\000"
	.align	2
.LC4:
	.ascii	"accept()\000"
	.align	2
.LC5:
	.ascii	"Got dude %s\012\000"
	.align	2
.LC6:
	.ascii	"Done\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC7:
	.word	__stack_chk_guard
	.section	.text.startup,"ax",%progbits
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, lr}
	mov	r4, #0
	ldr	r5, .L17
	ldr	r2, .L17+4
	ldr	r3, [r5]
	sub	sp, sp, #28
	ldr	r0, .L17+8
	ldr	r2, [r2]
	str	r2, [sp, #20]
	mov	r2,#0
	str	r3, [sp, #12]
	str	r4, [sp, #8]
	str	r4, [sp, #16]
	bl	htons
	mov	ip, r0
	ldr	r3, .L17+12
	ldr	r1, .L17+16
	ldr	r3, [r3]
	mov	r2, r4
	ldr	r0, [r5]
	ldr	r1, [r1]
	str	ip, [sp, #16]
	str	r3, [sp, #8]
	bl	socket
	cmn	r0, #1
	mov	r6, r0
	beq	.L12
.L2:
	ldr	r3, .L17+20
	ldr	r2, .L17+24
	ldr	r1, [r3]
	ldr	r2, [r2]
	ldr	r0, [sp, #12]
	bl	socket
	cmn	r0, #1
	mov	r5, r0
	beq	.L13
.L3:
	mov	r2, #12
	mov	r0, r5
	add	r1, sp, #8
	bl	bind
	cmn	r0, #1
	beq	.L14
.L4:
	mov	r1, #5
	mov	r0, r5
	bl	listen
	cmn	r0, #1
	beq	.L15
.L5:
	ldr	r3, .L17+28
	ldr	r2, .L17+32
	ldr	r0, [r3]
	ldr	r1, [r2]
	bl	signal
	ldr	r3, .L17+36
	ldr	r3, [r3]
	cmp	r0, r3
	beq	.L16
.L6:
	ldr	r9, .L17+40
	ldr	r8, .L17+44
	ldr	r7, .L17+48
.L8:
	mov	r3, #12
	mov	r0, r5
	add	r2, sp, #4
	add	r1, sp, #8
	str	r3, [sp, #4]
	bl	accept
	cmn	r0, #1
	mov	r4, r0
	bne	.L7
	mov	r1, r9
	mov	r0, #1
	bl	err
.L7:
	ldr	r0, [sp, #8]
	bl	inet_ntoa
	mov	r1, r0
	mov	r0, r8
	bl	printf
	mov	r1, r6
	mov	r0, r4
	bl	handle_dude
	mov	r0, r7
	bl	puts
	b	.L8
.L12:
	ldr	r1, .L17+52
	mov	r0, #1
	bl	err
	b	.L2
.L16:
	ldr	r1, .L17+56
	mov	r0, #1
	bl	err
	b	.L6
.L15:
	ldr	r1, .L17+60
	mov	r0, #1
	bl	err
	b	.L5
.L14:
	ldr	r1, .L17+64
	mov	r0, #1
	bl	err
	b	.L4
.L13:
	ldr	r1, .L17+52
	mov	r0, #1
	bl	err
	b	.L3
.L18:
	.align	2
.L17:
	.word	PF_INET
	.word	.LC7
	.word	666
	.word	INADDR_ANY
	.word	SOCK_RAW
	.word	SOCK_STREAM
	.word	IPPROTO_TCP
	.word	SIGPIPE
	.word	hand
	.word	SIG_ERR
	.word	.LC4
	.word	.LC5
	.word	.LC6
	.word	.LC0
	.word	.LC3
	.word	.LC2
	.word	.LC1
	.size	main, .-main
	.comm	hand,4,4
	.comm	SOCK_STREAM,4,4
	.comm	SOCK_RAW,4,4
	.comm	SIG_ERR,4,4
	.comm	SIGPIPE,4,4
	.comm	PF_INET,4,4
	.comm	IPPROTO_TCP,4,4
	.comm	INADDR_ANY,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
