	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function format_note
_format_note:                           ## @format_note
	.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	%r8d, %r14d
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movq	%rdx, %r13
	movq	%rsi, %rbx
	movq	%rdi, %r12
	testq	%rdi, %rdi
	jne	LBB0_2
## %bb.1:
	movq	_default_notes_tree@GOTPCREL(%rip), %r12
LBB0_2:
	cmpl	$0, 8(%r12)
	jne	LBB0_4
## %bb.3:
	movq	%r12, %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_init_notes
LBB0_4:
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_get_note
	testq	%rax, %rax
	je	LBB0_27
## %bb.5:
	leaq	-52(%rbp), %rsi
	leaq	-48(%rbp), %rdx
	movq	%rax, %rdi
	callq	_read_object_file
	movq	%rax, %r15
	testq	%rax, %rax
	je	LBB0_26
## %bb.6:
	movl	-52(%rbp), %eax
	movq	_OBJ_BLOB@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_26
## %bb.7:
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	testq	%rbx, %rbx
	je	LBB0_12
## %bb.8:
	cmpb	$0, (%rbx)
	je	LBB0_12
## %bb.9:
	movq	%rbx, %rdi
	callq	_is_encoding_utf8
	testl	%eax, %eax
	je	LBB0_10
LBB0_12:
	movq	-48(%rbp), %rax
	testq	%rax, %rax
	je	LBB0_16
LBB0_14:
	cmpb	$10, -1(%r15,%rax)
	jne	LBB0_16
## %bb.15:
	decq	%rax
	movq	%rax, -48(%rbp)
LBB0_16:
	testl	%r14d, %r14d
	jne	LBB0_21
## %bb.17:
	movq	(%r12), %rbx
	testq	%rbx, %rbx
	je	LBB0_19
## %bb.18:
	movq	_GIT_NOTES_DEFAULT_REF@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_19
## %bb.20:
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	callq	_starts_with
	xorl	%ecx, %ecx
	testq	%rax, %rax
	setne	%cl
	leaq	(%rcx,%rcx,4), %r12
	addq	%rbx, %r12
	leaq	L_.str.2(%rip), %rsi
	movq	%r12, %rdi
	callq	_starts_with
	testq	%rax, %rax
	movl	$6, %edx
	cmoveq	%rax, %rdx
	addq	%r12, %rdx
	leaq	L_.str.3(%rip), %rsi
	movq	%r13, %rdi
	callq	_strbuf_addf
	jmp	LBB0_21
LBB0_19:
	leaq	L_.str(%rip), %rsi
	movq	%r13, %rdi
	callq	_strbuf_addstr
LBB0_21:
	cmpq	$0, -48(%rbp)
	jle	LBB0_26
## %bb.22:
	movq	%r15, %rbx
	jmp	LBB0_23
	.p2align	4, 0x90
LBB0_25:                                ##   in Loop: Header=BB0_23 Depth=1
	movq	%r13, %rdi
	movq	%rbx, %rsi
	movq	%r12, %rdx
	callq	_strbuf_add
	movq	%r13, %rdi
	movl	$10, %esi
	callq	_strbuf_addch
	addq	%r12, %rbx
	incq	%rbx
	movq	-48(%rbp), %rax
	addq	%r15, %rax
	cmpq	%rax, %rbx
	jae	LBB0_26
LBB0_23:                                ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	movl	$10, %esi
	callq	_strchrnul
	movq	%rax, %r12
	subq	%rbx, %r12
	testl	%r14d, %r14d
	jne	LBB0_25
## %bb.24:                              ##   in Loop: Header=BB0_23 Depth=1
	movq	%r13, %rdi
	leaq	L_.str.4(%rip), %rsi
	callq	_strbuf_addstr
	jmp	LBB0_25
LBB0_26:
	movq	%r15, %rdi
	callq	_free
LBB0_27:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	leaq	_format_note.utf8(%rip), %rdx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_reencode_string
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	movq	%rax, %rbx
	movq	%r15, %rdi
	callq	_free
	movq	%rbx, %rdi
	callq	_strlen
	movq	%rax, -48(%rbp)
	movq	%rbx, %r15
	testq	%rax, %rax
	jne	LBB0_14
	jmp	LBB0_16
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__const
_format_note.utf8:                      ## @format_note.utf8
	.asciz	"utf-8"

	.comm	_default_notes_tree,16,3        ## @default_notes_tree
	.comm	_OBJ_BLOB,4,2                   ## @OBJ_BLOB
	.comm	_GIT_NOTES_DEFAULT_REF,4,2      ## @GIT_NOTES_DEFAULT_REF
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"\nNotes:\n"

L_.str.1:                               ## @.str.1
	.asciz	"refs/"

L_.str.2:                               ## @.str.2
	.asciz	"notes/"

L_.str.3:                               ## @.str.3
	.asciz	"\nNotes (%s):\n"

L_.str.4:                               ## @.str.4
	.asciz	"    "

	.no_dead_strip	_format_note
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function format_note
_format_note:                           ; @format_note
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x4
	mov	x23, x3
	mov	x20, x2
	mov	x21, x1
Lloh0:
	adrp	x8, _default_notes_tree@GOTPAGE
Lloh1:
	ldr	x8, [x8, _default_notes_tree@GOTPAGEOFF]
	cmp	x0, #0
	csel	x22, x8, x0, eq
	ldr	w8, [x22, #8]
	cbnz	w8, LBB0_2
; %bb.1:
	mov	x0, x22
	mov	x1, #0
	mov	x2, #0
	mov	w3, #0
	bl	_init_notes
LBB0_2:
	mov	x0, x22
	mov	x1, x21
	bl	_get_note
	cbz	x0, LBB0_22
; %bb.3:
	add	x1, sp, #4
	add	x2, sp, #8
	bl	_read_object_file
	mov	x21, x0
	cbz	x0, LBB0_21
; %bb.4:
	ldr	w8, [sp, #4]
Lloh2:
	adrp	x9, _OBJ_BLOB@GOTPAGE
Lloh3:
	ldr	x9, [x9, _OBJ_BLOB@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_21
; %bb.5:
	cbz	x23, LBB0_8
; %bb.6:
	ldrb	w8, [x23]
	cbz	w8, LBB0_8
; %bb.7:
	mov	x0, x23
	bl	_is_encoding_utf8
	cbz	w0, LBB0_23
LBB0_8:
	ldr	x0, [sp, #8]
	cbz	x0, LBB0_11
LBB0_9:
	sub	x8, x0, #1
	ldrb	w9, [x21, x8]
	cmp	w9, #10
	b.ne	LBB0_11
; %bb.10:
	str	x8, [sp, #8]
LBB0_11:
	cbnz	w19, LBB0_16
; %bb.12:
	ldr	x22, [x22]
	cbz	x22, LBB0_15
; %bb.13:
Lloh5:
	adrp	x8, _GIT_NOTES_DEFAULT_REF@GOTPAGE
Lloh6:
	ldr	x8, [x8, _GIT_NOTES_DEFAULT_REF@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x22
	bl	_strcmp
	cbz	w0, LBB0_15
; %bb.14:
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x22
	bl	_starts_with
	mov	w8, #5
	cmp	x0, #0
	csel	x8, xzr, x8, eq
	add	x22, x22, x8
Lloh10:
	adrp	x1, l_.str.2@PAGE
Lloh11:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x22
	bl	_starts_with
	mov	w8, #6
	cmp	x0, #0
	csel	x8, xzr, x8, eq
	add	x2, x22, x8
Lloh12:
	adrp	x1, l_.str.3@PAGE
Lloh13:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x20
	bl	_strbuf_addf
	b	LBB0_16
LBB0_15:
Lloh14:
	adrp	x1, l_.str@PAGE
Lloh15:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_strbuf_addstr
LBB0_16:
	ldr	x8, [sp, #8]
	cmp	x8, #1
	b.lt	LBB0_21
; %bb.17:
Lloh16:
	adrp	x22, l_.str.4@PAGE
Lloh17:
	add	x22, x22, l_.str.4@PAGEOFF
	mov	x23, x21
	b	LBB0_19
LBB0_18:                                ;   in Loop: Header=BB0_19 Depth=1
	mov	x0, x20
	mov	x1, x23
	mov	x2, x24
	bl	_strbuf_add
	mov	x0, x20
	mov	w1, #10
	bl	_strbuf_addch
	add	x8, x24, x23
	add	x23, x8, #1
	ldr	x8, [sp, #8]
	add	x8, x21, x8
	cmp	x23, x8
	b.hs	LBB0_21
LBB0_19:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x23
	mov	w1, #10
	bl	_strchrnul
	sub	x24, x0, x23
	cbnz	w19, LBB0_18
; %bb.20:                               ;   in Loop: Header=BB0_19 Depth=1
	mov	x0, x20
	mov	x1, x22
	bl	_strbuf_addstr
	b	LBB0_18
LBB0_21:
	mov	x0, x21
	bl	_free
LBB0_22:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_23:
Lloh18:
	adrp	x2, _format_note.utf8@PAGE
Lloh19:
	add	x2, x2, _format_note.utf8@PAGEOFF
	mov	x0, x21
	mov	x1, x23
	bl	_reencode_string
	cbz	x0, LBB0_8
; %bb.24:
	mov	x23, x0
	mov	x0, x21
	bl	_free
	mov	x0, x23
	bl	_strlen
	str	x0, [sp, #8]
	mov	x21, x23
	cbnz	x0, LBB0_9
	b	LBB0_11
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__const
_format_note.utf8:                      ; @format_note.utf8
	.asciz	"utf-8"

	.comm	_default_notes_tree,16,3        ; @default_notes_tree
	.comm	_OBJ_BLOB,4,2                   ; @OBJ_BLOB
	.comm	_GIT_NOTES_DEFAULT_REF,4,2      ; @GIT_NOTES_DEFAULT_REF
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"\nNotes:\n"

l_.str.1:                               ; @.str.1
	.asciz	"refs/"

l_.str.2:                               ; @.str.2
	.asciz	"notes/"

l_.str.3:                               ; @.str.3
	.asciz	"\nNotes (%s):\n"

l_.str.4:                               ; @.str.4
	.asciz	"    "

	.no_dead_strip	_format_note
.subsections_via_symbols
