	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pkey_scrypt_ctrl
_pkey_scrypt_ctrl:                      ## @pkey_scrypt_ctrl
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
                                        ## kill: def $esi killed $esi def $rsi
	addl	$-128, %esi
	cmpl	$5, %esi
	ja	LBB0_3
## %bb.1:
	movl	%edx, %eax
	movq	(%rdi), %rbx
	leaq	LJTI0_0(%rip), %rdx
	movslq	(%rdx,%rsi,4), %rsi
	addq	%rdx, %rsi
	jmpq	*%rsi
LBB0_2:
	leaq	20(%rbx), %rdi
	addq	$16, %rbx
	jmp	LBB0_16
LBB0_3:
	movl	$-2, %r14d
	jmp	LBB0_14
LBB0_4:
	movl	(%rcx), %eax
	testl	%eax, %eax
	jle	LBB0_17
## %bb.5:
	movl	%eax, 4(%rbx)
	jmp	LBB0_13
LBB0_6:
	movl	(%rcx), %eax
	testl	%eax, %eax
	jle	LBB0_17
## %bb.7:
	movl	%eax, 8(%rbx)
	jmp	LBB0_13
LBB0_8:
	movl	(%rcx), %r15d
	xorl	%r14d, %r14d
	cmpl	$2, %r15d
	jl	LBB0_14
## %bb.9:
	movl	%r15d, %edi
	callq	_is_power_of_two
	testl	%eax, %eax
	je	LBB0_14
## %bb.10:
	movl	%r15d, (%rbx)
	jmp	LBB0_13
LBB0_11:
	movl	(%rcx), %eax
	testl	%eax, %eax
	jle	LBB0_17
## %bb.12:
	movl	%eax, 12(%rbx)
LBB0_13:
	movl	$1, %r14d
	jmp	LBB0_14
LBB0_17:
	xorl	%r14d, %r14d
LBB0_14:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	leaq	28(%rbx), %rdi
	addq	$24, %rbx
LBB0_16:
	movq	%rbx, %rsi
	movq	%rcx, %rdx
	movl	%eax, %ecx
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_pkey_scrypt_set_membuf         ## TAILCALL
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_15, LBB0_15-LJTI0_0
LJTI0_0:
	.long	L0_0_set_2
	.long	L0_0_set_4
	.long	L0_0_set_6
	.long	L0_0_set_8
	.long	L0_0_set_11
	.long	L0_0_set_15
	.end_data_region
                                        ## -- End function
	.no_dead_strip	_pkey_scrypt_ctrl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pkey_scrypt_ctrl
_pkey_scrypt_ctrl:                      ; @pkey_scrypt_ctrl
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	sub	w9, w1, #128
	cmp	w9, #5
	b.hi	LBB0_3
; %bb.1:
	mov	x8, x2
	ldr	x20, [x0]
Lloh0:
	adrp	x10, lJTI0_0@PAGE
Lloh1:
	add	x10, x10, lJTI0_0@PAGEOFF
	adr	x11, LBB0_2
	ldrb	w12, [x10, x9]
	add	x11, x11, x12, lsl #2
	br	x11
LBB0_2:
	add	x0, x20, #20
	add	x1, x20, #16
	b	LBB0_17
LBB0_3:
	mov	w0, #-2
	b	LBB0_15
LBB0_4:
	ldr	w8, [x3]
	cmp	w8, #1
	b.lt	LBB0_14
; %bb.5:
	str	w8, [x20, #4]
	b	LBB0_13
LBB0_6:
	ldr	w8, [x3]
	cmp	w8, #1
	b.lt	LBB0_14
; %bb.7:
	str	w8, [x20, #8]
	b	LBB0_13
LBB0_8:
	ldr	w19, [x3]
	cmp	w19, #2
	b.lt	LBB0_14
; %bb.9:
	mov	x0, x19
	bl	_is_power_of_two
	cbz	w0, LBB0_15
; %bb.10:
	str	w19, [x20]
	b	LBB0_13
LBB0_11:
	ldr	w8, [x3]
	cmp	w8, #1
	b.lt	LBB0_14
; %bb.12:
	str	w8, [x20, #12]
LBB0_13:
	mov	w0, #1
	b	LBB0_15
LBB0_14:
	mov	w0, #0
LBB0_15:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_16:
	add	x0, x20, #28
	add	x1, x20, #24
LBB0_17:
	mov	x2, x3
	mov	x3, x8
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_pkey_scrypt_set_membuf
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
	.byte	(LBB0_8-LBB0_2)>>2
	.byte	(LBB0_11-LBB0_2)>>2
	.byte	(LBB0_16-LBB0_2)>>2
                                        ; -- End function
	.no_dead_strip	_pkey_scrypt_ctrl
.subsections_via_symbols
