	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_br_ec_keygen                   ## -- Begin function br_ec_keygen
	.p2align	4, 0x90
_br_ec_keygen:                          ## @br_ec_keygen
	.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
	cmpl	$31, %r8d
	ja	LBB0_1
## %bb.2:
	movl	%r8d, %ebx
	movq	%rcx, %r13
	movq	%rsi, %rax
	movl	(%rsi), %ecx
	btl	%r8d, %ecx
	jae	LBB0_1
## %bb.3:
	movq	%rdx, %r14
	movq	%rdi, %r12
	leaq	-48(%rbp), %rsi
	movl	%ebx, %edi
	callq	*8(%rax)
	movq	-48(%rbp), %rdx
	testq	%rdx, %rdx
	je	LBB0_1
## %bb.4:
	movq	%rax, %r15
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	(%r15), %eax
	testl	%eax, %eax
	jne	LBB0_10
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	incq	%r15
	decq	%rdx
	movq	%rdx, -48(%rbp)
	jne	LBB0_5
LBB0_1:
	xorl	%edx, %edx
LBB0_23:
	movq	%rdx, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	testq	%r13, %r13
	je	LBB0_23
## %bb.11:
	movl	%ebx, -52(%rbp)                 ## 4-byte Spill
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	movl	%eax, %ecx
	shrl	%ecx
	orl	%eax, %ecx
	movl	%ecx, %eax
	shrl	$2, %eax
	orl	%ecx, %eax
	movl	%eax, %r14d
	shrl	$4, %r14d
	orl	%eax, %r14d
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_12 Depth=1
	testl	%ecx, %ecx
	je	LBB0_12
LBB0_18:                                ##   in Loop: Header=BB0_12 Depth=1
	testl	%eax, %eax
	jne	LBB0_21
LBB0_12:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_15 Depth 2
	movq	(%r12), %rax
	movq	%r12, %rdi
	movq	%r13, %rsi
	callq	*(%rax)
	andb	%r14b, (%r13)
	movq	-48(%rbp), %rdx
	testq	%rdx, %rdx
	je	LBB0_19
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=1
	xorl	%eax, %eax
	movl	$0, %ecx
	movq	%rdx, %r8
	cmpq	$1, %rdx
	je	LBB0_16
## %bb.14:                              ##   in Loop: Header=BB0_12 Depth=1
	movq	%rdx, %r9
	andq	$-2, %r9
	xorl	%eax, %eax
	xorl	%ecx, %ecx
	movq	%rdx, %rdi
	.p2align	4, 0x90
LBB0_15:                                ##   Parent Loop BB0_12 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movzbl	-1(%r13,%rdi), %ebx
	movzbl	-1(%r15,%rdi), %esi
	addl	%ecx, %esi
	orl	%ebx, %eax
	subl	%esi, %ebx
	leaq	-2(%rdi), %r8
	movzbl	-2(%r13,%rdi), %esi
	movzbl	-2(%r15,%rdi), %edi
	btl	$8, %ebx
	movl	%esi, %ecx
	sbbl	%edi, %ecx
	shrl	$8, %ecx
	andl	$1, %ecx
	orl	%esi, %eax
	movq	%r8, %rdi
	addq	$-2, %r9
	jne	LBB0_15
LBB0_16:                                ##   in Loop: Header=BB0_12 Depth=1
	testb	$1, %dl
	je	LBB0_17
## %bb.20:                              ##   in Loop: Header=BB0_12 Depth=1
	movzbl	-1(%r13,%r8), %esi
	movzbl	-1(%r15,%r8), %edi
	addl	%edi, %ecx
	orl	%esi, %eax
	subl	%ecx, %esi
	shrl	$8, %esi
	andl	$1, %esi
	movl	%esi, %ecx
	testl	%ecx, %ecx
	jne	LBB0_18
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_19:                                ##   in Loop: Header=BB0_12 Depth=1
	xorl	%ecx, %ecx
	xorl	%eax, %eax
	testl	%ecx, %ecx
	jne	LBB0_18
	jmp	LBB0_12
LBB0_21:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	testq	%rax, %rax
	je	LBB0_23
## %bb.22:
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	movl	%ecx, (%rax)
	movq	%r13, 8(%rax)
	movq	%rdx, 16(%rax)
	jmp	LBB0_23
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_br_ec_keygen                   ; -- Begin function br_ec_keygen
	.p2align	2
_br_ec_keygen:                          ; @br_ec_keygen
	.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
	cmp	w4, #31
	b.hi	LBB0_6
; %bb.1:
	mov	x21, x4
	ldr	w8, [x1]
	lsr	w8, w8, w4
	tbz	w8, #0, LBB0_6
; %bb.2:
	mov	x20, x3
	mov	x19, x2
	mov	x22, x0
	ldr	x8, [x1, #8]
	add	x1, sp, #8
	mov	x0, x21
	blr	x8
	ldr	x2, [sp, #8]
	cbz	x2, LBB0_7
; %bb.3:
	mov	x23, x0
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w8, [x23]
	cbnz	w8, LBB0_8
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x23, x23, #1
	subs	x2, x2, #1
	str	x2, [sp, #8]
	b.ne	LBB0_4
	b	LBB0_7
LBB0_6:
	mov	x2, #0
LBB0_7:
	mov	x0, x2
	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:
	cbz	x20, LBB0_7
; %bb.9:
	orr	w8, w8, w8, lsr #1
	orr	w8, w8, w8, lsr #2
	orr	w24, w8, w8, lsr #4
	b	LBB0_12
LBB0_10:                                ;   in Loop: Header=BB0_12 Depth=1
	mov	w9, #0
	mov	w8, #0
	cbz	w9, LBB0_12
LBB0_11:                                ;   in Loop: Header=BB0_12 Depth=1
	cbnz	w8, LBB0_16
LBB0_12:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_14 Depth 2
	ldr	x8, [x22]
	ldr	x8, [x8]
	mov	x0, x22
	mov	x1, x20
	blr	x8
	ldrb	w8, [x20]
	and	w8, w8, w24
	strb	w8, [x20]
	ldr	x2, [sp, #8]
	cbz	x2, LBB0_10
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	mov	w8, #0
	mov	w9, #0
	sub	x10, x2, #1
LBB0_14:                                ;   Parent Loop BB0_12 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldrb	w11, [x20, x10]
	ldrb	w12, [x23, x10]
	add	w9, w9, w12
	sub	w9, w11, w9
	ubfx	w9, w9, #8, #1
	orr	w8, w8, w11
	sub	x10, x10, #1
	cmn	x10, #1
	b.ne	LBB0_14
; %bb.15:                               ;   in Loop: Header=BB0_12 Depth=1
	cbnz	w9, LBB0_11
	b	LBB0_12
LBB0_16:
	cbz	x19, LBB0_7
; %bb.17:
	str	w21, [x19]
	stp	x20, x2, [x19, #8]
	b	LBB0_7
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
