	.file	"extr_crypto-blackrock2.c_blackrock2_init.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	blackrock2_init
	.type	blackrock2_init, @function
blackrock2_init:
.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	rbx, rdi
	sub	rsp, 40
	.cfi_def_cfa_offset 64
	movsd	QWORD PTR 8[rsp], xmm1
	movsd	QWORD PTR [rsp], xmm0
	call	sqrt@PLT
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, rax
	call	next_power_of_two@PLT
	movapd	xmm1, xmm0
	movsd	xmm0, QWORD PTR [rsp]
	movsd	QWORD PTR 24[rsp], xmm1
	divsd	xmm0, xmm1
	call	next_power_of_two@PLT
	movsd	xmm1, QWORD PTR 24[rsp]
	movsd	QWORD PTR 16[rsp], xmm0
	movsd	xmm0, QWORD PTR [rsp]
	movsd	QWORD PTR 8[rbx], xmm1
	movsd	QWORD PTR [rbx], xmm0
	movapd	xmm0, xmm1
	call	bit_count@PLT
	movsd	xmm0, QWORD PTR 8[rbx]
	subsd	xmm0, QWORD PTR .LC0[rip]
	movsd	xmm1, QWORD PTR .LC1[rip]
	movsd	xmm2, QWORD PTR 16[rsp]
	mov	QWORD PTR 64[rbx], rax
	comisd	xmm0, xmm1
	jnb	.L2
	cvttsd2si	rax, xmm0
	mov	QWORD PTR 16[rbx], rax
.L3:
	movsd	QWORD PTR 24[rbx], xmm2
	movapd	xmm0, xmm2
	call	bit_count@PLT
	movsd	xmm0, QWORD PTR 24[rbx]
	movsd	xmm4, QWORD PTR [rsp]
	mov	DWORD PTR 32[rbx], ebp
	subsd	xmm0, QWORD PTR .LC0[rip]
	movsd	xmm3, QWORD PTR 8[rsp]
	mov	QWORD PTR 56[rbx], rax
	movsd	QWORD PTR [rbx], xmm4
	movsd	QWORD PTR 40[rbx], xmm3
	cvttsd2si	rax, xmm0
	mov	QWORD PTR 48[rbx], rax
	add	rsp, 40
	.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
.L2:
	.cfi_restore_state
	subsd	xmm0, xmm1
	cvttsd2si	rax, xmm0
	mov	QWORD PTR 16[rbx], rax
	btc	QWORD PTR 16[rbx], 63
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	blackrock2_init, .-blackrock2_init
	.section	.rodata.cst8,"aM",@progbits,8
	.align 8
.LC0:
	.long	0
	.long	1072693248
	.align 8
.LC1:
	.long	0
	.long	1138753536
	.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_crypto-blackrock2.c_blackrock2_init.c"
	.text
	.global	__aeabi_i2d
	.global	__aeabi_ddiv
	.global	__aeabi_dsub
	.global	__aeabi_d2ulz
	.global	__aeabi_d2iz
	.align	2
	.global	blackrock2_init
	.syntax unified
	.arm
	.fpu softvfp
	.type	blackrock2_init, %function
blackrock2_init:
	@ args = 12, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r3, r4, r5, r6, r7, r8, r9, r10, fp, lr}
	add	fp, sp, #40
	ldmia	fp, {r10-fp}
	mov	r4, r0
	mov	r1, r3
	mov	r0, r2
	mov	r6, r2
	mov	r7, r3
	ldr	r5, [sp, #48]
	bl	sqrt
	bl	__aeabi_i2d
	bl	next_power_of_two
	mov	r8, r0
	mov	r9, r1
	mov	r2, r8
	mov	r3, r9
	mov	r0, r6
	mov	r1, r7
	bl	__aeabi_ddiv
	bl	next_power_of_two
	mov	r2, r0
	mov	r3, r1
	str	r8, [r4, #8]
	str	r9, [r4, #12]
	mov	r1, r9
	mov	r0, r8
	stm	r4, {r6-r7}
	mov	r8, r2
	mov	r9, r3
	bl	bit_count
	mov	r3, r0
	add	r1, r4, #8
	ldmia	r1, {r0-r1}
	mov	r2, #0
	str	r3, [r4, #56]
	ldr	r3, .L4
	bl	__aeabi_dsub
	bl	__aeabi_d2ulz
	str	r8, [r4, #24]
	str	r9, [r4, #28]
	str	r0, [r4, #16]
	str	r1, [r4, #20]
	mov	r1, r9
	mov	r0, r8
	bl	bit_count
	mov	r3, r0
	add	r1, r4, #24
	ldmia	r1, {r0-r1}
	mov	r2, #0
	str	r3, [r4, #52]
	ldr	r3, .L4
	bl	__aeabi_dsub
	bl	__aeabi_d2iz
	str	r10, [r4, #40]
	str	fp, [r4, #44]
	stm	r4, {r6-r7}
	str	r5, [r4, #32]
	str	r0, [r4, #48]
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L5:
	.align	2
.L4:
	.word	1072693248
	.size	blackrock2_init, .-blackrock2_init
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
