	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function add_cap
_add_cap:                               ## @add_cap
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	callq	_strlen
	movq	_hw_buf_idx@GOTPCREL(%rip), %r14
	movslq	(%r14), %rdi
	addl	%edi, %eax
	cmpl	$77, %eax
	jl	LBB0_2
## %bb.1:
	movq	_hw_buf@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	leaq	L_.str(%rip), %rdi
	callq	_printf
	movl	$0, (%r14)
	movq	_hw_buf_newline@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
	leaq	L_.str.1(%rip), %rsi
	xorl	%edi, %edi
	jmp	LBB0_3
LBB0_2:
	movq	_hw_buf_newline@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	leaq	L_.str.2(%rip), %rax
	leaq	L_.str.1(%rip), %rsi
	cmoveq	%rax, %rsi
LBB0_3:
	movq	_hw_buf@GOTPCREL(%rip), %rbx
	addq	(%rbx), %rdi
	xorl	%eax, %eax
	callq	_sprintf
	addl	(%r14), %eax
	movl	%eax, (%r14)
	movq	_hw_buf_newline@GOTPCREL(%rip), %rcx
	movl	$0, (%rcx)
	movslq	%eax, %rdi
	addq	(%rbx), %rdi
	leaq	L_.str.3(%rip), %rsi
	movq	%r15, %rdx
	xorl	%eax, %eax
	callq	_sprintf
	addl	%eax, (%r14)
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_hw_buf_idx,4,2                 ## @hw_buf_idx
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s,\n"

	.comm	_hw_buf,8,3                     ## @hw_buf
	.comm	_hw_buf_newline,4,2             ## @hw_buf_newline
L_.str.1:                               ## @.str.1
	.asciz	"  "

L_.str.2:                               ## @.str.2
	.asciz	", "

L_.str.3:                               ## @.str.3
	.asciz	"%s"

	.no_dead_strip	_add_cap
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function add_cap
_add_cap:                               ; @add_cap
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x0
	bl	_strlen
Lloh0:
	adrp	x20, _hw_buf_idx@GOTPAGE
Lloh1:
	ldr	x20, [x20, _hw_buf_idx@GOTPAGEOFF]
	ldrsw	x8, [x20]
	add	w9, w8, w0
Lloh2:
	adrp	x21, _hw_buf_newline@GOTPAGE
Lloh3:
	ldr	x21, [x21, _hw_buf_newline@GOTPAGEOFF]
Lloh4:
	adrp	x22, _hw_buf@GOTPAGE
Lloh5:
	ldr	x22, [x22, _hw_buf@GOTPAGEOFF]
	cmp	w9, #77
	b.lt	LBB0_2
; %bb.1:
	ldr	x1, [x22]
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	_printf
	mov	x8, #0
	str	wzr, [x20]
	mov	w9, #1
	str	w9, [x21]
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_3
LBB0_2:
	ldr	w9, [x21]
Lloh10:
	adrp	x10, l_.str.1@PAGE
Lloh11:
	add	x10, x10, l_.str.1@PAGEOFF
Lloh12:
	adrp	x11, l_.str.2@PAGE
Lloh13:
	add	x11, x11, l_.str.2@PAGEOFF
	cmp	w9, #0
	csel	x1, x11, x10, eq
LBB0_3:
	ldr	x9, [x22]
	add	x0, x9, x8
	bl	_sprintf
	ldr	w8, [x20]
	add	w8, w8, w0
	str	w8, [x20]
	str	wzr, [x21]
	ldr	x9, [x22]
	add	x0, x9, w8, sxtw
	str	x19, [sp]
Lloh14:
	adrp	x1, l_.str.3@PAGE
Lloh15:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_sprintf
	ldr	w8, [x20]
	add	w8, w8, w0
	str	w8, [x20]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_hw_buf_idx,4,2                 ; @hw_buf_idx
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s,\n"

	.comm	_hw_buf,8,3                     ; @hw_buf
	.comm	_hw_buf_newline,4,2             ; @hw_buf_newline
l_.str.1:                               ; @.str.1
	.asciz	"  "

l_.str.2:                               ; @.str.2
	.asciz	", "

l_.str.3:                               ; @.str.3
	.asciz	"%s"

	.no_dead_strip	_add_cap
.subsections_via_symbols
