	.file	"extr_grutlbpurge.c_gru_tgh_flush_init.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	gru_tgh_flush_init
	.type	gru_tgh_flush_init, @function
gru_tgh_flush_init:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12d, 1
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	edi, DWORD PTR 8[rdi]
	call	uv_blade_nr_possible_cpus@PLT
	xor	ecx, ecx
	mov	ebp, eax
	test	eax, eax
	jne	.L8
.L2:
	lea	eax, -1[rbp+r12]
	mov	DWORD PTR [rbx], ecx
	sar	eax, cl
	mov	DWORD PTR 4[rbx], eax
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.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
.L8:
	.cfi_restore_state
	lea	edi, -1[rax]
	call	fls@PLT
	mov	edi, r12d
	mov	ecx, eax
	sal	edi, cl
	sub	edi, 1
	call	fls@PLT
	mov	r13d, eax
	mov	eax, DWORD PTR MAX_LOCAL_TGH[rip]
	lea	edi, -1[rax]
	call	fls@PLT
	mov	esi, r13d
	xor	edi, edi
	sub	esi, eax
	call	max@PLT
	mov	ecx, eax
	sal	r12d, cl
	jmp	.L2
	.cfi_endproc
.LFE0:
	.size	gru_tgh_flush_init, .-gru_tgh_flush_init
	.comm	MAX_LOCAL_TGH,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_grutlbpurge.c_gru_tgh_flush_init.c"
	.text
	.align	2
	.global	gru_tgh_flush_init
	.syntax unified
	.arm
	.fpu softvfp
	.type	gru_tgh_flush_init, %function
gru_tgh_flush_init:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r5, r0
	ldr	r0, [r0, #8]
	bl	uv_blade_nr_possible_cpus
	subs	r4, r0, #0
	moveq	r3, r4
	moveq	r0, #1
	bne	.L6
.L2:
	add	r4, r4, r0
	sub	r4, r4, #1
	asr	r4, r4, r3
	stm	r5, {r3, r4}
	pop	{r4, r5, r6, r7, r8, pc}
.L6:
	sub	r0, r4, #1
	bl	fls
	mov	r6, #1
	lsl	r0, r6, r0
	sub	r0, r0, #1
	bl	fls
	ldr	r3, .L7
	mov	r7, r0
	ldr	r0, [r3]
	sub	r0, r0, #1
	bl	fls
	sub	r1, r7, r0
	mov	r0, #0
	bl	max
	mov	r3, r0
	lsl	r0, r6, r0
	b	.L2
.L8:
	.align	2
.L7:
	.word	MAX_LOCAL_TGH
	.size	gru_tgh_flush_init, .-gru_tgh_flush_init
	.comm	MAX_LOCAL_TGH,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
