	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cmd_get_tar_commit_id          ## -- Begin function cmd_get_tar_commit_id
	.p2align	4, 0x90
_cmd_get_tar_commit_id:                 ## @cmd_get_tar_commit_id
	.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
	movl	%edi, %r14d
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_HEADERSIZE@GOTPCREL(%rip), %r13
	movl	(%r13), %ebx
	movq	%rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r12
	movq	_RECORDSIZE@GOTPCREL(%rip), %rax
	movslq	(%rax), %r15
	cmpl	$1, %r14d
	je	LBB0_2
## %bb.1:
	movq	_builtin_get_tar_commit_id_usage@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_usage
	movl	(%r13), %ebx
LBB0_2:
	xorl	%edi, %edi
	movq	%r12, %rsi
	movl	%ebx, %edx
	callq	_read_in_full
	movq	%rax, %rbx
	testq	%rax, %rax
	jns	LBB0_4
## %bb.3:
	leaq	L_.str(%rip), %rdi
	callq	_die_errno
LBB0_4:
	movslq	(%r13), %rax
	cmpq	%rax, %rbx
	je	LBB0_6
## %bb.5:
	leaq	L_.str.1(%rip), %rdi
	callq	_die_errno
LBB0_6:
	movq	(%r12), %rax
	movl	$1, %r14d
	cmpb	$103, (%rax)
	jne	LBB0_16
## %bb.7:
	addq	%r15, %r12
	leaq	-64(%rbp), %rsi
	movq	%r12, %rdi
	movl	$10, %edx
	callq	_strtol
	movq	%rax, %r15
	movq	_errno@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_ERANGE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_16
## %bb.8:
	movq	-64(%rbp), %rdi
	cmpq	%r12, %rdi
	je	LBB0_16
## %bb.9:
	testq	%r15, %r15
	js	LBB0_16
## %bb.10:
	leaq	L_.str.2(%rip), %rsi
	leaq	-56(%rbp), %rdx
	callq	_skip_prefix
	testl	%eax, %eax
	je	LBB0_16
## %bb.11:
	subq	-56(%rbp), %r12
	addq	%r15, %r12
	testq	%r12, %r12
	jle	LBB0_16
## %bb.12:
	movl	%r12d, %eax
	andl	$1, %eax
	testq	%rax, %rax
	je	LBB0_16
## %bb.13:
	leaq	-1(%r12), %rdi
	shrq	%rdi
	callq	_hash_algo_by_length
	movq	_GIT_HASH_UNKNOWN@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_16
## %bb.14:
	movq	-56(%rbp), %rsi
	movl	$1, %edi
	movq	%r12, %rdx
	callq	_write_in_full
	xorl	%r14d, %r14d
	testq	%rax, %rax
	jns	LBB0_16
## %bb.15:
	leaq	L_.str.3(%rip), %rdi
	callq	_die_errno
LBB0_16:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_18
## %bb.17:
	movl	%r14d, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_18:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_HEADERSIZE,4,2                 ## @HEADERSIZE
	.comm	_RECORDSIZE,4,2                 ## @RECORDSIZE
	.comm	_builtin_get_tar_commit_id_usage,4,2 ## @builtin_get_tar_commit_id_usage
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"git get-tar-commit-id: read error"

L_.str.1:                               ## @.str.1
	.asciz	"git get-tar-commit-id: EOF before reading tar header"

	.comm	_errno,8,3                      ## @errno
	.comm	_ERANGE,8,3                     ## @ERANGE
L_.str.2:                               ## @.str.2
	.asciz	" comment="

	.comm	_GIT_HASH_UNKNOWN,8,3           ## @GIT_HASH_UNKNOWN
L_.str.3:                               ## @.str.3
	.asciz	"git get-tar-commit-id: write error"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cmd_get_tar_commit_id          ; -- Begin function cmd_get_tar_commit_id
	.p2align	2
_cmd_get_tar_commit_id:                 ; @cmd_get_tar_commit_id
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	sub	sp, sp, #32
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-40]
Lloh3:
	adrp	x22, _HEADERSIZE@GOTPAGE
Lloh4:
	ldr	x22, [x22, _HEADERSIZE@GOTPAGEOFF]
	ldr	w2, [x22]
	mov	x9, x2
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x2, #15
	and	x9, x9, #0x1fffffff0
	sub	x19, x8, x9
	mov	sp, x19
Lloh7:
	adrp	x8, _RECORDSIZE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _RECORDSIZE@GOTPAGEOFF]
Lloh9:
	ldrsw	x21, [x8]
	cmp	w0, #1
	b.eq	LBB0_2
; %bb.1:
Lloh10:
	adrp	x8, _builtin_get_tar_commit_id_usage@GOTPAGE
Lloh11:
	ldr	x8, [x8, _builtin_get_tar_commit_id_usage@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
	bl	_usage
	ldr	w2, [x22]
LBB0_2:
	mov	w0, #0
	mov	x1, x19
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_read_in_full
	mov	x20, x0
	tbz	x0, #63, LBB0_4
; %bb.3:
Lloh13:
	adrp	x0, l_.str@PAGE
Lloh14:
	add	x0, x0, l_.str@PAGEOFF
	bl	_die_errno
LBB0_4:
	ldrsw	x8, [x22]
	cmp	x20, x8
	b.eq	LBB0_6
; %bb.5:
Lloh15:
	adrp	x0, l_.str.1@PAGE
Lloh16:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_die_errno
LBB0_6:
	ldr	x8, [x19]
	ldrb	w8, [x8]
	cmp	w8, #103
	b.ne	LBB0_8
; %bb.7:
	add	x19, x19, x21
	sub	x1, x29, #56
	mov	x0, x19
	mov	w2, #10
	bl	_strtol
Lloh17:
	adrp	x8, _errno@GOTPAGE
Lloh18:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh19:
	ldr	x8, [x8]
Lloh20:
	adrp	x9, _ERANGE@GOTPAGE
Lloh21:
	ldr	x9, [x9, _ERANGE@GOTPAGEOFF]
Lloh22:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_11
LBB0_8:
	mov	w0, #1
LBB0_9:
	ldur	x8, [x29, #-40]
Lloh23:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh24:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh25:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_19
; %bb.10:
	sub	sp, x29, #32
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_11:
	mov	x20, x0
	ldur	x8, [x29, #-56]
	mov	w0, #1
	cmp	x8, x19
	b.eq	LBB0_9
; %bb.12:
	tbnz	x20, #63, LBB0_9
; %bb.13:
Lloh26:
	adrp	x1, l_.str.2@PAGE
Lloh27:
	add	x1, x1, l_.str.2@PAGEOFF
	sub	x2, x29, #48
	mov	x0, x8
	bl	_skip_prefix
	cbz	w0, LBB0_8
; %bb.14:
	ldur	x8, [x29, #-48]
	sub	x8, x19, x8
	add	x19, x8, x20
	and	x9, x19, #0x1
	subs	x8, x19, #1
	ccmp	x9, #0, #4, ge
	b.eq	LBB0_8
; %bb.15:
	lsr	x0, x8, #1
	bl	_hash_algo_by_length
Lloh28:
	adrp	x8, _GIT_HASH_UNKNOWN@GOTPAGE
Lloh29:
	ldr	x8, [x8, _GIT_HASH_UNKNOWN@GOTPAGEOFF]
Lloh30:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_8
; %bb.16:
	ldur	x1, [x29, #-48]
	mov	w0, #1
	mov	x2, x19
	bl	_write_in_full
	tbz	x0, #63, LBB0_18
; %bb.17:
Lloh31:
	adrp	x0, l_.str.3@PAGE
Lloh32:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_die_errno
LBB0_18:
	mov	w0, #0
	b	LBB0_9
LBB0_19:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpAdd	Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.comm	_HEADERSIZE,4,2                 ; @HEADERSIZE
	.comm	_RECORDSIZE,4,2                 ; @RECORDSIZE
	.comm	_builtin_get_tar_commit_id_usage,4,2 ; @builtin_get_tar_commit_id_usage
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"git get-tar-commit-id: read error"

l_.str.1:                               ; @.str.1
	.asciz	"git get-tar-commit-id: EOF before reading tar header"

	.comm	_errno,8,3                      ; @errno
	.comm	_ERANGE,8,3                     ; @ERANGE
l_.str.2:                               ; @.str.2
	.asciz	" comment="

	.comm	_GIT_HASH_UNKNOWN,8,3           ; @GIT_HASH_UNKNOWN
l_.str.3:                               ; @.str.3
	.asciz	"git get-tar-commit-id: write error"

.subsections_via_symbols
