	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function setupQuad
_setupQuad:                             ## @setupQuad
	.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
	movq	%rsi, %r15
	movq	%rdi, %r12
	movq	_cin@GOTPCREL(%rip), %rdx
	movq	_currentHandle@GOTPCREL(%rip), %rdi
	movq	(%rdi), %r10
	shlq	$4, %r10
	movq	_cinTable@GOTPCREL(%rip), %r13
	movq	(%r13), %r11
	movl	(%r11,%r10), %r9d
	cmpq	%r12, (%rdx)
	jne	LBB0_4
## %bb.1:
	cmpq	%r15, 8(%rdx)
	jne	LBB0_4
## %bb.2:
	cmpl	16(%rdx), %r9d
	jne	LBB0_4
## %bb.3:
	movl	4(%r11,%r10), %esi
	cmpl	20(%rdx), %esi
	je	LBB0_12
LBB0_4:
	movq	%r12, (%rdx)
	movq	%r15, 8(%rdx)
	movl	%r9d, 16(%rdx)
	movl	4(%r11,%r10), %esi
	movl	%esi, 20(%rdx)
	imull	%r9d, %esi
	leal	15(%rsi), %edx
	leal	63(%rsi), %ebx
	testl	%esi, %esi
	cmovnsl	%esi, %edx
	cmovnsl	%esi, %ebx
	sarl	$4, %edx
	sarl	$6, %ebx
	addl	%edx, %ebx
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	movq	$0, 8(%r11,%r10)
	movq	(%rdi), %rdi
	movq	%rdi, %rdx
	shlq	$4, %rdx
	cmpl	$0, (%r11,%rdx)
	jle	LBB0_10
## %bb.5:
	xorl	%r14d, %r14d
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_6 Depth=1
	addq	$16, %r14
	movq	%rdi, %rdx
	shlq	$4, %rdx
	movslq	(%r11,%rdx), %rdx
	cmpq	%rdx, %r14
	jge	LBB0_10
LBB0_6:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_8 Depth 2
	movq	%rdi, %rdx
	shlq	$4, %rdx
	cmpl	$0, 4(%r11,%rdx)
	jle	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_8:                                 ##   Parent Loop BB0_6 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movl	$16, %edx
	movq	%r12, %rcx
	movq	%r15, %r8
	callq	_recurseQuad
	movq	_currentHandle@GOTPCREL(%rip), %rdx
	addq	$16, %rbx
	movq	(%r13), %r11
	movq	(%rdx), %rdi
	movq	%rdi, %rdx
	shlq	$4, %rdx
	movslq	4(%r11,%rdx), %rdx
	cmpq	%rdx, %rbx
	jl	LBB0_8
	jmp	LBB0_9
LBB0_10:
	movslq	-44(%rbp), %rax                 ## 4-byte Folded Reload
	movl	$64, %ecx
	movq	_cin@GOTPCREL(%rip), %rsi
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movq	24(%rsi), %rdx
	movq	(%rdx), %rdx
	movq	$0, (%rdx,%rax,8)
	movq	24(%rsi), %rdx
	movq	8(%rdx), %rdx
	movq	$0, (%rdx,%rax,8)
	movq	24(%rsi), %rdx
	movq	(%rdx), %rdx
	movq	$0, 8(%rdx,%rax,8)
	movq	24(%rsi), %rdx
	movq	8(%rdx), %rdx
	movq	$0, 8(%rdx,%rax,8)
	addq	$2, %rax
	addq	$-2, %rcx
	jne	LBB0_11
LBB0_12:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_cin,32,3                       ## @cin
	.comm	_cinTable,8,3                   ## @cinTable
	.comm	_currentHandle,8,3              ## @currentHandle
	.no_dead_strip	_setupQuad
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function setupQuad
_setupQuad:                             ; @setupQuad
	.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
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x23, _cin@GOTPAGE
Lloh1:
	ldr	x23, [x23, _cin@GOTPAGEOFF]
Lloh2:
	adrp	x24, _cinTable@GOTPAGE
Lloh3:
	ldr	x24, [x24, _cinTable@GOTPAGEOFF]
	ldp	x11, x12, [x23]
	ldr	x8, [x24]
Lloh4:
	adrp	x25, _currentHandle@GOTPAGE
Lloh5:
	ldr	x25, [x25, _currentHandle@GOTPAGEOFF]
	ldr	x10, [x25]
	lsl	x9, x10, #4
	ldr	w9, [x8, x9]
	ldr	w13, [x23, #16]
	cmp	x11, x0
	ccmp	x12, x1, #0, eq
	ccmp	w9, w13, #0, eq
	b.ne	LBB0_2
; %bb.1:
	add	x11, x8, x10, lsl #4
	ldr	w11, [x11, #4]
	ldr	w12, [x23, #20]
	cmp	w11, w12
	b.eq	LBB0_10
LBB0_2:
	stp	x20, x19, [x23]
	add	x10, x8, x10, lsl #4
	ldr	w11, [x10, #4]
	stp	w9, w11, [x23, #16]
	mul	w9, w11, w9
	add	w11, w9, #15
	cmp	w9, #0
	csel	w11, w11, w9, lt
	add	w12, w9, #63
	csel	w9, w12, w9, lt
	asr	w9, w9, #6
	add	w9, w9, w11, asr #4
	sxtw	x26, w9
	str	xzr, [x10, #8]
	ldr	x9, [x25]
	lsl	x10, x9, #4
	ldr	w10, [x8, x10]
	cmp	w10, #1
	b.lt	LBB0_8
; %bb.3:
	mov	x21, #0
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x21, x21, #16
	lsl	x10, x9, #4
	ldrsw	x10, [x8, x10]
	cmp	x21, x10
	b.ge	LBB0_8
LBB0_5:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
	add	x10, x8, x9, lsl #4
	ldr	w10, [x10, #4]
	cmp	w10, #1
	b.lt	LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x22, #0
LBB0_7:                                 ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x22
	mov	x1, x21
	mov	w2, #16
	mov	x3, x20
	mov	x4, x19
	bl	_recurseQuad
	add	x22, x22, #16
	ldr	x8, [x24]
	ldr	x9, [x25]
	add	x10, x8, x9, lsl #4
	ldrsw	x10, [x10, #4]
	cmp	x22, x10
	b.lt	LBB0_7
	b	LBB0_4
LBB0_8:
	mov	x8, #0
	lsl	x9, x26, #3
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x23, #24]
	ldr	x10, [x10]
	add	x10, x10, x9
	str	xzr, [x10, x8]
	ldr	x10, [x23, #24]
	ldr	x10, [x10, #8]
	add	x10, x10, x9
	str	xzr, [x10, x8]
	add	x8, x8, #8
	cmp	x8, #512
	b.ne	LBB0_9
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
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_cin,32,3                       ; @cin
	.comm	_cinTable,8,3                   ; @cinTable
	.comm	_currentHandle,8,3              ; @currentHandle
	.no_dead_strip	_setupQuad
.subsections_via_symbols
