	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function new_branch
_new_branch:                            ## @new_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	callq	_strlen
	movq	%r15, %rdi
	movl	%eax, %esi
	callq	_hc_str
	movl	%eax, %r14d
	movq	_branch_table_sz@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%r15, %rdi
	callq	_lookup_branch
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	movq	%r15, %rsi
	callq	_die
LBB0_2:
	movq	_REFNAME_ALLOW_ONELEVEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_check_refname_format
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	leaq	L_.str.1(%rip), %rdi
	movq	%r15, %rsi
	callq	_die
LBB0_4:
	movl	%r14d, %eax
	xorl	%edx, %edx
	divl	%ebx
	movl	%edx, %r14d
	movq	_fi_mem_pool@GOTPCREL(%rip), %rdi
	movl	$1, %esi
	movl	$48, %edx
	callq	_mem_pool_calloc
	movq	%rax, %rbx
	movq	%r15, %rdi
	callq	_pool_strdup
	movl	%eax, 40(%rbx)
	movq	_branch_table@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	(%rcx,%r14,8), %rcx
	movq	%rcx, 32(%rbx)
	movq	_S_IFDIR@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	movq	24(%rbx), %rsi
	movq	%rdx, (%rsi)
	movq	(%rcx), %rcx
	movq	%rcx, 8(%rsi)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 8(%rbx)
	movq	_MAX_PACK_ID@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, (%rbx)
	movq	(%rax), %rax
	movq	%rbx, (%rax,%r14,8)
	movq	_branch_count@GOTPCREL(%rip), %rax
	incl	(%rax)
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_branch_table_sz,4,2            ## @branch_table_sz
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid attempt to create duplicate branch: %s"

	.comm	_REFNAME_ALLOW_ONELEVEL,4,2     ## @REFNAME_ALLOW_ONELEVEL
L_.str.1:                               ## @.str.1
	.asciz	"Branch name doesn't conform to GIT standards: %s"

	.comm	_fi_mem_pool,4,2                ## @fi_mem_pool
	.comm	_branch_table,8,3               ## @branch_table
	.comm	_S_IFDIR,8,3                    ## @S_IFDIR
	.comm	_MAX_PACK_ID,4,2                ## @MAX_PACK_ID
	.comm	_branch_count,4,2               ## @branch_count
	.no_dead_strip	_new_branch
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function new_branch
_new_branch:                            ; @new_branch
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x0
	bl	_strlen
	mov	x1, x0
	mov	x0, x19
	bl	_hc_str
	mov	x20, x0
Lloh0:
	adrp	x8, _branch_table_sz@GOTPAGE
Lloh1:
	ldr	x8, [x8, _branch_table_sz@GOTPAGEOFF]
Lloh2:
	ldr	w21, [x8]
	mov	x0, x19
	bl	_lookup_branch
	cbz	x0, LBB0_2
; %bb.1:
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	bl	_die
LBB0_2:
Lloh5:
	adrp	x8, _REFNAME_ALLOW_ONELEVEL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _REFNAME_ALLOW_ONELEVEL@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_check_refname_format
	cbz	x0, LBB0_4
; %bb.3:
Lloh8:
	adrp	x0, l_.str.1@PAGE
Lloh9:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x19
	bl	_die
LBB0_4:
	udiv	w8, w20, w21
	msub	w21, w8, w21, w20
Lloh10:
	adrp	x0, _fi_mem_pool@GOTPAGE
Lloh11:
	ldr	x0, [x0, _fi_mem_pool@GOTPAGEOFF]
	mov	w1, #1
	mov	w2, #48
	bl	_mem_pool_calloc
	mov	x20, x0
	mov	x0, x19
	bl	_pool_strdup
Lloh12:
	adrp	x8, _branch_table@GOTPAGE
Lloh13:
	ldr	x8, [x8, _branch_table@GOTPAGEOFF]
	ldr	x9, [x8]
	lsl	x10, x21, #3
	ldr	x9, [x9, x10]
	str	w0, [x20, #40]
	str	x9, [x20, #32]
Lloh14:
	adrp	x9, _S_IFDIR@GOTPAGE
Lloh15:
	ldr	x9, [x9, _S_IFDIR@GOTPAGEOFF]
	ldr	x11, [x9]
	ldr	x12, [x20, #24]
	str	x11, [x12]
	ldr	x9, [x9]
	str	x9, [x12, #8]
Lloh16:
	adrp	x9, _MAX_PACK_ID@GOTPAGE
Lloh17:
	ldr	x9, [x9, _MAX_PACK_ID@GOTPAGEOFF]
	stp	xzr, xzr, [x20, #8]
Lloh18:
	ldr	w9, [x9]
	str	w9, [x20]
	ldr	x8, [x8]
	str	x20, [x8, x10]
Lloh19:
	adrp	x8, _branch_count@GOTPAGE
Lloh20:
	ldr	x8, [x8, _branch_count@GOTPAGEOFF]
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_branch_table_sz,4,2            ; @branch_table_sz
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid attempt to create duplicate branch: %s"

	.comm	_REFNAME_ALLOW_ONELEVEL,4,2     ; @REFNAME_ALLOW_ONELEVEL
l_.str.1:                               ; @.str.1
	.asciz	"Branch name doesn't conform to GIT standards: %s"

	.comm	_fi_mem_pool,4,2                ; @fi_mem_pool
	.comm	_branch_table,8,3               ; @branch_table
	.comm	_S_IFDIR,8,3                    ; @S_IFDIR
	.comm	_MAX_PACK_ID,4,2                ; @MAX_PACK_ID
	.comm	_branch_count,4,2               ; @branch_count
	.no_dead_strip	_new_branch
.subsections_via_symbols
