	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cmd_mktree                     ## -- Begin function cmd_mktree
	.p2align	4, 0x90
_cmd_mktree:                            ## @cmd_mktree
	.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
	movq	%rdx, %r14
	movq	%rsi, %r15
	movl	%edi, %ebx
	movq	_STRBUF_INIT@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -56(%rbp)
	movl	$0, -48(%rbp)
	movl	$0, -60(%rbp)
	movl	$0, -44(%rbp)
	leaq	L_.str(%rip), %rdi
	callq	_N_
	leaq	-48(%rbp), %rdx
	movl	$122, %edi
	xorl	%esi, %esi
	movl	%eax, %ecx
	callq	_OPT_BOOL
	movl	%eax, -80(%rbp)
	leaq	L_.str.2(%rip), %rdi
	callq	_N_
	leaq	L_.str.1(%rip), %rsi
	leaq	-60(%rbp), %rdx
	xorl	%edi, %edi
	movl	%eax, %ecx
	movl	$1, %r8d
	callq	_OPT_SET_INT
	movl	%eax, -76(%rbp)
	leaq	L_.str.4(%rip), %rdi
	callq	_N_
	leaq	L_.str.3(%rip), %rsi
	leaq	-44(%rbp), %rdx
	xorl	%edi, %edi
	movl	%eax, %ecx
	movl	$1, %r8d
	callq	_OPT_SET_INT
	movl	%eax, -72(%rbp)
	xorl	%eax, %eax
	callq	_OPT_END
	movl	%eax, -68(%rbp)
	movq	_mktree_usage@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	leaq	-80(%rbp), %rcx
	movl	%ebx, %edi
	movq	%r15, %rsi
	movq	%r14, %rdx
	xorl	%r9d, %r9d
	callq	_parse_options
	cmpl	$0, -48(%rbp)
	jne	LBB0_1
## %bb.2:
	movq	_strbuf_getline_lf@GOTPCREL(%rip), %r14
	jmp	LBB0_3
LBB0_1:
	movq	_strbuf_getline_nul@GOTPCREL(%rip), %r14
LBB0_3:
	movq	_stdin@GOTPCREL(%rip), %rbx
	leaq	-56(%rbp), %r12
	movq	_EOF@GOTPCREL(%rip), %r13
	leaq	L_.str.5(%rip), %r15
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	%r13, %r12
	movq	%r15, %r13
	leaq	-88(%rbp), %r15
	movq	%r15, %rdi
	movl	%edx, -64(%rbp)                 ## 4-byte Spill
	callq	_write_tree
	movq	%r15, %rdi
	movq	%r13, %r15
	movq	%r12, %r13
	leaq	-56(%rbp), %r12
	callq	_oid_to_hex
	movl	%eax, %edi
	callq	_puts
	movq	_stdout@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_fflush
	movq	_used@GOTPCREL(%rip), %rax
	movl	$0, (%rax)
	cmpb	$0, -64(%rbp)                   ## 1-byte Folded Reload
	je	LBB0_17
LBB0_4:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_6 Depth 2
	movl	(%rbx), %esi
	movq	%r12, %rdi
	callq	*%r14
	movb	$1, %cl
	cmpq	(%r13), %rax
	jne	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	xorl	%edx, %edx
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_6 Depth=2
	movq	%r15, %rdi
	callq	_die
	movq	-56(%rbp), %rdi
LBB0_10:                                ##   in Loop: Header=BB0_6 Depth=2
	movl	-48(%rbp), %esi
	movl	-60(%rbp), %edx
	callq	_mktree_line
	movl	(%rbx), %esi
	movq	%r12, %rdi
	callq	*%r14
	cmpq	(%r13), %rax
	je	LBB0_11
LBB0_6:                                 ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	-56(%rbp), %rdi
	cmpb	$0, (%rdi)
	jne	LBB0_10
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=2
	cmpl	$0, -44(%rbp)
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=1
	movb	$1, %dl
	xorl	%ecx, %ecx
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_4 Depth=1
	xorl	%edx, %edx
	movb	$1, %cl
LBB0_12:                                ##   in Loop: Header=BB0_4 Depth=1
	cmpl	$0, -44(%rbp)
	je	LBB0_16
## %bb.13:                              ##   in Loop: Header=BB0_4 Depth=1
	testb	%cl, %cl
	je	LBB0_16
## %bb.14:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	_used@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jg	LBB0_16
## %bb.15:
	movq	_used@GOTPCREL(%rip), %rax
	movl	$0, (%rax)
LBB0_17:
	leaq	-56(%rbp), %rdi
	callq	_strbuf_release
	xorl	%edi, %edi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
	.comm	_STRBUF_INIT,8,3                ## @STRBUF_INIT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"input is NUL terminated"

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

L_.str.2:                               ## @.str.2
	.asciz	"allow missing objects"

L_.str.3:                               ## @.str.3
	.asciz	"batch"

L_.str.4:                               ## @.str.4
	.asciz	"allow creation of more than one tree"

	.comm	_mktree_usage,4,2               ## @mktree_usage
	.comm	_stdin,4,2                      ## @stdin
	.comm	_EOF,8,3                        ## @EOF
L_.str.5:                               ## @.str.5
	.asciz	"input format error: (blank line only valid in batch mode)"

	.comm	_used,4,2                       ## @used
	.comm	_stdout,4,2                     ## @stdout
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cmd_mktree                     ; -- Begin function cmd_mktree
	.p2align	2
_cmd_mktree:                            ; @cmd_mktree
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	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
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _STRBUF_INIT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _STRBUF_INIT@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #40]
	str	xzr, [sp, #24]
	str	wzr, [sp, #20]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_N_
	mov	x3, x0
	add	x2, sp, #28
	mov	w0, #122
	mov	x1, #0
	bl	_OPT_BOOL
	str	w0, [sp]
Lloh5:
	adrp	x0, l_.str.2@PAGE
Lloh6:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_N_
	mov	x3, x0
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	add	x2, sp, #24
	mov	w0, #0
	mov	w4, #1
	bl	_OPT_SET_INT
	str	w0, [sp, #4]
Lloh9:
	adrp	x0, l_.str.4@PAGE
Lloh10:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_N_
	mov	x3, x0
Lloh11:
	adrp	x1, l_.str.3@PAGE
Lloh12:
	add	x1, x1, l_.str.3@PAGEOFF
	add	x2, sp, #20
	mov	w0, #0
	mov	w4, #1
	bl	_OPT_SET_INT
	str	w0, [sp, #8]
	bl	_OPT_END
	str	w0, [sp, #12]
Lloh13:
	adrp	x8, _mktree_usage@GOTPAGE
Lloh14:
	ldr	x8, [x8, _mktree_usage@GOTPAGEOFF]
Lloh15:
	ldr	w4, [x8]
	mov	x3, sp
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	mov	w5, #0
	bl	_parse_options
	ldr	w8, [sp, #28]
Lloh16:
	adrp	x9, _strbuf_getline_nul@GOTPAGE
Lloh17:
	ldr	x9, [x9, _strbuf_getline_nul@GOTPAGEOFF]
Lloh18:
	adrp	x10, _strbuf_getline_lf@GOTPAGE
Lloh19:
	ldr	x10, [x10, _strbuf_getline_lf@GOTPAGEOFF]
	cmp	w8, #0
	csel	x20, x10, x9, eq
Lloh20:
	adrp	x21, _stdin@GOTPAGE
Lloh21:
	ldr	x21, [x21, _stdin@GOTPAGEOFF]
Lloh22:
	adrp	x23, _EOF@GOTPAGE
Lloh23:
	ldr	x23, [x23, _EOF@GOTPAGEOFF]
Lloh24:
	adrp	x22, _used@GOTPAGE
Lloh25:
	ldr	x22, [x22, _used@GOTPAGEOFF]
Lloh26:
	adrp	x24, _stdout@GOTPAGE
Lloh27:
	ldr	x24, [x24, _stdout@GOTPAGEOFF]
Lloh28:
	adrp	x19, l_.str.5@PAGE
Lloh29:
	add	x19, x19, l_.str.5@PAGEOFF
	b	LBB0_3
LBB0_1:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x19
	bl	_die
	ldr	x0, [sp, #40]
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldp	w2, w1, [sp, #24]
	bl	_mktree_line
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x21]
	add	x0, sp, #40
	blr	x20
	ldr	x8, [x23]
	cmp	x0, x8
	b.eq	LBB0_7
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x0, [sp, #40]
	ldrb	w8, [x0]
	cbnz	w8, LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [sp, #20]
	cbz	w8, LBB0_1
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	w8, #0
	mov	w25, #1
	b	LBB0_8
LBB0_7:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	w25, #0
	mov	w8, #1
LBB0_8:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	w9, [sp, #20]
	ldr	w10, [x22]
	cmp	w9, #0
	ccmp	w8, #0, #4, ne
	ccmp	w10, #0, #0, ne
	b.le	LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x0, sp, #32
	bl	_write_tree
	add	x0, sp, #32
	bl	_oid_to_hex
	bl	_puts
	ldr	w0, [x24]
	bl	_fflush
	str	wzr, [x22]
	tbnz	w25, #0, LBB0_3
	b	LBB0_11
LBB0_10:
	str	wzr, [x22]
LBB0_11:
	add	x0, sp, #40
	bl	_strbuf_release
	mov	w0, #0
	bl	_exit
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_STRBUF_INIT,8,3                ; @STRBUF_INIT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"input is NUL terminated"

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

l_.str.2:                               ; @.str.2
	.asciz	"allow missing objects"

l_.str.3:                               ; @.str.3
	.asciz	"batch"

l_.str.4:                               ; @.str.4
	.asciz	"allow creation of more than one tree"

	.comm	_mktree_usage,4,2               ; @mktree_usage
	.comm	_stdin,4,2                      ; @stdin
	.comm	_EOF,8,3                        ; @EOF
l_.str.5:                               ; @.str.5
	.asciz	"input format error: (blank line only valid in batch mode)"

	.comm	_used,4,2                       ; @used
	.comm	_stdout,4,2                     ; @stdout
.subsections_via_symbols
