	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function juggle_block
_juggle_block:                          ## @juggle_block
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	(%rdi), %ecx
	testl	%ecx, %ecx
	je	LBB0_15
## %bb.1:
	movl	$2048, %eax                     ## imm = 0x800
	shrl	%cl, %eax
	addl	$-2, %eax
	cmpl	$10, %ecx
	movl	$1, %edx
	cmovll	%eax, %edx
	movl	4(%rdi), %esi
	movq	8(%rdi), %r15
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_5 Depth 2
                                        ##     Child Loop BB0_9 Depth 2
                                        ##     Child Loop BB0_12 Depth 2
	cmpl	%esi, %edx
	movl	%esi, -48(%rbp)                 ## 4-byte Spill
	movl	%esi, %r13d
	cmovbl	%edx, %r13d
	leal	(%r13,%r13), %r14d
	movq	16(%rdi), %rcx
	movl	24(%rdi), %eax
	movl	%eax, %ebx
	shrl	$31, %ebx
	addl	%eax, %ebx
	movl	%ebx, %r12d
	sarl	%r12d
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movq	%rcx, %rdi
	movq	%r15, %rsi
	movl	%r12d, %edx
	movl	%r14d, %ecx
	callq	_juggle
	testl	%r14d, %r14d
	je	LBB0_10
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	leal	-1(%r14), %ecx
	movl	%r12d, %eax
	movq	%r15, %rdx
	cmpl	$3, %ecx
	jb	LBB0_7
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%r14d, %esi
	andl	$-4, %esi
	movq	%rax, %r8
	shlq	$4, %r8
	leaq	(,%rax,4), %rdi
	movq	%r15, %rcx
	.p2align	4, 0x90
LBB0_5:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%rcx, %rdx
	incl	(%rcx)
	incl	(%rcx,%rdi)
	addq	%rdi, %rcx
	incl	(%rdi,%rcx)
	addq	%rdi, %rcx
	incl	(%rdi,%rcx)
	addq	%rdi, %rcx
	addq	%rdi, %rcx
	addl	$-4, %esi
	jne	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	addq	%r8, %rdx
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	testb	$2, %r14b
	je	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	andl	$1, %r13d
	addl	%r13d, %r13d
	shlq	$2, %rax
	.p2align	4, 0x90
LBB0_9:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	incl	(%rdx)
	addq	%rax, %rdx
	decl	%r13d
	jne	LBB0_9
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$2, %r12d
	jb	LBB0_13
## %bb.11:                              ##   in Loop: Header=BB0_2 Depth=1
	andl	$-2, %ebx
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rax,%rbx,4), %r13
	movl	%r12d, %ebx
	.p2align	4, 0x90
LBB0_12:                                ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	shrl	%ebx
	addl	%r14d, %r14d
	movq	%r13, %rdi
	movq	%r15, %rsi
	movl	%ebx, %edx
	movl	%r14d, %ecx
	callq	_juggle
	movl	%r12d, %eax
	andl	$-2, %eax
	leaq	(%r13,%rax,4), %r13
	cmpl	$3, %r12d
	movl	%ebx, %r12d
	ja	LBB0_12
LBB0_13:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	subl	%edx, %esi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	jbe	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_2 Depth=1
	movb	(%rdi), %cl
	movl	%edx, %eax
	shll	%cl, %eax
	leaq	(%r15,%rax,4), %r15
	jmp	LBB0_2
LBB0_15:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_juggle_block
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function juggle_block
_juggle_block:                          ; @juggle_block
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	ldr	w8, [x0]
	cbz	w8, LBB0_10
; %bb.1:
	mov	x19, x0
	mov	w9, #2048
	lsr	w9, w9, w8
	sub	w9, w9, #2
	cmp	w8, #9
	csinc	w25, w9, wzr, le
	ldr	w26, [x0, #4]
	ldr	x20, [x0, #8]
LBB0_2:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_4 Depth 2
                                        ;     Child Loop BB0_7 Depth 2
	cmp	w25, w26
	csel	w8, w25, w26, lo
	lsl	w21, w8, #1
	ldr	x23, [x19, #16]
	ldr	w8, [x19, #24]
	cmp	w8, #0
	cinc	w24, w8, lt
	asr	w22, w24, #1
	mov	x0, x23
	mov	x1, x20
	mov	x2, x22
	mov	x3, x21
	bl	_juggle
	cbz	w21, LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	lsl	x8, x22, #2
	mov	x9, x21
	mov	x10, x20
LBB0_4:                                 ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w11, [x10]
	add	w11, w11, #1
	str	w11, [x10]
	add	x10, x10, x8
	subs	w9, w9, #1
	b.ne	LBB0_4
LBB0_5:                                 ;   in Loop: Header=BB0_2 Depth=1
	cmp	w22, #2
	b.lo	LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_2 Depth=1
	and	w8, w24, #0xfffffffe
	add	x23, x23, w8, uxtw #2
LBB0_7:                                 ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	lsr	w24, w22, #1
	lsl	w21, w21, #1
	mov	x0, x23
	mov	x1, x20
	mov	x2, x24
	mov	x3, x21
	bl	_juggle
	and	w8, w22, #0xfffffffe
	add	x23, x23, w8, uxtw #2
	cmp	w22, #3
	mov	x22, x24
	b.hi	LBB0_7
LBB0_8:                                 ;   in Loop: Header=BB0_2 Depth=1
	subs	w26, w26, w25
	b.ls	LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w8, [x19]
	lsl	w8, w25, w8
	add	x20, x20, w8, uxtw #2
	b	LBB0_2
LBB0_10:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_juggle_block
.subsections_via_symbols
