	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function process_text2
_process_text2:                         ## @process_text2
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movq	%rsi, %r13
	movl	%edi, %r14d
	testb	$1, %r15b
	jne	LBB0_1
## %bb.2:
	testb	$2, %r15b
	jne	LBB0_3
LBB0_4:
	testb	$4, %r15b
	jne	LBB0_5
LBB0_6:
	testb	$8, %r15b
	jne	LBB0_7
LBB0_8:
	testb	$16, %r15b
	jne	LBB0_9
LBB0_10:
	testb	$32, %r15b
	jne	LBB0_11
LBB0_12:
	testb	$64, %r15b
	jne	LBB0_13
LBB0_14:
	testb	$-128, %r15b
	jne	LBB0_15
LBB0_16:
	testl	$256, %r15d                     ## imm = 0x100
	jne	LBB0_17
LBB0_18:
	testl	$512, %r15d                     ## imm = 0x200
	jne	LBB0_19
LBB0_20:
	testl	$1024, %r15d                    ## imm = 0x400
	jne	LBB0_21
LBB0_22:
	testl	$2048, %r15d                    ## imm = 0x800
	jne	LBB0_23
LBB0_24:
	testl	$4096, %r15d                    ## imm = 0x1000
	jne	LBB0_25
LBB0_26:
	testl	$8192, %r15d                    ## imm = 0x2000
	je	LBB0_28
LBB0_27:
	movq	48(%r13), %rsi
	movl	%r14d, %edi
	callq	_in_uint16_le
LBB0_28:
	leaq	120(%r13), %r12
	movl	%r15d, %edx
	sarl	$14, %edx
	movl	%r14d, %edi
	movq	%r12, %rsi
	callq	_rdp_parse_brush
	testl	$524288, %r15d                  ## imm = 0x80000
	jne	LBB0_29
## %bb.30:
	testl	$1048576, %r15d                 ## imm = 0x100000
	jne	LBB0_31
LBB0_32:
	testl	$2097152, %r15d                 ## imm = 0x200000
	je	LBB0_34
LBB0_33:
	movl	16(%r13), %esi
	movl	%r14d, %edi
	callq	_in_uint8
	movq	24(%r13), %rsi
	movl	16(%r13), %edx
	movl	%r14d, %edi
	callq	_in_uint8a
LBB0_34:
	movslq	16(%r13), %rdi
	callq	_DEBUG
	leaq	L_.str.1(%rip), %rdi
	callq	_DEBUG
	cmpl	$0, 16(%r13)
	jle	LBB0_37
## %bb.35:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_36:                                ## =>This Inner Loop Header: Depth=1
	movq	24(%r13), %rax
	movslq	(%rax,%rbx,4), %rdi
	callq	_DEBUG
	incq	%rbx
	movslq	16(%r13), %rax
	cmpq	%rax, %rbx
	jl	LBB0_36
LBB0_37:
	leaq	L_.str.3(%rip), %rdi
	callq	_DEBUG
	leaq	-44(%rbp), %rdi
	movq	%r12, %rsi
	callq	_setup_brush
	movl	(%r13), %edi
	movl	4(%r13), %esi
	movl	8(%r13), %edx
	decl	%edx
	movl	12(%r13), %ecx
	movq	112(%r13), %r8
	movq	88(%r13), %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	72(%r13), %rbx
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	movq	96(%r13), %r15
	subq	%rax, %r15
	movq	80(%r13), %r11
	subq	%rbx, %r11
	movq	56(%r13), %r12
	movq	40(%r13), %r14
	movq	64(%r13), %r10
	subq	%r12, %r10
	movq	48(%r13), %rax
	subq	%r14, %rax
	movq	104(%r13), %r9
	movl	36(%r13), %ebx
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movl	32(%r13), %ebx
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movl	16(%r13), %ebx
	subq	$8, %rsp
	pushq	%rbx
	pushq	24(%r13)
	pushq	-56(%rbp)                       ## 8-byte Folded Reload
	pushq	-64(%rbp)                       ## 8-byte Folded Reload
	leaq	-44(%rbp), %rbx
	pushq	%rbx
	pushq	%rax
	pushq	%r10
	pushq	%r14
	pushq	%r12
	pushq	%r11
	pushq	%r15
	pushq	-72(%rbp)                       ## 8-byte Folded Reload
	pushq	-80(%rbp)                       ## 8-byte Folded Reload
	callq	_ui_draw_text
	addq	$152, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movl	(%r13), %esi
	movl	%r14d, %edi
	callq	_in_uint8
	testb	$2, %r15b
	je	LBB0_4
LBB0_3:
	movl	4(%r13), %esi
	movl	%r14d, %edi
	callq	_in_uint8
	testb	$4, %r15b
	je	LBB0_6
LBB0_5:
	movl	8(%r13), %esi
	movl	%r14d, %edi
	callq	_in_uint8
	testb	$8, %r15b
	je	LBB0_8
LBB0_7:
	movl	12(%r13), %esi
	movl	%r14d, %edi
	callq	_in_uint8
	testb	$16, %r15b
	je	LBB0_10
LBB0_9:
	leaq	32(%r13), %rsi
	movl	%r14d, %edi
	callq	_rdp_in_colour
	testb	$32, %r15b
	je	LBB0_12
LBB0_11:
	leaq	36(%r13), %rsi
	movl	%r14d, %edi
	callq	_rdp_in_colour
	testb	$64, %r15b
	je	LBB0_14
LBB0_13:
	movq	88(%r13), %rsi
	movl	%r14d, %edi
	callq	_in_uint16_le
	testb	$-128, %r15b
	je	LBB0_16
LBB0_15:
	movq	72(%r13), %rsi
	movl	%r14d, %edi
	callq	_in_uint16_le
	testl	$256, %r15d                     ## imm = 0x100
	je	LBB0_18
LBB0_17:
	movq	96(%r13), %rsi
	movl	%r14d, %edi
	callq	_in_uint16_le
	testl	$512, %r15d                     ## imm = 0x200
	je	LBB0_20
LBB0_19:
	movq	80(%r13), %rsi
	movl	%r14d, %edi
	callq	_in_uint16_le
	testl	$1024, %r15d                    ## imm = 0x400
	je	LBB0_22
LBB0_21:
	movq	56(%r13), %rsi
	movl	%r14d, %edi
	callq	_in_uint16_le
	testl	$2048, %r15d                    ## imm = 0x800
	je	LBB0_24
LBB0_23:
	movq	40(%r13), %rsi
	movl	%r14d, %edi
	callq	_in_uint16_le
	testl	$4096, %r15d                    ## imm = 0x1000
	je	LBB0_26
LBB0_25:
	movq	64(%r13), %rsi
	movl	%r14d, %edi
	callq	_in_uint16_le
	testl	$8192, %r15d                    ## imm = 0x2000
	jne	LBB0_27
	jmp	LBB0_28
LBB0_29:
	movq	112(%r13), %rsi
	movl	%r14d, %edi
	callq	_in_uint16_le
	testl	$1048576, %r15d                 ## imm = 0x100000
	je	LBB0_32
LBB0_31:
	movq	104(%r13), %rsi
	movl	%r14d, %edi
	callq	_in_uint16_le
	testl	$2097152, %r15d                 ## imm = 0x200000
	jne	LBB0_33
	jmp	LBB0_34
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str.1:                               ## @.str.1
	.asciz	"Text: "

L_.str.3:                               ## @.str.3
	.asciz	"\n"

	.no_dead_strip	_process_text2
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function process_text2
_process_text2:                         ; @process_text2
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	mov	x21, x2
	mov	x19, x1
	mov	x20, x0
	tbnz	w2, #0, LBB0_23
; %bb.1:
	tbnz	w21, #1, LBB0_24
LBB0_2:
	tbnz	w21, #2, LBB0_25
LBB0_3:
	tbnz	w21, #3, LBB0_26
LBB0_4:
	tbnz	w21, #4, LBB0_27
LBB0_5:
	tbnz	w21, #5, LBB0_28
LBB0_6:
	tbnz	w21, #6, LBB0_29
LBB0_7:
	tbnz	w21, #7, LBB0_30
LBB0_8:
	tbnz	w21, #8, LBB0_31
LBB0_9:
	tbnz	w21, #9, LBB0_32
LBB0_10:
	tbnz	w21, #10, LBB0_33
LBB0_11:
	tbnz	w21, #11, LBB0_34
LBB0_12:
	tbnz	w21, #12, LBB0_35
LBB0_13:
	tbz	w21, #13, LBB0_15
LBB0_14:
	ldr	x1, [x19, #48]
	mov	x0, x20
	bl	_in_uint16_le
LBB0_15:
	add	x22, x19, #120
	asr	w2, w21, #14
	mov	x0, x20
	mov	x1, x22
	bl	_rdp_parse_brush
	tbnz	w21, #19, LBB0_36
; %bb.16:
	tbnz	w21, #20, LBB0_37
LBB0_17:
	tbz	w21, #21, LBB0_19
LBB0_18:
	ldr	w1, [x19, #16]
	mov	x0, x20
	bl	_in_uint8
	ldr	x1, [x19, #24]
	ldr	w2, [x19, #16]
	mov	x0, x20
	bl	_in_uint8a
LBB0_19:
	ldrsw	x0, [x19, #16]
	bl	_DEBUG
Lloh0:
	adrp	x0, l_.str.1@PAGE
Lloh1:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_DEBUG
	ldr	w8, [x19, #16]
	cmp	w8, #1
	b.lt	LBB0_22
; %bb.20:
	mov	x20, #0
LBB0_21:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #24]
	ldrsw	x0, [x8, x20, lsl #2]
	bl	_DEBUG
	add	x20, x20, #1
	ldrsw	x8, [x19, #16]
	cmp	x20, x8
	b.lt	LBB0_21
LBB0_22:
Lloh2:
	adrp	x0, l_.str.3@PAGE
Lloh3:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_DEBUG
	sub	x20, x29, #36
	sub	x0, x29, #36
	mov	x1, x22
	bl	_setup_brush
	ldp	w0, w1, [x19]
	ldp	w8, w3, [x19, #8]
	sub	w2, w8, #1
	ldp	x5, x4, [x19, #104]
	ldp	x6, x8, [x19, #88]
	sub	x8, x8, x6
	ldp	x7, x9, [x19, #72]
	sub	x9, x9, x7
	ldp	x10, x11, [x19, #56]
	sub	x11, x11, x10
	ldp	x12, x13, [x19, #40]
	sub	x13, x13, x12
	ldp	w15, w14, [x19, #32]
	ldr	x16, [x19, #24]
	ldr	w17, [x19, #16]
	str	w17, [sp, #72]
	str	x16, [sp, #64]
	stp	w14, w15, [sp, #56]
	stp	x13, x20, [sp, #40]
	stp	x12, x11, [sp, #24]
	stp	x9, x10, [sp, #8]
	str	x8, [sp]
	bl	_ui_draw_text
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_23:
	ldr	w1, [x19]
	mov	x0, x20
	bl	_in_uint8
	tbz	w21, #1, LBB0_2
LBB0_24:
	ldr	w1, [x19, #4]
	mov	x0, x20
	bl	_in_uint8
	tbz	w21, #2, LBB0_3
LBB0_25:
	ldr	w1, [x19, #8]
	mov	x0, x20
	bl	_in_uint8
	tbz	w21, #3, LBB0_4
LBB0_26:
	ldr	w1, [x19, #12]
	mov	x0, x20
	bl	_in_uint8
	tbz	w21, #4, LBB0_5
LBB0_27:
	add	x1, x19, #32
	mov	x0, x20
	bl	_rdp_in_colour
	tbz	w21, #5, LBB0_6
LBB0_28:
	add	x1, x19, #36
	mov	x0, x20
	bl	_rdp_in_colour
	tbz	w21, #6, LBB0_7
LBB0_29:
	ldr	x1, [x19, #88]
	mov	x0, x20
	bl	_in_uint16_le
	tbz	w21, #7, LBB0_8
LBB0_30:
	ldr	x1, [x19, #72]
	mov	x0, x20
	bl	_in_uint16_le
	tbz	w21, #8, LBB0_9
LBB0_31:
	ldr	x1, [x19, #96]
	mov	x0, x20
	bl	_in_uint16_le
	tbz	w21, #9, LBB0_10
LBB0_32:
	ldr	x1, [x19, #80]
	mov	x0, x20
	bl	_in_uint16_le
	tbz	w21, #10, LBB0_11
LBB0_33:
	ldr	x1, [x19, #56]
	mov	x0, x20
	bl	_in_uint16_le
	tbz	w21, #11, LBB0_12
LBB0_34:
	ldr	x1, [x19, #40]
	mov	x0, x20
	bl	_in_uint16_le
	tbz	w21, #12, LBB0_13
LBB0_35:
	ldr	x1, [x19, #64]
	mov	x0, x20
	bl	_in_uint16_le
	tbnz	w21, #13, LBB0_14
	b	LBB0_15
LBB0_36:
	ldr	x1, [x19, #112]
	mov	x0, x20
	bl	_in_uint16_le
	tbz	w21, #20, LBB0_17
LBB0_37:
	ldr	x1, [x19, #104]
	mov	x0, x20
	bl	_in_uint16_le
	tbnz	w21, #21, LBB0_18
	b	LBB0_19
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str.1:                               ; @.str.1
	.asciz	"Text: "

l_.str.3:                               ; @.str.3
	.asciz	"\n"

	.no_dead_strip	_process_text2
.subsections_via_symbols
