	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_br_i31_moddiv                  ## -- Begin function br_i31_moddiv
	.p2align	4, 0x90
_br_i31_moddiv:                         ## @br_i31_moddiv
	.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
	movq	%r8, %r12
                                        ## kill: def $ecx killed $ecx def $rcx
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movq	%rdx, %r13
	movl	(%rdx), %eax
	addl	$31, %eax
	movl	%eax, -84(%rbp)                 ## 4-byte Spill
	sarl	$5, %eax
	movslq	%eax, %r14
	leaq	(%r8,%r14,4), %rbx
	movq	%rdi, -96(%rbp)                 ## 8-byte Spill
	leaq	4(%rdi), %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	leaq	(%rbx,%r14,4), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	addq	$4, %rsi
	leaq	(,%r14,4), %r15
	movq	%r8, %rdi
	movq	%r15, %rdx
	callq	_memcpy
	leaq	4(%r13), %rsi
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	movq	%rsi, -104(%rbp)                ## 8-byte Spill
	movq	%r15, %rdx
	callq	_memcpy
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	xorl	%esi, %esi
	movq	%r15, %rdx
	callq	_memset
	movl	(%r13), %r15d
	movl	%r15d, %eax
	sarl	$5, %eax
	subl	%eax, %r15d
	addl	%r15d, %r15d
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	js	LBB0_5
## %bb.1:
	addl	$30, %r15d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_3 Depth 2
	movq	%r12, %r13
	movl	(%r12), %r12d
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_3:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	xorl	%ebx, %ebx
	btl	%r14d, %r12d
	setb	%bl
	callq	_NOT
	movl	%ebx, %edi
	callq	_NOT
	incl	%r14d
	cmpl	$31, %r14d
	jne	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	subq	$8, %rsp
	movq	%r13, %r12
	movq	%r13, %rdi
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdx
	movl	$1, %ecx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	pushq	$1
	callq	_co_reduce
	addq	$16, %rsp
                                        ## kill: def $eax killed $eax def $rax
	leal	(%rax,%rax), %edx
	andl	$2, %edx
	movl	$1, %ecx
	subl	%edx, %ecx
	andl	$2, %eax
	movl	$1, %ebx
	subl	%eax, %ebx
	subq	$8, %rsp
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movq	%r14, %rdx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	pushq	-48(%rbp)                       ## 8-byte Folded Reload
	pushq	-104(%rbp)                      ## 8-byte Folded Reload
	pushq	%rbx
	callq	_co_reduce_mod
	addq	$32, %rsp
	leal	-30(%r15), %eax
	cmpl	$59, %r15d
	movl	%eax, %r15d
	jg	LBB0_2
LBB0_5:
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edi
	orl	(%r12), %edi
	xorl	$1, %edi
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %eax
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	orl	%eax, (%rcx)
	cmpl	$64, -84(%rbp)                  ## 4-byte Folded Reload
	jb	LBB0_20
## %bb.6:
	cmpq	$3, %r14
	movl	$2, %r8d
	cmovaeq	%r14, %r8
	leaq	-1(%r8), %r9
	movl	$1, %r13d
	cmpq	$8, %r9
	jae	LBB0_8
## %bb.7:
	movq	-96(%rbp), %rcx                 ## 8-byte Reload
	jmp	LBB0_15
LBB0_8:
	movq	-96(%rbp), %rcx                 ## 8-byte Reload
	leaq	8(%rcx), %rsi
	leaq	(%rcx,%r8,4), %rdx
	addq	$4, %rdx
	leaq	4(%r12,%r14,8), %r11
	leaq	(%r8,%r14,2), %rbx
	leaq	(%r12,%rbx,4), %rbx
	leaq	4(%r12,%r14,4), %r10
	leaq	(%r8,%r14), %rax
	leaq	(%r12,%rax,4), %rax
	leaq	4(%r12), %r14
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
	leaq	(%r12,%r8,4), %r15
	cmpq	%rbx, %rsi
	setb	%r12b
	cmpq	%rdx, %r11
	setb	%r11b
	cmpq	%rax, %rsi
	setb	%al
	cmpq	%rdx, %r10
	setb	%r10b
	cmpq	%r15, %rsi
	setb	%bl
	cmpq	%rdx, %r14
	setb	%sil
	testb	%r11b, %r12b
	jne	LBB0_9
## %bb.10:
	andb	%r10b, %al
	jne	LBB0_9
## %bb.11:
	andb	%sil, %bl
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	jne	LBB0_15
## %bb.12:
	movq	%r9, %rsi
	andq	$-8, %rsi
	leaq	1(%rsi), %r13
	movd	%edi, %xmm1
	leaq	20(%r12), %rdi
	pxor	%xmm0, %xmm0
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movdqu	-16(%rdi), %xmm2
	por	%xmm1, %xmm2
	movdqu	(%rdi), %xmm3
	por	%xmm0, %xmm3
	movdqu	-16(%rdi,%r14,4), %xmm1
	por	%xmm2, %xmm1
	movdqu	(%rdi,%r14,4), %xmm0
	por	%xmm3, %xmm0
	movups	-16(%rdi,%r14,8), %xmm2
	movups	(%rdi,%r14,8), %xmm3
	movups	8(%rcx,%rbx,4), %xmm4
	orps	%xmm2, %xmm4
	movups	24(%rcx,%rbx,4), %xmm2
	orps	%xmm3, %xmm2
	movups	%xmm4, 8(%rcx,%rbx,4)
	movups	%xmm2, 24(%rcx,%rbx,4)
	addq	$8, %rbx
	addq	$32, %rdi
	cmpq	%rbx, %rsi
	jne	LBB0_13
## %bb.14:
	por	%xmm1, %xmm0
	pshufd	$238, %xmm0, %xmm1              ## xmm1 = xmm0[2,3,2,3]
	por	%xmm0, %xmm1
	pshufd	$85, %xmm1, %xmm0               ## xmm0 = xmm1[1,1,1,1]
	por	%xmm1, %xmm0
	movd	%xmm0, %edi
	cmpq	%rsi, %r9
	jne	LBB0_15
	jmp	LBB0_20
LBB0_9:
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	movq	-56(%rbp), %r14                 ## 8-byte Reload
LBB0_15:
	leaq	1(%r13), %rax
	testb	$1, %r8b
	jne	LBB0_17
## %bb.16:
	orl	(%r12,%r13,4), %edi
	movq	-72(%rbp), %rdx                 ## 8-byte Reload
	orl	(%rdx,%r13,4), %edi
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movl	(%rdx,%r13,4), %edx
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	orl	%edx, (%rsi,%r13,4)
	movq	%rax, %r13
LBB0_17:
	cmpq	%rax, %r8
	je	LBB0_20
## %bb.18:
	subq	%r13, %r8
	leaq	(%rcx,%r13,4), %r9
	addq	$8, %r9
	leaq	(,%r14,2), %rax
	addq	%r13, %rax
	leaq	(%r12,%rax,4), %rsi
	addq	$4, %rsi
	addq	%r13, %r14
	leaq	(%r12,%r14,4), %rbx
	addq	$4, %rbx
	leaq	(%r12,%r13,4), %rcx
	addq	$4, %rcx
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_19:                                ## =>This Inner Loop Header: Depth=1
	orl	-4(%rcx,%rax,4), %edi
	orl	-4(%rbx,%rax,4), %edi
	movl	-4(%rsi,%rax,4), %edx
	orl	%edx, -4(%r9,%rax,4)
	orl	(%rcx,%rax,4), %edi
	orl	(%rbx,%rax,4), %edi
	movl	(%rsi,%rax,4), %edx
	orl	%edx, (%r9,%rax,4)
	addq	$2, %rax
	cmpq	%rax, %r8
	jne	LBB0_19
LBB0_20:
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_EQ0                            ## TAILCALL
	.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_moddiv                  ; -- Begin function br_i31_moddiv
	.p2align	2
_br_i31_moddiv:                         ; @br_i31_moddiv
	.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
	mov	x20, x4
	str	w3, [sp, #36]                   ; 4-byte Folded Spill
	mov	x27, x2
	ldr	w8, [x2]
	add	w9, w8, #31
	asr	w8, w9, #5
	stp	x0, x9, [sp, #16]               ; 16-byte Folded Spill
	sbfx	x25, x9, #5, #27
	sbfiz	x28, x8, #2, #32
	add	x8, x0, #4
	str	x8, [sp, #40]                   ; 8-byte Folded Spill
	add	x24, x4, x28
	add	x23, x24, x28
	add	x1, x1, #4
	mov	x0, x4
	mov	x2, x28
	bl	_memcpy
	add	x26, x27, #4
	mov	x0, x24
	mov	x1, x26
	mov	x2, x28
	bl	_memcpy
	mov	x0, x23
	mov	w1, #0
	mov	x2, x28
	bl	_memset
	ldr	w8, [x27]
	mov	x27, x20
	sub	w8, w8, w8, asr #5
	lsl	w8, w8, #1
	tbnz	w8, #31, LBB0_5
; %bb.1:
	add	w28, w8, #30
	mov	w21, #1
LBB0_2:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_3 Depth 2
	mov	x20, x23
	mov	w23, #0
	mov	x19, x27
	ldr	w22, [x27]
LBB0_3:                                 ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	lsr	w8, w22, w23
	and	w27, w8, #0x1
	bl	_NOT
	mov	x0, x27
	bl	_NOT
	add	w23, w23, #1
	cmp	w23, #31
	b.ne	LBB0_3
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x27, x19
	mov	x0, x19
	mov	x1, x24
	mov	x2, x25
	mov	w3, #1
	mov	w4, #0
	mov	w5, #0
	mov	w6, #1
	bl	_co_reduce
	ubfiz	w8, w0, #1, #1
	sub	w3, w21, w8
	and	w8, w0, #0x2
	sub	w6, w21, w8
	ldr	w8, [sp, #36]                   ; 4-byte Folded Reload
	str	w8, [sp]
	ldr	x0, [sp, #40]                   ; 8-byte Folded Reload
	mov	x23, x20
	mov	x1, x20
	mov	x2, x25
	mov	w4, #0
	mov	w5, #0
	mov	x7, x26
	bl	_co_reduce_mod
	sub	w8, w28, #30
	cmp	w28, #59
	mov	x28, x8
	b.gt	LBB0_2
LBB0_5:
	ldr	w8, [x27]
	ldr	w9, [x24]
	orr	w8, w9, w8
	eor	w0, w8, #0x1
	ldr	w8, [x23]
	ldr	x10, [sp, #40]                  ; 8-byte Folded Reload
	ldr	w9, [x10]
	orr	w8, w9, w8
	str	w8, [x10]
	ldr	x8, [sp, #24]                   ; 8-byte Folded Reload
	cmp	w8, #64
	b.lo	LBB0_16
; %bb.6:
	mov	w8, #2
	cmp	x25, #2
	csel	x8, x25, x8, hi
	sub	x9, x8, #1
	cmp	x9, #16
	b.hs	LBB0_8
; %bb.7:
	mov	w10, #1
	ldr	x1, [sp, #16]                   ; 8-byte Folded Reload
	b	LBB0_14
LBB0_8:
	ldr	x1, [sp, #16]                   ; 8-byte Folded Reload
	add	x10, x1, #8
	lsl	x11, x8, #2
	add	x12, x11, x1
	add	x13, x12, #4
	add	x12, x27, x25, lsl #3
	add	x14, x12, #4
	add	x12, x8, x25, lsl #1
	add	x15, x27, x12, lsl #2
	add	x12, x27, x25, lsl #2
	add	x12, x12, #4
	add	x16, x8, x25
	add	x16, x27, x16, lsl #2
	add	x17, x27, #4
	cmp	x10, x16
	ccmp	x12, x13, #2, lo
	cset	w12, lo
	add	x11, x27, x11
	cmp	x10, x11
	ccmp	x17, x13, #2, lo
	cset	w11, lo
	cmp	x14, x13
	ccmp	x10, x15, #2, lo
	mov	w10, #1
	b.lo	LBB0_14
; %bb.9:
	tbnz	w12, #0, LBB0_14
; %bb.10:
	tbnz	w11, #0, LBB0_14
; %bb.11:
	mov	x12, #0
	and	x11, x9, #0xfffffffffffffff0
	orr	x10, x11, #0x1
	movi.2d	v0, #0000000000000000
	movi.2d	v1, #0000000000000000
	mov.s	v1[0], w0
	add	x13, x1, #56
	mov	x14, x11
	movi.2d	v2, #0000000000000000
	movi.2d	v3, #0000000000000000
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	add	x15, x27, x12
	ldur	q4, [x15, #4]
	ldur	q5, [x15, #20]
	ldur	q6, [x15, #36]
	ldur	q7, [x15, #52]
	add	x15, x24, x12
	ldur	q16, [x15, #4]
	ldur	q17, [x15, #20]
	ldur	q18, [x15, #36]
	ldur	q19, [x15, #52]
	orr.16b	v1, v4, v1
	orr.16b	v0, v5, v0
	orr.16b	v2, v6, v2
	orr.16b	v3, v7, v3
	orr.16b	v1, v1, v16
	orr.16b	v0, v0, v17
	orr.16b	v2, v2, v18
	orr.16b	v3, v3, v19
	add	x15, x23, x12
	ldur	q4, [x15, #4]
	ldur	q5, [x15, #20]
	ldur	q6, [x15, #36]
	ldur	q7, [x15, #52]
	add	x15, x13, x12
	ldp	q16, q17, [x15, #-48]
	ldp	q18, q19, [x15, #-16]
	orr.16b	v4, v16, v4
	orr.16b	v5, v17, v5
	orr.16b	v6, v18, v6
	orr.16b	v7, v19, v7
	stp	q4, q5, [x15, #-48]
	stp	q6, q7, [x15, #-16]
	add	x12, x12, #64
	subs	x14, x14, #16
	b.ne	LBB0_12
; %bb.13:
	orr.16b	v0, v0, v1
	orr.16b	v0, v2, v0
	orr.16b	v0, v3, v0
	ext.16b	v1, v0, v0, #8
	orr.8b	v0, v0, v1
	fmov	w12, s0
	mov.s	w13, v0[1]
	orr	w0, w12, w13
	cmp	x9, x11
	b.eq	LBB0_16
LBB0_14:
	sub	x8, x8, x10
	lsl	x11, x10, #2
	add	x9, x11, x1
	add	x9, x9, #4
	lsl	x10, x25, #3
	add	x11, x27, x11
LBB0_15:                                ; =>This Inner Loop Header: Depth=1
	ldr	w12, [x11]
	ldr	w13, [x11, x25, lsl #2]
	orr	w12, w12, w0
	orr	w0, w12, w13
	ldr	w12, [x11, x10]
	ldr	w13, [x9]
	orr	w12, w13, w12
	str	w12, [x9], #4
	add	x11, x11, #4
	subs	x8, x8, #1
	b.ne	LBB0_15
LBB0_16:
	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	_EQ0
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
