	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_br_i31_montymul                ## -- Begin function br_i31_montymul
	.p2align	4, 0x90
_br_i31_montymul:                       ## @br_i31_montymul
	.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	$104, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, -92(%rbp)                 ## 4-byte Spill
	movq	%rcx, %r12
	movq	%rdx, %r13
	movq	%rsi, -128(%rbp)                ## 8-byte Spill
	movq	%rdi, %rbx
	movl	(%rcx), %esi
	leal	31(%rsi), %r15d
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_br_i31_zero
	movq	%rbx, %rdx
	xorl	%r14d, %r14d
	cmpl	$32, %r15d
	jae	LBB0_1
LBB0_7:
	movl	(%r12), %eax
	movl	%eax, (%rdx)
	movl	%r14d, %edi
	xorl	%esi, %esi
	movq	%rdx, %rbx
	callq	_NEQ
	movl	%eax, %r14d
	movq	%rbx, %rdi
	movq	%r12, %rsi
	xorl	%edx, %edx
	callq	_br_i31_sub
	movl	%eax, %edi
	callq	_NOT
	orl	%eax, %r14d
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movl	%r14d, %edx
	addq	$104, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_br_i31_sub                     ## TAILCALL
LBB0_1:
	sarl	$5, %r15d
	movslq	%r15d, %rax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movq	%rax, %rbx
	andq	$-4, %rbx
	cmpq	$2, %rax
	movl	$1, %ecx
	cmovaeq	%rax, %rcx
	movq	%rcx, -120(%rbp)                ## 8-byte Spill
	xorl	%ecx, %ecx
	xorl	%eax, %eax
	movq	%rbx, -112(%rbp)                ## 8-byte Spill
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	movq	%r13, -80(%rbp)                 ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	addl	-96(%rbp), %r14d                ## 4-byte Folded Reload
	movl	%r14d, %eax
	andl	$2147483647, %eax               ## imm = 0x7FFFFFFF
	movl	%eax, (%rdx,%rcx,4)
	sarl	$31, %r14d
	movl	%r14d, %eax
	movq	-104(%rbp), %rcx                ## 8-byte Reload
	cmpq	-120(%rbp), %rcx                ## 8-byte Folded Reload
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	movq	%r15, %r13
	movq	-112(%rbp), %rbx                ## 8-byte Reload
	je	LBB0_7
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_9 Depth 2
                                        ##     Child Loop BB0_5 Depth 2
	movl	%eax, -96(%rbp)                 ## 4-byte Spill
	movq	-128(%rbp), %rax                ## 8-byte Reload
	movq	%rcx, -104(%rbp)                ## 8-byte Spill
	movl	4(%rax,%rcx,4), %edi
	movl	4(%rdx), %r14d
	movl	4(%r13), %esi
	movl	%edi, -44(%rbp)                 ## 4-byte Spill
	callq	_MUL31_lo
	addl	%eax, %r14d
	movl	%r14d, %edi
	movl	-92(%rbp), %esi                 ## 4-byte Reload
	callq	_MUL31_lo
	testq	%rbx, %rbx
	movl	%eax, -68(%rbp)                 ## 4-byte Spill
	je	LBB0_3
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r13, %r15
	xorl	%r13d, %r13d
	xorl	%r14d, %r14d
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_9:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	4(%r15,%r13,4), %esi
	addl	4(%rdx,%r13,4), %r14d
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_MUL31
	movl	%eax, %r12d
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	4(%rax,%r13,4), %esi
	movl	-68(%rbp), %r15d                ## 4-byte Reload
	movl	%r15d, %edi
	callq	_MUL31
	addl	%r14d, %r12d
	addl	%eax, %r12d
	movl	%r12d, %r14d
	sarl	$31, %r14d
	andl	$2147483647, %r12d              ## imm = 0x7FFFFFFF
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	%r12d, (%rax,%r13,4)
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movl	8(%rax,%r13,4), %esi
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	addl	8(%rax,%r13,4), %r14d
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_MUL31
	movl	%eax, %ebx
	movq	-64(%rbp), %r12                 ## 8-byte Reload
	movl	8(%r12,%r13,4), %esi
	movl	%r15d, %edi
	callq	_MUL31
	addl	%r14d, %ebx
	addl	%eax, %ebx
	movl	%ebx, %r14d
	sarl	$31, %r14d
	andl	$2147483647, %ebx               ## imm = 0x7FFFFFFF
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	%ebx, 4(%rax,%r13,4)
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movl	12(%rax,%r13,4), %esi
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	addl	12(%rax,%r13,4), %r14d
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_MUL31
	movl	%eax, %ebx
	movl	12(%r12,%r13,4), %esi
	movl	%r15d, %edi
	callq	_MUL31
	addl	%r14d, %ebx
	addl	%eax, %ebx
	movl	%ebx, %r14d
	sarl	$31, %r14d
	andl	$2147483647, %ebx               ## imm = 0x7FFFFFFF
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	%ebx, 8(%rax,%r13,4)
	leaq	4(%r13), %r12
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movl	16(%rax,%r13,4), %esi
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	addl	16(%rax,%r13,4), %r14d
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_MUL31
	movl	%eax, %ebx
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	16(%rax,%r13,4), %esi
	movl	%r15d, %edi
	callq	_MUL31
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movq	-80(%rbp), %r15                 ## 8-byte Reload
	addl	%r14d, %ebx
	addl	%eax, %ebx
	movl	%ebx, %r14d
	sarl	$31, %r14d
	andl	$2147483647, %ebx               ## imm = 0x7FFFFFFF
	movl	%ebx, 12(%rdx,%r13,4)
	movq	%r12, %r13
	cmpq	-112(%rbp), %r12                ## 8-byte Folded Reload
	jb	LBB0_9
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_2 Depth=1
	xorl	%r14d, %r14d
	xorl	%r12d, %r12d
	movq	%r13, %r15
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	-104(%rbp)                      ## 8-byte Folded Spill
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	cmpq	%rcx, %r12
	jae	LBB0_6
	.p2align	4, 0x90
LBB0_5:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	leaq	1(%r12), %rax
	movq	%rax, -136(%rbp)                ## 8-byte Spill
	movl	4(%r15,%r12,4), %esi
	addl	4(%rdx,%r12,4), %r14d
	movl	%edi, %r13d
	callq	_MUL31
	movl	%eax, %ebx
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	4(%rax,%r12,4), %esi
	movl	-68(%rbp), %edi                 ## 4-byte Reload
	callq	_MUL31
	movl	%r13d, %edi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	addl	%r14d, %ebx
	addl	%eax, %ebx
	movl	%ebx, %r14d
	sarl	$31, %r14d
	andl	$2147483647, %ebx               ## imm = 0x7FFFFFFF
	movl	%ebx, (%rdx,%r12,4)
	movq	-136(%rbp), %rax                ## 8-byte Reload
	movq	%rax, %r12
	cmpq	%rax, -88(%rbp)                 ## 8-byte Folded Reload
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	jne	LBB0_5
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_br_i31_montymul                ; -- Begin function br_i31_montymul
	.p2align	2
_br_i31_montymul:                       ; @br_i31_montymul
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #224
	.cfi_def_cfa_offset 224
	stp	x28, x27, [sp, #128]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #144]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #160]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #176]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #192]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #208]            ; 16-byte Folded Spill
	add	x29, sp, #208
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	str	w4, [sp, #100]                  ; 4-byte Folded Spill
	mov	x20, x3
	mov	x23, x2
	str	x1, [sp, #88]                   ; 8-byte Folded Spill
	mov	x22, x0
	ldr	w1, [x3]
	add	w19, w1, #31
	bl	_br_i31_zero
	cmp	w19, #32
	str	x20, [sp, #8]                   ; 8-byte Folded Spill
	b.hs	LBB0_3
; %bb.1:
	mov	w24, #0
LBB0_2:
	ldr	x19, [sp, #8]                   ; 8-byte Folded Reload
	ldr	w8, [x19]
	str	w8, [x22]
	mov	x0, x24
	mov	w1, #0
	bl	_NEQ
	mov	x21, x0
	mov	x0, x22
	mov	x1, x19
	mov	w2, #0
	bl	_br_i31_sub
	bl	_NOT
	orr	w2, w0, w21
	mov	x0, x22
	mov	x1, x19
	ldp	x29, x30, [sp, #208]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #192]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #176]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #160]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #144]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #128]            ; 16-byte Folded Reload
	add	sp, sp, #224
	b	_br_i31_sub
LBB0_3:
	mov	x27, #0
	mov	w24, #0
	sbfx	x8, x19, #5, #27
	stur	x8, [x29, #-88]                 ; 8-byte Folded Spill
	and	x21, x8, #0xfffffffffffffffc
	cmp	x8, #1
	csinc	x9, x8, xzr, hi
	add	x8, x20, #8
	stp	x8, x9, [sp, #56]               ; 16-byte Folded Spill
	add	x9, x23, #8
	add	x8, x22, #8
	stp	x8, x9, [sp, #40]               ; 16-byte Folded Spill
	add	x9, x22, #4
	add	x8, x20, #4
	stp	x8, x9, [sp, #24]               ; 16-byte Folded Spill
	add	x8, x23, #4
	str	x8, [sp, #16]                   ; 8-byte Folded Spill
	stp	x23, x22, [sp, #72]             ; 16-byte Folded Spill
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldur	w8, [x29, #-92]                 ; 4-byte Folded Reload
	add	w8, w22, w8
	and	w9, w8, #0x7fffffff
	ldp	x23, x22, [sp, #72]             ; 16-byte Folded Reload
	ldur	x10, [x29, #-88]                ; 8-byte Folded Reload
	str	w9, [x22, x10, lsl #2]
	asr	w24, w8, #31
	ldr	x27, [sp, #104]                 ; 8-byte Folded Reload
	ldr	x8, [sp, #64]                   ; 8-byte Folded Reload
	cmp	x27, x8
	b.eq	LBB0_2
LBB0_5:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
                                        ;     Child Loop BB0_11 Depth 2
	add	x27, x27, #1
	ldr	x8, [sp, #88]                   ; 8-byte Folded Reload
	ldr	w25, [x8, x27, lsl #2]
	ldr	w19, [x22, #4]
	ldr	w1, [x23, #4]
	mov	x0, x25
	bl	_MUL31_lo
	add	w0, w0, w19
	ldr	w1, [sp, #100]                  ; 4-byte Folded Reload
	bl	_MUL31_lo
	mov	x26, x0
	stur	w24, [x29, #-92]                ; 4-byte Folded Spill
	str	x27, [sp, #104]                 ; 8-byte Folded Spill
	cbz	x21, LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x23, #0
	mov	w22, #0
	ldp	x20, x19, [sp, #40]             ; 16-byte Folded Reload
	ldr	x28, [sp, #56]                  ; 8-byte Folded Reload
LBB0_7:                                 ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldur	w24, [x20, #-4]
	ldur	w1, [x19, #-4]
	mov	x0, x25
	bl	_MUL31
	mov	x27, x0
	ldur	w1, [x28, #-4]
	mov	x0, x26
	bl	_MUL31
	add	w8, w24, w22
	add	w8, w8, w27
	add	w22, w8, w0
	and	w8, w22, #0x7fffffff
	stur	w8, [x20, #-8]
	ldr	w24, [x20]
	ldr	w1, [x19]
	mov	x0, x25
	bl	_MUL31
	mov	x27, x0
	ldr	w1, [x28]
	mov	x0, x26
	bl	_MUL31
	add	w8, w24, w22, asr #31
	add	w8, w8, w27
	add	w22, w8, w0
	and	w8, w22, #0x7fffffff
	stur	w8, [x20, #-4]
	ldr	w24, [x20, #4]
	ldr	w1, [x19, #4]
	mov	x0, x25
	bl	_MUL31
	mov	x27, x0
	ldr	w1, [x28, #4]
	mov	x0, x26
	bl	_MUL31
	add	w8, w24, w22, asr #31
	add	w8, w8, w27
	add	w22, w8, w0
	and	w8, w22, #0x7fffffff
	str	w8, [x20]
	add	x23, x23, #4
	ldr	w24, [x20, #8]
	ldr	w1, [x19, #8]
	mov	x0, x25
	bl	_MUL31
	mov	x27, x0
	ldr	w1, [x28, #8]
	mov	x0, x26
	bl	_MUL31
	add	w8, w24, w22, asr #31
	add	w8, w8, w27
	add	w8, w8, w0
	asr	w22, w8, #31
	and	w8, w8, #0x7fffffff
	str	w8, [x20, #4]
	add	x28, x28, #16
	add	x19, x19, #16
	add	x20, x20, #16
	cmp	x23, x21
	b.lo	LBB0_7
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	w22, #0
	mov	x23, #0
LBB0_9:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldur	x9, [x29, #-88]                 ; 8-byte Folded Reload
	cmp	x23, x9
	b.hs	LBB0_4
; %bb.10:                               ;   in Loop: Header=BB0_5 Depth=1
	lsl	x8, x23, #2
	ldr	x10, [sp, #32]                  ; 8-byte Folded Reload
	add	x19, x10, x8
	sub	x20, x9, x23
	ldr	x9, [sp, #24]                   ; 8-byte Folded Reload
	add	x23, x9, x8
	ldr	x9, [sp, #16]                   ; 8-byte Folded Reload
	add	x28, x9, x8
LBB0_11:                                ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w24, [x19]
	ldr	w1, [x28], #4
	mov	x0, x25
	bl	_MUL31
	mov	x27, x0
	ldr	w1, [x23], #4
	mov	x0, x26
	bl	_MUL31
	add	w8, w24, w22
	add	w8, w8, w27
	add	w8, w8, w0
	asr	w22, w8, #31
	and	w8, w8, #0x7fffffff
	stur	w8, [x19, #-4]
	add	x19, x19, #4
	subs	x20, x20, #1
	b.ne	LBB0_11
	b	LBB0_4
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
