	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_STlib_drawNum                  ## -- Begin function STlib_drawNum
	.p2align	4, 0x90
_STlib_drawNum:                         ## @STlib_drawNum
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movl	(%rdi), %r12d
	movq	8(%rdi), %rax
	movl	(%rax), %ebx
	movq	32(%rdi), %rax
	movq	(%rax), %rax
	movl	4(%rax), %edi
	callq	_SHORT
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	32(%r15), %rax
	movq	(%rax), %rax
	movl	(%rax), %edi
	callq	_SHORT
	movl	%eax, %r8d
	movq	8(%r15), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%r15)
	movl	%ebx, %r14d
	testl	%ebx, %ebx
	jns	LBB0_2
## %bb.1:
	cmpl	$-99, %ebx
	movl	$-99, %eax
	cmovael	%ebx, %eax
	cmpl	$3, %r12d
	cmovnel	%ebx, %eax
	cmpl	$-9, %ebx
	movl	$-9, %r14d
	cmovael	%eax, %r14d
	cmpl	$2, %r12d
	cmovnel	%eax, %r14d
	negl	%r14d
LBB0_2:
	movl	%ebx, -60(%rbp)                 ## 4-byte Spill
	movl	16(%r15), %r13d
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	imull	%r12d, %ebx
	subl	%ebx, %r13d
	movq	24(%r15), %rax
	movq	_ST_Y@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	%rcx, %rax
	jge	LBB0_4
## %bb.3:
	leaq	L_.str(%rip), %rdi
	movl	%r8d, -56(%rbp)                 ## 4-byte Spill
	callq	_I_Error
	movl	-56(%rbp), %r8d                 ## 4-byte Reload
	movq	24(%r15), %rax
	movq	_ST_Y@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
LBB0_4:
	movq	%rax, %rsi
	subq	%rcx, %rsi
	movq	_BG@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	_FG@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r10d
	movl	%r13d, %edi
	movl	%ebx, %ecx
	movl	%r13d, %r9d
	pushq	%r10
	pushq	%rax
	callq	_V_CopyRect
	addq	$16, %rsp
	cmpl	$1994, %r14d                    ## imm = 0x7CA
	je	LBB0_12
## %bb.5:
	movl	16(%r15), %ebx
	testl	%r14d, %r14d
	je	LBB0_6
## %bb.7:
	testl	%r12d, %r12d
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	je	LBB0_11
## %bb.8:
	decl	%r12d
	movl	%eax, %ecx
	negl	%ecx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	leal	(%rcx,%rbx), %edi
	subl	%eax, %ebx
	movq	_FG@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	24(%r15), %rsi
	movq	32(%r15), %r8
	movslq	%r14d, %r13
	imulq	$1717986919, %r13, %r14         ## imm = 0x66666667
	movq	%r14, %rcx
	shrq	$63, %rcx
	sarq	$34, %r14
	addl	%ecx, %r14d
	leal	(%r14,%r14), %ecx
	leal	(%rcx,%rcx,4), %ecx
	movl	%r13d, %eax
	subl	%ecx, %eax
	cltq
	movq	(%r8,%rax,8), %rcx
	callq	_V_DrawPatch
	addl	$9, %r13d
	subl	$1, %r12d
	setb	%al
	cmpl	$19, %r13d
	jb	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	testb	%al, %al
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	je	LBB0_9
LBB0_11:
	cmpl	$0, -60(%rbp)                   ## 4-byte Folded Reload
	js	LBB0_13
LBB0_12:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movl	%ebx, %edi
	subl	-44(%rbp), %edi                 ## 4-byte Folded Reload
	movq	_FG@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	24(%r15), %rsi
	movq	32(%r15), %rax
	movq	(%rax), %rcx
	callq	_V_DrawPatch
	cmpl	$0, -60(%rbp)                   ## 4-byte Folded Reload
	jns	LBB0_12
LBB0_13:
	addl	$-8, %ebx
	movq	24(%r15), %rsi
	movq	_FG@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_sttminus@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movl	%ebx, %edi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_V_DrawPatch                    ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ST_Y,8,3                       ## @ST_Y
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"drawNum: n->y - ST_Y < 0"

	.comm	_BG,4,2                         ## @BG
	.comm	_FG,4,2                         ## @FG
	.comm	_sttminus,8,3                   ## @sttminus
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_STlib_drawNum                  ; -- Begin function STlib_drawNum
	.p2align	2
_STlib_drawNum:                         ; @STlib_drawNum
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
	ldr	w27, [x0]
	ldr	x8, [x0, #8]
	ldr	w24, [x8]
	ldr	x8, [x0, #32]
	ldr	x8, [x8]
	ldr	w0, [x8, #4]
	bl	_SHORT
	mov	x20, x0
	ldr	x8, [x19, #32]
	ldr	x8, [x8]
	ldr	w0, [x8]
	bl	_SHORT
	mov	x21, x0
	ldr	x8, [x19, #8]
	ldr	w8, [x8]
	str	w8, [x19, #20]
	cmn	w24, #99
	ccmp	w27, #3, #0, lo
	mov	w8, #-99
	csel	w8, w8, w24, eq
	cmn	w24, #9
	ccmp	w27, #2, #0, lo
	mov	w9, #-9
	csel	w8, w9, w8, eq
	tst	w24, #0x80000000
	csneg	w25, w24, w8, eq
	ldr	w8, [x19, #16]
	mul	w22, w20, w27
	sub	w23, w8, w22
	ldr	x6, [x19, #24]
Lloh0:
	adrp	x26, _ST_Y@GOTPAGE
Lloh1:
	ldr	x26, [x26, _ST_Y@GOTPAGEOFF]
	ldr	x8, [x26]
	cmp	x6, x8
	b.ge	LBB0_2
; %bb.1:
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	bl	_I_Error
	ldr	x6, [x19, #24]
	ldr	x8, [x26]
LBB0_2:
	sub	x1, x6, x8
Lloh4:
	adrp	x8, _BG@GOTPAGE
Lloh5:
	ldr	x8, [x8, _BG@GOTPAGEOFF]
Lloh6:
	ldr	w2, [x8]
Lloh7:
	adrp	x8, _FG@GOTPAGE
Lloh8:
	ldr	x8, [x8, _FG@GOTPAGEOFF]
Lloh9:
	ldr	w7, [x8]
	mov	x0, x23
	mov	x3, x22
	mov	x4, x21
	mov	x5, x23
	bl	_V_CopyRect
	cmp	w25, #1994
	b.eq	LBB0_9
; %bb.3:
	ldr	w21, [x19, #16]
	cbz	w25, LBB0_10
; %bb.4:
	cbz	w27, LBB0_8
; %bb.5:
	sub	w8, w27, #1
	neg	w22, w20
	mov	w23, #26215
	movk	w23, #26214, lsl #16
	mov	w27, #10
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	mov	x28, x8
	add	w0, w22, w21
	sub	w21, w21, w20
Lloh10:
	adrp	x8, _FG@GOTPAGE
Lloh11:
	ldr	x8, [x8, _FG@GOTPAGEOFF]
Lloh12:
	ldr	w2, [x8]
	ldp	x1, x8, [x19, #24]
	smull	x9, w25, w23
	lsr	x10, x9, #32
	lsr	x9, x9, #63
	add	w26, w9, w10, asr #2
	msub	w9, w26, w27, w25
	ldr	x3, [x8, w9, sxtw #3]
	bl	_V_DrawPatch
	add	w8, w25, #9
	cmp	w8, #19
	b.lo	LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	sub	w8, w28, #1
	mov	x25, x26
	cbnz	w28, LBB0_6
LBB0_8:
	tbnz	w24, #31, LBB0_11
LBB0_9:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_10:
	sub	w0, w21, w20
Lloh13:
	adrp	x8, _FG@GOTPAGE
Lloh14:
	ldr	x8, [x8, _FG@GOTPAGEOFF]
Lloh15:
	ldr	w2, [x8]
	ldp	x1, x8, [x19, #24]
	ldr	x3, [x8]
	bl	_V_DrawPatch
	tbz	w24, #31, LBB0_9
LBB0_11:
	sub	w0, w21, #8
	ldr	x1, [x19, #24]
Lloh16:
	adrp	x8, _sttminus@GOTPAGE
Lloh17:
	ldr	x8, [x8, _sttminus@GOTPAGEOFF]
Lloh18:
	adrp	x9, _FG@GOTPAGE
Lloh19:
	ldr	x9, [x9, _FG@GOTPAGEOFF]
Lloh20:
	ldr	w2, [x9]
Lloh21:
	ldr	x3, [x8]
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_V_DrawPatch
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_ST_Y,8,3                       ; @ST_Y
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"drawNum: n->y - ST_Y < 0"

	.comm	_BG,4,2                         ; @BG
	.comm	_FG,4,2                         ; @FG
	.comm	_sttminus,8,3                   ; @sttminus
.subsections_via_symbols
