	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_UI_DrawString                  ## -- Begin function UI_DrawString
	.p2align	4, 0x90
_UI_DrawString:                         ## @UI_DrawString
	.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
	testq	%rdx, %rdx
	je	LBB0_11
## %bb.1:
	movq	%r8, %r14
	movq	%rdx, %rbx
	movl	%esi, %r15d
	movl	%edi, %r12d
	movq	_UI_BLINK@GOTPCREL(%rip), %rax
	testl	%ecx, (%rax)
	je	LBB0_3
## %bb.2:
	movq	_uis@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_BLINK_DIVISOR@GOTPCREL(%rip), %rsi
	cltd
	idivl	(%rsi)
	testb	$1, %al
	jne	LBB0_11
LBB0_3:
	movq	_UI_SMALLFONT@GOTPCREL(%rip), %rax
	testl	%ecx, (%rax)
	je	LBB0_5
## %bb.4:
	movq	_SMALLCHAR_WIDTH@GOTPCREL(%rip), %rdx
	movq	_SMALLCHAR_HEIGHT@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	_UI_GIANTFONT@GOTPCREL(%rip), %rax
	testl	%ecx, (%rax)
	movq	_GIANTCHAR_HEIGHT@GOTPCREL(%rip), %rax
	cmoveq	_BIGCHAR_HEIGHT@GOTPCREL(%rip), %rax
	movq	_GIANTCHAR_WIDTH@GOTPCREL(%rip), %rdx
	cmoveq	_BIGCHAR_WIDTH@GOTPCREL(%rip), %rdx
LBB0_6:
	movl	(%rdx), %r13d
	movl	(%rax), %r9d
	movq	_UI_FORMATMASK@GOTPCREL(%rip), %rax
	andl	(%rax), %ecx
	cmpl	$128, %ecx
	je	LBB0_9
## %bb.7:
	cmpl	$129, %ecx
	jne	LBB0_10
## %bb.8:
	movq	%rbx, %rdi
	movl	%r9d, -44(%rbp)                 ## 4-byte Spill
	callq	_strlen
	movl	-44(%rbp), %r9d                 ## 4-byte Reload
	imull	%r13d, %eax
	movl	%eax, %ecx
	shrl	$31, %ecx
	addl	%eax, %ecx
	sarl	%ecx
	subl	%ecx, %r12d
	jmp	LBB0_10
LBB0_9:
	movq	%rbx, %rdi
	movl	%r9d, -44(%rbp)                 ## 4-byte Spill
	callq	_strlen
	movl	-44(%rbp), %r9d                 ## 4-byte Reload
	imull	%r13d, %eax
	subl	%eax, %r12d
LBB0_10:
	movl	%r12d, %edi
	movl	%r15d, %esi
	movq	%rbx, %rdx
	movq	%r14, %rcx
	movl	%r13d, %r8d
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_UI_DrawString2                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_UI_BLINK,4,2                   ## @UI_BLINK
	.comm	_uis,4,2                        ## @uis
	.comm	_BLINK_DIVISOR,4,2              ## @BLINK_DIVISOR
	.comm	_UI_SMALLFONT,4,2               ## @UI_SMALLFONT
	.comm	_SMALLCHAR_WIDTH,4,2            ## @SMALLCHAR_WIDTH
	.comm	_SMALLCHAR_HEIGHT,4,2           ## @SMALLCHAR_HEIGHT
	.comm	_UI_GIANTFONT,4,2               ## @UI_GIANTFONT
	.comm	_GIANTCHAR_WIDTH,4,2            ## @GIANTCHAR_WIDTH
	.comm	_GIANTCHAR_HEIGHT,4,2           ## @GIANTCHAR_HEIGHT
	.comm	_BIGCHAR_WIDTH,4,2              ## @BIGCHAR_WIDTH
	.comm	_BIGCHAR_HEIGHT,4,2             ## @BIGCHAR_HEIGHT
	.comm	_UI_PULSE,4,2                   ## @UI_PULSE
	.comm	_PULSE_DIVISOR,4,2              ## @PULSE_DIVISOR
	.comm	_UI_FORMATMASK,4,2              ## @UI_FORMATMASK
	.comm	_UI_DROPSHADOW,4,2              ## @UI_DROPSHADOW
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_UI_DrawString                  ; -- Begin function UI_DrawString
	.p2align	2
_UI_DrawString:                         ; @UI_DrawString
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
	cbz	x2, LBB0_11
; %bb.1:
	mov	x20, x4
	mov	x19, x2
	mov	x21, x1
	mov	x22, x0
Lloh0:
	adrp	x8, _UI_BLINK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _UI_BLINK@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w3
	b.eq	LBB0_3
; %bb.2:
Lloh3:
	adrp	x8, _uis@GOTPAGE
Lloh4:
	ldr	x8, [x8, _uis@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _BLINK_DIVISOR@GOTPAGE
Lloh7:
	ldr	x9, [x9, _BLINK_DIVISOR@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	sdiv	w8, w8, w9
	tbnz	w8, #0, LBB0_11
LBB0_3:
Lloh9:
	adrp	x8, _UI_SMALLFONT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _UI_SMALLFONT@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	tst	w8, w3
	b.eq	LBB0_5
; %bb.4:
Lloh12:
	adrp	x9, _SMALLCHAR_WIDTH@GOTPAGE
Lloh13:
	ldr	x9, [x9, _SMALLCHAR_WIDTH@GOTPAGEOFF]
Lloh14:
	adrp	x8, _SMALLCHAR_HEIGHT@GOTPAGE
Lloh15:
	ldr	x8, [x8, _SMALLCHAR_HEIGHT@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
Lloh16:
	adrp	x8, _UI_GIANTFONT@GOTPAGE
Lloh17:
	ldr	x8, [x8, _UI_GIANTFONT@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
Lloh19:
	adrp	x9, _GIANTCHAR_HEIGHT@GOTPAGE
Lloh20:
	ldr	x9, [x9, _GIANTCHAR_HEIGHT@GOTPAGEOFF]
Lloh21:
	adrp	x10, _BIGCHAR_HEIGHT@GOTPAGE
Lloh22:
	ldr	x10, [x10, _BIGCHAR_HEIGHT@GOTPAGEOFF]
	tst	w8, w3
	csel	x8, x10, x9, eq
Lloh23:
	adrp	x9, _GIANTCHAR_WIDTH@GOTPAGE
Lloh24:
	ldr	x9, [x9, _GIANTCHAR_WIDTH@GOTPAGEOFF]
Lloh25:
	adrp	x10, _BIGCHAR_WIDTH@GOTPAGE
Lloh26:
	ldr	x10, [x10, _BIGCHAR_WIDTH@GOTPAGEOFF]
	csel	x9, x10, x9, eq
LBB0_6:
	ldr	w23, [x9]
	ldr	w24, [x8]
Lloh27:
	adrp	x8, _UI_FORMATMASK@GOTPAGE
Lloh28:
	ldr	x8, [x8, _UI_FORMATMASK@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
	and	w8, w8, w3
	cmp	w8, #128
	b.eq	LBB0_9
; %bb.7:
	cmp	w8, #129
	b.ne	LBB0_10
; %bb.8:
	mov	x0, x19
	bl	_strlen
	mul	w8, w0, w23
	cmp	w8, #0
	cinc	w8, w8, lt
	sub	w22, w22, w8, asr #1
	b	LBB0_10
LBB0_9:
	mov	x0, x19
	bl	_strlen
	msub	w22, w0, w23, w22
LBB0_10:
	stp	x23, x24, [sp, #8]
	str	x20, [sp]
	mov	x0, x22
	mov	x1, x21
	mov	x2, x19
	bl	_UI_DrawString2
LBB0_11:
	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
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_UI_BLINK,4,2                   ; @UI_BLINK
	.comm	_uis,4,2                        ; @uis
	.comm	_BLINK_DIVISOR,4,2              ; @BLINK_DIVISOR
	.comm	_UI_SMALLFONT,4,2               ; @UI_SMALLFONT
	.comm	_SMALLCHAR_WIDTH,4,2            ; @SMALLCHAR_WIDTH
	.comm	_SMALLCHAR_HEIGHT,4,2           ; @SMALLCHAR_HEIGHT
	.comm	_UI_GIANTFONT,4,2               ; @UI_GIANTFONT
	.comm	_GIANTCHAR_WIDTH,4,2            ; @GIANTCHAR_WIDTH
	.comm	_GIANTCHAR_HEIGHT,4,2           ; @GIANTCHAR_HEIGHT
	.comm	_BIGCHAR_WIDTH,4,2              ; @BIGCHAR_WIDTH
	.comm	_BIGCHAR_HEIGHT,4,2             ; @BIGCHAR_HEIGHT
	.comm	_UI_PULSE,4,2                   ; @UI_PULSE
	.comm	_PULSE_DIVISOR,4,2              ; @PULSE_DIVISOR
	.comm	_UI_FORMATMASK,4,2              ; @UI_FORMATMASK
	.comm	_UI_DROPSHADOW,4,2              ; @UI_DROPSHADOW
.subsections_via_symbols
