	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ps_setfont
_ps_setfont:                            ## @ps_setfont
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %ebx
	movq	%rdi, %r14
	movq	_TERMFONT__MAX@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	cmpl	%esi, (%rax)
	seta	%dil
	callq	_assert
	movq	8(%r14), %rax
	movl	%ebx, (%rax)
	movq	_PS_NEWPAGE@GOTPCREL(%rip), %rcx
	movl	4(%rax), %edx
	testl	%edx, (%rcx)
	je	LBB0_1
## %bb.3:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_1:
	movq	_TERMTYPE_PS@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	(%r14), %rcx
	jne	LBB0_2
## %bb.4:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movl	%ebx, %edx
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_ps_printf                      ## TAILCALL
LBB0_2:
	movl	8(%rax), %ecx
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	movl	%ebx, %edx
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_ps_printf                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_TERMFONT__MAX,4,2              ## @TERMFONT__MAX
	.comm	_PS_NEWPAGE,4,2                 ## @PS_NEWPAGE
	.comm	_TERMTYPE_PS,8,3                ## @TERMTYPE_PS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"f%d\n"

L_.str.1:                               ## @.str.1
	.asciz	"/F%d %zu Tf\n"

	.no_dead_strip	_ps_setfont
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ps_setfont
_ps_setfont:                            ; @ps_setfont
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _TERMFONT__MAX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TERMFONT__MAX@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, w1
	cset	w0, hi
	bl	_assert
	ldr	x8, [x20, #8]
	str	w19, [x8]
Lloh3:
	adrp	x9, _PS_NEWPAGE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _PS_NEWPAGE@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	ldr	w10, [x8, #4]
	tst	w10, w9
	b.ne	LBB0_4
; %bb.1:
Lloh6:
	adrp	x9, _TERMTYPE_PS@GOTPAGE
Lloh7:
	ldr	x9, [x9, _TERMTYPE_PS@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	ldr	x10, [x20]
	cmp	x9, x10
	b.ne	LBB0_3
; %bb.2:
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	mov	x2, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	b	_ps_printf
LBB0_3:
	ldr	w8, [x8, #8]
	str	x8, [sp]
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	mov	x2, x19
	bl	_ps_printf
LBB0_4:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_TERMFONT__MAX,4,2              ; @TERMFONT__MAX
	.comm	_PS_NEWPAGE,4,2                 ; @PS_NEWPAGE
	.comm	_TERMTYPE_PS,8,3                ; @TERMTYPE_PS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"f%d\n"

l_.str.1:                               ; @.str.1
	.asciz	"/F%d %zu Tf\n"

	.no_dead_strip	_ps_setfont
.subsections_via_symbols
