	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function draw_trace8
_draw_trace8:                           ## @draw_trace8
	.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	%rsi, -56(%rbp)                 ## 8-byte Spill
	movl	(%rdi), %ecx
	cmpl	$2, %ecx
	jl	LBB0_9
## %bb.1:
	movq	%rdi, %r15
	leaq	56(%rdi), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movl	4(%rdi), %eax
	movl	$1, %r12d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r15), %ecx
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%r12
	movslq	%ecx, %rdx
	cmpq	%rdx, %r12
	jge	LBB0_9
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
	testl	%eax, %eax
	jle	LBB0_8
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	leal	-1(%r12), %r13d
	xorl	%r14d, %r14d
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=2
	incq	%r14
	movslq	%eax, %rcx
	cmpq	%rcx, %r14
	jge	LBB0_7
LBB0_4:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	8(%r15), %ecx
	btl	%r14d, %ecx
	jae	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=2
	movl	(%r15), %edi
	movl	12(%r15), %esi
	movl	%esi, %eax
	imull	%r12d, %eax
	cltd
	idivl	%edi
	movl	%eax, %r8d
	imull	%r13d, %esi
	movl	%esi, %eax
	cltd
	idivl	%edi
	movl	16(%r15), %edx
	movq	64(%r15), %rsi
	movq	24(%r15), %rdi
	movq	(%rdi,%r14,8), %rdi
	movq	-8(%rsi,%r12,8), %rcx
	movq	(%rsi,%r12,8), %r9
	movl	(%rcx,%rdi,4), %ecx
	imull	%edx, %ecx
	leal	255(%rcx), %esi
	testl	%ecx, %ecx
	cmovnsl	%ecx, %esi
	sarl	$8, %esi
	movl	%edx, %r10d
	subl	%esi, %r10d
	movl	(%r9,%rdi,4), %ecx
	imull	%edx, %ecx
	leal	255(%rcx), %esi
	testl	%ecx, %ecx
	cmovnsl	%ecx, %esi
	sarl	$8, %esi
	subl	%esi, %edx
	movq	48(%r15), %rdi
	movslq	%r8d, %rsi
	addq	%rdi, %rsi
	movq	40(%r15), %rbx
	movslq	%edx, %rdx
	addq	%rbx, %rdx
	movslq	%eax, %rcx
	addq	%rdi, %rcx
	movslq	%r10d, %r8
	addq	%rbx, %r8
	movq	32(%r15), %rax
	movl	(%rax,%r14,4), %eax
	movl	%eax, (%rsp)
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	-56(%rbp), %r9                  ## 8-byte Reload
	callq	_draw_line
	movl	4(%r15), %eax
	jmp	LBB0_6
LBB0_9:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_draw_trace8
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function draw_trace8
_draw_trace8:                           ; @draw_trace8
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	ldr	w9, [x0]
	cmp	w9, #2
	b.lt	LBB0_9
; %bb.1:
	mov	x19, x1
	mov	x20, x0
	add	x21, x0, #56
	ldr	w8, [x0, #4]
	mov	w22, #1
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w9, [x20]
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x22, x22, #1
	cmp	x22, w9, sxtw
	b.ge	LBB0_9
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
	cmp	w8, #1
	b.lt	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x23, #0
	sub	x24, x22, #1
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=2
	add	x23, x23, #1
	cmp	x23, w8, sxtw
	b.ge	LBB0_2
LBB0_7:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w9, [x20, #8]
	lsr	w9, w9, w23
	tbz	w9, #0, LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=2
	ldp	w8, w9, [x20, #12]
	mul	w10, w8, w22
	ldr	w11, [x20]
	sdiv	w10, w10, w11
	mul	w8, w8, w24
	ldr	x12, [x20, #64]
	ldr	x13, [x12, x24, lsl #3]
	ldp	x14, x15, [x20, #24]
	ldr	x14, [x14, x23, lsl #3]
	lsl	x14, x14, #2
	sdiv	w8, w8, w11
	ldr	w11, [x13, x14]
	mul	w11, w11, w9
	add	w13, w11, #255
	cmp	w11, #0
	csel	w11, w13, w11, lt
	sub	w11, w9, w11, asr #8
	ldr	x12, [x12, x22, lsl #3]
	ldr	w12, [x12, x14]
	mul	w12, w12, w9
	add	w13, w12, #255
	cmp	w12, #0
	csel	w12, w13, w12, lt
	sub	w9, w9, w12, asr #8
	ldp	x13, x12, [x20, #40]
	add	x1, x12, w10, sxtw
	add	x2, x13, w9, sxtw
	add	x3, x12, w8, sxtw
	add	x4, x13, w11, sxtw
	ldr	w6, [x15, x23, lsl #2]
	mov	x0, x21
	mov	x5, x19
	bl	_draw_line
	ldr	w8, [x20, #4]
	b	LBB0_6
LBB0_9:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_draw_trace8
.subsections_via_symbols
