	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function teken_subr_newpage
_teken_subr_newpage:                    ## @teken_subr_newpage
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	_TS_CONS25@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rdi)
	je	LBB0_2
## %bb.1:
	movl	24(%rbx), %eax
	movl	%eax, -16(%rbp)
	movq	$0, -24(%rbp)
	movl	28(%rbx), %eax
	movl	%eax, -28(%rbp)
	movl	36(%rbx), %eax
	movl	%eax, -32(%rbp)
	movq	_BLANK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	32(%rbx), %rcx
	leaq	-32(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_teken_funcs_fill
	movl	24(%rbx), %eax
	movl	%eax, 16(%rbx)
	movq	$0, 8(%rbx)
	movq	_TS_WRAPPED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, (%rbx)
	movq	%rbx, %rdi
	callq	_teken_funcs_cursor
	addq	$24, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_2:
	movq	%rbx, %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_teken_subr_newline             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_TS_CONS25,4,2                  ## @TS_CONS25
	.comm	_BLANK,4,2                      ## @BLANK
	.comm	_TS_WRAPPED,4,2                 ## @TS_WRAPPED
	.no_dead_strip	_teken_subr_newpage
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function teken_subr_newpage
_teken_subr_newpage:                    ; @teken_subr_newpage
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	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
	mov	x19, x0
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _TS_CONS25@GOTPAGE
Lloh1:
	ldr	x9, [x9, _TS_CONS25@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
	ldp	w8, w9, [x19, #24]
	str	w8, [sp, #24]
	str	xzr, [sp, #16]
	ldr	w8, [x19, #36]
	stp	w8, w9, [sp, #8]
Lloh3:
	adrp	x8, _BLANK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _BLANK@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	add	x3, x19, #32
	add	x1, sp, #8
	mov	x0, x19
	bl	_teken_funcs_fill
	ldr	w8, [x19, #24]
	str	w8, [x19, #16]
	str	xzr, [x19, #8]
Lloh6:
	adrp	x8, _TS_WRAPPED@GOTPAGE
Lloh7:
	ldr	x8, [x8, _TS_WRAPPED@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	ldr	w9, [x19]
	bic	w8, w9, w8
	str	w8, [x19]
	mov	x0, x19
	bl	_teken_funcs_cursor
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_2:
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	b	_teken_subr_newline
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_TS_CONS25,4,2                  ; @TS_CONS25
	.comm	_BLANK,4,2                      ; @BLANK
	.comm	_TS_WRAPPED,4,2                 ; @TS_WRAPPED
	.no_dead_strip	_teken_subr_newpage
.subsections_via_symbols
