	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cmd_bundle                     ## -- Begin function cmd_bundle
	.p2align	4, 0x90
_cmd_bundle:                            ## @cmd_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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movq	%rsi, %r12
	movl	%edi, %r14d
	cmpl	$2, %edi
	jg	LBB0_2
## %bb.1:
	movq	_builtin_bundle_usage@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_usage
LBB0_2:
	movq	8(%r12), %r15
	movq	16(%r12), %rsi
	movq	%rbx, %rdi
	callq	_prefix_filename
	movq	%rax, %rbx
	leaq	-48(%rbp), %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	leaq	-48(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_read_bundle_header
	movl	%eax, %r13d
	testl	%eax, %eax
	jns	LBB0_6
## %bb.4:
	movl	$1, %ebx
	jmp	LBB0_26
LBB0_5:
	movl	$-1, %r13d
LBB0_6:
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	leal	-2(%r14), %ebx
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_11
## %bb.7:
	movl	%ebx, -52(%rbp)                 ## 4-byte Spill
	addq	$16, %r12
	leaq	L_.str.3(%rip), %rsi
	movq	%r15, %rdi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_14
## %bb.8:
	leaq	L_.str(%rip), %rsi
	movq	%r15, %rdi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_16
## %bb.9:
	leaq	L_.str.5(%rip), %rsi
	movq	%r15, %rdi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_18
## %bb.10:
	movq	_builtin_bundle_usage@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_usage
                                        ## implicit-def: $ebx
	jmp	LBB0_26
LBB0_11:
	movl	%r13d, %edi
	callq	_close
	cmpl	$1, %ebx
	jne	LBB0_17
## %bb.12:
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	movq	_the_repository@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-48(%rbp), %rsi
	movl	$1, %ebx
	movl	$1, %edx
	callq	_verify_bundle
	testq	%rax, %rax
	jne	LBB0_26
## %bb.13:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	leaq	L_.str.2(%rip), %rdi
	callq	__
	movl	%ebx, %edi
	movq	%rax, %rsi
	movq	%r14, %rdx
	callq	_fprintf
	xorl	%ebx, %ebx
	jmp	LBB0_26
LBB0_14:
	movl	%r13d, %edi
	callq	_close
	leaq	-48(%rbp), %rdi
	movl	-52(%rbp), %esi                 ## 4-byte Reload
LBB0_15:
	movq	%r12, %rdx
	callq	_list_bundle_refs
	xorl	%ebx, %ebx
	testq	%rax, %rax
	jmp	LBB0_25
LBB0_16:
	cmpl	$3, %r14d
	jg	LBB0_22
LBB0_17:
	movq	_builtin_bundle_usage@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_usage
	movl	$1, %ebx
	jmp	LBB0_26
LBB0_18:
	movq	_startup_info@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpl	$0, (%rax)
	jne	LBB0_20
## %bb.19:
	leaq	L_.str.6(%rip), %rdi
	callq	__
	movq	%rax, %rdi
	callq	_die
LBB0_20:
	movq	_the_repository@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-48(%rbp), %rsi
	movl	%r13d, %edx
	xorl	%ecx, %ecx
	callq	_unbundle
	movl	$1, %ebx
	testl	%eax, %eax
	movl	-52(%rbp), %esi                 ## 4-byte Reload
	jne	LBB0_26
## %bb.21:
	leaq	-48(%rbp), %rdi
	jmp	LBB0_15
LBB0_22:
	movq	_startup_info@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpl	$0, (%rax)
	jne	LBB0_24
## %bb.23:
	leaq	L_.str.4(%rip), %rdi
	callq	__
	movq	%rax, %rdi
	callq	_die
LBB0_24:
	movq	_the_repository@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movl	-52(%rbp), %edx                 ## 4-byte Reload
	movq	%r12, %rcx
	callq	_create_bundle
	xorl	%ebx, %ebx
	testl	%eax, %eax
LBB0_25:
	setne	%bl
LBB0_26:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_builtin_bundle_usage,4,2       ## @builtin_bundle_usage
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"create"

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

	.comm	_the_repository,4,2             ## @the_repository
	.comm	_stderr,4,2                     ## @stderr
L_.str.2:                               ## @.str.2
	.asciz	"%s is okay\n"

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

	.comm	_startup_info,8,3               ## @startup_info
L_.str.4:                               ## @.str.4
	.asciz	"Need a repository to create a bundle."

L_.str.5:                               ## @.str.5
	.asciz	"unbundle"

L_.str.6:                               ## @.str.6
	.asciz	"Need a repository to unbundle."

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cmd_bundle                     ; -- Begin function cmd_bundle
	.p2align	2
_cmd_bundle:                            ; @cmd_bundle
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x21, x2
	mov	x20, x1
	mov	x22, x0
	subs	w19, w0, #2
	b.gt	LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _builtin_bundle_usage@GOTPAGE
Lloh1:
	ldr	x8, [x8, _builtin_bundle_usage@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_usage
LBB0_2:
	ldr	x1, [x20, #16]!
	ldur	x24, [x20, #-8]
	mov	x0, x21
	bl	_prefix_filename
	mov	x21, x0
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #4
	bl	_memset
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x24
	bl	_strcmp
	cbz	x0, LBB0_5
; %bb.3:
	add	x1, sp, #8
	mov	x0, x21
	bl	_read_bundle_header
	mov	x23, x0
	tbz	w0, #31, LBB0_6
LBB0_4:
	mov	w19, #1
	b	LBB0_25
LBB0_5:
	mov	w23, #-1
LBB0_6:
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x24
	bl	_strcmp
	cbz	x0, LBB0_11
; %bb.7:
Lloh7:
	adrp	x1, l_.str.3@PAGE
Lloh8:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x24
	bl	_strcmp
	cbz	x0, LBB0_14
; %bb.8:
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x24
	bl	_strcmp
	cbz	x0, LBB0_16
; %bb.9:
Lloh11:
	adrp	x1, l_.str.5@PAGE
Lloh12:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x24
	bl	_strcmp
	cbz	x0, LBB0_18
; %bb.10:
Lloh13:
	adrp	x8, _builtin_bundle_usage@GOTPAGE
Lloh14:
	ldr	x8, [x8, _builtin_bundle_usage@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
	bl	_usage
                                        ; implicit-def: $w19
	b	LBB0_25
LBB0_11:
	mov	x0, x23
	bl	_close
	cmp	w19, #1
	b.ne	LBB0_17
; %bb.12:
Lloh16:
	adrp	x8, _the_repository@GOTPAGE
Lloh17:
	ldr	x8, [x8, _the_repository@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
	add	x1, sp, #8
	mov	w2, #1
	bl	_verify_bundle
	cbnz	x0, LBB0_25
; %bb.13:
Lloh19:
	adrp	x8, _stderr@GOTPAGE
Lloh20:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh21:
	ldr	w19, [x8]
Lloh22:
	adrp	x0, l_.str.2@PAGE
Lloh23:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	__
	mov	x1, x0
	mov	x0, x19
	mov	x2, x21
	bl	_fprintf
	mov	w19, #0
	b	LBB0_25
LBB0_14:
	mov	x0, x23
	bl	_close
LBB0_15:
	add	x0, sp, #8
	mov	x1, x19
	mov	x2, x20
	bl	_list_bundle_refs
	cmp	x0, #0
	b	LBB0_24
LBB0_16:
	cmp	w22, #3
	b.gt	LBB0_21
LBB0_17:
Lloh24:
	adrp	x8, _builtin_bundle_usage@GOTPAGE
Lloh25:
	ldr	x8, [x8, _builtin_bundle_usage@GOTPAGEOFF]
Lloh26:
	ldr	w0, [x8]
	bl	_usage
	mov	w19, #1
	b	LBB0_25
LBB0_18:
Lloh27:
	adrp	x8, _startup_info@GOTPAGE
Lloh28:
	ldr	x8, [x8, _startup_info@GOTPAGEOFF]
Lloh29:
	ldr	x8, [x8]
	ldr	w8, [x8]
	cbnz	w8, LBB0_20
; %bb.19:
Lloh30:
	adrp	x0, l_.str.6@PAGE
Lloh31:
	add	x0, x0, l_.str.6@PAGEOFF
	bl	__
	bl	_die
LBB0_20:
Lloh32:
	adrp	x8, _the_repository@GOTPAGE
Lloh33:
	ldr	x8, [x8, _the_repository@GOTPAGEOFF]
Lloh34:
	ldr	w0, [x8]
	add	x1, sp, #8
	mov	x2, x23
	mov	w3, #0
	bl	_unbundle
	cbnz	w0, LBB0_4
	b	LBB0_15
LBB0_21:
Lloh35:
	adrp	x8, _startup_info@GOTPAGE
Lloh36:
	ldr	x8, [x8, _startup_info@GOTPAGEOFF]
Lloh37:
	ldr	x8, [x8]
	ldr	w8, [x8]
	cbnz	w8, LBB0_23
; %bb.22:
Lloh38:
	adrp	x0, l_.str.4@PAGE
Lloh39:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	__
	bl	_die
LBB0_23:
Lloh40:
	adrp	x8, _the_repository@GOTPAGE
Lloh41:
	ldr	x8, [x8, _the_repository@GOTPAGEOFF]
Lloh42:
	ldr	w0, [x8]
	mov	x1, x21
	mov	x2, x19
	mov	x3, x20
	bl	_create_bundle
	cmp	w0, #0
LBB0_24:
	cset	w19, ne
LBB0_25:
	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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpAdd	Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.cfi_endproc
                                        ; -- End function
	.comm	_builtin_bundle_usage,4,2       ; @builtin_bundle_usage
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"create"

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

	.comm	_the_repository,4,2             ; @the_repository
	.comm	_stderr,4,2                     ; @stderr
l_.str.2:                               ; @.str.2
	.asciz	"%s is okay\n"

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

	.comm	_startup_info,8,3               ; @startup_info
l_.str.4:                               ; @.str.4
	.asciz	"Need a repository to create a bundle."

l_.str.5:                               ; @.str.5
	.asciz	"unbundle"

l_.str.6:                               ; @.str.6
	.asciz	"Need a repository to unbundle."

.subsections_via_symbols
