	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ring1_test
_ring1_test:                            ## @ring1_test
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	cmpl	$255, %edx
	jg	LBB0_5
## %bb.1:
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movslq	%edx, %rdx
	movslq	%esi, %rcx
	leaq	4(,%rcx,4), %rax
	imulq	%rdx, %rax
	addq	%rax, %rbx
	shlq	$6, %rcx
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	leaq	-16(%rdx), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	leaq	(%rdx,%rdx), %r12
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_3 Depth 2
	movq	%rdx, -80(%rbp)                 ## 8-byte Spill
	movl	%eax, %r13d
	negl	%r13d
	movq	%r12, -72(%rbp)                 ## 8-byte Spill
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movq	%rbx, -88(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_3:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	testb	$16, %r12b
	movl	%eax, %edx
	cmovel	%r13d, %edx
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movl	$16, %ecx
	movl	$16, %r8d
	callq	_draw_dc
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	incl	%eax
	addq	$64, %rbx
	addq	$16, %r15
	addq	$16, %r12
	decl	%r13d
	cmpq	$240, %r15
	jl	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	leaq	16(%rcx), %rdx
	movq	-88(%rbp), %rbx                 ## 8-byte Reload
	addq	-64(%rbp), %rbx                 ## 8-byte Folded Reload
	movq	-72(%rbp), %r12                 ## 8-byte Reload
	addq	$16, %r12
	cmpq	$240, %rcx
	jl	LBB0_2
LBB0_5:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_ring1_test
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ring1_test
_ring1_test:                            ; @ring1_test
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
                                        ; kill: def $w2 killed $w2 def $x2
	cmp	w2, #255
	b.gt	LBB0_5
; %bb.1:
	mov	x19, x1
	mov	w21, #0
	sxtw	x22, w2
	sbfiz	x8, x19, #2, #32
	add	x8, x8, #4
	madd	x23, x8, x22, x0
	sbfiz	x8, x19, #6, #32
	str	x8, [sp, #8]                    ; 8-byte Folded Spill
	sub	x24, x22, #16
	sbfiz	x26, x2, #1, #32
LBB0_2:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_3 Depth 2
	neg	w27, w21
	mov	x28, x26
	mov	x25, x24
	mov	x20, x23
LBB0_3:                                 ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	tst	x28, #0x10
	csel	w2, w27, w21, eq
	mov	x0, x20
	mov	x1, x19
	mov	w3, #16
	mov	w4, #16
	bl	_draw_dc
	add	w21, w21, #1
	add	x20, x20, #64
	add	x25, x25, #16
	add	x28, x28, #16
	sub	w27, w27, #1
	cmp	x25, #240
	b.lt	LBB0_3
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x8, x22, #16
	ldr	x9, [sp, #8]                    ; 8-byte Folded Reload
	add	x23, x23, x9
	add	x26, x26, #16
	cmp	x22, #240
	mov	x22, x8
	b.lt	LBB0_2
LBB0_5:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_ring1_test
.subsections_via_symbols
