	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_create_branch                  ## -- Begin function create_branch
	.p2align	4, 0x90
_create_branch:                         ## @create_branch
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %ebx
	movq	%rdx, %r13
	movq	%rsi, %rax
	movl	24(%rbp), %edx
	movq	_STRBUF_INIT@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, -64(%rbp)
	movq	_BRANCH_TRACK_EXPLICIT@GOTPCREL(%rip), %rcx
	cmpl	%edx, (%rcx)
	sete	%r15b
	movq	_BRANCH_TRACK_OVERRIDE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	cmpl	%edx, %ecx
	sete	%r12b
	testl	%r8d, %r8d
	movl	%r9d, -76(%rbp)                 ## 4-byte Spill
	jne	LBB0_2
## %bb.1:
	cmpl	%edx, %ecx
	je	LBB0_2
## %bb.5:
	movq	%rdi, %r14
	leaq	-64(%rbp), %rsi
	movq	%rax, %rdi
	movl	%ebx, %edx
	callq	_validate_new_branchname
	testq	%rax, %rax
	je	LBB0_4
LBB0_6:
	testl	%ebx, %ebx
	sete	-41(%rbp)                       ## 1-byte Folded Spill
	setne	-42(%rbp)                       ## 1-byte Folded Spill
	jmp	LBB0_7
LBB0_2:
	movq	%rdi, %r14
	leaq	-64(%rbp), %rsi
	movq	%rax, %rdi
	callq	_validate_branchname
	testq	%rax, %rax
	jne	LBB0_6
LBB0_4:
	movb	$1, -42(%rbp)                   ## 1-byte Folded Spill
	movb	$1, -41(%rbp)                   ## 1-byte Folded Spill
LBB0_7:
	orb	%r12b, %r15b
	movq	$0, -56(%rbp)
	leaq	-48(%rbp), %rsi
	movq	%r13, %rdi
	callq	_get_oid_mb
	testq	%rax, %rax
	je	LBB0_12
## %bb.8:
	testb	%r15b, %r15b
	je	LBB0_11
## %bb.9:
	movq	_advice_set_upstream_failure@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	_upstream_missing@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	__
	movq	%rax, %rdi
	testq	%rbx, %rbx
	jne	LBB0_38
## %bb.10:
	movq	%r13, %rsi
	callq	_die
LBB0_11:
	leaq	L_.str(%rip), %rdi
	callq	__
	movq	%rax, %rdi
	movq	%r13, %rsi
	callq	_die
LBB0_12:
	movq	%r13, %rdi
	callq	_strlen
	leaq	-48(%rbp), %rdx
	leaq	-56(%rbp), %rcx
	movq	%r13, %rdi
	movl	%eax, %esi
	callq	_dwim_ref
	cmpl	$1, %eax
	je	LBB0_16
## %bb.13:
	testl	%eax, %eax
	jne	LBB0_20
## %bb.14:
	testb	%r15b, %r15b
	je	LBB0_22
LBB0_15:
	movq	_upstream_not_branch@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	jmp	LBB0_21
LBB0_16:
	movq	-56(%rbp), %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_starts_with
	testl	%eax, %eax
	jne	LBB0_22
## %bb.17:
	movq	-56(%rbp), %rdi
	callq	_validate_remote_tracking_branch
	testl	%eax, %eax
	je	LBB0_22
## %bb.18:
	testb	%r15b, %r15b
	jne	LBB0_15
## %bb.19:
	movq	$0, -56(%rbp)
	jmp	LBB0_22
LBB0_20:
	leaq	L_.str.2(%rip), %rdi
LBB0_21:
	callq	__
	movq	%rax, %rdi
	movq	%r13, %rsi
	callq	_die
LBB0_22:
	leaq	-48(%rbp), %rsi
	movq	%r14, %rdi
	callq	_lookup_commit_reference
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_24
## %bb.23:
	leaq	L_.str.3(%rip), %rdi
	callq	__
	movq	%rax, %rdi
	movq	%r13, %rsi
	callq	_die
LBB0_24:
	leaq	-48(%rbp), %rdi
	movq	%rbx, %rsi
	callq	_oidcpy
	cmpl	$0, -76(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_26
## %bb.25:
	movq	_LOG_REFS_NORMAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_log_all_ref_updates@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
LBB0_26:
	cmpb	$0, -42(%rbp)                   ## 1-byte Folded Reload
	je	LBB0_34
## %bb.27:
	movq	_STRBUF_INIT@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -72(%rbp)
	leaq	L_.str.5(%rip), %rax
	leaq	L_.str.4(%rip), %rdi
	movb	-41(%rbp), %bl                  ## 1-byte Reload
	testb	%bl, %bl
	cmovneq	%rax, %rdi
	movq	%r13, %rsi
	callq	_xstrfmt
	movq	%rax, %r15
	leaq	-72(%rbp), %r12
	movq	%r12, %rdi
	callq	_ref_transaction_begin
	movq	%rax, %r14
	testq	%rax, %rax
	je	LBB0_32
## %bb.28:
	movq	-64(%rbp), %rsi
	xorl	%ecx, %ecx
	testb	%bl, %bl
	je	LBB0_30
## %bb.29:
	movq	_null_oid@GOTPCREL(%rip), %rcx
LBB0_30:
	movq	%r12, (%rsp)
	leaq	-48(%rbp), %rdx
	movq	%r14, %rdi
	xorl	%r8d, %r8d
	movq	%r15, %r9
	callq	_ref_transaction_update
	testq	%rax, %rax
	jne	LBB0_32
## %bb.31:
	leaq	-72(%rbp), %rsi
	movq	%r14, %rdi
	callq	_ref_transaction_commit
	testq	%rax, %rax
	je	LBB0_33
LBB0_32:
	movq	-72(%rbp), %rsi
	leaq	L_.str.6(%rip), %rdi
	callq	_die
LBB0_33:
	movq	%r14, %rdi
	callq	_ref_transaction_free
	leaq	-72(%rbp), %rdi
	callq	_strbuf_release
	movq	%r15, %rdi
	callq	_free
LBB0_34:
	movl	24(%rbp), %edx
	testl	%edx, %edx
	je	LBB0_37
## %bb.35:
	movq	-56(%rbp), %rsi
	testq	%rsi, %rsi
	je	LBB0_37
## %bb.36:
	movl	16(%rbp), %ecx
	movq	-64(%rbp), %rdi
	addq	$11, %rdi
	callq	_setup_tracking
LBB0_37:
	leaq	-64(%rbp), %rdi
	callq	_strbuf_release
	movq	-56(%rbp), %rdi
	callq	_free
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_38:
	movq	%r13, %rsi
	callq	_error
	movq	_upstream_advice@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	callq	__
	movq	%rax, %rdi
	callq	_advise
	movl	$1, %edi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
	.comm	_STRBUF_INIT,8,3                ## @STRBUF_INIT
	.comm	_BRANCH_TRACK_EXPLICIT,4,2      ## @BRANCH_TRACK_EXPLICIT
	.comm	_BRANCH_TRACK_OVERRIDE,4,2      ## @BRANCH_TRACK_OVERRIDE
	.comm	_advice_set_upstream_failure,8,3 ## @advice_set_upstream_failure
	.comm	_upstream_missing,8,3           ## @upstream_missing
	.comm	_upstream_advice,8,3            ## @upstream_advice
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Not a valid object name: '%s'."

	.comm	_upstream_not_branch,8,3        ## @upstream_not_branch
L_.str.1:                               ## @.str.1
	.asciz	"refs/heads/"

L_.str.2:                               ## @.str.2
	.asciz	"Ambiguous object name: '%s'."

L_.str.3:                               ## @.str.3
	.asciz	"Not a valid branch point: '%s'."

	.comm	_LOG_REFS_NORMAL,4,2            ## @LOG_REFS_NORMAL
	.comm	_log_all_ref_updates,4,2        ## @log_all_ref_updates
L_.str.4:                               ## @.str.4
	.asciz	"branch: Reset to %s"

L_.str.5:                               ## @.str.5
	.asciz	"branch: Created from %s"

	.comm	_null_oid,4,2                   ## @null_oid
L_.str.6:                               ## @.str.6
	.asciz	"%s"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_create_branch                  ; -- Begin function create_branch
	.p2align	2
_create_branch:                         ; @create_branch
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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	x20, x7
	mov	x19, x6
	mov	x22, x5
	mov	x24, x3
	mov	x21, x2
	mov	x8, x1
	mov	x23, x0
Lloh0:
	adrp	x25, _STRBUF_INIT@GOTPAGE
Lloh1:
	ldr	x25, [x25, _STRBUF_INIT@GOTPAGEOFF]
	ldr	x9, [x25]
	str	x9, [sp, #8]
Lloh2:
	adrp	x9, _BRANCH_TRACK_EXPLICIT@GOTPAGE
Lloh3:
	ldr	x9, [x9, _BRANCH_TRACK_EXPLICIT@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	cmp	w9, w7
Lloh5:
	adrp	x9, _BRANCH_TRACK_OVERRIDE@GOTPAGE
Lloh6:
	ldr	x9, [x9, _BRANCH_TRACK_OVERRIDE@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	ccmp	w9, w7, #4, ne
	cset	w27, eq
	cbnz	w4, LBB0_4
; %bb.1:
	cmp	w9, w20
	b.eq	LBB0_4
; %bb.2:
	add	x1, sp, #8
	mov	x0, x8
	mov	x2, x24
	bl	_validate_new_branchname
	cbz	x0, LBB0_5
LBB0_3:
	cmp	w24, #0
	cset	w24, eq
	cset	w26, ne
	b	LBB0_6
LBB0_4:
	add	x1, sp, #8
	mov	x0, x8
	bl	_validate_branchname
	cbnz	x0, LBB0_3
LBB0_5:
	mov	w26, #1
	mov	w24, #1
LBB0_6:
	str	xzr, [sp, #16]
	add	x1, sp, #24
	mov	x0, x21
	bl	_get_oid_mb
	cbz	x0, LBB0_11
; %bb.7:
	cbz	w27, LBB0_10
; %bb.8:
Lloh8:
	adrp	x8, _advice_set_upstream_failure@GOTPAGE
Lloh9:
	ldr	x8, [x8, _advice_set_upstream_failure@GOTPAGEOFF]
Lloh10:
	ldr	x28, [x8]
Lloh11:
	adrp	x8, _upstream_missing@GOTPAGE
Lloh12:
	ldr	x8, [x8, _upstream_missing@GOTPAGEOFF]
Lloh13:
	ldr	x0, [x8]
	bl	__
	cbnz	x28, LBB0_35
; %bb.9:
	mov	x1, x21
	bl	_die
LBB0_10:
Lloh14:
	adrp	x0, l_.str@PAGE
Lloh15:
	add	x0, x0, l_.str@PAGEOFF
	bl	__
	mov	x1, x21
	bl	_die
LBB0_11:
	mov	x0, x21
	bl	_strlen
	mov	x1, x0
	add	x2, sp, #24
	add	x3, sp, #16
	mov	x0, x21
	bl	_dwim_ref
	cmp	w0, #1
	b.eq	LBB0_15
; %bb.12:
	cbnz	w0, LBB0_19
; %bb.13:
	cbz	w27, LBB0_21
LBB0_14:
Lloh16:
	adrp	x8, _upstream_not_branch@GOTPAGE
Lloh17:
	ldr	x8, [x8, _upstream_not_branch@GOTPAGEOFF]
Lloh18:
	ldr	x0, [x8]
	b	LBB0_20
LBB0_15:
	ldr	x0, [sp, #16]
Lloh19:
	adrp	x1, l_.str.1@PAGE
Lloh20:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_starts_with
	cbnz	w0, LBB0_21
; %bb.16:
	ldr	x0, [sp, #16]
	bl	_validate_remote_tracking_branch
	cbz	w0, LBB0_21
; %bb.17:
	cbnz	w27, LBB0_14
; %bb.18:
	str	xzr, [sp, #16]
	b	LBB0_21
LBB0_19:
Lloh21:
	adrp	x0, l_.str.2@PAGE
Lloh22:
	add	x0, x0, l_.str.2@PAGEOFF
LBB0_20:
	bl	__
	mov	x1, x21
	bl	_die
LBB0_21:
	add	x1, sp, #24
	mov	x0, x23
	bl	_lookup_commit_reference
	mov	x23, x0
	cbnz	x0, LBB0_23
; %bb.22:
Lloh23:
	adrp	x0, l_.str.3@PAGE
Lloh24:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	__
	mov	x1, x21
	bl	_die
LBB0_23:
	add	x0, sp, #24
	mov	x1, x23
	bl	_oidcpy
	cbz	w22, LBB0_25
; %bb.24:
Lloh25:
	adrp	x8, _LOG_REFS_NORMAL@GOTPAGE
Lloh26:
	ldr	x8, [x8, _LOG_REFS_NORMAL@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
Lloh28:
	adrp	x9, _log_all_ref_updates@GOTPAGE
Lloh29:
	ldr	x9, [x9, _log_all_ref_updates@GOTPAGEOFF]
Lloh30:
	str	w8, [x9]
LBB0_25:
	cbz	w26, LBB0_31
; %bb.26:
	ldr	x8, [x25]
	str	x8, [sp]
Lloh31:
	adrp	x8, l_.str.4@PAGE
Lloh32:
	add	x8, x8, l_.str.4@PAGEOFF
Lloh33:
	adrp	x9, l_.str.5@PAGE
Lloh34:
	add	x9, x9, l_.str.5@PAGEOFF
	cmp	w24, #0
	csel	x0, x9, x8, ne
	mov	x1, x21
	bl	_xstrfmt
	mov	x21, x0
	mov	x0, sp
	bl	_ref_transaction_begin
	mov	x22, x0
	cbz	x0, LBB0_29
; %bb.27:
	ldr	x1, [sp, #8]
Lloh35:
	adrp	x8, _null_oid@GOTPAGE
Lloh36:
	ldr	x8, [x8, _null_oid@GOTPAGEOFF]
	cmp	w24, #0
	csel	x3, x8, xzr, ne
	add	x2, sp, #24
	mov	x6, sp
	mov	x0, x22
	mov	w4, #0
	mov	x5, x21
	bl	_ref_transaction_update
	cbnz	x0, LBB0_29
; %bb.28:
	mov	x1, sp
	mov	x0, x22
	bl	_ref_transaction_commit
	cbz	x0, LBB0_30
LBB0_29:
	ldr	x1, [sp]
Lloh37:
	adrp	x0, l_.str.6@PAGE
Lloh38:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	_die
LBB0_30:
	mov	x0, x22
	bl	_ref_transaction_free
	mov	x0, sp
	bl	_strbuf_release
	mov	x0, x21
	bl	_free
LBB0_31:
	cbz	w20, LBB0_34
; %bb.32:
	ldr	x1, [sp, #16]
	cbz	x1, LBB0_34
; %bb.33:
	ldr	x8, [sp, #8]
	add	x0, x8, #11
	mov	x2, x20
	mov	x3, x19
	bl	_setup_tracking
LBB0_34:
	add	x0, sp, #8
	bl	_strbuf_release
	ldr	x0, [sp, #16]
	bl	_free
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_35:
	mov	x1, x21
	bl	_error
Lloh39:
	adrp	x8, _upstream_advice@GOTPAGE
Lloh40:
	ldr	x8, [x8, _upstream_advice@GOTPAGEOFF]
Lloh41:
	ldr	x0, [x8]
	bl	__
	bl	_advise
	mov	w0, #1
	bl	_exit
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotStr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh35, Lloh36
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.cfi_endproc
                                        ; -- End function
	.comm	_STRBUF_INIT,8,3                ; @STRBUF_INIT
	.comm	_BRANCH_TRACK_EXPLICIT,4,2      ; @BRANCH_TRACK_EXPLICIT
	.comm	_BRANCH_TRACK_OVERRIDE,4,2      ; @BRANCH_TRACK_OVERRIDE
	.comm	_advice_set_upstream_failure,8,3 ; @advice_set_upstream_failure
	.comm	_upstream_missing,8,3           ; @upstream_missing
	.comm	_upstream_advice,8,3            ; @upstream_advice
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Not a valid object name: '%s'."

	.comm	_upstream_not_branch,8,3        ; @upstream_not_branch
l_.str.1:                               ; @.str.1
	.asciz	"refs/heads/"

l_.str.2:                               ; @.str.2
	.asciz	"Ambiguous object name: '%s'."

l_.str.3:                               ; @.str.3
	.asciz	"Not a valid branch point: '%s'."

	.comm	_LOG_REFS_NORMAL,4,2            ; @LOG_REFS_NORMAL
	.comm	_log_all_ref_updates,4,2        ; @log_all_ref_updates
l_.str.4:                               ; @.str.4
	.asciz	"branch: Reset to %s"

l_.str.5:                               ; @.str.5
	.asciz	"branch: Created from %s"

	.comm	_null_oid,4,2                   ; @null_oid
l_.str.6:                               ; @.str.6
	.asciz	"%s"

.subsections_via_symbols
