	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_br_i32_montymul                ## -- Begin function br_i32_montymul
	.p2align	4, 0x90
_br_i32_montymul:                       ## @br_i32_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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, -48(%rbp)                 ## 4-byte Spill
	movq	%rcx, %r15
	movq	%rdx, %r14
	movq	%rsi, -96(%rbp)                 ## 8-byte Spill
	movq	%rdi, %rbx
	movl	(%rcx), %esi
	leal	31(%rsi), %r12d
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_br_i32_zero
	movl	%r12d, -44(%rbp)                ## 4-byte Spill
	cmpl	$32, %r12d
	jae	LBB0_1
LBB0_6:
	xorl	%edi, %edi
	xorl	%esi, %esi
	callq	_NEQ
	movl	%eax, %r14d
	movq	%rbx, %rdi
	movq	%r15, %rsi
	xorl	%edx, %edx
	callq	_br_i32_sub
	movl	%eax, %edi
	callq	_NOT
	orl	%eax, %r14d
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movl	%r14d, %edx
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_br_i32_sub                     ## TAILCALL
LBB0_1:
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	sarl	$5, %eax
	movslq	%eax, %rcx
	cmpq	$2, %rcx
	movl	$1, %edx
	movq	%rcx, %rax
	movq	%rcx, -88(%rbp)                 ## 8-byte Spill
	cmovaeq	%rcx, %rdx
	movq	%rdx, -80(%rbp)                 ## 8-byte Spill
	leaq	-1(%rdx), %r13
	xorl	%ecx, %ecx
	movq	%r15, -72(%rbp)                 ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	movl	$0, (%rbx,%rax,4)
	movq	-104(%rbp), %rcx                ## 8-byte Reload
	cmpq	-80(%rbp), %rcx                 ## 8-byte Folded Reload
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	je	LBB0_6
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	movl	4(%rax,%rcx,4), %edi
	incq	%rcx
	movq	%rcx, -104(%rbp)                ## 8-byte Spill
	movl	4(%r14), %esi
	movl	%esi, %r12d
	imull	%edi, %r12d
	addl	4(%rbx), %r12d
	imull	-48(%rbp), %r12d                ## 4-byte Folded Reload
	movl	%edi, -56(%rbp)                 ## 4-byte Spill
	callq	_MUL
	movl	4(%r15), %esi
	movl	%r12d, -52(%rbp)                ## 4-byte Spill
	movl	%r12d, %edi
	callq	_MUL
	cmpl	$64, -44(%rbp)                  ## 4-byte Folded Reload
	jb	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_4:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	8(%rbx,%r12,4), %eax
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	movl	8(%r14,%r12,4), %esi
	movl	-56(%rbp), %edi                 ## 4-byte Reload
	callq	_MUL
	movq	%r13, %r15
	movq	%r14, %r13
	movl	%eax, %r14d
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movl	8(%rax,%r12,4), %esi
	movl	-52(%rbp), %edi                 ## 4-byte Reload
	callq	_MUL
	addl	-60(%rbp), %r14d                ## 4-byte Folded Reload
	addl	%eax, %r14d
	movl	%r14d, 4(%rbx,%r12,4)
	movq	%r13, %r14
	movq	%r15, %r13
	incq	%r12
	cmpq	%r12, %r15
	jne	LBB0_4
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_br_i32_montymul                ; -- Begin function br_i32_montymul
	.p2align	2
_br_i32_montymul:                       ; @br_i32_montymul
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #192
	.cfi_def_cfa_offset 192
	stp	x28, x27, [sp, #96]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #112]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #128]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #144]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #160]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #176]            ; 16-byte Folded Spill
	add	x29, sp, #176
	.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, #68]                   ; 4-byte Folded Spill
	stp	x2, x3, [sp, #80]               ; 16-byte Folded Spill
	str	x1, [sp, #56]                   ; 8-byte Folded Spill
	mov	x20, x0
	ldr	w1, [x3]
	add	w19, w1, #31
	bl	_br_i32_zero
	str	x19, [sp, #72]                  ; 8-byte Folded Spill
	cmp	w19, #32
	b.hs	LBB0_2
LBB0_1:
	mov	w0, #0
	mov	w1, #0
	bl	_NEQ
	mov	x21, x0
	mov	x0, x20
	ldr	x19, [sp, #88]                  ; 8-byte Folded Reload
	mov	x1, x19
	mov	w2, #0
	bl	_br_i32_sub
	bl	_NOT
	orr	w2, w0, w21
	mov	x0, x20
	mov	x1, x19
	ldp	x29, x30, [sp, #176]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #160]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #144]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #128]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #112]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #96]             ; 16-byte Folded Reload
	add	sp, sp, #192
	b	_br_i32_sub
LBB0_2:
	mov	x28, #0
	ldr	x8, [sp, #72]                   ; 8-byte Folded Reload
	sbfx	x8, x8, #5, #27
	cmp	x8, #1
	str	x8, [sp, #48]                   ; 8-byte Folded Spill
	csinc	x8, x8, xzr, hi
	str	x8, [sp, #40]                   ; 8-byte Folded Spill
	sub	x9, x8, #1
	ldr	x8, [sp, #88]                   ; 8-byte Folded Reload
	add	x8, x8, #8
	stp	x8, x9, [sp, #24]               ; 16-byte Folded Spill
	ldr	x8, [sp, #80]                   ; 8-byte Folded Reload
	add	x9, x8, #8
	add	x8, x20, #8
	stp	x8, x9, [sp, #8]                ; 16-byte Folded Spill
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [sp, #48]                   ; 8-byte Folded Reload
	str	wzr, [x20, x8, lsl #2]
	ldr	x8, [sp, #40]                   ; 8-byte Folded Reload
	cmp	x28, x8
	b.eq	LBB0_1
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_6 Depth 2
	add	x28, x28, #1
	ldr	x8, [sp, #56]                   ; 8-byte Folded Reload
	ldr	w24, [x8, x28, lsl #2]
	ldr	w8, [x20, #4]
	ldr	x9, [sp, #80]                   ; 8-byte Folded Reload
	ldr	w1, [x9, #4]
	madd	w8, w1, w24, w8
	ldr	w9, [sp, #68]                   ; 4-byte Folded Reload
	mul	w25, w8, w9
	mov	x0, x24
	bl	_MUL
	ldr	x8, [sp, #88]                   ; 8-byte Folded Reload
	ldr	w1, [x8, #4]
	mov	x0, x25
	bl	_MUL
	ldr	x8, [sp, #72]                   ; 8-byte Folded Reload
	cmp	w8, #64
	b.lo	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldp	x19, x22, [sp, #8]              ; 16-byte Folded Reload
	ldp	x27, x23, [sp, #24]             ; 16-byte Folded Reload
LBB0_6:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w21, [x19]
	ldr	w1, [x22], #4
	mov	x0, x24
	bl	_MUL
	mov	x26, x0
	ldr	w1, [x27], #4
	mov	x0, x25
	bl	_MUL
	add	w8, w26, w21
	add	w8, w8, w0
	stur	w8, [x19, #-4]
	add	x19, x19, #4
	subs	x23, x23, #1
	b.ne	LBB0_6
	b	LBB0_3
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
