	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_get_octopus_merge_bases        ## -- Begin function get_octopus_merge_bases
	.p2align	4, 0x90
_get_octopus_merge_bases:               ## @get_octopus_merge_bases
	.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
	movq	$0, -40(%rbp)
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.2:
	movq	%rdi, %rbx
	movl	8(%rdi), %edi
	leaq	-40(%rbp), %rsi
	callq	_commit_list_insert
	movq	(%rbx), %r14
	movq	-40(%rbp), %r15
	testq	%r14, %r14
	jne	LBB0_4
## %bb.3:
	movq	%r15, %rax
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_4 Depth=1
	xorl	%eax, %eax
LBB0_12:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	%rax, -40(%rbp)
	movq	(%r14), %r14
	movq	%rax, %r15
	testq	%r14, %r14
	je	LBB0_13
LBB0_4:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_7 Depth 2
                                        ##       Child Loop BB0_10 Depth 3
	testq	%r15, %r15
	je	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=1
	xorl	%ebx, %ebx
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_7:                                 ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_10 Depth 3
	movl	8(%r14), %edi
	movl	8(%r15), %esi
	callq	_get_merge_bases
	movq	%rax, %rcx
	testq	%r12, %r12
	je	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=2
	movq	%rcx, (%rbx)
	movq	%r12, %rax
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_10 Depth=3
	movq	%rcx, %rbx
	movq	(%rcx), %rcx
LBB0_10:                                ##   Parent Loop BB0_4 Depth=1
                                        ##     Parent Loop BB0_7 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	testq	%rcx, %rcx
	jne	LBB0_9
## %bb.11:                              ##   in Loop: Header=BB0_7 Depth=2
	movq	(%r15), %r15
	movq	%rax, %r12
	testq	%r15, %r15
	jne	LBB0_7
	jmp	LBB0_12
LBB0_1:
	xorl	%eax, %eax
LBB0_13:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_get_octopus_merge_bases        ; -- Begin function get_octopus_merge_bases
	.p2align	2
_get_octopus_merge_bases:               ; @get_octopus_merge_bases
	.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
	str	xzr, [sp, #8]
	cbz	x0, LBB0_3
; %bb.1:
	mov	x19, x0
	ldr	w0, [x0, #8]
	add	x1, sp, #8
	bl	_commit_list_insert
	ldr	x19, [x19]
	ldr	x20, [sp, #8]
	cbnz	x19, LBB0_6
; %bb.2:
	mov	x0, x20
LBB0_3:
	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
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, #0
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	str	x0, [sp, #8]
	ldr	x19, [x19]
	mov	x20, x0
	cbz	x19, LBB0_3
LBB0_6:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_9 Depth 2
                                        ;       Child Loop BB0_12 Depth 3
	cbz	x20, LBB0_4
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x21, #0
	mov	x22, #0
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=2
	ldr	x20, [x20]
	mov	x22, x0
	cbz	x20, LBB0_5
LBB0_9:                                 ;   Parent Loop BB0_6 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_12 Depth 3
	ldr	w0, [x19, #8]
	ldr	w1, [x20, #8]
	bl	_get_merge_bases
	mov	x8, x0
	cbz	x22, LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=2
	str	x8, [x21]
	mov	x0, x22
LBB0_11:                                ;   in Loop: Header=BB0_9 Depth=2
	cbz	x8, LBB0_8
LBB0_12:                                ;   Parent Loop BB0_6 Depth=1
                                        ;     Parent Loop BB0_9 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	mov	x21, x8
	ldr	x8, [x8]
	cbnz	x8, LBB0_12
	b	LBB0_8
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
