	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_TuiDrawCenteredText            ## -- Begin function TuiDrawCenteredText
	.p2align	4, 0x90
_TuiDrawCenteredText:                   ## @TuiDrawCenteredText
	.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	%r9d, -48(%rbp)                 ## 4-byte Spill
	movq	%r8, %r13
	movq	%rcx, %r15
	movq	%rdx, %r14
	movq	%rsi, %r12
	movq	%rdi, %rbx
	movq	%r8, %rdi
	callq	_strlen
	testq	%rax, %rax
	je	LBB0_13
## %bb.1:
	movq	%rbx, %r10
	cmpq	$1, %rax
	jne	LBB0_3
## %bb.2:
	xorl	%edi, %edi
	xorl	%ecx, %ecx
	xorl	%ebx, %ebx
	xorl	%esi, %esi
	jmp	LBB0_5
LBB0_3:
	movq	%rax, %r8
	andq	$-2, %r8
	xorl	%edi, %edi
	xorl	%ecx, %ecx
	xorl	%ebx, %ebx
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdx
	subq	%rsi, %rdx
	cmpq	%rdi, %rdx
	cmovbeq	%rdi, %rdx
	xorl	%r9d, %r9d
	cmpb	$10, (%r13,%rbx)
	movq	%rsi, %r11
	cmoveq	%rbx, %r11
	cmoveq	%rdi, %rdx
	sete	%r9b
	addq	%rcx, %r9
	movq	%rbx, %rdi
	subq	%r11, %rdi
	incq	%rdi
	cmpq	%rdx, %rdi
	cmovbeq	%rdx, %rdi
	leaq	1(%rbx), %rsi
	xorl	%ecx, %ecx
	cmpb	$10, 1(%r13,%rbx)
	cmovneq	%r11, %rsi
	cmoveq	%rdx, %rdi
	sete	%cl
	addq	%r9, %rcx
	addq	$2, %rbx
	cmpq	%r8, %rbx
	jne	LBB0_4
LBB0_5:
	testb	$1, %al
	je	LBB0_7
## %bb.6:
	movq	%rbx, %rdx
	subq	%rsi, %rdx
	cmpq	%rdi, %rdx
	cmovbeq	%rdi, %rdx
	xorl	%esi, %esi
	cmpb	$10, (%r13,%rbx)
	sete	%sil
	cmovneq	%rdx, %rdi
	addq	%rsi, %rcx
LBB0_7:
	testq	%rax, %rax
	je	LBB0_13
## %bb.8:
	addq	%r10, %rdi
	subq	%rdi, %r14
	shrq	%r14
	addq	%r10, %r14
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	notq	%rcx
	subq	%r12, %r15
	addq	%rcx, %r15
	shrq	%r15
	addq	%r12, %r15
	xorl	%r12d, %r12d
	xorl	%r14d, %r14d
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_9 Depth=1
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	leaq	(%rdx,%r14), %rdi
	incq	%r14
	movb	%cl, -42(%rbp)
	movb	$0, -41(%rbp)
	movq	%r15, %rsi
	leaq	-42(%rbp), %rdx
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	movq	%rax, %rbx
	callq	_TuiDrawText
	movq	%rbx, %rax
LBB0_12:                                ##   in Loop: Header=BB0_9 Depth=1
	incq	%r12
	cmpq	%r12, %rax
	je	LBB0_13
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	(%r13,%r12), %ecx
	cmpb	$10, %cl
	jne	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	incq	%r15
	xorl	%r14d, %r14d
	jmp	LBB0_12
LBB0_13:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_TuiDrawCenteredText            ; -- Begin function TuiDrawCenteredText
	.p2align	2
_TuiDrawCenteredText:                   ; @TuiDrawCenteredText
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x19, x5
	mov	x20, x4
	mov	x23, x3
	mov	x24, x2
	mov	x22, x1
	mov	x25, x0
	mov	x0, x4
	bl	_strlen
	cbz	x0, LBB0_9
; %bb.1:
	mov	x21, x0
	mov	x9, #0
	mov	x8, #0
	mov	x10, #0
	mov	x11, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w12, [x20, x10]
	sub	x13, x10, x11
	cmp	x13, x9
	csel	x13, x13, x9, hi
	cmp	w12, #10
	csel	x11, x10, x11, eq
	cinc	x8, x8, eq
	csel	x9, x9, x13, eq
	add	x10, x10, #1
	cmp	x21, x10
	b.ne	LBB0_2
; %bb.3:
	cbz	x21, LBB0_9
; %bb.4:
	mov	x26, #0
	add	x9, x9, x25
	sub	x9, x24, x9
	add	x24, x25, x9, lsr #1
	mvn	x8, x8
	sub	x9, x23, x22
	add	x8, x9, x8
	add	x22, x22, x8, lsr #1
	b	LBB0_7
LBB0_5:                                 ;   in Loop: Header=BB0_7 Depth=1
	add	x0, x24, x26
	add	x26, x26, #1
	strb	w8, [sp, #14]
	strb	wzr, [sp, #15]
	add	x2, sp, #14
	mov	x1, x22
	mov	x3, x19
	bl	_TuiDrawText
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	add	x20, x20, #1
	subs	x21, x21, #1
	b.eq	LBB0_9
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w8, [x20]
	cmp	w8, #10
	b.ne	LBB0_5
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x26, #0
	add	x22, x22, #1
	b	LBB0_6
LBB0_9:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
