	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function simplify_merges
_simplify_merges:                       ## @simplify_merges
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	cmpl	$0, 8(%rdi)
	je	LBB0_14
## %bb.1:
	movq	%rdi, %r15
	movq	$0, -48(%rbp)
	movq	(%rdi), %rax
	testq	%rax, %rax
	je	LBB0_15
## %bb.2:
	leaq	-48(%rbp), %r14
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rax), %rbx
	movq	8(%rax), %rdi
	movq	%r14, %rsi
	callq	_commit_list_insert
	movq	%rbx, %rax
	testq	%rbx, %rbx
	jne	LBB0_3
## %bb.4:
	movq	-48(%rbp), %rax
	testq	%rax, %rax
	je	LBB0_9
## %bb.5:
	leaq	-40(%rbp), %r12
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_8 Depth 2
	movq	%rax, -40(%rbp)
	movq	$0, -48(%rbp)
	movq	%r14, %rbx
	.p2align	4, 0x90
LBB0_8:                                 ##   Parent Loop BB0_7 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%r12, %rdi
	callq	_pop_commit
	movq	%r15, %rdi
	movq	%rax, %rsi
	movq	%rbx, %rdx
	callq	_simplify_one
	movq	%rax, %rbx
	cmpq	$0, -40(%rbp)
	jne	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	-48(%rbp), %rax
	testq	%rax, %rax
	jne	LBB0_7
LBB0_9:
	movq	(%r15), %rax
	movq	%rax, -40(%rbp)
	movq	$0, (%r15)
	testq	%rax, %rax
	je	LBB0_14
## %bb.10:
	leaq	-40(%rbp), %r14
	movq	%r15, %r12
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_11 Depth=1
	cmpq	$0, -40(%rbp)
	je	LBB0_14
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	callq	_pop_commit
	movq	%rax, %rbx
	movq	%r15, %rdi
	movq	%rax, %rsi
	callq	_locate_simplify_state
	cmpq	%rbx, (%rax)
	jne	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	_commit_list_insert
	movq	%rax, %r12
	jmp	LBB0_13
LBB0_15:
	movq	$0, (%r15)
LBB0_14:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_simplify_merges
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function simplify_merges
_simplify_merges:                       ; @simplify_merges
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	ldr	w8, [x0, #8]
	cbz	w8, LBB0_12
; %bb.1:
	mov	x19, x0
	str	xzr, [sp]
	ldr	x20, [x0]
	cbz	x20, LBB0_11
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldp	x20, x0, [x20]
	mov	x1, sp
	bl	_commit_list_insert
	cbnz	x20, LBB0_2
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	stp	xzr, x8, [sp]
	mov	x20, sp
LBB0_4:                                 ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	add	x0, sp, #8
	bl	_pop_commit
	mov	x1, x0
	mov	x0, x19
	mov	x2, x20
	bl	_simplify_one
	mov	x20, x0
	ldr	x8, [sp, #8]
	cbnz	x8, LBB0_4
LBB0_5:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_4 Depth 2
	ldr	x8, [sp]
	cbnz	x8, LBB0_3
; %bb.6:
	ldr	x8, [x19]
	str	x8, [sp, #8]
	str	xzr, [x19]
	cbz	x8, LBB0_12
; %bb.7:
	mov	x20, x19
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	ldr	x8, [sp, #8]
	cbz	x8, LBB0_12
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	add	x0, sp, #8
	bl	_pop_commit
	mov	x21, x0
	mov	x0, x19
	mov	x1, x21
	bl	_locate_simplify_state
	ldr	x8, [x0]
	cmp	x8, x21
	b.ne	LBB0_8
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	x0, x21
	mov	x1, x20
	bl	_commit_list_insert
	mov	x20, x0
	b	LBB0_8
LBB0_11:
	str	xzr, [x19]
LBB0_12:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_simplify_merges
.subsections_via_symbols
