	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal4,4byte_literals
	.p2align	2                               ## -- Begin function plot_channel_log
LCPI0_0:
	.long	0x3f800000                      ## float 1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_plot_channel_log:                      ## @plot_channel_log
	.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	$104, %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), %rax
	movq	%rdi, -136(%rbp)                ## 8-byte Spill
	movq	8(%rdi), %r14
	movq	(%rax), %rax
	movq	%rax, -128(%rbp)                ## 8-byte Spill
	movq	(%r14), %rax
	movq	_VERTICAL@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	cmpq	(%rcx), %rax
	setne	%dl
	movl	8(%r14,%rdx,4), %ebx
	leaq	-104(%rbp), %rdx
	leaq	-100(%rbp), %rcx
	leaq	-96(%rbp), %r8
	movq	%r14, %rdi
	movl	%esi, -52(%rbp)                 ## 4-byte Spill
	callq	_color_range
	testl	%ebx, %ebx
	jle	LBB0_7
## %bb.1:
	cvtsi2ss	%ebx, %xmm0
	movss	%xmm0, -56(%rbp)                ## 4-byte Spill
	leal	-1(%rbx), %r13d
	movl	%ebx, %eax
	movl	-52(%rbp), %ecx                 ## 4-byte Reload
	imull	%ecx, %eax
	xorps	%xmm0, %xmm0
	cvtsi2ss	%eax, %xmm0
	movss	%xmm0, -72(%rbp)                ## 4-byte Spill
	movslq	%ecx, %r15
	xorl	%eax, %eax
	xorps	%xmm0, %xmm0
	movss	%xmm0, -44(%rbp)                ## 4-byte Spill
	movq	%rbx, -120(%rbp)                ## 8-byte Spill
	movq	%r15, -112(%rbp)                ## 8-byte Spill
	movl	%r13d, -76(%rbp)                ## 4-byte Spill
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
	movl	%eax, %r15d
	movq	-128(%rbp), %r12                ## 8-byte Reload
	movl	(%r12), %edx
	movl	%eax, %edi
	movl	%ebx, %esi
	callq	_bin_pos
	movss	%xmm0, -48(%rbp)                ## 4-byte Spill
	leal	1(%r15), %r13d
	movl	(%r12), %edx
	movl	%r13d, %edi
	movl	%ebx, %esi
	callq	_bin_pos
	movss	%xmm0, -64(%rbp)                ## 4-byte Spill
	movaps	%xmm0, %xmm1
	subss	-48(%rbp), %xmm1                ## 4-byte Folded Reload
	movss	%xmm1, -60(%rbp)                ## 4-byte Spill
	movq	-136(%rbp), %r12                ## 8-byte Reload
	movq	%r12, %rdi
	movl	-52(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %esi
	movl	%r15d, %edx
	movq	-112(%rbp), %r15                ## 8-byte Reload
	callq	_get_value
	movss	%xmm0, -92(%rbp)                ## 4-byte Spill
	movl	%r13d, -80(%rbp)                ## 4-byte Spill
	movl	%r13d, %edi
	movl	-76(%rbp), %r13d                ## 4-byte Reload
	movl	%r13d, %esi
	callq	_FFMIN
	movq	%r12, %rdi
	movq	_COMBINED@GOTPCREL(%rip), %r12
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_get_value
	movss	-48(%rbp), %xmm2                ## 4-byte Reload
                                        ## xmm2 = mem[0],zero,zero,zero
	movss	%xmm0, -88(%rbp)                ## 4-byte Spill
	movss	-64(%rbp), %xmm0                ## 4-byte Reload
                                        ## xmm0 = mem[0],zero,zero,zero
	ucomiss	%xmm2, %xmm0
	jbe	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movss	-44(%rbp), %xmm0                ## 4-byte Reload
                                        ## xmm0 = mem[0],zero,zero,zero
	addss	-72(%rbp), %xmm0                ## 4-byte Folded Reload
	movss	%xmm0, -84(%rbp)                ## 4-byte Spill
	movaps	%xmm2, %xmm3
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_4 Depth=2
	movq	24(%r14), %rax
	movq	(%rax,%r15,8), %rbx
	movss	%xmm3, -68(%rbp)                ## 4-byte Spill
	callq	_lrintf
	movl	%eax, %edi
	movl	%r13d, %esi
	callq	_FFMIN
                                        ## kill: def $eax killed $eax def $rax
	leal	(%rax,%rax,2), %eax
	cltq
	leaq	(%rbx,%rax,4), %rsi
	movss	-68(%rbp), %xmm3                ## 4-byte Reload
                                        ## xmm3 = mem[0],zero,zero,zero
	subss	-48(%rbp), %xmm3                ## 4-byte Folded Reload
	divss	-60(%rbp), %xmm3                ## 4-byte Folded Reload
	movss	-104(%rbp), %xmm0               ## xmm0 = mem[0],zero,zero,zero
	movss	-100(%rbp), %xmm1               ## xmm1 = mem[0],zero,zero,zero
	movss	-96(%rbp), %xmm2                ## xmm2 = mem[0],zero,zero,zero
	movss	LCPI0_0(%rip), %xmm4            ## xmm4 = mem[0],zero,zero,zero
	subss	%xmm3, %xmm4
	mulss	-92(%rbp), %xmm4                ## 4-byte Folded Reload
	mulss	-88(%rbp), %xmm3                ## 4-byte Folded Reload
	addss	%xmm4, %xmm3
	movq	%r14, %rdi
	callq	_pick_color
	movss	-68(%rbp), %xmm3                ## 4-byte Reload
                                        ## xmm3 = mem[0],zero,zero,zero
	movss	-48(%rbp), %xmm2                ## 4-byte Reload
                                        ## xmm2 = mem[0],zero,zero,zero
	addss	LCPI0_0(%rip), %xmm3
	movss	-64(%rbp), %xmm0                ## 4-byte Reload
                                        ## xmm0 = mem[0],zero,zero,zero
	ucomiss	%xmm3, %xmm0
	jbe	LBB0_5
LBB0_4:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movss	-44(%rbp), %xmm0                ## 4-byte Reload
                                        ## xmm0 = mem[0],zero,zero,zero
	addss	%xmm3, %xmm0
	subss	%xmm2, %xmm0
	movss	-56(%rbp), %xmm1                ## 4-byte Reload
                                        ## xmm1 = mem[0],zero,zero,zero
	ucomiss	%xmm0, %xmm1
	jbe	LBB0_5
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=2
	movq	16(%r14), %rax
	cmpq	(%r12), %rax
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_4 Depth=2
	movss	-84(%rbp), %xmm0                ## 4-byte Reload
                                        ## xmm0 = mem[0],zero,zero,zero
	addss	%xmm3, %xmm0
	subss	%xmm2, %xmm0
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	-120(%rbp), %rbx                ## 8-byte Reload
	movl	-80(%rbp), %eax                 ## 4-byte Reload
	cmpl	%ebx, %eax
	jge	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movss	-44(%rbp), %xmm1                ## 4-byte Reload
                                        ## xmm1 = mem[0],zero,zero,zero
	addss	-60(%rbp), %xmm1                ## 4-byte Folded Reload
	movss	-56(%rbp), %xmm0                ## 4-byte Reload
                                        ## xmm0 = mem[0],zero,zero,zero
	movss	%xmm1, -44(%rbp)                ## 4-byte Spill
	ucomiss	%xmm1, %xmm0
	ja	LBB0_2
LBB0_7:
	xorl	%eax, %eax
	addq	$104, %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_log
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function plot_channel_log
_plot_channel_log:                      ; @plot_channel_log
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #192
	.cfi_def_cfa_offset 192
	stp	d15, d14, [sp, #32]             ; 16-byte Folded Spill
	stp	d13, d12, [sp, #48]             ; 16-byte Folded Spill
	stp	d11, d10, [sp, #64]             ; 16-byte Folded Spill
	stp	d9, d8, [sp, #80]               ; 16-byte Folded Spill
	stp	x28, x27, [sp, #96]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #112]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #128]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #144]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #160]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #176]            ; 16-byte Folded Spill
	add	x29, sp, #176
	.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
	.cfi_offset b12, -136
	.cfi_offset b13, -144
	.cfi_offset b14, -152
	.cfi_offset b15, -160
	mov	x19, x2
	mov	x20, x0
	ldp	x8, x21, [x0]
	ldr	x26, [x8]
	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	w22, [x21, x8]
	add	x2, sp, #28
	add	x3, sp, #24
	add	x4, sp, #20
	mov	x0, x21
	mov	x1, x19
	bl	_color_range
	subs	w23, w22, #1
	b.lt	LBB0_8
; %bb.1:
	mov	w25, #0
	scvtf	s1, w22
	mul	w8, w22, w19
	scvtf	s0, w8
	stp	s0, s1, [sp, #8]                ; 8-byte Folded Spill
	sxtw	x27, w19
	movi	d14, #0000000000000000
Lloh3:
	adrp	x28, _COMBINED@GOTPAGE
Lloh4:
	ldr	x28, [x28, _COMBINED@GOTPAGEOFF]
	fmov	s13, #1.00000000
LBB0_2:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_4 Depth 2
	ldr	w2, [x26]
	mov	x0, x25
	mov	x1, x22
	bl	_bin_pos
	fmov	s12, s0
	add	w24, w25, #1
	ldr	w2, [x26]
	mov	x0, x24
	mov	x1, x22
	bl	_bin_pos
	fmov	s9, s0
	fsub	s0, s0, s12
	str	s0, [sp, #16]                   ; 4-byte Folded Spill
	mov	x0, x20
	mov	x1, x19
	mov	x2, x25
	bl	_get_value
	fmov	s10, s0
	mov	x0, x24
	mov	x1, x23
	bl	_FFMIN
	mov	x2, x0
	mov	x0, x20
	mov	x1, x19
	bl	_get_value
	fcmp	s12, s9
	b.pl	LBB0_6
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	fmov	s11, s0
	ldr	s0, [sp, #8]                    ; 4-byte Folded Reload
	fadd	s15, s14, s0
	fmov	s8, s12
LBB0_4:                                 ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	fadd	s0, s14, s8
	fsub	s0, s0, s12
	ldr	s1, [sp, #12]                   ; 4-byte Folded Reload
	fcmp	s0, s1
	b.pl	LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=2
	ldr	x8, [x28]
	fadd	s1, s15, s8
	fsub	s1, s1, s12
	ldp	x9, x10, [x21, #16]
	cmp	x9, x8
	fcsel	s0, s0, s1, eq
	ldr	x25, [x10, x27, lsl #3]
	bl	_lrintf
	mov	x1, x23
	bl	_FFMIN
	add	w8, w0, w0, lsl #1
	add	x1, x25, w8, sxtw #2
	fsub	s0, s8, s12
	ldp	s1, s2, [sp, #16]               ; 4-byte Folded Reload
	fdiv	s3, s0, s1
	ldp	s1, s0, [sp, #24]
	fsub	s4, s13, s3
	fmul	s4, s10, s4
	fmadd	s3, s3, s11, s4
	mov	x0, x21
	bl	_pick_color
	fadd	s8, s8, s13
	fcmp	s8, s9
	b.mi	LBB0_4
LBB0_6:                                 ;   in Loop: Header=BB0_2 Depth=1
	cmp	w24, w22
	b.ge	LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	s0, [sp, #16]                   ; 4-byte Folded Reload
	fadd	s14, s14, s0
	ldr	s0, [sp, #12]                   ; 4-byte Folded Reload
	fcmp	s14, s0
	mov	x25, x24
	b.mi	LBB0_2
LBB0_8:
	mov	w0, #0
	ldp	x29, x30, [sp, #176]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #160]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #144]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #128]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #112]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #96]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #80]               ; 16-byte Folded Reload
	ldp	d11, d10, [sp, #64]             ; 16-byte Folded Reload
	ldp	d13, d12, [sp, #48]             ; 16-byte Folded Reload
	ldp	d15, d14, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #192
	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_log
.subsections_via_symbols
