	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function calc_maxwidth
_calc_maxwidth:                         ## @calc_maxwidth
	.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
	cmpl	$0, (%rdi)
	jle	LBB0_1
## %bb.2:
	movl	%esi, %r14d
	xorl	%r12d, %r12d
	xorl	%ebx, %ebx
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	-56(%rbp), %rdi
	callq	_utf8_strwidth
	movl	%eax, %r15d
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	8(%r13), %rax
	movq	_FILTER_REFS_REMOTES@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	movl	$0, %eax
	cmovel	%r14d, %eax
	addl	%r15d, %eax
	cmpl	%ebx, %eax
	cmovgl	%eax, %ebx
	incq	%r12
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movslq	(%rdi), %rax
	cmpq	%rax, %r12
	jge	LBB0_7
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%rdi), %rax
	movq	(%rax,%r12,8), %r13
	movq	(%r13), %rax
	movq	%rax, -56(%rbp)
	movq	(%r13), %rdi
	leaq	L_.str(%rip), %rsi
	leaq	-56(%rbp), %r15
	movq	%r15, %rdx
	callq	_skip_prefix
	movq	(%r13), %rdi
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdx
	callq	_skip_prefix
	movq	8(%r13), %rax
	movq	_FILTER_REFS_DETACHED_HEAD@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	xorl	%eax, %eax
	callq	_get_head_description
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_utf8_strwidth
	movl	%eax, %r15d
	movq	%r14, %rdi
	movl	-44(%rbp), %r14d                ## 4-byte Reload
	callq	_free
	jmp	LBB0_6
LBB0_1:
	xorl	%ebx, %ebx
LBB0_7:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"refs/heads/"

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

	.comm	_FILTER_REFS_DETACHED_HEAD,8,3  ## @FILTER_REFS_DETACHED_HEAD
	.comm	_FILTER_REFS_REMOTES,8,3        ## @FILTER_REFS_REMOTES
	.no_dead_strip	_calc_maxwidth
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function calc_maxwidth
_calc_maxwidth:                         ; @calc_maxwidth
	.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
	ldr	w8, [x0]
	cmp	w8, #1
	b.lt	LBB0_6
; %bb.1:
	mov	x19, x1
	mov	x20, x0
	mov	x26, #0
	mov	w21, #0
Lloh0:
	adrp	x25, l_.str@PAGE
Lloh1:
	add	x25, x25, l_.str@PAGEOFF
Lloh2:
	adrp	x27, _FILTER_REFS_DETACHED_HEAD@GOTPAGE
Lloh3:
	ldr	x27, [x27, _FILTER_REFS_DETACHED_HEAD@GOTPAGEOFF]
Lloh4:
	adrp	x28, _FILTER_REFS_REMOTES@GOTPAGE
Lloh5:
	ldr	x28, [x28, _FILTER_REFS_REMOTES@GOTPAGEOFF]
Lloh6:
	adrp	x23, l_.str.1@PAGE
Lloh7:
	add	x23, x23, l_.str.1@PAGEOFF
	str	x0, [sp]                        ; 8-byte Folded Spill
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x0, [sp, #8]
	bl	_utf8_strwidth
	mov	x24, x0
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x22, #8]
	ldr	x9, [x28]
	cmp	x8, x9
	csel	w8, w19, wzr, eq
	add	w8, w8, w24
	cmp	w8, w21
	csel	w21, w8, w21, gt
	add	x26, x26, #1
	ldrsw	x8, [x20]
	cmp	x26, x8
	b.ge	LBB0_7
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #8]
	ldr	x22, [x8, x26, lsl #3]
	ldr	x8, [x22]
	str	x8, [sp, #8]
	ldr	x0, [x22]
	add	x2, sp, #8
	mov	x1, x25
	bl	_skip_prefix
	ldr	x0, [x22]
	add	x2, sp, #8
	mov	x1, x23
	bl	_skip_prefix
	ldr	x8, [x22, #8]
	ldr	x9, [x27]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	bl	_get_head_description
	mov	x20, x19
	mov	x19, x23
	mov	x23, x28
	mov	x28, x27
	mov	x27, x25
	mov	x25, x0
	bl	_utf8_strwidth
	mov	x24, x0
	mov	x0, x25
	mov	x25, x27
	mov	x27, x28
	mov	x28, x23
	mov	x23, x19
	mov	x19, x20
	ldr	x20, [sp]                       ; 8-byte Folded Reload
	bl	_free
	b	LBB0_3
LBB0_6:
	mov	w21, #0
LBB0_7:
	mov	x0, x21
	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 AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"refs/heads/"

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

	.comm	_FILTER_REFS_DETACHED_HEAD,8,3  ; @FILTER_REFS_DETACHED_HEAD
	.comm	_FILTER_REFS_REMOTES,8,3        ; @FILTER_REFS_REMOTES
	.no_dead_strip	_calc_maxwidth
.subsections_via_symbols
