	.file	"extr_scrypt.c_pkey_scrypt_ctrl.c"
	.intel_syntax noprefix
	.text
	.section	.text.unlikely,"ax",@progbits
.LCOLDB0:
	.text
.LHOTB0:
	.p2align 4
	.type	pkey_scrypt_ctrl, @function
pkey_scrypt_ctrl:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	add	esi, -128
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	rbx, QWORD PTR [rdi]
	cmp	esi, 5
	ja	.L12
	mov	r8d, edx
	mov	rdx, rcx
	lea	rcx, .L4[rip]
	movsx	rax, DWORD PTR [rcx+rsi*4]
	add	rax, rcx
	notrack jmp	rax
	.section	.rodata
	.align 4
	.align 4
.L4:
	.long	.L9-.L4
	.long	.L8-.L4
	.long	.L7-.L4
	.long	.L6-.L4
	.long	.L5-.L4
	.long	.L3-.L4
	.text
	.p2align 4,,10
	.p2align 3
.L5:
	mov	eax, DWORD PTR [rdx]
	test	eax, eax
	jle	.L11
	mov	DWORD PTR 12[rbx], eax
	mov	eax, 1
.L1:
	add	rsp, 8
	.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
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	lea	rsi, 24[rbx]
	lea	rdi, 28[rbx]
	mov	ecx, r8d
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	jmp	pkey_scrypt_set_membuf@PLT
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore_state
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	lea	rsi, 16[rbx]
	lea	rdi, 20[rbx]
	mov	ecx, r8d
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	jmp	pkey_scrypt_set_membuf@PLT
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	mov	eax, DWORD PTR [rdx]
	test	eax, eax
	jle	.L11
	mov	DWORD PTR 4[rbx], eax
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	eax, 1
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	mov	eax, DWORD PTR [rdx]
	test	eax, eax
	jle	.L11
	mov	DWORD PTR 8[rbx], eax
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	eax, 1
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore_state
	mov	ebp, DWORD PTR [rdx]
	cmp	ebp, 1
	jle	.L11
	mov	edi, ebp
	call	is_power_of_two@PLT
	test	eax, eax
	je	.L11
	mov	DWORD PTR [rbx], ebp
	mov	eax, 1
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L11:
	add	rsp, 8
	.cfi_def_cfa_offset 24
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
	.section	.text.unlikely
	.cfi_startproc
	.type	pkey_scrypt_ctrl.cold, @function
pkey_scrypt_ctrl.cold:
.LFSB0:
.L12:
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -24
	.cfi_offset 6, -16
	mov	eax, -2
	jmp	.L1
	.cfi_endproc
.LFE0:
	.text
	.size	pkey_scrypt_ctrl, .-pkey_scrypt_ctrl
	.section	.text.unlikely
	.size	pkey_scrypt_ctrl.cold, .-pkey_scrypt_ctrl.cold
.LCOLDE0:
	.text
.LHOTE0:
	.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_scrypt.c_pkey_scrypt_ctrl.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	pkey_scrypt_ctrl, %function
pkey_scrypt_ctrl:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	sub	r1, r1, #128
	push	{r4, r5, r6, lr}
	ldr	r4, [r0]
	mov	r0, r2
	mov	r2, r3
	cmp	r1, #5
	ldrls	pc, [pc, r1, asl #2]
	b	.L12
.L4:
	.word	.L9
	.word	.L8
	.word	.L7
	.word	.L6
	.word	.L5
	.word	.L3
.L3:
	mov	r3, r0
	add	r1, r4, #24
	add	r0, r4, #28
	pop	{r4, r5, r6, lr}
	b	pkey_scrypt_set_membuf
.L9:
	mov	r3, r0
	add	r1, r4, #16
	add	r0, r4, #20
	pop	{r4, r5, r6, lr}
	b	pkey_scrypt_set_membuf
.L8:
	ldr	r3, [r3]
	cmp	r3, #0
	ble	.L11
	mov	r0, #1
	str	r3, [r4, #4]
	pop	{r4, r5, r6, pc}
.L7:
	ldr	r3, [r3]
	cmp	r3, #0
	ble	.L11
	mov	r0, #1
	str	r3, [r4, #8]
	pop	{r4, r5, r6, pc}
.L6:
	ldr	r5, [r3]
	cmp	r5, #1
	ble	.L11
	mov	r0, r5
	bl	is_power_of_two
	cmp	r0, #0
	beq	.L11
	mov	r0, #1
	str	r5, [r4]
	pop	{r4, r5, r6, pc}
.L5:
	ldr	r3, [r3]
	cmp	r3, #0
	ble	.L11
	mov	r0, #1
	str	r3, [r4, #12]
	pop	{r4, r5, r6, pc}
.L11:
	mov	r0, #0
	pop	{r4, r5, r6, pc}
.L12:
	mvn	r0, #1
	pop	{r4, r5, r6, pc}
	.size	pkey_scrypt_ctrl, .-pkey_scrypt_ctrl
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
