	.file	"extr_srvtest.c_handle.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"accept"
.LC1:
	.string	"fork"
	.text
	.p2align 4
	.type	handle, @function
handle:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	ebp, esi
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	ebx, edi
	sub	rsp, 24
	.cfi_def_cfa_offset 48
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	cmp	DWORD PTR SOCK_DGRAM[rip], edi
	mov	DWORD PTR 4[rsp], 4
	jne	.L15
.L2:
	call	fork@PLT
	cmp	eax, -1
	je	.L3
	test	eax, eax
	je	.L4
	mov	edi, ebp
	call	close@PLT
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L16
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	lea	rsi, .LC1[rip]
	mov	edi, 1
	call	err@PLT
.L4:
	cmp	DWORD PTR SOCK_DGRAM[rip], ebx
	mov	edi, ebp
	je	.L17
	call	process_tcp@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L17:
	call	process_udp@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L15:
	mov	edi, ebp
	lea	rdx, 4[rsp]
	mov	rsi, rsp
	call	accept@PLT
	mov	ebp, eax
	cmp	eax, -1
	jne	.L2
	lea	rsi, .LC0[rip]
	mov	edi, 1
	call	err@PLT
	jmp	.L2
.L16:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	handle, .-handle
	.comm	SOCK_DGRAM,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_srvtest.c_handle.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"accept\000"
	.align	2
.LC1:
	.ascii	"fork\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	handle, %function
handle:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	mov	r3, #4
	push	{r4, r5, r6, lr}
	ldr	r6, .L18
	mov	r4, r1
	ldr	r2, [r6]
	ldr	r1, .L18+4
	sub	sp, sp, #16
	cmp	r2, r0
	ldr	r1, [r1]
	str	r1, [sp, #12]
	mov	r1,#0
	mov	r5, r0
	str	r3, [sp, #8]
	bne	.L15
.L2:
	bl	fork
	cmn	r0, #1
	beq	.L3
	cmp	r0, #0
	beq	.L4
	mov	r0, r4
	bl	close
.L1:
	ldr	r3, .L18+4
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L16
	add	sp, sp, #16
	@ sp needed
	pop	{r4, r5, r6, pc}
.L3:
	mov	r0, #1
	ldr	r1, .L18+8
	bl	err
.L4:
	ldr	r3, [r6]
	mov	r0, r4
	cmp	r3, r5
	beq	.L17
	bl	process_tcp
	b	.L1
.L17:
	bl	process_udp
	b	.L1
.L15:
	mov	r0, r4
	add	r2, sp, #8
	add	r1, sp, r3
	bl	accept
	cmn	r0, #1
	mov	r4, r0
	bne	.L2
	ldr	r1, .L18+12
	mov	r0, #1
	bl	err
	b	.L2
.L16:
	bl	__stack_chk_fail
.L19:
	.align	2
.L18:
	.word	SOCK_DGRAM
	.word	.LC2
	.word	.LC1
	.word	.LC0
	.size	handle, .-handle
	.comm	SOCK_DGRAM,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
