	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function strip_trailing_newlines
_strip_trailing_newlines:               ## @strip_trailing_newlines
	.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
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	_tos@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	movq	(%rdi), %rsi
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	decq	%rsi
	callq	_at
	movzbl	%al, %edi
	callq	_isspace
	testq	%rax, %rax
	jne	LBB0_3
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	(%rbx), %rdi
	movq	(%rdi), %rsi
	decq	%rsi
	callq	_at
	cmpb	$10, %al
	jne	LBB0_5
LBB0_3:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	(%rbx), %rdi
	movq	(%rdi), %rsi
	testq	%rsi, %rsi
	jle	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	decq	%rsi
	movq	%rsi, (%rdi)
	jmp	LBB0_1
LBB0_5:
	movq	_pc@GOTPCREL(%rip), %rax
	incl	(%rax)
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_tos,8,3                        ## @tos
	.comm	_pc,4,2                         ## @pc
	.no_dead_strip	_strip_trailing_newlines
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function strip_trailing_newlines
_strip_trailing_newlines:               ; @strip_trailing_newlines
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x19, _tos@GOTPAGE
Lloh1:
	ldr	x19, [x19, _tos@GOTPAGEOFF]
	ldr	x0, [x19]
	ldr	x8, [x0]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	sub	x1, x8, #1
	bl	_at
	and	w0, w0, #0xff
	bl	_isspace
	cbnz	x0, LBB0_3
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	x0, [x19]
	ldr	x8, [x0]
	sub	x1, x8, #1
	bl	_at
	cmp	w0, #10
	b.ne	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_1 Depth=1
	ldr	x0, [x19]
	ldr	x8, [x0]
	subs	x8, x8, #1
	b.lt	LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_1 Depth=1
	str	x8, [x0]
	b	LBB0_1
LBB0_5:
Lloh2:
	adrp	x8, _pc@GOTPAGE
Lloh3:
	ldr	x8, [x8, _pc@GOTPAGEOFF]
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_tos,8,3                        ; @tos
	.comm	_pc,4,2                         ; @pc
	.no_dead_strip	_strip_trailing_newlines
.subsections_via_symbols
