	.file	"extr_20810.c_u_sleep.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"sleeping for %u microseconds\n"
	.text
	.p2align 4
	.globl	u_sleep
	.type	u_sleep, @function
u_sleep:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	ebx, edi
	sub	rsp, 32
	.cfi_def_cfa_offset 64
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	cmp	DWORD PTR debug[rip], 3
	jg	.L10
.L2:
	test	ebx, ebx
	je	.L1
	movsx	rax, ebx
	lea	r12, 12[rsp]
	lea	rbp, 8[rsp]
	mov	edx, ebx
	imul	rax, rax, 1125899907
	sar	edx, 31
	mov	rdi, r12
	sar	rax, 50
	sub	eax, edx
	mov	DWORD PTR 16[rsp], eax
	imul	eax, eax, 1000000
	sub	ebx, eax
	mov	DWORD PTR 20[rsp], ebx
	call	FD_ZERO@PLT
	mov	rdi, rbp
	call	FD_ZERO@PLT
	lea	r8, 16[rsp]
	xor	ecx, ecx
	mov	rdx, r12
	mov	rsi, rbp
	xor	edi, edi
	call	select@PLT
.L1:
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L11
	add	rsp, 32
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore_state
	mov	esi, edi
	lea	rdi, .LC0[rip]
	call	printf@PLT
	jmp	.L2
.L11:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	u_sleep, .-u_sleep
	.comm	debug,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_20810.c_u_sleep.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"sleeping for %u microseconds\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC1:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	u_sleep
	.syntax unified
	.arm
	.fpu softvfp
	.type	u_sleep, %function
u_sleep:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, lr}
	ldr	r3, .L12
	ldr	r2, .L12+4
	ldr	r3, [r3]
	sub	sp, sp, #32
	cmp	r3, #3
	mov	r4, r0
	ldr	r2, [r2]
	str	r2, [sp, #28]
	mov	r2,#0
	bgt	.L10
.L2:
	cmp	r4, #0
	beq	.L1
	ldr	r2, .L12+8
	asr	r3, r4, #31
	smull	r1, r2, r4, r2
	rsb	r3, r3, r2, asr #18
	rsb	r2, r3, r3, lsl #5
	rsb	r2, r2, r2, lsl #6
	add	r1, r3, r2, lsl #3
	sub	r4, r4, r1, lsl #6
	add	r0, sp, #16
	str	r3, [sp, #20]
	str	r4, [sp, #24]
	bl	FD_ZERO
	add	r0, sp, #12
	bl	FD_ZERO
	mov	r3, #0
	add	ip, sp, #20
	mov	r0, r3
	add	r2, sp, #16
	add	r1, sp, #12
	str	ip, [sp]
	bl	select
.L1:
	ldr	r3, .L12+4
	ldr	r2, [r3]
	ldr	r3, [sp, #28]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L11
	add	sp, sp, #32
	@ sp needed
	pop	{r4, pc}
.L10:
	mov	r1, r0
	ldr	r0, .L12+12
	bl	printf
	b	.L2
.L11:
	bl	__stack_chk_fail
.L13:
	.align	2
.L12:
	.word	debug
	.word	.LC1
	.word	1125899907
	.word	.LC0
	.size	u_sleep, .-u_sleep
	.comm	debug,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
