	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ps_closepage
_ps_closepage:                          ## @ps_closepage
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	movq	8(%rdi), %rax
	movq	40(%rax), %rax
	xorl	%edi, %edi
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	cmpq	$0, (%rax)
	setne	%dil
LBB0_2:
	callq	_assert
	movq	8(%r12), %rax
	movq	40(%rax), %rdx
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_ps_printf
	movq	_TERMTYPE_PS@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	(%r12), %rax
	jne	LBB0_3
## %bb.7:
	leaq	L_.str.13(%rip), %rsi
	jmp	LBB0_8
LBB0_3:
	movq	8(%r12), %rax
	movq	(%rax), %rbx
	subq	8(%rax), %rbx
	movslq	16(%rax), %r14
	movslq	20(%rax), %r15
	leaq	(%r15,%r14,4), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	leaq	L_.str.1(%rip), %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_ps_printf
	leaq	(%r15,%r14,4), %rsi
	incq	%rsi
	movq	%r12, %rdi
	callq	_pdf_obj
	leaq	L_.str.2(%rip), %rsi
	movq	%r12, %rdi
	movq	%rbx, %rdx
	xorl	%eax, %eax
	callq	_ps_printf
	leaq	(%r15,%r14,4), %r15
	addq	$2, %r15
	movq	%r12, %rdi
	movq	%r15, %rsi
	callq	_pdf_obj
	leaq	L_.str.3(%rip), %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_ps_printf
	leaq	L_.str.4(%rip), %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_ps_printf
	movq	_TERMFONT__MAX@GOTPCREL(%rip), %r14
	cmpl	$0, (%r14)
	jle	LBB0_6
## %bb.4:
	leaq	L_.str.5(%rip), %r13
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	leal	3(%rbx), %ecx
	movq	%r12, %rdi
	movq	%r13, %rsi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_ps_printf
	incl	%ebx
	cmpl	(%r14), %ebx
	jl	LBB0_5
LBB0_6:
	leaq	L_.str.6(%rip), %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_ps_printf
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	leaq	3(%rbx), %rsi
	movq	%r12, %rdi
	callq	_pdf_obj
	leaq	L_.str.7(%rip), %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_ps_printf
	leaq	L_.str.8(%rip), %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_ps_printf
	leaq	L_.str.9(%rip), %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_ps_printf
	leaq	L_.str.10(%rip), %rsi
	movq	%r12, %rdi
	movq	%r15, %rdx
	xorl	%eax, %eax
	callq	_ps_printf
	leaq	L_.str.11(%rip), %rsi
	movq	%r12, %rdi
	movq	%rbx, %rdx
	xorl	%eax, %eax
	callq	_ps_printf
	leaq	L_.str.12(%rip), %rsi
LBB0_8:
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_ps_printf
	movq	8(%r12), %rax
	incl	16(%rax)
	movl	24(%rax), %ecx
	movl	28(%rax), %edx
	movl	%edx, 32(%rax)
	movq	_PS_NEWPAGE@GOTPCREL(%rip), %rbx
	xorl	%edi, %edi
	andl	(%rbx), %ecx
	sete	%dil
	callq	_assert
	movl	(%rbx), %eax
	movq	8(%r12), %rcx
	orl	%eax, 24(%rcx)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s"

	.comm	_TERMTYPE_PS,8,3                ## @TERMTYPE_PS
L_.str.1:                               ## @.str.1
	.asciz	"endstream\nendobj\n"

L_.str.2:                               ## @.str.2
	.asciz	"%zu\nendobj\n"

L_.str.3:                               ## @.str.3
	.asciz	"<<\n/ProcSet [/PDF /Text]\n"

L_.str.4:                               ## @.str.4
	.asciz	"/Font <<\n"

	.comm	_TERMFONT__MAX,8,3              ## @TERMFONT__MAX
L_.str.5:                               ## @.str.5
	.asciz	"/F%d %d 0 R\n"

L_.str.6:                               ## @.str.6
	.asciz	">>\n>>\nendobj\n"

L_.str.7:                               ## @.str.7
	.asciz	"<<\n"

L_.str.8:                               ## @.str.8
	.asciz	"/Type /Page\n"

L_.str.9:                               ## @.str.9
	.asciz	"/Parent 2 0 R\n"

L_.str.10:                              ## @.str.10
	.asciz	"/Resources %zu 0 R\n"

L_.str.11:                              ## @.str.11
	.asciz	"/Contents %zu 0 R\n"

L_.str.12:                              ## @.str.12
	.asciz	">>\nendobj\n"

L_.str.13:                              ## @.str.13
	.asciz	"showpage\n"

	.comm	_PS_NEWPAGE,4,2                 ## @PS_NEWPAGE
	.no_dead_strip	_ps_closepage
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ps_closepage
_ps_closepage:                          ; @ps_closepage
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x19, x0
	ldr	x8, [x0, #8]
	ldr	x8, [x8, #40]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	x8, [x8]
	cmp	x8, #0
	cset	w0, ne
	b	LBB0_3
LBB0_2:
	mov	w0, #0
LBB0_3:
	bl	_assert
	ldr	x8, [x19, #8]
	ldr	x8, [x8, #40]
	str	x8, [sp]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_ps_printf
Lloh2:
	adrp	x8, _TERMTYPE_PS@GOTPAGE
Lloh3:
	ldr	x8, [x8, _TERMTYPE_PS@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	ldr	x9, [x19]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.4:
Lloh5:
	adrp	x1, l_.str.13@PAGE
Lloh6:
	add	x1, x1, l_.str.13@PAGEOFF
	b	LBB0_9
LBB0_5:
	ldr	x8, [x19, #8]
	ldp	x9, x10, [x8]
	sub	x20, x9, x10
	ldpsw	x9, x8, [x8, #16]
	add	x22, x8, x9, lsl #2
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_ps_printf
	add	x1, x22, #1
	mov	x0, x19
	bl	_pdf_obj
	str	x20, [sp]
Lloh9:
	adrp	x1, l_.str.2@PAGE
Lloh10:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_ps_printf
	add	x20, x22, #2
	mov	x0, x19
	mov	x1, x20
	bl	_pdf_obj
Lloh11:
	adrp	x1, l_.str.3@PAGE
Lloh12:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_ps_printf
Lloh13:
	adrp	x1, l_.str.4@PAGE
Lloh14:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_ps_printf
Lloh15:
	adrp	x23, _TERMFONT__MAX@GOTPAGE
Lloh16:
	ldr	x23, [x23, _TERMFONT__MAX@GOTPAGEOFF]
	ldr	w8, [x23]
	cmp	w8, #1
	b.lt	LBB0_8
; %bb.6:
	mov	w24, #0
Lloh17:
	adrp	x21, l_.str.5@PAGE
Lloh18:
	add	x21, x21, l_.str.5@PAGEOFF
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	add	w8, w24, #3
	stp	x24, x8, [sp]
	mov	x0, x19
	mov	x1, x21
	bl	_ps_printf
	ldr	w8, [x23]
	add	w24, w24, #1
	cmp	w24, w8
	b.lt	LBB0_7
LBB0_8:
Lloh19:
	adrp	x1, l_.str.6@PAGE
Lloh20:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x19
	bl	_ps_printf
	add	x1, x22, #3
	mov	x0, x19
	bl	_pdf_obj
Lloh21:
	adrp	x1, l_.str.7@PAGE
Lloh22:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x19
	bl	_ps_printf
Lloh23:
	adrp	x1, l_.str.8@PAGE
Lloh24:
	add	x1, x1, l_.str.8@PAGEOFF
	mov	x0, x19
	bl	_ps_printf
Lloh25:
	adrp	x1, l_.str.9@PAGE
Lloh26:
	add	x1, x1, l_.str.9@PAGEOFF
	mov	x0, x19
	bl	_ps_printf
	str	x20, [sp]
Lloh27:
	adrp	x1, l_.str.10@PAGE
Lloh28:
	add	x1, x1, l_.str.10@PAGEOFF
	mov	x0, x19
	bl	_ps_printf
	str	x22, [sp]
Lloh29:
	adrp	x1, l_.str.11@PAGE
Lloh30:
	add	x1, x1, l_.str.11@PAGEOFF
	mov	x0, x19
	bl	_ps_printf
Lloh31:
	adrp	x1, l_.str.12@PAGE
Lloh32:
	add	x1, x1, l_.str.12@PAGEOFF
LBB0_9:
	mov	x0, x19
	bl	_ps_printf
	ldr	x8, [x19, #8]
	ldr	w9, [x8, #16]
	add	w9, w9, #1
	str	w9, [x8, #16]
	ldp	w10, w9, [x8, #24]
	str	w9, [x8, #32]
Lloh33:
	adrp	x20, _PS_NEWPAGE@GOTPAGE
Lloh34:
	ldr	x20, [x20, _PS_NEWPAGE@GOTPAGEOFF]
	ldr	w8, [x20]
	tst	w10, w8
	cset	w0, eq
	bl	_assert
	ldr	w8, [x20]
	ldr	x9, [x19, #8]
	ldr	w10, [x9, #24]
	orr	w8, w10, w8
	str	w8, [x9, #24]
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh33, Lloh34
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s"

	.comm	_TERMTYPE_PS,8,3                ; @TERMTYPE_PS
l_.str.1:                               ; @.str.1
	.asciz	"endstream\nendobj\n"

l_.str.2:                               ; @.str.2
	.asciz	"%zu\nendobj\n"

l_.str.3:                               ; @.str.3
	.asciz	"<<\n/ProcSet [/PDF /Text]\n"

l_.str.4:                               ; @.str.4
	.asciz	"/Font <<\n"

	.comm	_TERMFONT__MAX,8,3              ; @TERMFONT__MAX
l_.str.5:                               ; @.str.5
	.asciz	"/F%d %d 0 R\n"

l_.str.6:                               ; @.str.6
	.asciz	">>\n>>\nendobj\n"

l_.str.7:                               ; @.str.7
	.asciz	"<<\n"

l_.str.8:                               ; @.str.8
	.asciz	"/Type /Page\n"

l_.str.9:                               ; @.str.9
	.asciz	"/Parent 2 0 R\n"

l_.str.10:                              ; @.str.10
	.asciz	"/Resources %zu 0 R\n"

l_.str.11:                              ; @.str.11
	.asciz	"/Contents %zu 0 R\n"

l_.str.12:                              ; @.str.12
	.asciz	">>\nendobj\n"

l_.str.13:                              ; @.str.13
	.asciz	"showpage\n"

	.comm	_PS_NEWPAGE,4,2                 ; @PS_NEWPAGE
	.no_dead_strip	_ps_closepage
.subsections_via_symbols
