	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function graph_update_columns
_graph_update_columns:                  ## @graph_update_columns
	.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
	movq	%rdi, %r12
	movq	40(%rdi), %rdi
	movl	48(%r12), %esi
	callq	_SWAP
	movl	4(%r12), %ebx
	movl	%ebx, (%r12)
	movl	$0, 4(%r12)
	addl	8(%r12), %ebx
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_graph_ensure_capacity
	leal	(%rbx,%rbx), %eax
	movl	%eax, 12(%r12)
	testl	%ebx, %ebx
	jle	LBB0_3
## %bb.1:
	movq	16(%r12), %rcx
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	$-1, (%rcx,%rdx,4)
	incq	%rdx
	movslq	12(%r12), %rax
	cmpq	%rax, %rdx
	jl	LBB0_2
LBB0_3:
	movl	$0, -44(%rbp)
	movl	(%r12), %ecx
	testl	%ecx, %ecx
	js	LBB0_4
## %bb.5:
	leaq	32(%r12), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	xorl	%r13d, %r13d
	movl	$1, %r14d
	leaq	-44(%rbp), %r15
	xorl	%ebx, %ebx
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	%r12, %rdi
	movq	%r15, %rdx
	callq	_graph_insert_into_new_columns
LBB0_19:                                ##   in Loop: Header=BB0_6 Depth=1
	leaq	1(%r13), %rax
	movslq	(%r12), %rcx
	cmpq	%rcx, %r13
	movq	%rax, %r13
	jge	LBB0_20
LBB0_6:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_12 Depth 2
	movl	%ecx, %eax
	cmpq	%rax, %r13
	jne	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	xorl	%ecx, %ecx
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	testl	%ebx, %ebx
	je	LBB0_9
	jmp	LBB0_20
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_6 Depth=1
	leaq	(,%r13,8), %rax
	addq	40(%r12), %rax
	movl	%r14d, %ecx
LBB0_9:                                 ##   in Loop: Header=BB0_6 Depth=1
	movl	%ecx, %r14d
	movq	(%rax), %rsi
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	cmpq	(%rax), %rsi
	jne	LBB0_18
## %bb.10:                              ##   in Loop: Header=BB0_6 Depth=1
	movl	-44(%rbp), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movl	%r13d, 24(%r12)
	movq	%r12, %rdi
	callq	_first_interesting_parent
	testq	%rax, %rax
	je	LBB0_16
## %bb.11:                              ##   in Loop: Header=BB0_6 Depth=1
	movq	%rax, %rbx
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_12 Depth=2
	movq	%r12, %rdi
	callq	_graph_increment_column_color
LBB0_15:                                ##   in Loop: Header=BB0_12 Depth=2
	movq	(%rbx), %rsi
	movq	%r12, %rdi
	movq	%r15, %rdx
	callq	_graph_insert_into_new_columns
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_next_interesting_parent
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_16
LBB0_12:                                ##   Parent Loop BB0_6 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpl	$1, 8(%r12)
	jg	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=2
	testl	%r14d, %r14d
	jne	LBB0_15
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_6 Depth=1
	movl	$1, %ebx
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	cmpl	%eax, -44(%rbp)
	jne	LBB0_19
## %bb.17:                              ##   in Loop: Header=BB0_6 Depth=1
	addl	$2, %eax
	movl	%eax, -44(%rbp)
	jmp	LBB0_19
LBB0_20:
	movl	12(%r12), %eax
	cmpl	$2, %eax
	jge	LBB0_22
	jmp	LBB0_25
LBB0_4:
	movl	$1, %r14d
	cmpl	$2, %eax
	jl	LBB0_25
LBB0_22:
	movq	16(%r12), %rcx
	movl	%eax, %eax
	.p2align	4, 0x90
LBB0_23:                                ## =>This Inner Loop Header: Depth=1
	leaq	-1(%rax), %rdx
	movl	%edx, %esi
	cmpl	$0, (%rcx,%rsi,4)
	jns	LBB0_25
## %bb.24:                              ##   in Loop: Header=BB0_23 Depth=1
	decl	%eax
	movl	%eax, 12(%r12)
	leaq	1(%rdx), %rsi
	movq	%rdx, %rax
	cmpq	$2, %rsi
	ja	LBB0_23
LBB0_25:
	movq	%r12, %rdi
	movl	%r14d, %esi
	callq	_graph_update_width
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_graph_update_columns
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function graph_update_columns
_graph_update_columns:                  ; @graph_update_columns
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x19, x0
	ldr	x0, [x0, #40]
	ldr	w1, [x19, #48]
	bl	_SWAP
	ldp	w8, w9, [x19, #4]
	stp	w8, wzr, [x19]
	add	w20, w9, w8
	mov	x0, x19
	mov	x1, x20
	bl	_graph_ensure_capacity
	lsl	w8, w20, #1
	str	w8, [x19, #12]
	cmp	w20, #1
	b.lt	LBB0_3
; %bb.1:
	mov	x9, #0
	ldr	x10, [x19, #16]
	mov	w11, #-1
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	str	w11, [x10, x9, lsl #2]
	add	x9, x9, #1
	ldrsw	x8, [x19, #12]
	cmp	x9, x8
	b.lt	LBB0_2
LBB0_3:
	str	wzr, [sp, #12]
	ldr	w9, [x19]
	tbnz	w9, #31, LBB0_21
; %bb.4:
	mov	x22, #0
	mov	w21, #0
	add	x23, x19, #32
	mov	w20, #1
	b	LBB0_7
LBB0_5:                                 ;   in Loop: Header=BB0_7 Depth=1
	mov	w21, #1
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	add	x8, x22, #1
	ldrsw	x9, [x19]
	cmp	x22, x9
	mov	x22, x8
	b.ge	LBB0_20
LBB0_7:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_16 Depth 2
	cmp	x22, w9, uxtw
	b.ne	LBB0_10
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	cbnz	w21, LBB0_20
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	w20, #0
	mov	x8, x23
	b	LBB0_11
LBB0_10:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	x8, [x19, #40]
	add	x8, x8, x22, lsl #3
LBB0_11:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	x1, [x8]
	ldr	x8, [x23]
	cmp	x1, x8
	b.eq	LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_7 Depth=1
	add	x2, sp, #12
	mov	x0, x19
	bl	_graph_insert_into_new_columns
	b	LBB0_6
LBB0_13:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	w24, [sp, #12]
	str	w22, [x19, #24]
	mov	x0, x19
	bl	_first_interesting_parent
	cbz	x0, LBB0_18
; %bb.14:                               ;   in Loop: Header=BB0_7 Depth=1
	mov	x21, x0
	b	LBB0_16
LBB0_15:                                ;   in Loop: Header=BB0_16 Depth=2
	ldr	x1, [x21]
	add	x2, sp, #12
	mov	x0, x19
	bl	_graph_insert_into_new_columns
	mov	x0, x19
	mov	x1, x21
	bl	_next_interesting_parent
	mov	x21, x0
	cbz	x0, LBB0_18
LBB0_16:                                ;   Parent Loop BB0_7 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w8, [x19, #8]
	cmp	w8, #1
	ccmp	w20, #0, #4, le
	b.ne	LBB0_15
; %bb.17:                               ;   in Loop: Header=BB0_16 Depth=2
	mov	x0, x19
	bl	_graph_increment_column_color
	b	LBB0_15
LBB0_18:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	w8, [sp, #12]
	cmp	w8, w24
	b.ne	LBB0_5
; %bb.19:                               ;   in Loop: Header=BB0_7 Depth=1
	add	w8, w24, #2
	str	w8, [sp, #12]
	b	LBB0_5
LBB0_20:
	ldr	w8, [x19, #12]
	cmp	w8, #2
	b.ge	LBB0_22
	b	LBB0_25
LBB0_21:
	mov	w20, #1
	cmp	w8, #2
	b.lt	LBB0_25
LBB0_22:
	ldr	x9, [x19, #16]
	mov	w8, w8
LBB0_23:                                ; =>This Inner Loop Header: Depth=1
	sub	x10, x8, #1
	ldr	w11, [x9, w10, uxtw #2]
	tbz	w11, #31, LBB0_25
; %bb.24:                               ;   in Loop: Header=BB0_23 Depth=1
	sub	w8, w8, #1
	str	w8, [x19, #12]
	add	x11, x10, #1
	mov	x8, x10
	cmp	x11, #2
	b.hi	LBB0_23
LBB0_25:
	mov	x0, x19
	mov	x1, x20
	bl	_graph_update_width
	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
	add	sp, sp, #80
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_graph_update_columns
.subsections_via_symbols
