	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function quorem
_quorem:                                ## @quorem
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movslq	(%rdx), %rbx
	xorl	%r13d, %r13d
	cmpl	%ebx, (%rsi)
	jl	LBB0_18
## %bb.1:
	movq	%rdx, %r15
	movq	8(%rdx), %r10
	leaq	-1(%rbx), %r12
	leaq	(%r10,%rbx,4), %r14
	addq	$-4, %r14
	movq	8(%rsi), %r9
	movl	-4(%r9,%rbx,4), %eax
	movl	-4(%r10,%rbx,4), %r8d
	incl	%r8d
	cltd
	idivl	%r8d
	movl	%eax, %r13d
	testl	%eax, %eax
	je	LBB0_9
## %bb.2:
	leaq	(%r9,%rbx,4), %r8
	addq	$-4, %r8
	xorl	%edx, %edx
	xorl	%ebx, %ebx
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r10,%rdx), %eax
	imull	%r13d, %eax
	addl	%ecx, %eax
	movl	%eax, %ecx
	sarl	$16, %ecx
	movzwl	%ax, %eax
	addl	(%r9,%rdx), %ebx
	subl	%eax, %ebx
	movzwl	%bx, %eax
	shll	$15, %ebx
	sarl	$31, %ebx
	movl	%eax, (%r9,%rdx)
	leaq	(%r10,%rdx), %rax
	addq	$4, %rax
	addq	$4, %rdx
	cmpq	%r14, %rax
	jbe	LBB0_3
## %bb.4:
	cmpl	$0, (%r8)
	jne	LBB0_9
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_5 Depth=1
	cmpl	$0, (%r8)
	jne	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	decl	%r12d
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	addq	$-4, %r8
	cmpq	%r9, %r8
	ja	LBB0_6
LBB0_8:
	movl	%r12d, (%rsi)
LBB0_9:
	movq	%r15, %rdx
	movq	%rsi, %rbx
	callq	_cmp
	testq	%rax, %rax
	js	LBB0_18
## %bb.10:
	movq	%rbx, %r8
	movq	8(%rbx), %rax
	movq	8(%r15), %rcx
	xorl	%edx, %edx
	xorl	%esi, %esi
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	addl	(%rcx,%rdx), %edi
	movzwl	%di, %ebx
	sarl	$16, %edi
	addl	(%rax,%rdx), %esi
	subl	%ebx, %esi
	movzwl	%si, %ebx
	shll	$15, %esi
	sarl	$31, %esi
	movl	%ebx, (%rax,%rdx)
	leaq	(%rcx,%rdx), %rbx
	addq	$4, %rbx
	addq	$4, %rdx
	cmpq	%r14, %rbx
	jbe	LBB0_11
## %bb.12:
	incl	%r13d
	movslq	%r12d, %rcx
	cmpl	$0, (%rax,%rcx,4)
	jne	LBB0_18
## %bb.13:
	leaq	(%rax,%rcx,4), %rcx
	.p2align	4, 0x90
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	addq	$-4, %rcx
	cmpq	%rax, %rcx
	jbe	LBB0_17
## %bb.15:                              ##   in Loop: Header=BB0_14 Depth=1
	cmpl	$0, (%rcx)
	jne	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_14 Depth=1
	decl	%r12d
	jmp	LBB0_14
LBB0_17:
	movl	%r12d, (%r8)
LBB0_18:
	movl	%r13d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FFFFFFFF,4,2                   ## @FFFFFFFF
	.no_dead_strip	_quorem
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function quorem
_quorem:                                ; @quorem
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	ldr	w8, [x2]
	ldr	w9, [x1]
	cmp	w9, w8
	b.ge	LBB0_2
; %bb.1:
	mov	w20, #0
	b	LBB0_18
LBB0_2:
	mov	x21, x2
	mov	x19, x1
	ldr	x9, [x2, #8]
	sub	w22, w8, #1
	sbfiz	x10, x22, #2, #32
	add	x23, x9, x10
	ldr	x8, [x1, #8]
	add	x10, x8, x10
	ldr	w11, [x10]
	ldr	w12, [x23]
	add	w12, w12, #1
	sdiv	w20, w11, w12
	cbz	w20, LBB0_10
; %bb.3:
	mov	x11, #0
	mov	w12, #0
	mov	w13, #0
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w14, [x9, x11]
	madd	w14, w14, w20, w13
	asr	w13, w14, #16
	ldr	w15, [x8, x11]
	add	w12, w15, w12
	sub	w14, w12, w14, uxth
	sbfx	w12, w14, #16, #1
	and	w14, w14, #0xffff
	str	w14, [x8, x11]
	add	x11, x11, #4
	add	x14, x9, x11
	cmp	x14, x23
	b.ls	LBB0_4
; %bb.5:
	ldr	w9, [x10]
	cbnz	w9, LBB0_10
; %bb.6:
	sub	x9, x10, #4
	cmp	x9, x8
	b.ls	LBB0_9
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w10, [x9]
	cbnz	w10, LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	sub	w22, w22, #1
	sub	x9, x9, #4
	cmp	x9, x8
	b.hi	LBB0_7
LBB0_9:
	str	w22, [x19]
LBB0_10:
	mov	x1, x19
	mov	x2, x21
	bl	_cmp
	tbnz	x0, #63, LBB0_18
; %bb.11:
	mov	x9, #0
	mov	w11, #0
	mov	w10, #0
	ldr	x8, [x19, #8]
	ldr	x12, [x21, #8]
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	ldr	w13, [x12, x9]
	add	w13, w13, w10
	asr	w10, w13, #16
	ldr	w14, [x8, x9]
	add	w11, w14, w11
	sub	w13, w11, w13, uxth
	sbfx	w11, w13, #16, #1
	and	w13, w13, #0xffff
	str	w13, [x8, x9]
	add	x9, x9, #4
	add	x13, x12, x9
	cmp	x13, x23
	b.ls	LBB0_12
; %bb.13:
	add	w20, w20, #1
	add	x9, x8, w22, sxtw #2
	ldr	w10, [x9]
	cbnz	w10, LBB0_18
	b	LBB0_16
LBB0_14:                                ;   in Loop: Header=BB0_16 Depth=1
	ldr	w10, [x9]
	cbnz	w10, LBB0_17
; %bb.15:                               ;   in Loop: Header=BB0_16 Depth=1
	sub	w22, w22, #1
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	sub	x9, x9, #4
	cmp	x9, x8
	b.hi	LBB0_14
LBB0_17:
	str	w22, [x19]
LBB0_18:
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.comm	_FFFFFFFF,4,2                   ; @FFFFFFFF
	.no_dead_strip	_quorem
.subsections_via_symbols
