	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dist_nodes
_dist_nodes:                            ## @dist_nodes
	.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	%rdx, %r14
	movq	%rsi, %rbx
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	movq	(%rdi), %rdi
	testq	%rdi, %rdi
	je	LBB0_3
## %bb.1:
	movq	%rbx, -88(%rbp)
	movq	%r14, -96(%rbp)
	movq	_find_dist@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-104(%rbp), %rsi
	callq	_r_list_find
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	%rax, %rdi
	callq	_r_list_iter_get_data
	movl	(%rax), %eax
	jmp	LBB0_23
LBB0_3:
	movq	%rbx, %rdi
	callq	_get_anode
	movq	%rax, %rbx
	movq	%r14, %rdi
	callq	_get_anode
	movq	%rax, %rsi
	xorl	%eax, %eax
	testq	%rbx, %rbx
	je	LBB0_23
## %bb.4:
	testq	%rsi, %rsi
	je	LBB0_23
## %bb.5:
	movq	(%rbx), %rdx
	cmpq	(%rsi), %rdx
	jne	LBB0_23
## %bb.6:
	xorl	%eax, %eax
	cmpq	%rsi, %rbx
	jne	LBB0_9
## %bb.7:
	xorl	%eax, %eax
	cmpq	$0, 16(%rbx)
	jne	LBB0_9
## %bb.8:
	movq	_HORIZONTAL_NODE_SPACING@GOTPCREL(%rip), %rcx
	movl	(%rcx), %eax
LBB0_9:
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movslq	8(%rbx), %r15
	cmpl	8(%rsi), %r15d
	jge	LBB0_22
## %bb.10:
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	incq	%r15
	movq	-72(%rbp), %r13                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%r13), %rcx
	movq	(%rcx,%rdx,8), %rax
	movq	-8(%rax,%r15,8), %rbx
	movq	(%rax,%r15,8), %r14
	movq	%r14, %rdi
	callq	_get_anode
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_get_anode
	movq	%rax, %r12
	movq	(%r13), %rdi
	testq	%rdi, %rdi
	je	LBB0_14
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	%rbx, -88(%rbp)
	movq	%r14, -96(%rbp)
	movq	_find_dist@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-104(%rbp), %rsi
	callq	_r_list_find
	testq	%rax, %rax
	je	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	%rax, %rdi
	callq	_r_list_iter_get_data
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	addl	(%rax), %ecx
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	jmp	LBB0_21
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_11 Depth=1
	testq	%r12, %r12
	je	LBB0_15
## %bb.16:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	testq	%rsi, %rsi
	je	LBB0_15
## %bb.17:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	_HORIZONTAL_NODE_SPACING@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpq	$0, 16(%r12)
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	je	LBB0_20
## %bb.18:                              ##   in Loop: Header=BB0_11 Depth=1
	cmpq	$0, 16(%rsi)
	je	LBB0_20
## %bb.19:                              ##   in Loop: Header=BB0_11 Depth=1
	incl	-44(%rbp)                       ## 4-byte Folded Spill
	jmp	LBB0_21
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_11 Depth=1
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	jmp	LBB0_21
LBB0_20:                                ##   in Loop: Header=BB0_11 Depth=1
	movl	12(%r12), %ecx
	movl	%ecx, %edx
	shrl	$31, %edx
	addl	%ecx, %edx
	sarl	%edx
	movl	12(%rsi), %ecx
	movl	%ecx, %esi
	shrl	$31, %esi
	addl	%ecx, %esi
	sarl	%esi
	addl	-44(%rbp), %eax                 ## 4-byte Folded Reload
	addl	%edx, %eax
	addl	%esi, %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	.p2align	4, 0x90
LBB0_21:                                ##   in Loop: Header=BB0_11 Depth=1
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movslq	8(%rax), %rax
	cmpq	%rax, %r15
	jge	LBB0_22
## %bb.24:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	(%rdi), %rdx
	incq	%r15
	jmp	LBB0_11
LBB0_22:
	movl	-44(%rbp), %eax                 ## 4-byte Reload
LBB0_23:
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_find_dist,8,3                  ## @find_dist
	.comm	_HORIZONTAL_NODE_SPACING,4,2    ## @HORIZONTAL_NODE_SPACING
	.no_dead_strip	_dist_nodes
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dist_nodes
_dist_nodes:                            ; @dist_nodes
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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	x21, x2
	mov	x20, x1
	mov	x19, x0
	ldr	x0, [x0]
	cbz	x0, LBB0_3
; %bb.1:
	stp	x21, x20, [sp, #16]
Lloh0:
	adrp	x8, _find_dist@GOTPAGE
Lloh1:
	ldr	x8, [x8, _find_dist@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	add	x1, sp, #8
	bl	_r_list_find
	cbz	x0, LBB0_3
; %bb.2:
	bl	_r_list_iter_get_data
	ldr	w22, [x0]
	b	LBB0_22
LBB0_3:
	mov	x0, x20
	bl	_get_anode
	mov	x20, x0
	mov	x0, x21
	bl	_get_anode
	mov	w22, #0
	cbz	x20, LBB0_22
; %bb.4:
	mov	x21, x0
	cbz	x0, LBB0_22
; %bb.5:
	ldr	x8, [x20]
	ldr	x9, [x21]
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.6:
	cmp	x20, x21
	b.eq	LBB0_9
; %bb.7:
	mov	w22, #0
	b	LBB0_10
LBB0_8:
	mov	w22, #0
	b	LBB0_22
LBB0_9:
	ldr	x9, [x20, #16]
Lloh3:
	adrp	x10, _HORIZONTAL_NODE_SPACING@GOTPAGE
Lloh4:
	ldr	x10, [x10, _HORIZONTAL_NODE_SPACING@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	cmp	x9, #0
	csel	w22, w10, wzr, eq
LBB0_10:
	ldrsw	x27, [x20, #8]
	ldr	w9, [x21, #8]
	cmp	w27, w9
	b.ge	LBB0_22
; %bb.11:
Lloh6:
	adrp	x28, _find_dist@GOTPAGE
Lloh7:
	ldr	x28, [x28, _find_dist@GOTPAGEOFF]
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x19, #8]
	ldr	x8, [x9, x8, lsl #3]
	add	x8, x8, x27, lsl #3
	ldp	x25, x26, [x8]
	mov	x0, x26
	bl	_get_anode
	mov	x23, x0
	mov	x0, x25
	bl	_get_anode
	mov	x24, x0
	ldr	x0, [x19]
	cbz	x0, LBB0_15
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	stp	x26, x25, [sp, #16]
	ldr	w2, [x28]
	add	x1, sp, #8
	bl	_r_list_find
	cbz	x0, LBB0_15
; %bb.14:                               ;   in Loop: Header=BB0_12 Depth=1
	bl	_r_list_iter_get_data
	ldr	w8, [x0]
	add	w22, w8, w22
	b	LBB0_20
LBB0_15:                                ;   in Loop: Header=BB0_12 Depth=1
	cmp	x24, #0
	ccmp	x23, #0, #4, ne
	b.eq	LBB0_20
; %bb.16:                               ;   in Loop: Header=BB0_12 Depth=1
Lloh8:
	adrp	x8, _HORIZONTAL_NODE_SPACING@GOTPAGE
Lloh9:
	ldr	x8, [x8, _HORIZONTAL_NODE_SPACING@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	ldr	x9, [x24, #16]
	cbz	x9, LBB0_19
; %bb.17:                               ;   in Loop: Header=BB0_12 Depth=1
	ldr	x9, [x23, #16]
	cbz	x9, LBB0_19
; %bb.18:                               ;   in Loop: Header=BB0_12 Depth=1
	add	w22, w22, #1
	b	LBB0_20
LBB0_19:                                ;   in Loop: Header=BB0_12 Depth=1
	ldr	w9, [x24, #12]
	cmp	w9, #0
	cinc	w9, w9, lt
	ldr	w10, [x23, #12]
	cmp	w10, #0
	cinc	w10, w10, lt
	add	w8, w8, w22
	add	w8, w8, w9, asr #1
	add	w22, w8, w10, asr #1
LBB0_20:                                ;   in Loop: Header=BB0_12 Depth=1
	add	x8, x27, #1
	ldrsw	x9, [x21, #8]
	cmp	x8, x9
	b.ge	LBB0_22
; %bb.21:                               ;   in Loop: Header=BB0_12 Depth=1
	ldr	x8, [x20]
	add	x27, x27, #1
	b	LBB0_12
LBB0_22:
	mov	x0, x22
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_find_dist,8,3                  ; @find_dist
	.comm	_HORIZONTAL_NODE_SPACING,4,2    ; @HORIZONTAL_NODE_SPACING
	.no_dead_strip	_dist_nodes
.subsections_via_symbols
