	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ps_plast
_ps_plast:                              ## @ps_plast
	.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), %rax
	cmpb	$0, (%rax)
	je	LBB0_9
## %bb.1:
	movq	%rdi, %rbx
	movq	8(%rax), %rcx
	cmpq	16(%rax), %rcx
	je	LBB0_3
## %bb.2:
	movq	%rbx, %rdi
	callq	_ps_pclose
	movq	(%rbx), %rax
	movq	8(%rax), %rsi
	movq	%rbx, %rdi
	callq	_ps_setfont
	movq	(%rbx), %rax
LBB0_3:
	movq	_TERMFONT_NONE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, 8(%rax)
	movq	24(%rax), %rdx
	testq	%rdx, %rdx
	je	LBB0_4
## %bb.5:
	movq	_fonts@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	16(%rax), %rdi
	movq	32(%rax), %r8
	movq	(%rcx,%rdi,8), %rdi
	movsbq	(%rax), %rcx
	movq	-256(%rdi,%rcx,8), %rdi
	leaq	(%r8,%rdi), %rsi
	cmpq	%rdx, %rsi
	jae	LBB0_7
## %bb.6:
	subq	%rdi, %rdx
	addq	%r8, %rdx
	shrq	%rdx
	movq	%rdx, 32(%rax)
	jmp	LBB0_7
LBB0_4:
	movb	(%rax), %cl
LBB0_7:
	movsbl	%cl, %esi
	movq	%rbx, %rdi
	callq	_ps_pletter
	movq	(%rbx), %rax
	movb	$0, (%rax)
	movq	32(%rax), %rcx
	cmpq	24(%rax), %rcx
	jae	LBB0_9
## %bb.8:
	movq	%rbx, %rdi
	callq	_ps_pclose
	movq	(%rbx), %rax
	movq	24(%rax), %rcx
	movq	%rcx, 32(%rax)
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TERMFONT_NONE,8,3              ## @TERMFONT_NONE
	.comm	_fonts,8,3                      ## @fonts
	.no_dead_strip	_ps_plast
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ps_plast
_ps_plast:                              ; @ps_plast
	.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
	ldr	x8, [x0]
	ldrb	w9, [x8]
	cbz	w9, LBB0_9
; %bb.1:
	mov	x19, x0
	ldp	x9, x10, [x8, #8]
	cmp	x9, x10
	b.eq	LBB0_3
; %bb.2:
	mov	x0, x19
	bl	_ps_pclose
	ldr	x8, [x19]
	ldr	x1, [x8, #8]
	mov	x0, x19
	bl	_ps_setfont
	ldr	x8, [x19]
LBB0_3:
Lloh0:
	adrp	x9, _TERMFONT_NONE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _TERMFONT_NONE@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	str	x9, [x8, #8]
	ldr	x10, [x8, #24]
	cbz	x10, LBB0_6
; %bb.4:
Lloh3:
	adrp	x9, _fonts@GOTPAGE
Lloh4:
	ldr	x9, [x9, _fonts@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	ldr	x11, [x8, #16]
	ldr	x11, [x9, x11, lsl #3]
	ldrsb	x12, [x8]
	and	w9, w12, #0xff
	add	x11, x11, x12, lsl #3
	ldur	x11, [x11, #-256]
	ldr	x12, [x8, #32]
	add	x13, x12, x11
	cmp	x13, x10
	b.hs	LBB0_7
; %bb.5:
	sub	x10, x10, x11
	add	x10, x10, x12
	lsr	x10, x10, #1
	str	x10, [x8, #32]
	b	LBB0_7
LBB0_6:
	ldrb	w9, [x8]
LBB0_7:
	sxtb	w1, w9
	mov	x0, x19
	bl	_ps_pletter
	ldr	x8, [x19]
	strb	wzr, [x8]
	ldp	x8, x9, [x8, #24]
	cmp	x9, x8
	b.hs	LBB0_9
; %bb.8:
	mov	x0, x19
	bl	_ps_pclose
	ldr	x8, [x19]
	ldr	x9, [x8, #24]
	str	x9, [x8, #32]
LBB0_9:
	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	_TERMFONT_NONE,8,3              ; @TERMFONT_NONE
	.comm	_fonts,8,3                      ; @fonts
	.no_dead_strip	_ps_plast
.subsections_via_symbols
