	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bisect_write
_bisect_write:                          ## @bisect_write
	.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, %r15d
	movq	%rdx, %rbx
	movq	%rsi, %r14
	movq	%rdi, %r13
	movq	_STRBUF_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)
	movl	4(%rdx), %esi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_3
## %bb.1:
	movl	(%rbx), %esi
	leaq	L_.str.1(%rip), %rdx
	movq	%r13, %rdi
	xorl	%ecx, %ecx
	callq	_one_of
	testq	%rax, %rax
	je	LBB0_11
## %bb.2:
	leaq	L_.str.2(%rip), %rsi
	leaq	-48(%rbp), %rdi
	movq	%r13, %rdx
	movq	%r14, %rcx
	xorl	%eax, %eax
	callq	_strbuf_addf
	jmp	LBB0_4
LBB0_3:
	leaq	L_.str(%rip), %rsi
	leaq	-48(%rbp), %rdi
	movq	%r13, %rdx
	xorl	%eax, %eax
	callq	_strbuf_addf
LBB0_4:
	leaq	-56(%rbp), %rsi
	movq	%r14, %rdi
	callq	_get_oid
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	leaq	L_.str.4(%rip), %rdi
	callq	__
	movl	%eax, %edi
	movq	%r14, %rsi
	jmp	LBB0_12
LBB0_6:
	movl	-48(%rbp), %esi
	movq	_UPDATE_REFS_MSG_ON_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	leaq	-56(%rbp), %rdx
	xorl	%edi, %edi
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_update_ref
	movl	$-1, %ebx
	testq	%rax, %rax
	jne	LBB0_14
## %bb.7:
	xorl	%eax, %eax
	callq	_git_path_bisect_log
	leaq	L_.str.5(%rip), %rsi
	movl	%eax, %edi
	callq	_fopen
	testq	%rax, %rax
	je	LBB0_15
## %bb.8:
	movq	%rax, %r12
	movq	_the_repository@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-56(%rbp), %rsi
	callq	_lookup_commit_reference
	leaq	L_.str.7(%rip), %rsi
	movq	%r12, %rdi
	movq	%r13, %rdx
	movq	%rax, %rcx
	callq	_log_commit
	testl	%r15d, %r15d
	jne	LBB0_10
## %bb.9:
	leaq	L_.str.8(%rip), %rsi
	movq	%r12, %rdi
	movq	%r13, %rdx
	movq	%r14, %rcx
	callq	_fprintf
LBB0_10:
	movq	%r12, %rdi
	callq	_fclose
	xorl	%ebx, %ebx
	jmp	LBB0_14
LBB0_11:
	leaq	L_.str.3(%rip), %rdi
	callq	__
	movl	%eax, %edi
	movq	%r13, %rsi
LBB0_12:
	callq	_error
LBB0_13:
	movl	%eax, %ebx
LBB0_14:
	leaq	-48(%rbp), %rdi
	callq	_strbuf_release
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	leaq	L_.str.6(%rip), %rdi
	callq	__
	movl	%eax, %ebx
	xorl	%eax, %eax
	callq	_git_path_bisect_log
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_error_errno
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_STRBUF_INIT,4,2                ## @STRBUF_INIT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"refs/bisect/%s"

L_.str.1:                               ## @.str.1
	.asciz	"skip"

L_.str.2:                               ## @.str.2
	.asciz	"refs/bisect/%s-%s"

L_.str.3:                               ## @.str.3
	.asciz	"Bad bisect_write argument: %s"

L_.str.4:                               ## @.str.4
	.asciz	"couldn't get the oid of the rev '%s'"

	.comm	_UPDATE_REFS_MSG_ON_ERR,4,2     ## @UPDATE_REFS_MSG_ON_ERR
L_.str.5:                               ## @.str.5
	.asciz	"a"

L_.str.6:                               ## @.str.6
	.asciz	"couldn't open the file '%s'"

	.comm	_the_repository,4,2             ## @the_repository
L_.str.7:                               ## @.str.7
	.asciz	"%s"

L_.str.8:                               ## @.str.8
	.asciz	"git bisect %s %s\n"

	.no_dead_strip	_bisect_write
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bisect_write
_bisect_write:                          ; @bisect_write
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x21, x3
	mov	x22, x2
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _STRBUF_INIT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _STRBUF_INIT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [sp, #24]
	ldr	w1, [x2, #4]
	bl	_strcmp
	cbz	w0, LBB0_3
; %bb.1:
	ldr	w1, [x22]
Lloh3:
	adrp	x2, l_.str.1@PAGE
Lloh4:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x20
	mov	x3, #0
	bl	_one_of
	cbz	x0, LBB0_8
; %bb.2:
	str	x19, [sp]
Lloh5:
	adrp	x1, l_.str.2@PAGE
Lloh6:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_4
LBB0_3:
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
LBB0_4:
	add	x0, sp, #24
	mov	x2, x20
	bl	_strbuf_addf
	add	x1, sp, #16
	mov	x0, x19
	bl	_get_oid
	cbz	x0, LBB0_6
; %bb.5:
Lloh9:
	adrp	x0, l_.str.4@PAGE
Lloh10:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	__
	mov	x1, x19
	b	LBB0_9
LBB0_6:
	ldr	w1, [sp, #24]
Lloh11:
	adrp	x8, _UPDATE_REFS_MSG_ON_ERR@GOTPAGE
Lloh12:
	ldr	x8, [x8, _UPDATE_REFS_MSG_ON_ERR@GOTPAGEOFF]
Lloh13:
	ldr	w5, [x8]
	add	x2, sp, #16
	mov	x3, #0
	mov	w4, #0
	bl	_update_ref
	cbz	x0, LBB0_12
; %bb.7:
	mov	w19, #-1
	b	LBB0_11
LBB0_8:
Lloh14:
	adrp	x0, l_.str.3@PAGE
Lloh15:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	__
	mov	x1, x20
LBB0_9:
	bl	_error
LBB0_10:
	mov	x19, x0
LBB0_11:
	add	x0, sp, #24
	bl	_strbuf_release
	mov	x0, x19
	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
	add	sp, sp, #80
	ret
LBB0_12:
	bl	_git_path_bisect_log
Lloh16:
	adrp	x1, l_.str.5@PAGE
Lloh17:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_fopen
	cbz	x0, LBB0_16
; %bb.13:
	mov	x22, x0
Lloh18:
	adrp	x8, _the_repository@GOTPAGE
Lloh19:
	ldr	x8, [x8, _the_repository@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
	add	x1, sp, #16
	bl	_lookup_commit_reference
	mov	x3, x0
Lloh21:
	adrp	x1, l_.str.7@PAGE
Lloh22:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x22
	mov	x2, x20
	bl	_log_commit
	cbnz	w21, LBB0_15
; %bb.14:
Lloh23:
	adrp	x1, l_.str.8@PAGE
Lloh24:
	add	x1, x1, l_.str.8@PAGEOFF
	mov	x0, x22
	mov	x2, x20
	mov	x3, x19
	bl	_fprintf
LBB0_15:
	mov	x0, x22
	bl	_fclose
	mov	w19, #0
	b	LBB0_11
LBB0_16:
Lloh25:
	adrp	x0, l_.str.6@PAGE
Lloh26:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	__
	mov	x19, x0
	bl	_git_path_bisect_log
	mov	x1, x0
	mov	x0, x19
	bl	_error_errno
	b	LBB0_10
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_STRBUF_INIT,4,2                ; @STRBUF_INIT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"refs/bisect/%s"

l_.str.1:                               ; @.str.1
	.asciz	"skip"

l_.str.2:                               ; @.str.2
	.asciz	"refs/bisect/%s-%s"

l_.str.3:                               ; @.str.3
	.asciz	"Bad bisect_write argument: %s"

l_.str.4:                               ; @.str.4
	.asciz	"couldn't get the oid of the rev '%s'"

	.comm	_UPDATE_REFS_MSG_ON_ERR,4,2     ; @UPDATE_REFS_MSG_ON_ERR
l_.str.5:                               ; @.str.5
	.asciz	"a"

l_.str.6:                               ; @.str.6
	.asciz	"couldn't open the file '%s'"

	.comm	_the_repository,4,2             ; @the_repository
l_.str.7:                               ; @.str.7
	.asciz	"%s"

l_.str.8:                               ; @.str.8
	.asciz	"git bisect %s %s\n"

	.no_dead_strip	_bisect_write
.subsections_via_symbols
