	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function do_find_bisection
_do_find_bisection:                     ## @do_find_bisection
	.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
	movl	%ecx, -60(%rbp)                 ## 4-byte Spill
	movq	%rdi, %r12
	testq	%rdi, %rdi
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	je	LBB0_38
## %bb.1:
	movq	%rdx, %rbx
	xorl	%r13d, %r13d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%r12, %rdi
	movq	$-2, %rsi
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	callq	_weight_set
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%r12), %r12
	addq	$4, %rbx
	testq	%r12, %r12
	je	LBB0_10
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %r14
	movl	(%r14), %r15d
	movq	_commit_weight@GOTPCREL(%rip), %rdi
	movq	%r14, %rsi
	callq	_commit_weight_at
	movq	%rbx, (%rax)
	movq	%r14, %rdi
	callq	_count_interesting_parents
	cmpl	$1, %eax
	je	LBB0_6
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	testl	%eax, %eax
	jne	LBB0_7
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_TREESAME@GOTPCREL(%rip), %rax
	testl	%r15d, (%rax)
	jne	LBB0_9
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	$1, %esi
	movq	%r12, %rdi
	callq	_weight_set
	incl	%r13d
	leaq	L_.str(%rip), %rdi
	movl	%r13d, %esi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	callq	_show_list
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%r12, %rdi
	movq	$-1, %rsi
	jmp	LBB0_8
LBB0_10:
	leaq	L_.str.1(%rip), %rdi
	movl	%r13d, %esi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rcx
	callq	_show_list
	testq	%r15, %r15
	je	LBB0_18
## %bb.11:
	movq	_UNINTERESTING@GOTPCREL(%rip), %rbx
	jmp	LBB0_12
LBB0_16:                                ##   in Loop: Header=BB0_12 Depth=1
	incl	%r13d
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_12 Depth=1
	movq	8(%r15), %r15
	testq	%r15, %r15
	je	LBB0_18
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rax
	movl	(%rbx), %ecx
	testl	%ecx, (%rax)
	jne	LBB0_17
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=1
	movq	%r15, %rdi
	callq	_weight
	cmpq	$-2, %rax
	jne	LBB0_17
## %bb.14:                              ##   in Loop: Header=BB0_12 Depth=1
	movq	%r15, %rdi
	callq	_count_distance
	movq	%r15, %rdi
	movq	%rax, %rsi
	callq	_weight_set
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_clear_distance
	cmpl	$0, -60(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_12 Depth=1
	movq	%r15, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	callq	_halfway
	testq	%rax, %rax
	je	LBB0_16
	jmp	LBB0_37
LBB0_38:
	leaq	L_.str.1(%rip), %rdi
	movl	%esi, %edx
	xorl	%r13d, %r13d
	xorl	%esi, %esi
	movq	%r12, %rcx
	callq	_show_list
LBB0_18:
	leaq	L_.str.2(%rip), %rdi
	movl	%r13d, %esi
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %edx
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	callq	_show_list
	cmpl	%ebx, %r13d
	jge	LBB0_35
## %bb.19:
	movq	_UNINTERESTING@GOTPCREL(%rip), %r14
	jmp	LBB0_21
	.p2align	4, 0x90
LBB0_20:                                ##   in Loop: Header=BB0_21 Depth=1
	cmpl	-44(%rbp), %r13d                ## 4-byte Folded Reload
	jge	LBB0_35
LBB0_21:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_22 Depth 2
                                        ##       Child Loop BB0_25 Depth 3
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	jmp	LBB0_22
	.p2align	4, 0x90
LBB0_34:                                ##   in Loop: Header=BB0_22 Depth=2
	movq	8(%r15), %r15
LBB0_22:                                ##   Parent Loop BB0_21 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_25 Depth 3
	testq	%r15, %r15
	je	LBB0_20
## %bb.23:                              ##   in Loop: Header=BB0_22 Depth=2
	movq	(%r15), %rax
	movl	(%rax), %r12d
	movq	%r15, %rdi
	callq	_weight
	testq	%rax, %rax
	jns	LBB0_34
## %bb.24:                              ##   in Loop: Header=BB0_22 Depth=2
	movq	(%r15), %rax
	movq	8(%rax), %rbx
	jmp	LBB0_25
	.p2align	4, 0x90
LBB0_28:                                ##   in Loop: Header=BB0_25 Depth=3
	movq	8(%rbx), %rbx
LBB0_25:                                ##   Parent Loop BB0_21 Depth=1
                                        ##     Parent Loop BB0_22 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	testq	%rbx, %rbx
	je	LBB0_34
## %bb.26:                              ##   in Loop: Header=BB0_25 Depth=3
	movq	(%rbx), %rax
	movl	(%r14), %ecx
	testl	%ecx, (%rax)
	jne	LBB0_28
## %bb.27:                              ##   in Loop: Header=BB0_25 Depth=3
	movq	%rbx, %rdi
	callq	_weight
	testq	%rax, %rax
	js	LBB0_28
## %bb.29:                              ##   in Loop: Header=BB0_22 Depth=2
	movq	_TREESAME@GOTPCREL(%rip), %rax
	andl	(%rax), %r12d
	movq	%rbx, %rdi
	callq	_weight
	testl	%r12d, %r12d
	je	LBB0_30
## %bb.31:                              ##   in Loop: Header=BB0_22 Depth=2
	movq	%r15, %rdi
	movq	%rax, %rsi
	callq	_weight_set
	cmpl	$0, -60(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_34
	jmp	LBB0_33
LBB0_30:                                ##   in Loop: Header=BB0_22 Depth=2
	incq	%rax
	movq	%r15, %rdi
	movq	%rax, %rsi
	callq	_weight_set
	incl	%r13d
	leaq	L_.str(%rip), %rdi
	movl	%r13d, %esi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	callq	_show_list
	cmpl	$0, -60(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_34
LBB0_33:                                ##   in Loop: Header=BB0_22 Depth=2
	movq	%r15, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	callq	_halfway
	testq	%rax, %rax
	je	LBB0_34
LBB0_37:
	movq	%r15, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_35:
	leaq	L_.str.3(%rip), %rdi
	movl	%r13d, %esi
	movl	-44(%rbp), %r14d                ## 4-byte Reload
	movl	%r14d, %edx
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rcx
	callq	_show_list
	cmpl	$0, -60(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_39
## %bb.36:
	movq	%rbx, %rdi
	movl	%r14d, %esi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_best_bisection_sorted          ## TAILCALL
LBB0_39:
	movq	%rbx, %rdi
	movl	%r14d, %esi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_best_bisection                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_commit_weight,4,2              ## @commit_weight
	.comm	_TREESAME,4,2                   ## @TREESAME
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"bisection 2 count one"

L_.str.1:                               ## @.str.1
	.asciz	"bisection 2 initialize"

	.comm	_UNINTERESTING,4,2              ## @UNINTERESTING
L_.str.2:                               ## @.str.2
	.asciz	"bisection 2 count_distance"

L_.str.3:                               ## @.str.3
	.asciz	"bisection 2 counted all"

	.no_dead_strip	_do_find_bisection
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function do_find_bisection
_do_find_bisection:                     ; @do_find_bisection
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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, x3
	mov	x19, x1
	mov	x20, x0
	cbz	x0, LBB0_18
; %bb.1:
	mov	x23, x2
	mov	w22, #0
Lloh0:
	adrp	x24, _commit_weight@GOTPAGE
Lloh1:
	ldr	x24, [x24, _commit_weight@GOTPAGEOFF]
Lloh2:
	adrp	x28, _TREESAME@GOTPAGE
Lloh3:
	ldr	x28, [x28, _TREESAME@GOTPAGEOFF]
	mov	x25, x20
	b	LBB0_5
LBB0_2:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x25
	mov	x1, #-2
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	bl	_weight_set
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	x25, [x25, #8]
	add	x23, x23, #4
	cbz	x25, LBB0_10
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x27, [x25]
	ldr	w26, [x27]
	mov	x0, x24
	mov	x1, x27
	bl	_commit_weight_at
	str	x23, [x0]
	mov	x0, x27
	bl	_count_interesting_parents
	cmp	w0, #1
	b.eq	LBB0_9
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	cbnz	w0, LBB0_2
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [x28]
	tst	w8, w26
	b.ne	LBB0_4
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x25
	mov	w1, #1
	bl	_weight_set
	add	w22, w22, #1
Lloh4:
	adrp	x0, l_.str@PAGE
Lloh5:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x22
	mov	x2, x19
	mov	x3, x20
	bl	_show_list
	b	LBB0_4
LBB0_9:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x25
	mov	x1, #-1
	b	LBB0_3
LBB0_10:
Lloh6:
	adrp	x0, l_.str.1@PAGE
Lloh7:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x22
	mov	x2, x19
	mov	x3, x20
	bl	_show_list
	cbz	x20, LBB0_19
; %bb.11:
Lloh8:
	adrp	x24, _UNINTERESTING@GOTPAGE
Lloh9:
	ldr	x24, [x24, _UNINTERESTING@GOTPAGEOFF]
	mov	x23, x20
	b	LBB0_14
LBB0_12:                                ;   in Loop: Header=BB0_14 Depth=1
	add	w22, w22, #1
LBB0_13:                                ;   in Loop: Header=BB0_14 Depth=1
	ldr	x23, [x23, #8]
	cbz	x23, LBB0_19
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x23]
	ldr	w8, [x8]
	ldr	w9, [x24]
	tst	w9, w8
	b.ne	LBB0_13
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=1
	mov	x0, x23
	bl	_weight
	cmn	x0, #2
	b.ne	LBB0_13
; %bb.16:                               ;   in Loop: Header=BB0_14 Depth=1
	mov	x0, x23
	bl	_count_distance
	mov	x1, x0
	mov	x0, x23
	bl	_weight_set
	mov	x0, x20
	bl	_clear_distance
	cbnz	w21, LBB0_12
; %bb.17:                               ;   in Loop: Header=BB0_14 Depth=1
	mov	x0, x23
	mov	x1, x19
	bl	_halfway
	cbz	x0, LBB0_12
	b	LBB0_34
LBB0_18:
Lloh10:
	adrp	x0, l_.str.1@PAGE
Lloh11:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	w1, #0
	mov	x2, x19
	mov	x3, x20
	bl	_show_list
	mov	w22, #0
LBB0_19:
Lloh12:
	adrp	x0, l_.str.2@PAGE
Lloh13:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x22
	mov	x2, x19
	mov	x3, x20
	bl	_show_list
	cmp	w22, w19
	b.ge	LBB0_35
; %bb.20:
Lloh14:
	adrp	x26, _UNINTERESTING@GOTPAGE
Lloh15:
	ldr	x26, [x26, _UNINTERESTING@GOTPAGEOFF]
Lloh16:
	adrp	x27, _TREESAME@GOTPAGE
Lloh17:
	ldr	x27, [x27, _TREESAME@GOTPAGEOFF]
Lloh18:
	adrp	x24, l_.str@PAGE
Lloh19:
	add	x24, x24, l_.str@PAGEOFF
	b	LBB0_22
LBB0_21:                                ;   in Loop: Header=BB0_22 Depth=1
	cmp	w22, w19
	b.ge	LBB0_35
LBB0_22:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_25 Depth 2
                                        ;       Child Loop BB0_28 Depth 3
	cbz	x20, LBB0_21
; %bb.23:                               ;   in Loop: Header=BB0_22 Depth=1
	mov	x23, x20
	b	LBB0_25
LBB0_24:                                ;   in Loop: Header=BB0_25 Depth=2
	ldr	x23, [x23, #8]
	cbz	x23, LBB0_21
LBB0_25:                                ;   Parent Loop BB0_22 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_28 Depth 3
	ldr	x8, [x23]
	ldr	w28, [x8]
	mov	x0, x23
	bl	_weight
	tbz	x0, #63, LBB0_24
; %bb.26:                               ;   in Loop: Header=BB0_25 Depth=2
	ldr	x8, [x23]
	ldr	x25, [x8, #8]
	cbnz	x25, LBB0_28
	b	LBB0_24
LBB0_27:                                ;   in Loop: Header=BB0_28 Depth=3
	ldr	x25, [x25, #8]
	cbz	x25, LBB0_24
LBB0_28:                                ;   Parent Loop BB0_22 Depth=1
                                        ;     Parent Loop BB0_25 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	ldr	x8, [x25]
	ldr	w8, [x8]
	ldr	w9, [x26]
	tst	w9, w8
	b.ne	LBB0_27
; %bb.29:                               ;   in Loop: Header=BB0_28 Depth=3
	mov	x0, x25
	bl	_weight
	tbnz	x0, #63, LBB0_27
; %bb.30:                               ;   in Loop: Header=BB0_25 Depth=2
	ldr	w8, [x27]
	and	w28, w8, w28
	mov	x0, x25
	bl	_weight
	mov	x1, x0
	cbz	w28, LBB0_32
; %bb.31:                               ;   in Loop: Header=BB0_25 Depth=2
	mov	x0, x23
	bl	_weight_set
	cbnz	w21, LBB0_24
	b	LBB0_33
LBB0_32:                                ;   in Loop: Header=BB0_25 Depth=2
	add	x1, x1, #1
	mov	x0, x23
	bl	_weight_set
	add	w22, w22, #1
	mov	x0, x24
	mov	x1, x22
	mov	x2, x19
	mov	x3, x20
	bl	_show_list
	cbnz	w21, LBB0_24
LBB0_33:                                ;   in Loop: Header=BB0_25 Depth=2
	mov	x0, x23
	mov	x1, x19
	bl	_halfway
	cbz	x0, LBB0_24
LBB0_34:
	mov	x0, x23
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_35:
Lloh20:
	adrp	x0, l_.str.3@PAGE
Lloh21:
	add	x0, x0, l_.str.3@PAGEOFF
	mov	x1, x22
	mov	x2, x19
	mov	x3, x20
	bl	_show_list
	mov	x0, x20
	mov	x1, x19
	cbz	w21, LBB0_37
; %bb.36:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_best_bisection_sorted
LBB0_37:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_best_bisection
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdd	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_commit_weight,4,2              ; @commit_weight
	.comm	_TREESAME,4,2                   ; @TREESAME
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"bisection 2 count one"

l_.str.1:                               ; @.str.1
	.asciz	"bisection 2 initialize"

	.comm	_UNINTERESTING,4,2              ; @UNINTERESTING
l_.str.2:                               ; @.str.2
	.asciz	"bisection 2 count_distance"

l_.str.3:                               ; @.str.3
	.asciz	"bisection 2 counted all"

	.no_dead_strip	_do_find_bisection
.subsections_via_symbols
