	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_keygen_port_hashing_init       ## -- Begin function keygen_port_hashing_init
	.p2align	4, 0x90
_keygen_port_hashing_init:              ## @keygen_port_hashing_init
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r12d
	leal	-1(%r12), %eax
	cmpl	$16777215, %eax                 ## imm = 0xFFFFFF
	jae	LBB0_1
## %bb.3:
	movl	%ecx, %r15d
	leal	-1(%r15), %eax
	testl	%eax, %ecx
	sete	%al
	testl	%ecx, %ecx
	setne	%cl
	testb	%al, %cl
	je	LBB0_4
## %bb.5:
	movl	%esi, %r13d
	movq	%rdi, %r14
	leaq	-44(%rbp), %rsi
	callq	_get_free_scheme_id
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:
	leaq	L_.str.2(%rip), %rdi
	jmp	LBB0_2
LBB0_1:
	leaq	L_.str(%rip), %rdi
	jmp	LBB0_2
LBB0_4:
	leaq	L_.str.1(%rip), %rdi
LBB0_2:
	callq	_pr_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_15:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movl	-44(%rbp), %esi
	movq	%r14, %rdi
	callq	_get_scheme
	testq	%rax, %rax
	je	LBB0_8
## %bb.9:
	cmpq	$0, 40(%rax)
	je	LBB0_11
## %bb.10:
	leaq	L_.str.4(%rip), %rdi
	jmp	LBB0_2
LBB0_8:
	leaq	L_.str.3(%rip), %rdi
	jmp	LBB0_2
LBB0_11:
	xorl	%ebx, %ebx
	movq	%rax, %rdi
	xorl	%esi, %esi
	movl	$48, %edx
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	callq	_memset
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	%r13d, 32(%rcx)
	movl	$1, (%rcx)
	movl	%r12d, 4(%rcx)
	movl	%r15d, 8(%rcx)
	movq	_DEFAULT_SYMMETRIC_HASH@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 28(%rcx)
	movq	_DEFAULT_HASH_SHIFT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%rcx)
	movq	$0, 16(%rcx)
	movl	-44(%rbp), %esi
	movq	%r14, %rdi
	movl	$1, %edx
	callq	_keygen_scheme_setup
	testl	%eax, %eax
	je	LBB0_13
## %bb.12:
	movl	%eax, %r15d
	leaq	L_.str.5(%rip), %rdi
	callq	_pr_err
	movl	%r15d, %ebx
	jmp	LBB0_15
LBB0_13:
	movl	-44(%rbp), %esi
	movq	%r14, %rdi
	movl	$1, %edx
	callq	_keygen_bind_port_to_schemes
	testl	%eax, %eax
	je	LBB0_15
## %bb.14:
	movl	%eax, %r14d
	leaq	L_.str.6(%rip), %rdi
	callq	_pr_err
	movl	%r14d, %ebx
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Base FQID must be between 1 and 2^24-1\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"Hash size must be power of two\n"

L_.str.2:                               ## @.str.2
	.asciz	"The maximum number of available Schemes has been exceeded\n"

L_.str.3:                               ## @.str.3
	.asciz	"Requested Scheme does not exist\n"

L_.str.4:                               ## @.str.4
	.asciz	"The requested Scheme is already used\n"

	.comm	_DEFAULT_SYMMETRIC_HASH,4,2     ## @DEFAULT_SYMMETRIC_HASH
	.comm	_DEFAULT_HASH_SHIFT,4,2         ## @DEFAULT_HASH_SHIFT
L_.str.5:                               ## @.str.5
	.asciz	"Scheme setup failed\n"

L_.str.6:                               ## @.str.6
	.asciz	"Binding port to schemes failed\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_keygen_port_hashing_init       ; -- Begin function keygen_port_hashing_init
	.p2align	2
_keygen_port_hashing_init:              ; @keygen_port_hashing_init
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	sub	w8, w2, #1
	mov	w9, #16777215
	cmp	w8, w9
	b.hs	LBB0_4
; %bb.1:
	mov	x20, x3
	mov	w8, w3
	fmov	d0, x8
	cnt.8b	v0, v0
	uaddlv.8b	h0, v0
	fmov	w8, s0
	cmp	w8, #1
	b.ne	LBB0_5
; %bb.2:
	mov	x21, x2
	mov	x22, x1
	mov	x19, x0
	add	x1, sp, #12
	bl	_get_free_scheme_id
	cbz	w0, LBB0_8
; %bb.3:
Lloh0:
	adrp	x0, l_.str.2@PAGE
Lloh1:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_6
LBB0_4:
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_6
LBB0_5:
Lloh4:
	adrp	x0, l_.str.1@PAGE
Lloh5:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_6:
	bl	_pr_err
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_7:
	mov	x0, x20
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_8:
	ldr	w1, [sp, #12]
	mov	x0, x19
	bl	_get_scheme
	cbz	x0, LBB0_11
; %bb.9:
	mov	x23, x0
	ldr	x8, [x0, #40]
	cbz	x8, LBB0_12
; %bb.10:
Lloh9:
	adrp	x0, l_.str.4@PAGE
Lloh10:
	add	x0, x0, l_.str.4@PAGEOFF
	b	LBB0_6
LBB0_11:
Lloh11:
	adrp	x0, l_.str.3@PAGE
Lloh12:
	add	x0, x0, l_.str.3@PAGEOFF
	b	LBB0_6
LBB0_12:
	mov	x0, x23
	mov	w1, #0
	mov	w2, #48
	bl	_memset
	str	w22, [x23, #32]
	mov	w8, #1
	stp	w8, w21, [x23]
	str	w20, [x23, #8]
Lloh13:
	adrp	x8, _DEFAULT_SYMMETRIC_HASH@GOTPAGE
Lloh14:
	ldr	x8, [x8, _DEFAULT_SYMMETRIC_HASH@GOTPAGEOFF]
Lloh15:
	adrp	x9, _DEFAULT_HASH_SHIFT@GOTPAGE
Lloh16:
	ldr	x9, [x9, _DEFAULT_HASH_SHIFT@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
Lloh18:
	ldr	w9, [x9]
	stp	w9, w8, [x23, #24]
	str	xzr, [x23, #16]
	ldr	w1, [sp, #12]
	mov	x0, x19
	mov	w2, #1
	bl	_keygen_scheme_setup
	cbz	w0, LBB0_14
; %bb.13:
	mov	x20, x0
Lloh19:
	adrp	x0, l_.str.5@PAGE
Lloh20:
	add	x0, x0, l_.str.5@PAGEOFF
	b	LBB0_16
LBB0_14:
	ldr	w1, [sp, #12]
	mov	x0, x19
	mov	w2, #1
	bl	_keygen_bind_port_to_schemes
	mov	x20, x0
	cbz	w0, LBB0_7
; %bb.15:
Lloh21:
	adrp	x0, l_.str.6@PAGE
Lloh22:
	add	x0, x0, l_.str.6@PAGEOFF
LBB0_16:
	bl	_pr_err
	b	LBB0_7
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh17
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Base FQID must be between 1 and 2^24-1\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"Hash size must be power of two\n"

l_.str.2:                               ; @.str.2
	.asciz	"The maximum number of available Schemes has been exceeded\n"

l_.str.3:                               ; @.str.3
	.asciz	"Requested Scheme does not exist\n"

l_.str.4:                               ; @.str.4
	.asciz	"The requested Scheme is already used\n"

	.comm	_DEFAULT_SYMMETRIC_HASH,4,2     ; @DEFAULT_SYMMETRIC_HASH
	.comm	_DEFAULT_HASH_SHIFT,4,2         ; @DEFAULT_HASH_SHIFT
l_.str.5:                               ; @.str.5
	.asciz	"Scheme setup failed\n"

l_.str.6:                               ; @.str.6
	.asciz	"Binding port to schemes failed\n"

.subsections_via_symbols
