	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tui_puts                       ## -- Begin function tui_puts
	.p2align	4, 0x90
_tui_puts:                              ## @tui_puts
	.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, %rbx
	movq	_TUI_CMD_WIN@GOTPCREL(%rip), %r15
	movq	(%r15), %rax
	movq	16(%rax), %r14
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_1 Depth=1
	incl	_tui_puts.tui_skip_line(%rip)
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	(%rbx), %eax
	incq	%rbx
	cmpb	$26, %al
	je	LBB0_8
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	testb	%al, %al
	je	LBB0_7
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	cmpl	$1, _tui_puts.tui_skip_line(%rip)
	jne	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_1 Depth=1
	cmpb	$10, %al
	jne	LBB0_1
## %bb.6:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	$-1, _tui_puts.tui_skip_line(%rip)
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_1 Depth=1
	movl	$-1, _tui_puts.tui_skip_line(%rip)
	movsbl	%al, %esi
	movq	%r14, %rdi
	callq	_waddch
	jmp	LBB0_1
LBB0_7:
	movq	(%r15), %rax
	movl	(%rax), %esi
	movl	8(%rax), %edx
	movq	%r14, %rdi
	callq	_getyx
	movq	(%r15), %rax
	movl	(%rax), %ecx
	movl	%ecx, 4(%rax)
	movq	%r14, %rdi
	callq	_wrefresh
	movq	_stdout@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_fflush                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__DATA,__data
	.p2align	2                               ## @tui_puts.tui_skip_line
_tui_puts.tui_skip_line:
	.long	4294967295                      ## 0xffffffff

	.comm	_TUI_CMD_WIN,8,3                ## @TUI_CMD_WIN
	.comm	_stdout,4,2                     ## @stdout
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tui_puts                       ; -- Begin function tui_puts
	.p2align	2
_tui_puts:                              ; @tui_puts
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x0
Lloh0:
	adrp	x21, _TUI_CMD_WIN@GOTPAGE
Lloh1:
	ldr	x21, [x21, _TUI_CMD_WIN@GOTPAGEOFF]
	ldr	x8, [x21]
	ldr	x19, [x8, #16]
	adrp	x22, _tui_puts.tui_skip_line@PAGE
	mov	w23, #-1
	b	LBB0_2
LBB0_1:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	w8, [x22, _tui_puts.tui_skip_line@PAGEOFF]
	add	w8, w8, #1
	str	w8, [x22, _tui_puts.tui_skip_line@PAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w8, [x20], #1
	cmp	w8, #26
	b.eq	LBB0_1
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	cbz	w8, LBB0_8
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w9, [x22, _tui_puts.tui_skip_line@PAGEOFF]
	cmp	w9, #1
	b.ne	LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=1
	cmp	w8, #10
	b.ne	LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_2 Depth=1
	str	w23, [x22, _tui_puts.tui_skip_line@PAGEOFF]
	b	LBB0_2
LBB0_7:                                 ;   in Loop: Header=BB0_2 Depth=1
	str	w23, [x22, _tui_puts.tui_skip_line@PAGEOFF]
	sxtb	w1, w8
	mov	x0, x19
	bl	_waddch
	b	LBB0_2
LBB0_8:
	ldr	x8, [x21]
	ldr	w1, [x8]
	ldr	w2, [x8, #8]
	mov	x0, x19
	bl	_getyx
	ldr	x8, [x21]
	ldr	w9, [x8]
	str	w9, [x8, #4]
	mov	x0, x19
	bl	_wrefresh
Lloh2:
	adrp	x8, _stdout@GOTPAGE
Lloh3:
	ldr	x8, [x8, _stdout@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_fflush
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.section	__DATA,__data
	.p2align	2                               ; @tui_puts.tui_skip_line
_tui_puts.tui_skip_line:
	.long	4294967295                      ; 0xffffffff

	.comm	_TUI_CMD_WIN,8,3                ; @TUI_CMD_WIN
	.comm	_stdout,4,2                     ; @stdout
.subsections_via_symbols
