	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bisect_reset
_bisect_reset:                          ## @bisect_reset
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -24
	movq	_STRBUF_INIT@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -24(%rbp)
	testq	%rdi, %rdi
	je	LBB0_3
## %bb.1:
	movq	%rdi, %rbx
	leaq	-16(%rbp), %rsi
	callq	_get_oid_commit
	testq	%rax, %rax
	je	LBB0_5
## %bb.2:
	leaq	L_.str.1(%rip), %rdi
	callq	__
	movq	%rax, %rdi
	movq	%rbx, %rsi
	jmp	LBB0_10
LBB0_3:
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_git_path_bisect_start
	leaq	-24(%rbp), %rdi
	movl	%eax, %esi
	xorl	%edx, %edx
	callq	_strbuf_read_file
	testl	%eax, %eax
	jle	LBB0_13
## %bb.4:
	leaq	-24(%rbp), %rdi
	callq	_strbuf_rtrim
	jmp	LBB0_6
LBB0_5:
	leaq	-24(%rbp), %rdi
	movq	%rbx, %rsi
	callq	_strbuf_addstr
LBB0_6:
	xorl	%eax, %eax
	callq	_git_path_bisect_head
	movl	%eax, %edi
	callq	_file_exists
	testl	%eax, %eax
	je	LBB0_8
LBB0_7:
	leaq	-24(%rbp), %rdi
	callq	_strbuf_release
	xorl	%eax, %eax
	callq	_bisect_clean_state
	jmp	LBB0_11
LBB0_8:
	movq	_ARGV_ARRAY_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -16(%rbp)
	movq	-24(%rbp), %rdx
	leaq	L_.str.2(%rip), %rsi
	leaq	L_.str.3(%rip), %rcx
	leaq	-16(%rbp), %rdi
	xorl	%r8d, %r8d
	callq	_argv_array_pushl
	movl	-16(%rbp), %edi
	movq	_RUN_GIT_CMD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_run_command_v_opt
	testq	%rax, %rax
	je	LBB0_14
## %bb.9:
	leaq	-24(%rbp), %rdi
	callq	_strbuf_release
	leaq	-16(%rbp), %rdi
	callq	_argv_array_clear
	leaq	L_.str.4(%rip), %rdi
	callq	__
	movq	-24(%rbp), %rsi
	movq	%rax, %rdi
LBB0_10:
	callq	_error
LBB0_11:
	movl	%eax, %ebx
LBB0_12:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_13:
	leaq	L_.str(%rip), %rdi
	callq	__
	movq	%rax, %rdi
	callq	_printf
	jmp	LBB0_12
LBB0_14:
	leaq	-16(%rbp), %rdi
	callq	_argv_array_clear
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_STRBUF_INIT,8,3                ## @STRBUF_INIT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"We are not bisecting.\n"

L_.str.1:                               ## @.str.1
	.asciz	"'%s' is not a valid commit"

	.comm	_ARGV_ARRAY_INIT,4,2            ## @ARGV_ARRAY_INIT
L_.str.2:                               ## @.str.2
	.asciz	"checkout"

L_.str.3:                               ## @.str.3
	.asciz	"--"

	.comm	_RUN_GIT_CMD,4,2                ## @RUN_GIT_CMD
L_.str.4:                               ## @.str.4
	.asciz	"could not check out original HEAD '%s'. Try 'git bisect reset <commit>'."

	.no_dead_strip	_bisect_reset
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bisect_reset
_bisect_reset:                          ; @bisect_reset
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x8, _STRBUF_INIT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _STRBUF_INIT@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #8]
	cbz	x0, LBB0_3
; %bb.1:
	mov	x19, x0
	mov	x1, sp
	bl	_get_oid_commit
	cbz	x0, LBB0_5
; %bb.2:
Lloh3:
	adrp	x0, l_.str.1@PAGE
Lloh4:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	__
	mov	x1, x19
	bl	_error
	b	LBB0_11
LBB0_3:
	bl	_git_path_bisect_start
	mov	x1, x0
	add	x0, sp, #8
	mov	w2, #0
	bl	_strbuf_read_file
	cmp	w0, #0
	b.le	LBB0_10
; %bb.4:
	add	x0, sp, #8
	bl	_strbuf_rtrim
	b	LBB0_6
LBB0_5:
	add	x0, sp, #8
	mov	x1, x19
	bl	_strbuf_addstr
LBB0_6:
	bl	_git_path_bisect_head
	bl	_file_exists
	cbz	w0, LBB0_8
LBB0_7:
	add	x0, sp, #8
	bl	_strbuf_release
	bl	_bisect_clean_state
	b	LBB0_11
LBB0_8:
Lloh5:
	adrp	x8, _ARGV_ARRAY_INIT@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ARGV_ARRAY_INIT@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	str	w8, [sp]
	ldr	x2, [sp, #8]
Lloh8:
	adrp	x1, l_.str.2@PAGE
Lloh9:
	add	x1, x1, l_.str.2@PAGEOFF
Lloh10:
	adrp	x3, l_.str.3@PAGE
Lloh11:
	add	x3, x3, l_.str.3@PAGEOFF
	mov	x0, sp
	mov	x4, #0
	bl	_argv_array_pushl
	ldr	w0, [sp]
Lloh12:
	adrp	x8, _RUN_GIT_CMD@GOTPAGE
Lloh13:
	ldr	x8, [x8, _RUN_GIT_CMD@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	bl	_run_command_v_opt
	cbz	x0, LBB0_12
; %bb.9:
	add	x0, sp, #8
	bl	_strbuf_release
	mov	x0, sp
	bl	_argv_array_clear
Lloh15:
	adrp	x0, l_.str.4@PAGE
Lloh16:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	__
	ldr	x1, [sp, #8]
	bl	_error
	b	LBB0_11
LBB0_10:
Lloh17:
	adrp	x0, l_.str@PAGE
Lloh18:
	add	x0, x0, l_.str@PAGEOFF
	bl	__
	bl	_printf
	mov	w0, #0
LBB0_11:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_12:
	mov	x0, sp
	bl	_argv_array_clear
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_STRBUF_INIT,8,3                ; @STRBUF_INIT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"We are not bisecting.\n"

l_.str.1:                               ; @.str.1
	.asciz	"'%s' is not a valid commit"

	.comm	_ARGV_ARRAY_INIT,4,2            ; @ARGV_ARRAY_INIT
l_.str.2:                               ; @.str.2
	.asciz	"checkout"

l_.str.3:                               ; @.str.3
	.asciz	"--"

	.comm	_RUN_GIT_CMD,4,2                ; @RUN_GIT_CMD
l_.str.4:                               ; @.str.4
	.asciz	"could not check out original HEAD '%s'. Try 'git bisect reset <commit>'."

	.no_dead_strip	_bisect_reset
.subsections_via_symbols
