	.file	"58189.c"
	.intel_syntax noprefix
	.text
	.globl	getdetlatimeofday
	.type	getdetlatimeofday, @function
getdetlatimeofday:
.LFB6:
	.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	QWORD PTR -16[rbp], rsi
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR [rax]
	pxor	xmm1, xmm1
	cvtsi2sd	xmm1, rax
	mov	rax, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR 8[rax]
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, rax
	movsd	xmm2, QWORD PTR .LC0[rip]
	divsd	xmm0, xmm2
	addsd	xmm0, xmm1
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR [rax]
	pxor	xmm2, xmm2
	cvtsi2sd	xmm2, rax
	mov	rax, QWORD PTR -8[rbp]
	mov	rax, QWORD PTR 8[rax]
	pxor	xmm1, xmm1
	cvtsi2sd	xmm1, rax
	movsd	xmm3, QWORD PTR .LC0[rip]
	divsd	xmm1, xmm3
	addsd	xmm1, xmm2
	subsd	xmm0, xmm1
	movq	rax, xmm0
	movq	xmm0, rax
	pop	rbp
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	getdetlatimeofday, .-getdetlatimeofday
	.section	.rodata
	.align 8
.LC1:
	.string	"usage: ./socketpair <size> <count>"
.LC2:
	.string	"malloc"
.LC3:
	.string	"socketpair"
.LC4:
	.string	"read"
.LC5:
	.string	"sum error: %d != %d\n"
.LC6:
	.string	"wirte"
.LC8:
	.string	"%.0fMB/s %.0fmsg/s\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 112
	mov	DWORD PTR -100[rbp], edi
	mov	QWORD PTR -112[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	cmp	DWORD PTR -100[rbp], 3
	je	.L4
	lea	rdi, .LC1[rip]
	call	puts@PLT
	mov	eax, 1
	jmp	.L16
.L4:
	mov	rax, QWORD PTR -112[rbp]
	add	rax, 8
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -76[rbp], eax
	mov	rax, QWORD PTR -112[rbp]
	add	rax, 16
	mov	rax, QWORD PTR [rax]
	mov	rdi, rax
	call	atoi@PLT
	mov	DWORD PTR -72[rbp], eax
	mov	eax, DWORD PTR -76[rbp]
	cdqe
	mov	rdi, rax
	call	malloc@PLT
	mov	QWORD PTR -64[rbp], rax
	cmp	QWORD PTR -64[rbp], 0
	jne	.L6
	lea	rdi, .LC2[rip]
	call	perror@PLT
	mov	eax, 1
	jmp	.L16
.L6:
	lea	rax, -16[rbp]
	mov	rcx, rax
	mov	edx, 0
	mov	esi, 1
	mov	edi, 1
	call	socketpair@PLT
	cmp	eax, -1
	jne	.L7
	lea	rdi, .LC3[rip]
	call	perror@PLT
	mov	eax, 1
	jmp	.L16
.L7:
	call	fork@PLT
	test	eax, eax
	jne	.L8
	mov	DWORD PTR -80[rbp], 0
	mov	DWORD PTR -84[rbp], 0
	jmp	.L9
.L11:
	mov	eax, DWORD PTR -76[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -16[rbp]
	mov	rcx, QWORD PTR -64[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	read@PLT
	mov	DWORD PTR -68[rbp], eax
	cmp	DWORD PTR -68[rbp], -1
	jne	.L10
	lea	rdi, .LC4[rip]
	call	perror@PLT
	mov	eax, 1
	jmp	.L16
.L10:
	mov	eax, DWORD PTR -68[rbp]
	add	DWORD PTR -80[rbp], eax
	add	DWORD PTR -84[rbp], 1
.L9:
	mov	eax, DWORD PTR -84[rbp]
	cmp	eax, DWORD PTR -72[rbp]
	jl	.L11
	mov	eax, DWORD PTR -72[rbp]
	imul	eax, DWORD PTR -76[rbp]
	cmp	DWORD PTR -80[rbp], eax
	je	.L12
	mov	eax, DWORD PTR -72[rbp]
	imul	eax, DWORD PTR -76[rbp]
	mov	ecx, eax
	mov	rax, QWORD PTR stderr[rip]
	mov	edx, DWORD PTR -80[rbp]
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	eax, 1
	jmp	.L16
.L8:
	lea	rax, -48[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	gettimeofday@PLT
	mov	DWORD PTR -84[rbp], 0
	jmp	.L13
.L15:
	mov	eax, DWORD PTR -76[rbp]
	movsx	rdx, eax
	mov	eax, DWORD PTR -12[rbp]
	mov	rcx, QWORD PTR -64[rbp]
	mov	rsi, rcx
	mov	edi, eax
	call	write@PLT
	mov	edx, DWORD PTR -76[rbp]
	movsx	rdx, edx
	cmp	rax, rdx
	je	.L14
	lea	rdi, .LC6[rip]
	call	perror@PLT
	mov	eax, 1
	jmp	.L16
.L14:
	add	DWORD PTR -84[rbp], 1
.L13:
	mov	eax, DWORD PTR -84[rbp]
	cmp	eax, DWORD PTR -72[rbp]
	jl	.L15
	lea	rax, -32[rbp]
	mov	esi, 0
	mov	rdi, rax
	call	gettimeofday@PLT
	lea	rdx, -32[rbp]
	lea	rax, -48[rbp]
	mov	rsi, rdx
	mov	rdi, rax
	call	getdetlatimeofday
	movq	rax, xmm0
	mov	QWORD PTR -56[rbp], rax
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, DWORD PTR -72[rbp]
	movapd	xmm3, xmm0
	divsd	xmm3, QWORD PTR -56[rbp]
	mov	eax, DWORD PTR -72[rbp]
	imul	eax, DWORD PTR -76[rbp]
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, eax
	movsd	xmm2, QWORD PTR -56[rbp]
	movsd	xmm1, QWORD PTR .LC7[rip]
	mulsd	xmm2, xmm1
	movsd	xmm1, QWORD PTR .LC7[rip]
	mulsd	xmm1, xmm2
	divsd	xmm0, xmm1
	movq	rax, xmm0
	movapd	xmm1, xmm3
	movq	xmm0, rax
	lea	rdi, .LC8[rip]
	mov	eax, 2
	call	printf@PLT
.L12:
	mov	eax, 0
.L16:
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L17
	call	__stack_chk_fail@PLT
.L17:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC0:
	.long	0
	.long	1093567616
	.align 8
.LC7:
	.long	0
	.long	1083179008
	.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	"58189.c"
	.text
	.global	__aeabi_i2d
	.global	__aeabi_ddiv
	.global	__aeabi_dadd
	.global	__aeabi_dsub
	.align	2
	.global	getdetlatimeofday
	.syntax unified
	.arm
	.fpu softvfp
	.type	getdetlatimeofday, %function
getdetlatimeofday:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, fp, lr}
	add	fp, sp, #20
	sub	sp, sp, #8
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	ldr	r3, [fp, #-28]
	ldr	r3, [r3]
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r4, r0
	mov	r5, r1
	ldr	r3, [fp, #-28]
	ldr	r3, [r3, #4]
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, #0
	ldr	r3, .L3
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	mov	r6, r2
	mov	r7, r3
	ldr	r3, [fp, #-24]
	ldr	r3, [r3]
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r4, r0
	mov	r5, r1
	ldr	r3, [fp, #-24]
	ldr	r3, [r3, #4]
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r2, #0
	ldr	r3, .L3
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dadd
	mov	r2, r0
	mov	r3, r1
	mov	r0, r6
	mov	r1, r7
	bl	__aeabi_dsub
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	sub	sp, fp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, fp, pc}
.L4:
	.align	2
.L3:
	.word	1093567616
	.size	getdetlatimeofday, .-getdetlatimeofday
	.section	.rodata
	.align	2
.LC0:
	.ascii	"usage: ./socketpair <size> <count>\000"
	.align	2
.LC1:
	.ascii	"malloc\000"
	.align	2
.LC2:
	.ascii	"socketpair\000"
	.align	2
.LC3:
	.ascii	"read\000"
	.align	2
.LC4:
	.ascii	"sum error: %d != %d\012\000"
	.align	2
.LC5:
	.ascii	"wirte\000"
	.global	__aeabi_dmul
	.align	2
.LC6:
	.ascii	"%.0fMB/s %.0fmsg/s\012\000"
	.align	2
.LC7:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 72
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, fp, lr}
	add	fp, sp, #12
	sub	sp, sp, #80
	str	r0, [fp, #-80]
	str	r1, [fp, #-84]
	ldr	r3, .L20
	ldr	r3, [r3]
	str	r3, [fp, #-16]
	mov	r3,#0
	ldr	r3, [fp, #-80]
	cmp	r3, #3
	beq	.L6
	ldr	r0, .L20+4
	bl	puts
	mov	r3, #1
	b	.L18
.L6:
	ldr	r3, [fp, #-84]
	add	r3, r3, #4
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	str	r0, [fp, #-68]
	ldr	r3, [fp, #-84]
	add	r3, r3, #8
	ldr	r3, [r3]
	mov	r0, r3
	bl	atoi
	str	r0, [fp, #-64]
	ldr	r3, [fp, #-68]
	mov	r0, r3
	bl	malloc
	mov	r3, r0
	str	r3, [fp, #-60]
	ldr	r3, [fp, #-60]
	cmp	r3, #0
	bne	.L8
	ldr	r0, .L20+8
	bl	perror
	mov	r3, #1
	b	.L18
.L8:
	sub	r3, fp, #24
	mov	r2, #0
	mov	r1, #1
	mov	r0, #1
	bl	socketpair
	mov	r3, r0
	cmn	r3, #1
	bne	.L9
	ldr	r0, .L20+12
	bl	perror
	mov	r3, #1
	b	.L18
.L9:
	bl	fork
	mov	r3, r0
	cmp	r3, #0
	bne	.L10
	mov	r3, #0
	str	r3, [fp, #-72]
	mov	r3, #0
	str	r3, [fp, #-76]
	b	.L11
.L13:
	ldr	r3, [fp, #-24]
	ldr	r2, [fp, #-68]
	ldr	r1, [fp, #-60]
	mov	r0, r3
	bl	read
	str	r0, [fp, #-56]
	ldr	r3, [fp, #-56]
	cmn	r3, #1
	bne	.L12
	ldr	r0, .L20+16
	bl	perror
	mov	r3, #1
	b	.L18
.L12:
	ldr	r2, [fp, #-72]
	ldr	r3, [fp, #-56]
	add	r3, r2, r3
	str	r3, [fp, #-72]
	ldr	r3, [fp, #-76]
	add	r3, r3, #1
	str	r3, [fp, #-76]
.L11:
	ldr	r2, [fp, #-76]
	ldr	r3, [fp, #-64]
	cmp	r2, r3
	blt	.L13
	ldr	r3, [fp, #-64]
	ldr	r2, [fp, #-68]
	mul	r3, r2, r3
	ldr	r2, [fp, #-72]
	cmp	r2, r3
	beq	.L14
	ldr	r3, .L20+20
	ldr	r0, [r3]
	ldr	r3, [fp, #-64]
	ldr	r2, [fp, #-68]
	mul	r3, r2, r3
	ldr	r2, [fp, #-72]
	ldr	r1, .L20+24
	bl	fprintf
	mov	r3, #1
	b	.L18
.L10:
	sub	r3, fp, #40
	mov	r1, #0
	mov	r0, r3
	bl	gettimeofday
	mov	r3, #0
	str	r3, [fp, #-76]
	b	.L15
.L17:
	ldr	r3, [fp, #-20]
	ldr	r2, [fp, #-68]
	ldr	r1, [fp, #-60]
	mov	r0, r3
	bl	write
	mov	r2, r0
	ldr	r3, [fp, #-68]
	cmp	r3, r2
	beq	.L16
	ldr	r0, .L20+28
	bl	perror
	mov	r3, #1
	b	.L18
.L16:
	ldr	r3, [fp, #-76]
	add	r3, r3, #1
	str	r3, [fp, #-76]
.L15:
	ldr	r2, [fp, #-76]
	ldr	r3, [fp, #-64]
	cmp	r2, r3
	blt	.L17
	sub	r3, fp, #32
	mov	r1, #0
	mov	r0, r3
	bl	gettimeofday
	sub	r2, fp, #32
	sub	r3, fp, #40
	mov	r1, r2
	mov	r0, r3
	bl	getdetlatimeofday
	str	r0, [fp, #-52]
	str	r1, [fp, #-48]
	ldr	r3, [fp, #-64]
	ldr	r2, [fp, #-68]
	mul	r3, r2, r3
	mov	r0, r3
	bl	__aeabi_i2d
	mov	r4, r0
	mov	r5, r1
	mov	r2, #0
	ldr	r3, .L20+32
	sub	r1, fp, #52
	ldmia	r1, {r0-r1}
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r0, r2
	mov	r1, r3
	mov	r2, #0
	ldr	r3, .L20+32
	bl	__aeabi_dmul
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	mov	r4, r2
	mov	r5, r3
	ldr	r0, [fp, #-64]
	bl	__aeabi_i2d
	sub	r3, fp, #52
	ldmia	r3, {r2-r3}
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	stm	sp, {r2-r3}
	mov	r2, r4
	mov	r3, r5
	ldr	r0, .L20+36
	bl	printf
.L14:
	mov	r3, #0
.L18:
	ldr	r2, .L20
	ldr	r1, [r2]
	ldr	r2, [fp, #-16]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L19
	bl	__stack_chk_fail
.L19:
	mov	r0, r3
	sub	sp, fp, #12
	@ sp needed
	pop	{r4, r5, fp, pc}
.L21:
	.align	2
.L20:
	.word	.LC7
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	stderr
	.word	.LC4
	.word	.LC5
	.word	1083179008
	.word	.LC6
	.size	main, .-main
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
