	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function plot_channel_lin
_plot_channel_lin:                      ## @plot_channel_lin
	.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, %esi
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	movq	(%rdi), %r12
	movq	(%r12), %rax
	movq	_VERTICAL@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	cmpq	(%rcx), %rax
	setne	%dl
	movl	8(%r12,%rdx,4), %ebx
	leaq	-60(%rbp), %rdx
	leaq	-56(%rbp), %rcx
	leaq	-52(%rbp), %r8
	movq	%r12, %rdi
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	callq	_color_range
	testl	%ebx, %ebx
	jle	LBB0_5
## %bb.1:
	movl	%ebx, %r14d
	movl	%ebx, %ecx
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	imull	%eax, %ecx
	movl	%ecx, -48(%rbp)                 ## 4-byte Spill
	movslq	%eax, %r15
	xorl	%r13d, %r13d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	24(%r12), %rcx
	addl	%r13d, %eax
	leal	(%rax,%rax,2), %eax
	movslq	%eax, %rbx
	shlq	$2, %rbx
	addq	(%rcx,%r15,8), %rbx
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movl	%r13d, %edx
	callq	_get_value
	movaps	%xmm0, %xmm3
	movss	-60(%rbp), %xmm0                ## xmm0 = mem[0],zero,zero,zero
	movss	-56(%rbp), %xmm1                ## xmm1 = mem[0],zero,zero,zero
	movss	-52(%rbp), %xmm2                ## xmm2 = mem[0],zero,zero,zero
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_pick_color
	incl	%r13d
	cmpl	%r13d, %r14d
	je	LBB0_5
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%r12), %rcx
	movl	$0, %eax
	movq	_COMBINED@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	-48(%rbp), %eax                 ## 4-byte Reload
                                        ## kill: def $eax killed $eax def $rax
	jmp	LBB0_4
LBB0_5:
	xorl	%eax, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VERTICAL,8,3                   ## @VERTICAL
	.comm	_COMBINED,8,3                   ## @COMBINED
	.no_dead_strip	_plot_channel_lin
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function plot_channel_lin
_plot_channel_lin:                      ; @plot_channel_lin
	.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
	mov	x19, x2
	mov	x20, x0
	ldr	x21, [x0]
	ldr	x8, [x21]
Lloh0:
	adrp	x9, _VERTICAL@GOTPAGE
Lloh1:
	ldr	x9, [x9, _VERTICAL@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	mov	w10, #12
	mov	w11, #8
	cmp	x8, x9
	csel	x8, x11, x10, eq
	ldr	w24, [x21, x8]
	add	x2, sp, #12
	add	x3, sp, #8
	add	x4, sp, #4
	mov	x0, x21
	mov	x1, x19
	bl	_color_range
	cmp	w24, #1
	b.lt	LBB0_3
; %bb.1:
	mov	w22, #0
	mul	w25, w24, w19
	sxtw	x26, w19
Lloh3:
	adrp	x27, _COMBINED@GOTPAGE
Lloh4:
	ldr	x27, [x27, _COMBINED@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x27]
	ldp	x9, x10, [x21, #16]
	cmp	x9, x8
	csel	w8, wzr, w25, eq
	add	w8, w8, w22
	ldr	x9, [x10, x26, lsl #3]
	add	w8, w8, w8, lsl #1
	add	x23, x9, w8, sxtw #2
	mov	x0, x20
	mov	x1, x19
	mov	x2, x22
	bl	_get_value
	fmov	s3, s0
	ldp	s1, s0, [sp, #8]
	ldr	s2, [sp, #4]
	mov	x0, x21
	mov	x1, x23
	bl	_pick_color
	add	w22, w22, #1
	cmp	w24, w22
	b.ne	LBB0_2
LBB0_3:
	mov	w0, #0
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_VERTICAL,8,3                   ; @VERTICAL
	.comm	_COMBINED,8,3                   ; @COMBINED
	.no_dead_strip	_plot_channel_lin
.subsections_via_symbols
