	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ps_endline
_ps_endline:                            ## @ps_endline
	.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	%rdi, %rbx
	callq	_ps_plast
	movq	%rbx, %rdi
	callq	_ps_pclose
	movq	_PS_MARGINS@GOTPCREL(%rip), %rdx
	movq	16(%rbx), %rax
	movl	(%rax), %ecx
	testl	%ecx, (%rdx)
	jne	LBB0_5
## %bb.1:
	movl	32(%rax), %edx
	movl	%edx, 36(%rax)
	movq	_PS_NEWPAGE@GOTPCREL(%rip), %rdx
	testl	%ecx, (%rdx)
	jne	LBB0_5
## %bb.2:
	movq	8(%rax), %rcx
	movq	16(%rax), %rdx
	movq	24(%rax), %rsi
	addq	%rdx, %rsi
	cmpq	%rsi, %rcx
	jge	LBB0_3
## %bb.4:
	movq	%rbx, %rdi
	callq	_ps_closepage
	movl	(%rbx), %eax
	movq	8(%rbx), %rcx
	subl	%eax, (%rcx)
	movq	$0, (%rbx)
	jmp	LBB0_5
LBB0_3:
	subq	%rdx, %rcx
	movq	%rcx, 8(%rax)
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PS_MARGINS,4,2                 ## @PS_MARGINS
	.comm	_PS_NEWPAGE,4,2                 ## @PS_NEWPAGE
	.no_dead_strip	_ps_endline
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ps_endline
_ps_endline:                            ; @ps_endline
	.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
	mov	x19, x0
	bl	_ps_plast
	mov	x0, x19
	bl	_ps_pclose
Lloh0:
	adrp	x8, _PS_MARGINS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PS_MARGINS@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x8]
	ldr	x8, [x19, #16]
	ldr	w9, [x8]
	tst	w9, w10
	b.ne	LBB0_5
; %bb.1:
	ldr	w10, [x8, #32]
	str	w10, [x8, #36]
Lloh3:
	adrp	x10, _PS_NEWPAGE@GOTPAGE
Lloh4:
	ldr	x10, [x10, _PS_NEWPAGE@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	tst	w10, w9
	b.ne	LBB0_5
; %bb.2:
	ldp	x9, x10, [x8, #8]
	ldr	x11, [x8, #24]
	add	x11, x11, x10
	cmp	x9, x11
	b.ge	LBB0_4
; %bb.3:
	mov	x0, x19
	bl	_ps_closepage
	ldr	w8, [x19]
	ldr	x9, [x19, #8]
	ldr	w10, [x9]
	sub	w8, w10, w8
	str	w8, [x9]
	str	xzr, [x19]
	b	LBB0_5
LBB0_4:
	sub	x9, x9, x10
	str	x9, [x8, #8]
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_PS_MARGINS,4,2                 ; @PS_MARGINS
	.comm	_PS_NEWPAGE,4,2                 ; @PS_NEWPAGE
	.no_dead_strip	_ps_endline
.subsections_via_symbols
