	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function diff_tree_stdin
_diff_tree_stdin:                       ## @diff_tree_stdin
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	callq	_strlen
	movl	$-1, %r15d
	testl	%eax, %eax
	je	LBB0_9
## %bb.1:
	cltq
	cmpb	$10, -1(%rax,%rbx)
	jne	LBB0_9
## %bb.2:
	movb	$0, -1(%rbx,%rax)
	leaq	-32(%rbp), %rsi
	leaq	-40(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_parse_oid_hex
	testq	%rax, %rax
	je	LBB0_3
LBB0_9:
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	_the_repository@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-32(%rbp), %rsi
	callq	_parse_object
	testq	%rax, %rax
	je	LBB0_9
## %bb.4:
	movq	%rax, %r14
	movq	(%rax), %rax
	movq	_OBJ_COMMIT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_6
## %bb.5:
	movq	-40(%rbp), %rsi
	movq	%r14, %rdi
	callq	_stdin_diff_commit
	movl	%eax, %r15d
	jmp	LBB0_9
LBB0_6:
	movq	_OBJ_TREE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_8
## %bb.7:
	movq	-40(%rbp), %rsi
	movq	%r14, %rdi
	callq	_stdin_diff_trees
	movl	%eax, %r15d
	jmp	LBB0_9
LBB0_8:
	leaq	-32(%rbp), %rdi
	callq	_oid_to_hex
	movl	%eax, %ebx
	movq	(%r14), %rdi
	callq	_type_name
	leaq	L_.str(%rip), %rdi
	movl	%ebx, %esi
	movq	%rax, %rdx
	callq	_error
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_the_repository,4,2             ## @the_repository
	.comm	_OBJ_COMMIT,8,3                 ## @OBJ_COMMIT
	.comm	_OBJ_TREE,8,3                   ## @OBJ_TREE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Object %s is a %s, not a commit or tree"

	.no_dead_strip	_diff_tree_stdin
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function diff_tree_stdin
_diff_tree_stdin:                       ; @diff_tree_stdin
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x0
	bl	_strlen
                                        ; kill: def $w0 killed $w0 def $x0
	cbz	w0, LBB0_3
; %bb.1:
	sxtw	x8, w0
	sub	x8, x8, #1
	ldrb	w9, [x19, x8]
	cmp	w9, #10
	b.ne	LBB0_3
; %bb.2:
	strb	wzr, [x19, x8]
	add	x1, sp, #8
	mov	x2, sp
	mov	x0, x19
	bl	_parse_oid_hex
	cbz	x0, LBB0_5
LBB0_3:
	mov	w0, #-1
LBB0_4:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_5:
Lloh0:
	adrp	x8, _the_repository@GOTPAGE
Lloh1:
	ldr	x8, [x8, _the_repository@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	add	x1, sp, #8
	bl	_parse_object
	cbz	x0, LBB0_3
; %bb.6:
	mov	x19, x0
	ldr	x8, [x0]
Lloh3:
	adrp	x9, _OBJ_COMMIT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _OBJ_COMMIT@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.7:
	ldr	x1, [sp]
	mov	x0, x19
	bl	_stdin_diff_commit
	b	LBB0_4
LBB0_8:
Lloh6:
	adrp	x9, _OBJ_TREE@GOTPAGE
Lloh7:
	ldr	x9, [x9, _OBJ_TREE@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_10
; %bb.9:
	ldr	x1, [sp]
	mov	x0, x19
	bl	_stdin_diff_trees
	b	LBB0_4
LBB0_10:
	add	x0, sp, #8
	bl	_oid_to_hex
	mov	x20, x0
	ldr	x0, [x19]
	bl	_type_name
	mov	x2, x0
Lloh9:
	adrp	x0, l_.str@PAGE
Lloh10:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
	bl	_error
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_the_repository,4,2             ; @the_repository
	.comm	_OBJ_COMMIT,8,3                 ; @OBJ_COMMIT
	.comm	_OBJ_TREE,8,3                   ; @OBJ_TREE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Object %s is a %s, not a commit or tree"

	.no_dead_strip	_diff_tree_stdin
.subsections_via_symbols
