	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal4,4byte_literals
	.p2align	2                               ## -- Begin function draw_axis_rgb
LCPI0_0:
	.long	0x3b808081                      ## float 0.00392156886
LCPI0_1:
	.long	0x3f800000                      ## float 1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_draw_axis_rgb:                         ## @draw_axis_rgb
	.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
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movq	%rdi, -88(%rbp)                 ## 8-byte Spill
	movq	%rsi, -80(%rbp)                 ## 8-byte Spill
	movl	4(%rsi), %eax
	movl	%eax, -68(%rbp)                 ## 4-byte Spill
	testl	%eax, %eax
	jle	LBB0_12
## %bb.1:
	movq	%rdx, %rbx
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %eax
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	shlq	$2, %rax
	leaq	(%rax,%rax,2), %r13
	xorl	%eax, %eax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	incl	%eax
	incl	-44(%rbp)                       ## 4-byte Folded Spill
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	cmpl	-68(%rbp), %eax                 ## 4-byte Folded Reload
	je	LBB0_12
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
	cmpl	$0, -96(%rbp)                   ## 4-byte Folded Reload
	jle	LBB0_11
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	movq	8(%rcx), %rax
	movq	16(%rcx), %rcx
	movslq	(%rcx), %rcx
	movslq	-64(%rbp), %r15                 ## 4-byte Folded Reload
	imulq	%rcx, %r15
	shlq	$2, %r15
	addq	(%rax), %r15
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	movq	8(%rcx), %rax
	movq	16(%rcx), %rcx
	movq	(%rax), %rax
	movl	(%rcx), %ecx
	imull	-44(%rbp), %ecx                 ## 4-byte Folded Reload
	movslq	%ecx, %rcx
	leaq	(%rax,%rcx,4), %r14
	addq	$8, %r14
	xorl	%r12d, %r12d
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=2
	xorps	%xmm2, %xmm2
	cvtsi2ss	%eax, %xmm2
	mulss	LCPI0_0(%rip), %xmm2
	movss	%xmm2, -52(%rbp)                ## 4-byte Spill
	xorps	%xmm0, %xmm0
	cvtsi2ssl	(%r15), %xmm0
	movss	LCPI0_1(%rip), %xmm3            ## xmm3 = mem[0],zero,zero,zero
	subss	%xmm2, %xmm3
	movss	%xmm3, -48(%rbp)                ## 4-byte Spill
	movss	(%rbx,%r12), %xmm1              ## xmm1 = mem[0],zero,zero,zero
	mulss	%xmm3, %xmm1
	mulss	%xmm2, %xmm0
	addss	%xmm1, %xmm0
	callq	_lrintf
	movl	%eax, -8(%r14,%r12)
	xorps	%xmm0, %xmm0
	cvtsi2ssl	4(%r15), %xmm0
	movss	4(%rbx,%r12), %xmm1             ## xmm1 = mem[0],zero,zero,zero
	mulss	-48(%rbp), %xmm1                ## 4-byte Folded Reload
	mulss	-52(%rbp), %xmm0                ## 4-byte Folded Reload
	addss	%xmm1, %xmm0
	callq	_lrintf
	movl	%eax, -4(%r14,%r12)
	xorps	%xmm0, %xmm0
	cvtsi2ssl	8(%r15), %xmm0
	movss	-48(%rbp), %xmm1                ## 4-byte Reload
                                        ## xmm1 = mem[0],zero,zero,zero
	mulss	8(%rbx,%r12), %xmm1
	mulss	-52(%rbp), %xmm0                ## 4-byte Folded Reload
	addss	%xmm1, %xmm0
LBB0_9:                                 ##   in Loop: Header=BB0_4 Depth=2
	callq	_lrintf
	movl	%eax, (%r14,%r12)
LBB0_10:                                ##   in Loop: Header=BB0_4 Depth=2
	addq	$16, %r15
	addq	$12, %r12
	cmpq	%r12, %r13
	je	LBB0_11
LBB0_4:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	12(%r15), %eax
	cmpl	$255, %eax
	je	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=2
	testl	%eax, %eax
	jne	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_4 Depth=2
	movss	(%rbx,%r12), %xmm0              ## xmm0 = mem[0],zero,zero,zero
	callq	_lrintf
	movl	%eax, -8(%r14,%r12)
	movss	4(%rbx,%r12), %xmm0             ## xmm0 = mem[0],zero,zero,zero
	callq	_lrintf
	movl	%eax, -4(%r14,%r12)
	movss	8(%rbx,%r12), %xmm0             ## xmm0 = mem[0],zero,zero,zero
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=2
	movl	(%r15), %eax
	movl	%eax, -8(%r14,%r12)
	movl	4(%r15), %eax
	movl	%eax, -4(%r14,%r12)
	movl	8(%r15), %eax
	movl	%eax, (%r14,%r12)
	jmp	LBB0_10
LBB0_12:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_draw_axis_rgb
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function draw_axis_rgb
_draw_axis_rgb:                         ; @draw_axis_rgb
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	d11, d10, [sp, #16]             ; 16-byte Folded Spill
	stp	d9, d8, [sp, #32]               ; 16-byte Folded Spill
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	.cfi_offset b8, -104
	.cfi_offset b9, -112
	.cfi_offset b10, -120
	.cfi_offset b11, -128
	ldr	w8, [x1, #4]
	str	w8, [sp, #12]                   ; 4-byte Folded Spill
	cmp	w8, #1
	b.lt	LBB0_12
; %bb.1:
	mov	x19, x3
	mov	x20, x1
	mov	x21, x0
	mov	w23, #0
	ldr	w25, [x1]
	add	x8, x2, #8
	str	x8, [sp]                        ; 8-byte Folded Spill
	mov	w26, #32897
	movk	w26, #15232, lsl #16
	fmov	s8, #1.00000000
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	w23, w23, #1
	add	w19, w19, #1
	ldr	w8, [sp, #12]                   ; 4-byte Folded Reload
	cmp	w23, w8
	b.eq	LBB0_12
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_8 Depth 2
	cmp	w25, #1
	b.lt	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldp	x8, x9, [x20, #8]
	ldr	x8, [x8]
	ldr	w9, [x9]
	ldp	x10, x11, [x21, #8]
	ldr	x10, [x10]
	ldr	w11, [x11]
	mul	w11, w11, w19
	add	x10, x10, w11, sxtw #2
	add	x27, x10, #4
	mul	w9, w9, w23
	add	x8, x8, w9, sxtw #2
	add	x28, x8, #8
	mov	x24, x25
	ldr	x22, [sp]                       ; 8-byte Folded Reload
	b	LBB0_8
LBB0_5:                                 ;   in Loop: Header=BB0_8 Depth=2
	scvtf	s0, w8
	fmov	s1, w26
	fmul	s9, s0, s1
	ldur	s0, [x28, #-8]
	scvtf	s0, s0
	fsub	s10, s8, s9
	ldur	s1, [x22, #-8]
	fmul	s1, s10, s1
	fmadd	s0, s9, s0, s1
	bl	_lrintf
	stur	w0, [x27, #-4]
	ldur	s0, [x28, #-4]
	scvtf	s0, s0
	ldur	s1, [x22, #-4]
	fmul	s1, s10, s1
	fmadd	s0, s9, s0, s1
	bl	_lrintf
	str	w0, [x27]
	ldr	s0, [x28]
	scvtf	s0, s0
	ldr	s1, [x22]
	fmul	s1, s10, s1
	fmadd	s0, s9, s0, s1
LBB0_6:                                 ;   in Loop: Header=BB0_8 Depth=2
	bl	_lrintf
	str	w0, [x27, #4]
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=2
	add	x27, x27, #12
	add	x28, x28, #16
	add	x22, x22, #12
	subs	x24, x24, #1
	b.eq	LBB0_2
LBB0_8:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w8, [x28, #4]
	cmp	w8, #255
	b.eq	LBB0_11
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=2
	cbnz	w8, LBB0_5
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=2
	ldur	s0, [x22, #-8]
	bl	_lrintf
	stur	w0, [x27, #-4]
	ldur	s0, [x22, #-4]
	bl	_lrintf
	str	w0, [x27]
	ldr	s0, [x22]
	b	LBB0_6
LBB0_11:                                ;   in Loop: Header=BB0_8 Depth=2
	ldur	w8, [x28, #-8]
	stur	w8, [x27, #-4]
	ldur	w8, [x28, #-4]
	str	w8, [x27]
	ldr	w8, [x28]
	str	w8, [x27, #4]
	b	LBB0_7
LBB0_12:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #32]               ; 16-byte Folded Reload
	ldp	d11, d10, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_draw_axis_rgb
.subsections_via_symbols
