	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_br_i31_from_monty              ## -- Begin function br_i31_from_monty
	.p2align	4, 0x90
_br_i31_from_monty:                     ## @br_i31_from_monty
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, -48(%rbp)                 ## 4-byte Spill
	movq	%rsi, %rbx
	movq	%rdi, %r13
	movl	(%rsi), %eax
	addl	$31, %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	cmpl	$32, %eax
	jae	LBB0_1
LBB0_6:
	movq	%r13, %rdi
	movq	%rbx, %rsi
	xorl	%edx, %edx
	callq	_br_i31_sub
	movl	%eax, %edi
	callq	_NOT
	movq	%r13, %rdi
	movq	%rbx, %rsi
	movl	%eax, %edx
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_br_i31_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, -64(%rbp)                 ## 8-byte Spill
	cmovaeq	%rcx, %rdx
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	leaq	-1(%rdx), %rcx
	xorl	%eax, %eax
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	%ebx, (%r13,%rax,4)
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	incq	%rax
	cmpq	-56(%rbp), %rax                 ## 8-byte Folded Reload
	movq	%r15, %rbx
	je	LBB0_6
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movl	4(%r13), %edi
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	callq	_MUL31_lo
	movl	%eax, %r12d
	movl	4(%r13), %r14d
	movq	%rbx, %r15
	movl	4(%rbx), %esi
	movl	%eax, %edi
	callq	_MUL31
	movl	%eax, %ebx
	addl	%r14d, %ebx
	sarl	$31, %ebx
	cmpl	$64, -44(%rbp)                  ## 4-byte Folded Reload
	jb	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_4:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	8(%r15,%r14,4), %esi
	addl	8(%r13,%r14,4), %ebx
	movl	%r12d, %edi
	callq	_MUL31
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	addl	%ebx, %eax
	movl	%eax, %ebx
	sarl	$31, %ebx
	andl	$2147483647, %eax               ## imm = 0x7FFFFFFF
	movl	%eax, 4(%r13,%r14,4)
	incq	%r14
	cmpq	%r14, %rcx
	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_i31_from_monty              ; -- Begin function br_i31_from_monty
	.p2align	2
_br_i31_from_monty:                     ; @br_i31_from_monty
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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	w2, [sp, #36]                   ; 4-byte Folded Spill
	mov	x20, x0
	str	x1, [sp, #40]                   ; 8-byte Folded Spill
	ldr	w8, [x1]
	add	w23, w8, #31
	cmp	w23, #32
	b.hs	LBB0_2
LBB0_1:
	mov	x0, x20
	ldr	x19, [sp, #40]                  ; 8-byte Folded Reload
	mov	x1, x19
	mov	w2, #0
	bl	_br_i31_sub
	bl	_NOT
	mov	x2, x0
	mov	x0, x20
	mov	x1, x19
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	b	_br_i31_sub
LBB0_2:
	mov	x24, #0
	sbfx	x25, x23, #5, #27
	cmp	x25, #1
	csinc	x8, x25, xzr, hi
	str	x8, [sp, #24]                   ; 8-byte Folded Spill
	sub	x9, x8, #1
	ldr	x8, [sp, #40]                   ; 8-byte Folded Reload
	add	x8, x8, #8
	stp	x8, x9, [sp, #8]                ; 16-byte Folded Spill
	add	x8, x20, #8
	str	x8, [sp]                        ; 8-byte Folded Spill
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	str	w28, [x20, x25, lsl #2]
	add	x24, x24, #1
	ldr	x8, [sp, #24]                   ; 8-byte Folded Reload
	cmp	x24, x8
	b.eq	LBB0_1
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_6 Depth 2
	ldr	w0, [x20, #4]
	ldr	w1, [sp, #36]                   ; 4-byte Folded Reload
	bl	_MUL31_lo
	mov	x22, x0
	ldr	w19, [x20, #4]
	ldr	x8, [sp, #40]                   ; 8-byte Folded Reload
	ldr	w1, [x8, #4]
	bl	_MUL31
	add	w8, w19, w0
	asr	w28, w8, #31
	cmp	w23, #64
	b.lo	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldp	x27, x21, [sp]                  ; 16-byte Folded Reload
	ldr	x19, [sp, #16]                  ; 8-byte Folded Reload
LBB0_6:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w26, [x27]
	ldr	w1, [x21], #4
	mov	x0, x22
	bl	_MUL31
	add	w8, w26, w28
	add	w8, w8, w0
	asr	w28, w8, #31
	and	w8, w8, #0x7fffffff
	stur	w8, [x27, #-4]
	add	x27, x27, #4
	subs	x19, x19, #1
	b.ne	LBB0_6
	b	LBB0_3
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
