	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function _gdContributionsCalc
LCPI0_0:
	.quad	0x3ff0000000000000              ## double 1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
__gdContributionsCalc:                  ## @_gdContributionsCalc
	.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	$120, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
                                        ## kill: def $esi killed $esi def $rsi
	movq	%rsi, -72(%rbp)                 ## 8-byte Spill
	movl	%edi, %r14d
	movq	_DEFAULT_BOX_RADIUS@GOTPCREL(%rip), %rax
	movsd	(%rax), %xmm1                   ## xmm1 = mem[0],zero
	movsd	%xmm0, -136(%rbp)               ## 8-byte Spill
	minsd	LCPI0_0(%rip), %xmm0
	movsd	%xmm0, -48(%rbp)                ## 8-byte Spill
	divsd	%xmm0, %xmm1
	movsd	%xmm1, -88(%rbp)                ## 8-byte Spill
	movapd	%xmm1, %xmm0
	callq	_ceil
	leal	(%rax,%rax), %esi
	incl	%esi
	movl	%r14d, %edi
	movl	%esi, -60(%rbp)                 ## 4-byte Spill
	callq	__gdContributionsAlloc
	testq	%rax, %rax
	je	LBB0_28
## %bb.1:
	movq	%rax, %r8
	testl	%r14d, %r14d
	je	LBB0_29
## %bb.2:
	movq	%r15, -112(%rbp)                ## 8-byte Spill
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	leal	-1(%rax), %r15d
	movl	%r14d, %r14d
	xorl	%ebx, %ebx
	movl	%r15d, -52(%rbp)                ## 4-byte Spill
	movq	%r14, -104(%rbp)                ## 8-byte Spill
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_4 Depth=1
	incq	%rbx
	cmpq	%r14, %rbx
	je	LBB0_29
LBB0_4:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_12 Depth 2
                                        ##     Child Loop BB0_18 Depth 2
                                        ##     Child Loop BB0_24 Depth 2
	movq	%r8, %r12
	movl	%ebx, %eax
	xorps	%xmm0, %xmm0
	cvtsi2sd	%rax, %xmm0
	divsd	-136(%rbp), %xmm0               ## 8-byte Folded Reload
	movsd	%xmm0, -96(%rbp)                ## 8-byte Spill
	subsd	-88(%rbp), %xmm0                ## 8-byte Folded Reload
	callq	_floor
	xorl	%edi, %edi
	movl	%eax, %esi
	callq	_MAX
	movl	%eax, %r13d
	movsd	-88(%rbp), %xmm0                ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	addsd	-96(%rbp), %xmm0                ## 8-byte Folded Reload
	callq	_ceil
	movl	%eax, %edi
	movl	%r15d, %esi
	callq	_MIN
                                        ## kill: def $eax killed $eax def $rax
	movl	%eax, %ecx
	subl	%r13d, %ecx
	cmpl	-60(%rbp), %ecx                 ## 4-byte Folded Reload
	jge	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movsd	-48(%rbp), %xmm2                ## 8-byte Reload
                                        ## xmm2 = mem[0],zero
	movq	%r12, %r8
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	cmpl	-72(%rbp), %r13d                ## 4-byte Folded Reload
	movq	%r12, %r8
	jge	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	incl	%r13d
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=1
	decl	%eax
LBB0_9:                                 ##   in Loop: Header=BB0_4 Depth=1
	movsd	-48(%rbp), %xmm2                ## 8-byte Reload
                                        ## xmm2 = mem[0],zero
LBB0_10:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	(%r8), %rcx
	movq	%rbx, %rsi
	shlq	$4, %rsi
	movl	%r13d, (%rcx,%rsi)
	movl	%eax, 4(%rcx,%rsi)
	cmpl	%r13d, %eax
	jl	LBB0_3
## %bb.11:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	%rbx, -128(%rbp)                ## 8-byte Spill
	movl	%r13d, %r12d
	movslq	%r12d, %rcx
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	leal	1(%rax), %ecx
	movl	%ecx, -56(%rbp)                 ## 4-byte Spill
	movq	%rax, -120(%rbp)                ## 8-byte Spill
                                        ## kill: def $eax killed $eax killed $rax def $rax
	notl	%eax
	addq	%r12, %rax
	movq	%rax, -144(%rbp)                ## 8-byte Spill
	xorps	%xmm3, %xmm3
	xorl	%r15d, %r15d
	movq	%r8, %rbx
	movq	-112(%rbp), %r13                ## 8-byte Reload
	.p2align	4, 0x90
LBB0_12:                                ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movaps	%xmm3, -160(%rbp)               ## 16-byte Spill
	leal	(%r12,%r15), %eax
	xorps	%xmm1, %xmm1
	cvtsi2sd	%eax, %xmm1
	movsd	-96(%rbp), %xmm0                ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	subsd	%xmm1, %xmm0
	mulsd	%xmm2, %xmm0
	movq	%rsi, %r14
	callq	*%r13
	movq	%r14, %rsi
	movapd	-160(%rbp), %xmm3               ## 16-byte Reload
	movsd	-48(%rbp), %xmm2                ## 8-byte Reload
                                        ## xmm2 = mem[0],zero
	mulsd	%xmm2, %xmm0
	movq	(%rbx), %rax
	movq	8(%rax,%r14), %rcx
	movsd	%xmm0, (%rcx,%r15,8)
	addsd	%xmm0, %xmm3
	incq	%r15
	movl	%r15d, %ecx
	addl	-144(%rbp), %ecx                ## 4-byte Folded Reload
	jne	LBB0_12
## %bb.13:                              ##   in Loop: Header=BB0_4 Depth=1
	xorpd	%xmm0, %xmm0
	ucomisd	%xmm3, %xmm0
	ja	LBB0_27
## %bb.14:                              ##   in Loop: Header=BB0_4 Depth=1
	ucomisd	%xmm0, %xmm3
	movq	%rbx, %r8
	movl	-52(%rbp), %r15d                ## 4-byte Reload
	movq	-104(%rbp), %r14                ## 8-byte Reload
	movq	-128(%rbp), %rbx                ## 8-byte Reload
	movq	-120(%rbp), %r10                ## 8-byte Reload
	jbe	LBB0_3
## %bb.15:                              ##   in Loop: Header=BB0_4 Depth=1
	addq	%rsi, %rax
	addq	$8, %rax
	movq	(%rax), %rax
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	movq	%rsi, %rcx
	subl	%r12d, %r10d
	je	LBB0_23
## %bb.16:                              ##   in Loop: Header=BB0_4 Depth=1
	incq	%r10
	movq	%r10, %rcx
	andq	$-2, %rcx
	movddup	%xmm3, %xmm0                    ## xmm0 = xmm3[0,0]
	leaq	-2(%rcx), %rsi
	movq	%rsi, %r9
	shrq	%r9
	incq	%r9
	testq	%rsi, %rsi
	je	LBB0_25
## %bb.17:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	%r9, %rdi
	andq	$-2, %rdi
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_18:                                ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movupd	(%rax,%rsi,8), %xmm1
	movupd	16(%rax,%rsi,8), %xmm2
	divpd	%xmm0, %xmm1
	movupd	%xmm1, (%rax,%rsi,8)
	divpd	%xmm0, %xmm2
	movupd	%xmm2, 16(%rax,%rsi,8)
	addq	$4, %rsi
	addq	$-2, %rdi
	jne	LBB0_18
## %bb.19:                              ##   in Loop: Header=BB0_4 Depth=1
	testb	$1, %r9b
	je	LBB0_21
LBB0_20:                                ##   in Loop: Header=BB0_4 Depth=1
	movupd	(%rax,%rsi,8), %xmm1
	divpd	%xmm0, %xmm1
	movupd	%xmm1, (%rax,%rsi,8)
LBB0_21:                                ##   in Loop: Header=BB0_4 Depth=1
	cmpq	%rcx, %r10
	je	LBB0_3
## %bb.22:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	addq	%rsi, %rcx
LBB0_23:                                ##   in Loop: Header=BB0_4 Depth=1
	shlq	$3, %rsi
	subq	%rsi, %rax
	movl	-56(%rbp), %edx                 ## 4-byte Reload
	.p2align	4, 0x90
LBB0_24:                                ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movsd	(%rax,%rcx,8), %xmm0            ## xmm0 = mem[0],zero
	divsd	%xmm3, %xmm0
	movsd	%xmm0, (%rax,%rcx,8)
	incq	%rcx
	cmpl	%ecx, %edx
	jne	LBB0_24
	jmp	LBB0_3
LBB0_25:                                ##   in Loop: Header=BB0_4 Depth=1
	xorl	%esi, %esi
	testb	$1, %r9b
	jne	LBB0_20
	jmp	LBB0_21
LBB0_27:
	movq	%rbx, %rdi
	callq	__gdContributionsFree
LBB0_28:
	xorl	%r8d, %r8d
LBB0_29:
	movq	%r8, %rax
	addq	$120, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DEFAULT_BOX_RADIUS,8,3         ## @DEFAULT_BOX_RADIUS
	.no_dead_strip	__gdContributionsCalc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function _gdContributionsCalc
__gdContributionsCalc:                  ; @_gdContributionsCalc
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #176
	.cfi_def_cfa_offset 176
	stp	d11, d10, [sp, #48]             ; 16-byte Folded Spill
	stp	d9, d8, [sp, #64]               ; 16-byte Folded Spill
	stp	x28, x27, [sp, #80]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #96]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #112]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #128]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #144]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #160]            ; 16-byte Folded Spill
	add	x29, sp, #160
	.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
	.cfi_offset b8, -104
	.cfi_offset b9, -112
	.cfi_offset b10, -120
	.cfi_offset b11, -128
	mov	x19, x2
	fmov	d8, d0
	mov	x22, x1
	mov	x24, x0
Lloh0:
	adrp	x8, _DEFAULT_BOX_RADIUS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DEFAULT_BOX_RADIUS@GOTPAGEOFF]
Lloh2:
	ldr	d0, [x8]
	fmov	d1, #1.00000000
	fminnm	d10, d8, d1
	fdiv	d9, d0, d10
	fmov	d0, d9
	bl	_ceil
	mov	w23, #1
	bfi	w23, w0, #1, #31
	mov	x0, x24
	mov	x1, x23
	bl	__gdContributionsAlloc
	mov	x21, x0
	cbz	x0, LBB0_16
; %bb.1:
	cbz	w24, LBB0_16
; %bb.2:
	mov	x25, #0
	sub	w27, w22, #1
	mov	w28, w24
	str	w27, [sp, #12]                  ; 4-byte Folded Spill
	str	x28, [sp]                       ; 8-byte Folded Spill
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x25, x25, #1
	cmp	x25, x28
	b.eq	LBB0_16
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_6 Depth 2
                                        ;     Child Loop BB0_11 Depth 2
                                        ;     Child Loop BB0_14 Depth 2
	ucvtf	d0, w25
	fdiv	d11, d0, d8
	fsub	d0, d11, d9
	bl	_floor
	mov	x1, x0
	mov	w0, #0
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_MAX
	mov	x24, x0
	fadd	d0, d9, d11
	bl	_ceil
                                        ; kill: def $w0 killed $w0 killed $x0
	mov	x1, x27
	bl	_MIN
	sub	w8, w0, #1
	cmp	w24, w22
	csel	w8, w8, w0, ge
	cinc	w9, w24, lt
	sub	w10, w0, w24
	cmp	w10, w23
	csel	w26, w24, w9, lt
	csel	w24, w0, w8, lt
	ldr	x8, [x21]
	add	x8, x8, x25, lsl #4
	stp	w26, w24, [x8]
	subs	w20, w24, w26
	b.lt	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x27, x23
	mov	x28, x22
	mov	x23, #0
	mov	x8, x26
	sxtw	x8, w8
	stp	x8, x8, [sp, #16]               ; 16-byte Folded Spill
	mvn	w8, w24
	add	x22, x26, x8
	movi	d5, #0000000000000000
LBB0_6:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	str	q5, [sp, #32]                   ; 16-byte Folded Spill
	add	w8, w26, w23
	scvtf	d0, w8
	fsub	d0, d11, d0
	fmul	d0, d10, d0
	blr	x19
	ldr	q5, [sp, #32]                   ; 16-byte Folded Reload
	ldr	x8, [x21]
	add	x8, x8, x25, lsl #4
	ldr	x9, [x8, #8]!
	fmul	d0, d10, d0
	str	d0, [x9, x23, lsl #3]
	fadd	d5, d5, d0
	add	x23, x23, #1
	cmn	w22, w23
	b.ne	LBB0_6
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	fcmp	d5, #0.0
	b.mi	LBB0_15
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x22, x28
	mov	x23, x27
	ldr	w27, [sp, #12]                  ; 4-byte Folded Reload
	ldr	x28, [sp]                       ; 8-byte Folded Reload
	b.le	LBB0_3
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x8]
	cmp	w20, #7
	b.lo	LBB0_13
; %bb.10:                               ;   in Loop: Header=BB0_4 Depth=1
	add	x9, x20, #1
	and	x10, x9, #0x1fffffff8
	ldr	x11, [sp, #24]                  ; 8-byte Folded Reload
	add	x11, x10, x11
	str	x11, [sp, #16]                  ; 8-byte Folded Spill
	dup.2d	v0, v5[0]
	add	x11, x8, #32
	mov	x12, x10
LBB0_11:                                ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldp	q1, q2, [x11, #-32]
	ldp	q3, q4, [x11]
	fdiv.2d	v1, v1, v0
	fdiv.2d	v2, v2, v0
	fdiv.2d	v3, v3, v0
	fdiv.2d	v4, v4, v0
	stp	q1, q2, [x11, #-32]
	stp	q3, q4, [x11], #64
	subs	x12, x12, #8
	b.ne	LBB0_11
; %bb.12:                               ;   in Loop: Header=BB0_4 Depth=1
	cmp	x9, x10
	b.eq	LBB0_3
LBB0_13:                                ;   in Loop: Header=BB0_4 Depth=1
	ldp	x10, x9, [sp, #16]              ; 16-byte Folded Reload
	sub	x9, x10, x9
	add	x8, x8, x9, lsl #3
	sub	w9, w24, w10
	add	w9, w9, #1
LBB0_14:                                ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	d0, [x8]
	fdiv	d0, d0, d5
	str	d0, [x8], #8
	subs	w9, w9, #1
	b.ne	LBB0_14
	b	LBB0_3
LBB0_15:
	mov	x0, x21
	bl	__gdContributionsFree
	mov	x21, #0
LBB0_16:
	mov	x0, x21
	ldp	x29, x30, [sp, #160]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #144]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #128]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #112]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #96]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #80]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #64]               ; 16-byte Folded Reload
	ldp	d11, d10, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #176
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_DEFAULT_BOX_RADIUS,8,3         ; @DEFAULT_BOX_RADIUS
	.no_dead_strip	__gdContributionsCalc
.subsections_via_symbols
