	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function format_and_pad_commit
_format_and_pad_commit:                 ## @format_and_pad_commit
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r12
	movq	%rsi, %rbx
	movq	_STRBUF_INIT@GOTPCREL(%rip), %rax
	movups	(%rax), %xmm0
	movaps	%xmm0, -64(%rbp)
	movl	(%rdx), %eax
	testl	%eax, %eax
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	js	LBB0_2
## %bb.1:
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	jmp	LBB0_3
LBB0_2:
	movl	%eax, %r15d
	movq	(%rdi), %r14
	movq	%r14, %rdi
	movl	$10, %esi
	callq	_strrchr
	testq	%rax, %rax
	cmovneq	%rax, %r14
	movq	%r14, %rdi
	movl	$-1, %esi
	movl	$1, %edx
	callq	_utf8_strnwidth
	movq	24(%r12), %rcx
	addl	(%rcx), %eax
	addl	%eax, %r15d
	negl	%r15d
	movl	%r15d, -44(%rbp)                ## 4-byte Spill
LBB0_3:
	movb	(%rbx), %r14b
	leaq	-64(%rbp), %rdi
	movq	%rbx, %rsi
	movq	%r12, %rdx
	callq	_format_commit_one
	movl	%eax, %r13d
	cmpb	$67, %r14b
	jne	LBB0_7
## %bb.4:
	leaq	-64(%rbp), %r14
	movl	%r13d, %eax
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	cltq
	cmpb	$37, (%rbx,%rax)
	jne	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	addq	%rax, %rbx
	movzbl	1(%rbx), %r15d
	incq	%rbx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movq	%r12, %rdx
	callq	_format_commit_one
                                        ## kill: def $eax killed $eax def $rax
	addl	%eax, %r13d
	incl	%r13d
	cmpb	$67, %r15b
	je	LBB0_5
LBB0_7:
	movq	-64(%rbp), %rdi
	movl	$-1, %esi
	movl	$1, %edx
	callq	_utf8_strnwidth
	movl	%eax, %r14d
	movq	8(%r12), %rax
	movq	_flush_left_and_steal@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_36
## %bb.8:
	movq	%r12, -80(%rbp)                 ## 8-byte Spill
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	movq	(%r15), %rax
	movslq	8(%r15), %rcx
	leaq	(%rax,%rcx), %r12
	decq	%r12
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	cmpl	%ebx, %r14d
	jle	LBB0_35
## %bb.9:
	cmpq	%rax, %r12
	jbe	LBB0_34
## %bb.10:
	movl	%r14d, -48(%rbp)                ## 4-byte Spill
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_11 Depth=1
	decq	%r12
	incl	%ebx
	cmpl	%ebx, %r14d
	jle	LBB0_34
LBB0_29:                                ##   in Loop: Header=BB0_11 Depth=1
	cmpq	(%r15), %r12
	jbe	LBB0_34
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movzbl	(%r12), %eax
	cmpb	$32, %al
	je	LBB0_15
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	cmpb	$109, %al
	jne	LBB0_34
## %bb.13:                              ##   in Loop: Header=BB0_11 Depth=1
	leaq	-1(%r12), %r15
	cmpb	$27, -1(%r12)
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	jne	LBB0_16
## %bb.14:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	%r12, %rbx
	jmp	LBB0_27
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_11 Depth=1
	leaq	-2(%r12), %rax
	cmpb	$27, -2(%r12)
	je	LBB0_26
## %bb.17:                              ##   in Loop: Header=BB0_11 Depth=1
	leaq	-3(%r12), %r15
	cmpb	$27, -3(%r12)
	je	LBB0_18
## %bb.19:                              ##   in Loop: Header=BB0_11 Depth=1
	leaq	-4(%r12), %rax
	cmpb	$27, -4(%r12)
	je	LBB0_26
## %bb.20:                              ##   in Loop: Header=BB0_11 Depth=1
	leaq	-5(%r12), %r15
	cmpb	$27, -5(%r12)
	je	LBB0_18
## %bb.22:                              ##   in Loop: Header=BB0_11 Depth=1
	leaq	-6(%r12), %rax
	cmpb	$27, -6(%r12)
	je	LBB0_26
## %bb.23:                              ##   in Loop: Header=BB0_11 Depth=1
	leaq	-7(%r12), %r15
	cmpb	$27, -7(%r12)
	je	LBB0_18
## %bb.25:                              ##   in Loop: Header=BB0_11 Depth=1
	leaq	-8(%r12), %rax
	cmpb	$27, -8(%r12)
	jne	LBB0_30
LBB0_26:                                ##   in Loop: Header=BB0_11 Depth=1
	movq	%r15, %rbx
	movq	%rax, %r15
	jmp	LBB0_27
LBB0_30:                                ##   in Loop: Header=BB0_11 Depth=1
	leaq	-9(%r12), %r15
	cmpb	$27, (%r15)
	jne	LBB0_32
LBB0_18:                                ##   in Loop: Header=BB0_11 Depth=1
	movq	%rax, %rbx
	.p2align	4, 0x90
LBB0_27:                                ##   in Loop: Header=BB0_11 Depth=1
	movq	%r12, %r14
	subq	%r15, %r14
	incq	%r14
	movq	%r15, %rdi
	callq	_display_mode_esc_sequence_len
	cltq
	cmpq	%rax, %r14
	jne	LBB0_33
## %bb.28:                              ##   in Loop: Header=BB0_11 Depth=1
	leaq	-64(%rbp), %rdi
	xorl	%esi, %esi
	movq	%r15, %rdx
	movl	%r14d, %ecx
	callq	_strbuf_insert
	addq	$-2, %rbx
	movq	%rbx, %r12
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	movl	-48(%rbp), %r14d                ## 4-byte Reload
	cmpl	%ebx, %r14d
	jg	LBB0_29
	jmp	LBB0_34
LBB0_32:                                ##   in Loop: Header=BB0_11 Depth=1
	movq	%r15, %rbx
	leaq	-10(%r12), %r15
	cmpb	$27, (%r15)
	je	LBB0_27
LBB0_33:
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	movl	-48(%rbp), %r14d                ## 4-byte Reload
LBB0_34:
	movq	(%r15), %rax
LBB0_35:
	subl	%eax, %r12d
	incl	%r12d
	movq	%r15, %rdi
	movl	%r12d, %esi
	callq	_strbuf_setlen
	movq	_flush_left@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	-80(%rbp), %r12                 ## 8-byte Reload
	movq	%rax, 8(%r12)
	jmp	LBB0_37
LBB0_36:
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
LBB0_37:
	movl	%ebx, %edx
	subl	%r14d, %edx
	jge	LBB0_42
## %bb.38:
	movl	16(%r12), %eax
	cmpl	$128, %eax
	je	LBB0_46
## %bb.39:
	cmpl	$130, %eax
	je	LBB0_47
## %bb.40:
	cmpl	$131, %eax
	jne	LBB0_49
## %bb.41:
	subl	%ebx, %r14d
	addl	$2, %r14d
	leaq	L_.str(%rip), %rcx
	leaq	-64(%rbp), %rdi
	xorl	%esi, %esi
	jmp	LBB0_48
LBB0_42:
	movl	%r14d, %esi
	movslq	8(%r15), %r14
	movq	_flush_left@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_44
## %bb.43:
	subl	%esi, %ebx
	movl	%ebx, %edx
	jmp	LBB0_51
LBB0_44:
	movq	_flush_both@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_50
## %bb.45:
	movl	%edx, %ebx
	shrl	$31, %ebx
	addl	%edx, %ebx
	sarl	%ebx
	jmp	LBB0_51
LBB0_46:
	addl	$-2, %ebx
	subl	%ebx, %r14d
	leaq	L_.str(%rip), %rcx
	leaq	-64(%rbp), %rdi
	movl	%ebx, %esi
	jmp	LBB0_48
LBB0_47:
	movl	%ebx, %esi
	shrl	$31, %esi
	addl	%ebx, %esi
	sarl	%esi
	decl	%esi
	subl	%ebx, %r14d
	addl	$2, %r14d
	leaq	L_.str(%rip), %rcx
	leaq	-64(%rbp), %rdi
LBB0_48:
	movl	%r14d, %edx
	callq	_strbuf_utf8_replace
LBB0_49:
	leaq	-64(%rbp), %rsi
	movq	%r15, %rdi
	callq	_strbuf_addbuf
	jmp	LBB0_52
LBB0_50:
	xorl	%ebx, %ebx
LBB0_51:
	addl	-56(%rbp), %edx
	movq	%r15, %rdi
	movl	$32, %esi
	callq	_strbuf_addchars
	addq	(%r15), %r14
	movslq	%ebx, %rdi
	addq	%r14, %rdi
	movq	-64(%rbp), %rsi
	movl	-56(%rbp), %edx
	callq	_memcpy
LBB0_52:
	leaq	-64(%rbp), %rdi
	callq	_strbuf_release
	movq	_no_flush@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%r12)
	movslq	%r13d, %rax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_STRBUF_INIT,16,3               ## @STRBUF_INIT
	.comm	_flush_left_and_steal,8,3       ## @flush_left_and_steal
	.comm	_flush_left,8,3                 ## @flush_left
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	".."

	.comm	_flush_both,8,3                 ## @flush_both
	.comm	_no_flush,8,3                   ## @no_flush
	.no_dead_strip	_format_and_pad_commit
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function format_and_pad_commit
_format_and_pad_commit:                 ; @format_and_pad_commit
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x2
	mov	x22, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _STRBUF_INIT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _STRBUF_INIT@GOTPAGEOFF]
Lloh2:
	ldr	q0, [x8]
	str	q0, [sp]
	ldr	w25, [x2]
	tbz	w25, #31, LBB0_2
; %bb.1:
	ldr	x21, [x20]
	mov	x0, x21
	mov	w1, #10
	bl	_strrchr
	cmp	x0, #0
	csel	x0, x21, x0, eq
	mov	w1, #-1
	mov	w2, #1
	bl	_utf8_strnwidth
	ldr	x8, [x19, #24]
	ldr	w8, [x8]
	add	w8, w0, w8
	add	w8, w25, w8
	neg	w25, w8
LBB0_2:
	ldrb	w23, [x22]
	mov	x0, sp
	mov	x1, x22
	mov	x2, x19
	bl	_format_commit_one
	mov	x21, x0
	cmp	w23, #67
	b.ne	LBB0_6
; %bb.3:
	mov	x0, x21
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	add	x22, x22, w0, sxtw
	ldrb	w8, [x22]
	cmp	w8, #37
	b.ne	LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldrb	w23, [x22, #1]!
	mov	x0, sp
	mov	x1, x22
	mov	x2, x19
	bl	_format_commit_one
	add	w8, w21, w0
	add	w21, w8, #1
	cmp	w23, #67
	b.eq	LBB0_4
LBB0_6:
	ldr	x0, [sp]
	mov	w1, #-1
	mov	w2, #1
	bl	_utf8_strnwidth
	mov	x22, x0
	ldr	x8, [x19, #8]
Lloh3:
	adrp	x9, _flush_left_and_steal@GOTPAGE
Lloh4:
	ldr	x9, [x9, _flush_left_and_steal@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_32
; %bb.7:
	ldr	x8, [x20]
	ldrsw	x9, [x20, #8]
	add	x9, x8, x9
	sub	x26, x9, #1
	cmp	w22, w25
	b.le	LBB0_31
; %bb.8:
	cmp	x26, x8
	b.ls	LBB0_30
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w8, [x26]
	cmp	w8, #32
	b.eq	LBB0_13
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	cmp	w8, #109
	b.ne	LBB0_30
; %bb.11:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	x23, x26
	ldrb	w8, [x23, #-1]!
	cmp	w8, #27
	b.ne	LBB0_14
; %bb.12:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	x27, x26
	b	LBB0_21
LBB0_13:                                ;   in Loop: Header=BB0_9 Depth=1
	sub	x26, x26, #1
	add	w25, w25, #1
	cmp	w22, w25
	b.gt	LBB0_23
	b	LBB0_30
LBB0_14:                                ;   in Loop: Header=BB0_9 Depth=1
	mov	x8, x26
	ldrb	w9, [x8, #-2]!
	cmp	w9, #27
	b.ne	LBB0_16
; %bb.15:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	x27, x23
	b	LBB0_20
LBB0_16:                                ;   in Loop: Header=BB0_9 Depth=1
	mov	x9, x26
	ldrb	w10, [x9, #-3]!
	cmp	w10, #27
	b.ne	LBB0_18
LBB0_17:                                ;   in Loop: Header=BB0_9 Depth=1
	mov	x27, x8
	mov	x23, x9
	b	LBB0_21
LBB0_18:                                ;   in Loop: Header=BB0_9 Depth=1
	mov	x8, x26
	ldrb	w10, [x8, #-4]!
	cmp	w10, #27
	b.ne	LBB0_24
LBB0_19:                                ;   in Loop: Header=BB0_9 Depth=1
	mov	x27, x9
LBB0_20:                                ;   in Loop: Header=BB0_9 Depth=1
	mov	x23, x8
LBB0_21:                                ;   in Loop: Header=BB0_9 Depth=1
	sub	x8, x26, x23
	add	x24, x8, #1
	mov	x0, x23
	bl	_display_mode_esc_sequence_len
	cmp	x24, w0, sxtw
	b.ne	LBB0_30
; %bb.22:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	x0, sp
	mov	w1, #0
	mov	x2, x23
	mov	x3, x24
	bl	_strbuf_insert
	sub	x26, x27, #2
	cmp	w22, w25
	b.le	LBB0_30
LBB0_23:                                ;   in Loop: Header=BB0_9 Depth=1
	ldr	x8, [x20]
	cmp	x26, x8
	b.hi	LBB0_9
	b	LBB0_30
LBB0_24:                                ;   in Loop: Header=BB0_9 Depth=1
	mov	x9, x26
	ldrb	w10, [x9, #-5]!
	cmp	w10, #27
	b.eq	LBB0_17
; %bb.25:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	x8, x26
	ldrb	w10, [x8, #-6]!
	cmp	w10, #27
	b.eq	LBB0_19
; %bb.26:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	x9, x26
	ldrb	w10, [x9, #-7]!
	cmp	w10, #27
	b.eq	LBB0_17
; %bb.27:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	x8, x26
	ldrb	w10, [x8, #-8]!
	cmp	w10, #27
	b.eq	LBB0_19
; %bb.28:                               ;   in Loop: Header=BB0_9 Depth=1
	sub	x9, x23, #8
	ldrb	w10, [x9]
	cmp	w10, #27
	b.eq	LBB0_17
; %bb.29:                               ;   in Loop: Header=BB0_9 Depth=1
	ldrb	w8, [x23, #-9]!
	mov	x27, x9
	cmp	w8, #27
	b.eq	LBB0_21
LBB0_30:
	ldr	x8, [x20]
LBB0_31:
	sub	w8, w26, w8
	add	w1, w8, #1
	mov	x0, x20
	bl	_strbuf_setlen
Lloh6:
	adrp	x8, _flush_left@GOTPAGE
Lloh7:
	ldr	x8, [x8, _flush_left@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	str	x8, [x19, #8]
LBB0_32:
	subs	w9, w25, w22
	b.ge	LBB0_37
; %bb.33:
	ldr	w8, [x19, #16]
	cmp	w8, #128
	b.eq	LBB0_41
; %bb.34:
	cmp	w8, #130
	b.eq	LBB0_42
; %bb.35:
	cmp	w8, #131
	b.ne	LBB0_45
; %bb.36:
	sub	w8, w22, w25
	add	w2, w8, #2
Lloh9:
	adrp	x3, l_.str@PAGE
Lloh10:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, sp
	mov	w1, #0
	b	LBB0_44
LBB0_37:
	ldrsw	x22, [x20, #8]
Lloh11:
	adrp	x10, _flush_left@GOTPAGE
Lloh12:
	ldr	x10, [x10, _flush_left@GOTPAGEOFF]
Lloh13:
	ldr	x10, [x10]
	cmp	x8, x10
	b.ne	LBB0_39
; %bb.38:
	mov	x23, x9
	b	LBB0_40
LBB0_39:
Lloh14:
	adrp	x10, _flush_both@GOTPAGE
Lloh15:
	ldr	x10, [x10, _flush_both@GOTPAGEOFF]
Lloh16:
	ldr	x10, [x10]
	cmp	w9, #0
	cinc	w11, w9, lt
	asr	w11, w11, #1
	cmp	x8, x10
	csel	w23, wzr, w11, ne
LBB0_40:
	ldr	w8, [sp, #8]
	add	w2, w9, w8
	mov	x0, x20
	mov	w1, #32
	bl	_strbuf_addchars
	ldr	x8, [x20]
	add	x8, x8, x22
	add	x0, x8, w23, sxtw
	ldr	x1, [sp]
	ldr	w2, [sp, #8]
	bl	_memcpy
	b	LBB0_46
LBB0_41:
	sub	w1, w25, #2
	sub	w2, w22, w1
	b	LBB0_43
LBB0_42:
	cmp	w25, #0
	cinc	w8, w25, lt
	asr	w8, w8, #1
	sub	w1, w8, #1
	sub	w8, w22, w25
	add	w2, w8, #2
LBB0_43:
Lloh17:
	adrp	x3, l_.str@PAGE
Lloh18:
	add	x3, x3, l_.str@PAGEOFF
	mov	x0, sp
LBB0_44:
	bl	_strbuf_utf8_replace
LBB0_45:
	mov	x1, sp
	mov	x0, x20
	bl	_strbuf_addbuf
LBB0_46:
	mov	x0, sp
	bl	_strbuf_release
Lloh19:
	adrp	x8, _no_flush@GOTPAGE
Lloh20:
	ldr	x8, [x8, _no_flush@GOTPAGEOFF]
Lloh21:
	ldr	x8, [x8]
	str	x8, [x19, #8]
	sxtw	x0, w21
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_STRBUF_INIT,16,3               ; @STRBUF_INIT
	.comm	_flush_left_and_steal,8,3       ; @flush_left_and_steal
	.comm	_flush_left,8,3                 ; @flush_left
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	".."

	.comm	_flush_both,8,3                 ; @flush_both
	.comm	_no_flush,8,3                   ; @no_flush
	.no_dead_strip	_format_and_pad_commit
.subsections_via_symbols
