	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_create_bundle                  ## -- Begin function create_bundle
	.p2align	4, 0x90
_create_bundle:                         ## @create_bundle
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r13
	movl	%edx, -64(%rbp)                 ## 4-byte Spill
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	_LOCK_INIT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -56(%rbp)
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_strcmp
	testl	%eax, %eax
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	je	LBB0_1
## %bb.2:
	movq	_LOCK_DIE_ON_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-56(%rbp), %rdi
	movq	%rbx, %rsi
	callq	_hold_lock_file_for_update
	movl	%eax, %r12d
	jmp	LBB0_3
LBB0_1:
	movl	$1, %r12d
LBB0_3:
	movq	_bundle_signature@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movl	%r15d, %edi
	callq	_strlen
	movl	%r12d, %edi
	movl	%r15d, %esi
	movl	%eax, %edx
	callq	_write_or_die
	movq	_save_commit_buffer@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	leaq	-48(%rbp), %rbx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	xorl	%edx, %edx
	callq	_repo_init_revisions
	movl	%r12d, %edi
	movq	%rbx, %rsi
	movl	-64(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %edx
	movq	%r13, %rcx
	callq	_compute_and_write_prerequisites
	testq	%rax, %rax
	jne	LBB0_6
## %bb.4:
	leaq	-48(%rbp), %rdx
	movl	%ebx, %edi
	movq	%r13, %rsi
	xorl	%ecx, %ecx
	callq	_setup_revisions
	cmpl	$2, %eax
	jl	LBB0_7
## %bb.5:
	leaq	L_.str.1(%rip), %rdi
	callq	__
	movq	8(%r13), %rsi
	movl	%eax, %edi
	callq	_error
	jmp	LBB0_6
LBB0_7:
	leaq	-48(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_object_array_remove_duplicates
	movl	%r12d, %edi
	movq	%rbx, %rsi
	callq	_write_bundle_refs
	testl	%eax, %eax
	je	LBB0_8
## %bb.9:
	jns	LBB0_10
	jmp	LBB0_6
LBB0_8:
	leaq	L_.str.2(%rip), %rdi
	callq	__
	movl	%eax, %edi
	callq	_die
LBB0_10:
	leaq	-48(%rbp), %rsi
	movl	%r12d, %edi
	callq	_write_pack_data
	testq	%rax, %rax
	je	LBB0_11
LBB0_6:
	leaq	-56(%rbp), %rdi
	callq	_rollback_lock_file
	movl	$-1, %ebx
LBB0_14:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	xorl	%ebx, %ebx
	cmpl	$0, -60(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_14
## %bb.12:
	leaq	-56(%rbp), %rdi
	callq	_commit_lock_file
	testq	%rax, %rax
	je	LBB0_14
## %bb.13:
	leaq	L_.str.3(%rip), %rdi
	callq	__
	movl	%eax, %edi
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	callq	_die_errno
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_LOCK_INIT,4,2                  ## @LOCK_INIT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"-"

	.comm	_LOCK_DIE_ON_ERROR,4,2          ## @LOCK_DIE_ON_ERROR
	.comm	_bundle_signature,4,2           ## @bundle_signature
	.comm	_save_commit_buffer,8,3         ## @save_commit_buffer
L_.str.1:                               ## @.str.1
	.asciz	"unrecognized argument: %s"

L_.str.2:                               ## @.str.2
	.asciz	"Refusing to create empty bundle."

L_.str.3:                               ## @.str.3
	.asciz	"cannot create '%s'"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_create_bundle                  ; -- Begin function create_bundle
	.p2align	2
_create_bundle:                         ; @create_bundle
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.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
	mov	x22, x3
	mov	x23, x2
	mov	x19, x1
	mov	x24, x0
Lloh0:
	adrp	x8, _LOCK_INIT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _LOCK_INIT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [sp, #8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_strcmp
	mov	x20, x0
	cbz	w0, LBB0_2
; %bb.1:
Lloh5:
	adrp	x8, _LOCK_DIE_ON_ERROR@GOTPAGE
Lloh6:
	ldr	x8, [x8, _LOCK_DIE_ON_ERROR@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	add	x0, sp, #8
	mov	x1, x19
	bl	_hold_lock_file_for_update
	mov	x21, x0
	b	LBB0_3
LBB0_2:
	mov	w21, #1
LBB0_3:
Lloh8:
	adrp	x8, _bundle_signature@GOTPAGE
Lloh9:
	ldr	x8, [x8, _bundle_signature@GOTPAGEOFF]
Lloh10:
	ldr	w25, [x8]
	mov	x0, x25
	bl	_strlen
	mov	x2, x0
	mov	x0, x21
	mov	x1, x25
	bl	_write_or_die
Lloh11:
	adrp	x8, _save_commit_buffer@GOTPAGE
Lloh12:
	ldr	x8, [x8, _save_commit_buffer@GOTPAGEOFF]
Lloh13:
	str	xzr, [x8]
	mov	x1, sp
	mov	x0, x24
	mov	x2, #0
	bl	_repo_init_revisions
	mov	x1, sp
	mov	x0, x21
	mov	x2, x23
	mov	x3, x22
	bl	_compute_and_write_prerequisites
	cbnz	x0, LBB0_10
; %bb.4:
	mov	x2, sp
	mov	x0, x23
	mov	x1, x22
	mov	x3, #0
	bl	_setup_revisions
	cmp	w0, #2
	b.lt	LBB0_6
; %bb.5:
Lloh14:
	adrp	x0, l_.str.1@PAGE
Lloh15:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	__
	ldr	x1, [x22, #8]
	bl	_error
	b	LBB0_10
LBB0_6:
	mov	x0, sp
	bl	_object_array_remove_duplicates
	mov	x1, sp
	mov	x0, x21
	bl	_write_bundle_refs
	cbz	w0, LBB0_8
; %bb.7:
	tbz	w0, #31, LBB0_9
	b	LBB0_10
LBB0_8:
Lloh16:
	adrp	x0, l_.str.2@PAGE
Lloh17:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	__
	bl	_die
LBB0_9:
	mov	x1, sp
	mov	x0, x21
	bl	_write_pack_data
	cbz	x0, LBB0_12
LBB0_10:
	add	x0, sp, #8
	bl	_rollback_lock_file
	mov	w0, #-1
LBB0_11:
	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
	add	sp, sp, #96
	ret
LBB0_12:
	cbz	w20, LBB0_15
; %bb.13:
	add	x0, sp, #8
	bl	_commit_lock_file
	cbz	x0, LBB0_11
; %bb.14:
Lloh18:
	adrp	x0, l_.str.3@PAGE
Lloh19:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	__
	mov	x1, x19
	bl	_die_errno
LBB0_15:
	mov	w0, #0
	b	LBB0_11
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotStr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_LOCK_INIT,4,2                  ; @LOCK_INIT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"-"

	.comm	_LOCK_DIE_ON_ERROR,4,2          ; @LOCK_DIE_ON_ERROR
	.comm	_bundle_signature,4,2           ; @bundle_signature
	.comm	_save_commit_buffer,8,3         ; @save_commit_buffer
l_.str.1:                               ; @.str.1
	.asciz	"unrecognized argument: %s"

l_.str.2:                               ; @.str.2
	.asciz	"Refusing to create empty bundle."

l_.str.3:                               ; @.str.3
	.asciz	"cannot create '%s'"

.subsections_via_symbols
