	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cmd_mktag                      ## -- Begin function cmd_mktag
	.p2align	4, 0x90
_cmd_mktag:                             ## @cmd_mktag
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	subq	$16, %rsp
	movq	_STRBUF_INIT@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -8(%rbp)
	cmpl	$1, %edi
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	callq	_usage
LBB0_2:
	leaq	-8(%rbp), %rdi
	xorl	%esi, %esi
	movl	$4096, %edx                     ## imm = 0x1000
	callq	_strbuf_read
	testq	%rax, %rax
	jns	LBB0_4
## %bb.3:
	leaq	L_.str.1(%rip), %rdi
	callq	_die_errno
LBB0_4:
	movl	-8(%rbp), %esi
	movl	-4(%rbp), %edi
	callq	_verify_tag
	testq	%rax, %rax
	jns	LBB0_6
## %bb.5:
	leaq	L_.str.2(%rip), %rdi
	callq	_die
LBB0_6:
	movl	-8(%rbp), %esi
	movl	-4(%rbp), %edi
	movq	_tag_type@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-16(%rbp), %rcx
	callq	_write_object_file
	testq	%rax, %rax
	jns	LBB0_8
## %bb.7:
	leaq	L_.str.3(%rip), %rdi
	callq	_die
LBB0_8:
	leaq	-8(%rbp), %rdi
	callq	_strbuf_release
	leaq	-16(%rbp), %rdi
	callq	_oid_to_hex
	leaq	L_.str.4(%rip), %rdi
	movq	%rax, %rsi
	callq	_printf
	xorl	%eax, %eax
	addq	$16, %rsp
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_STRBUF_INIT,8,2                ## @STRBUF_INIT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"git mktag"

L_.str.1:                               ## @.str.1
	.asciz	"could not read from stdin"

L_.str.2:                               ## @.str.2
	.asciz	"invalid tag signature file"

	.comm	_tag_type,4,2                   ## @tag_type
L_.str.3:                               ## @.str.3
	.asciz	"unable to write tag file"

L_.str.4:                               ## @.str.4
	.asciz	"%s\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cmd_mktag                      ; -- Begin function cmd_mktag
	.p2align	2
_cmd_mktag:                             ; @cmd_mktag
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #32
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
Lloh0:
	adrp	x8, _STRBUF_INIT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _STRBUF_INIT@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #8]
	cmp	w0, #1
	b.eq	LBB0_2
; %bb.1:
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_usage
LBB0_2:
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #4096
	bl	_strbuf_read
	tbz	x0, #63, LBB0_4
; %bb.3:
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_die_errno
LBB0_4:
	ldp	w1, w0, [sp, #8]
	bl	_verify_tag
	tbz	x0, #63, LBB0_6
; %bb.5:
Lloh7:
	adrp	x0, l_.str.2@PAGE
Lloh8:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_die
LBB0_6:
	ldp	w1, w0, [sp, #8]
Lloh9:
	adrp	x8, _tag_type@GOTPAGE
Lloh10:
	ldr	x8, [x8, _tag_type@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	mov	x3, sp
	bl	_write_object_file
	tbz	x0, #63, LBB0_8
; %bb.7:
Lloh12:
	adrp	x0, l_.str.3@PAGE
Lloh13:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_die
LBB0_8:
	add	x0, sp, #8
	bl	_strbuf_release
	mov	x0, sp
	bl	_oid_to_hex
	mov	x1, x0
Lloh14:
	adrp	x0, l_.str.4@PAGE
Lloh15:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_printf
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #32
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_STRBUF_INIT,8,2                ; @STRBUF_INIT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"git mktag"

l_.str.1:                               ; @.str.1
	.asciz	"could not read from stdin"

l_.str.2:                               ; @.str.2
	.asciz	"invalid tag signature file"

	.comm	_tag_type,4,2                   ; @tag_type
l_.str.3:                               ; @.str.3
	.asciz	"unable to write tag file"

l_.str.4:                               ; @.str.4
	.asciz	"%s\n"

.subsections_via_symbols
