	.file	"extr_bundle.c_cmd_bundle.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"create"
.LC1:
	.string	"verify"
.LC2:
	.string	"%s is okay\n"
.LC3:
	.string	"list-heads"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC4:
	.string	"Need a repository to create a bundle."
	.section	.rodata.str1.1
.LC5:
	.string	"unbundle"
	.section	.rodata.str1.8
	.align 8
.LC6:
	.string	"Need a repository to unbundle."
	.text
	.p2align 4
	.globl	cmd_bundle
	.type	cmd_bundle, @function
cmd_bundle:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdx
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	ebx, edi
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	cmp	edi, 2
	jle	.L20
.L2:
	mov	rsi, QWORD PTR 16[r12]
	mov	rdi, rbp
	mov	r14, QWORD PTR 8[r12]
	lea	ebp, -2[rbx]
	lea	rbx, 4[rsp]
	call	prefix_filename@PLT
	xor	esi, esi
	mov	rdi, rbx
	mov	edx, 4
	mov	r13, rax
	call	memset@PLT
	lea	rsi, .LC0[rip]
	mov	rdi, r14
	call	strcmp@PLT
	test	rax, rax
	je	.L15
	mov	rsi, rbx
	mov	rdi, r13
	call	read_bundle_header@PLT
	mov	r15d, eax
	test	eax, eax
	js	.L4
.L3:
	lea	rsi, .LC1[rip]
	mov	rdi, r14
	call	strcmp@PLT
	test	rax, rax
	jne	.L5
	mov	edi, r15d
	call	close@PLT
	cmp	ebp, 1
	jne	.L17
	mov	edi, DWORD PTR the_repository[rip]
	mov	edx, 1
	mov	rsi, rbx
	call	verify_bundle@PLT
	test	rax, rax
	je	.L21
.L4:
	mov	eax, 1
.L1:
	mov	rcx, QWORD PTR 8[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L22
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L15:
	.cfi_restore_state
	mov	r15d, -1
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L5:
	lea	rsi, .LC3[rip]
	mov	rdi, r14
	add	r12, 16
	call	strcmp@PLT
	test	rax, rax
	je	.L23
	lea	rsi, .LC0[rip]
	mov	rdi, r14
	call	strcmp@PLT
	test	rax, rax
	jne	.L9
	cmp	ebp, 1
	jle	.L17
	mov	rax, QWORD PTR startup_info[rip]
	mov	edx, DWORD PTR [rax]
	test	edx, edx
	je	.L24
.L11:
	mov	edi, DWORD PTR the_repository[rip]
	mov	rcx, r12
	mov	edx, ebp
	mov	rsi, r13
	call	create_bundle@PLT
	test	eax, eax
	setne	al
	movzx	eax, al
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L20:
	mov	edi, DWORD PTR builtin_bundle_usage[rip]
	call	usage@PLT
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L17:
	mov	edi, DWORD PTR builtin_bundle_usage[rip]
	call	usage@PLT
	mov	eax, 1
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L9:
	lea	rsi, .LC5[rip]
	mov	rdi, r14
	call	strcmp@PLT
	test	rax, rax
	jne	.L12
	mov	rax, QWORD PTR startup_info[rip]
	mov	eax, DWORD PTR [rax]
	test	eax, eax
	je	.L25
.L13:
	mov	edi, DWORD PTR the_repository[rip]
	xor	ecx, ecx
	mov	edx, r15d
	mov	rsi, rbx
	call	unbundle@PLT
	test	eax, eax
	jne	.L4
	jmp	.L18
	.p2align 4,,10
	.p2align 3
.L21:
	lea	rdi, .LC2[rip]
	call	_@PLT
	mov	edi, DWORD PTR stderr[rip]
	mov	rdx, r13
	mov	rsi, rax
	call	fprintf@PLT
	xor	eax, eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L23:
	mov	edi, r15d
	call	close@PLT
.L18:
	mov	rdx, r12
	mov	esi, ebp
	mov	rdi, rbx
	call	list_bundle_refs@PLT
	test	rax, rax
	setne	al
	movzx	eax, al
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L12:
	mov	edi, DWORD PTR builtin_bundle_usage[rip]
	call	usage@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L24:
	lea	rdi, .LC4[rip]
	call	_@PLT
	mov	rdi, rax
	call	die@PLT
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L25:
	lea	rdi, .LC6[rip]
	call	_@PLT
	mov	rdi, rax
	call	die@PLT
	jmp	.L13
.L22:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	cmd_bundle, .-cmd_bundle
	.comm	the_repository,4,4
	.comm	stderr,4,4
	.comm	startup_info,8,8
	.comm	builtin_bundle_usage,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_bundle.c_cmd_bundle.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"create\000"
	.align	2
.LC1:
	.ascii	"verify\000"
	.align	2
.LC2:
	.ascii	"%s is okay\012\000"
	.align	2
.LC3:
	.ascii	"list-heads\000"
	.align	2
.LC4:
	.ascii	"Need a repository to create a bundle.\000"
	.align	2
.LC5:
	.ascii	"unbundle\000"
	.align	2
.LC6:
	.ascii	"Need a repository to unbundle.\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC7:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	cmd_bundle
	.syntax unified
	.arm
	.fpu softvfp
	.type	cmd_bundle, %function
cmd_bundle:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r3, .L27
	sub	sp, sp, #8
	cmp	r0, #2
	mov	r4, r0
	mov	r5, r1
	mov	r6, r2
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	ble	.L20
.L2:
	mov	r0, r6
	ldr	r1, [r5, #8]
	ldr	r6, [r5, #4]
	bl	prefix_filename
	mov	r3, #0
	mov	r7, r0
	ldr	r1, .L27+4
	mov	r0, r6
	str	r3, [sp]
	bl	strcmp
	cmp	r0, #0
	mvneq	r8, #0
	sub	r4, r4, #2
	bne	.L21
.L3:
	mov	r0, r6
	ldr	r1, .L27+8
	bl	strcmp
	cmp	r0, #0
	beq	.L22
	mov	r0, r6
	ldr	r1, .L27+12
	bl	strcmp
	cmp	r0, #0
	add	r5, r5, #8
	beq	.L23
	mov	r0, r6
	ldr	r1, .L27+4
	bl	strcmp
	cmp	r0, #0
	bne	.L9
	cmp	r4, #1
	ble	.L17
	ldr	r3, .L27+16
	ldr	r3, [r3]
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L24
.L11:
	ldr	r0, .L27+20
	mov	r2, r4
	mov	r3, r5
	mov	r1, r7
	ldr	r0, [r0]
	bl	create_bundle
	subs	r4, r0, #0
	movne	r4, #1
	b	.L1
.L22:
	mov	r0, r8
	bl	close
	cmp	r4, #1
	beq	.L6
.L17:
	ldr	r3, .L27+24
	mov	r4, #1
	ldr	r0, [r3]
	bl	usage
.L1:
	ldr	r3, .L27
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L25
	mov	r0, r4
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L21:
	mov	r1, sp
	mov	r0, r7
	bl	read_bundle_header
	subs	r8, r0, #0
	bge	.L3
.L4:
	mov	r4, #1
	b	.L1
.L20:
	ldr	r3, .L27+24
	ldr	r0, [r3]
	bl	usage
	b	.L2
.L9:
	mov	r0, r6
	ldr	r1, .L27+28
	bl	strcmp
	cmp	r0, #0
	bne	.L12
	ldr	r3, .L27+16
	ldr	r3, [r3]
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L26
.L13:
	ldr	r3, .L27+20
	mov	r2, r8
	ldr	r0, [r3]
	mov	r1, sp
	mov	r3, #0
	bl	unbundle
	cmp	r0, #0
	bne	.L4
	b	.L18
.L6:
	ldr	r3, .L27+20
	mov	r2, r4
	mov	r1, sp
	ldr	r0, [r3]
	bl	verify_bundle
	subs	r4, r0, #0
	bne	.L4
	ldr	r3, .L27+32
	ldr	r0, .L27+36
	ldr	r5, [r3]
	bl	_
	mov	r2, r7
	mov	r1, r0
	mov	r0, r5
	bl	fprintf
	b	.L1
.L23:
	mov	r0, r8
	bl	close
.L18:
	mov	r1, r4
	mov	r2, r5
	mov	r0, sp
	bl	list_bundle_refs
	subs	r4, r0, #0
	movne	r4, #1
	b	.L1
.L12:
	ldr	r3, .L27+24
	ldr	r0, [r3]
	bl	usage
	b	.L1
.L24:
	ldr	r0, .L27+40
	bl	_
	bl	die
	b	.L11
.L26:
	ldr	r0, .L27+44
	bl	_
	bl	die
	b	.L13
.L25:
	bl	__stack_chk_fail
.L28:
	.align	2
.L27:
	.word	.LC7
	.word	.LC0
	.word	.LC1
	.word	.LC3
	.word	startup_info
	.word	the_repository
	.word	builtin_bundle_usage
	.word	.LC5
	.word	stderr
	.word	.LC2
	.word	.LC4
	.word	.LC6
	.size	cmd_bundle, .-cmd_bundle
	.comm	the_repository,4,4
	.comm	stderr,4,4
	.comm	startup_info,4,4
	.comm	builtin_bundle_usage,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
