	.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_bar_rgb
LCPI0_0:
	.long	0x3f800000                      ## float 1
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_draw_bar_rgb:                          ## @draw_bar_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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movss	%xmm0, -48(%rbp)                ## 4-byte Spill
	movq	%rcx, -104(%rbp)                ## 8-byte Spill
	movq	%rdx, -112(%rbp)                ## 8-byte Spill
	movl	%r8d, -44(%rbp)                 ## 4-byte Spill
	testl	%r8d, %r8d
	jle	LBB0_9
## %bb.1:
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	xorps	%xmm0, %xmm0
	cvtsi2ss	%ebx, %xmm0
	movss	LCPI0_0(%rip), %xmm1            ## xmm1 = mem[0],zero,zero,zero
	movaps	%xmm1, %xmm2
	divss	%xmm0, %xmm2
	movss	%xmm2, -60(%rbp)                ## 4-byte Spill
	divss	-48(%rbp), %xmm1                ## 4-byte Folded Reload
	movss	%xmm1, -64(%rbp)                ## 4-byte Spill
	movq	16(%rdi), %rax
	movq	(%rax), %r14
	movl	(%rdi), %r13d
	movq	8(%rdi), %rax
	movslq	(%rax), %rax
	movl	%ebx, %edi
	movq	%rdi, -80(%rbp)                 ## 8-byte Spill
	shlq	$2, %rax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	xorl	%eax, %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%rsi, -96(%rbp)                 ## 8-byte Spill
	movq	-104(%rbp), %rbx                ## 8-byte Reload
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	incq	%rdi
	addq	-88(%rbp), %r14                 ## 8-byte Folded Reload
	movq	%rdi, %rax
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	cmpq	-80(%rbp), %rdi                 ## 8-byte Folded Reload
	je	LBB0_9
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
	testl	%r13d, %r13d
	jle	LBB0_8
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	subl	-56(%rbp), %eax                 ## 4-byte Folded Reload
	xorps	%xmm0, %xmm0
	cvtsi2ss	%eax, %xmm0
	mulss	-60(%rbp), %xmm0                ## 4-byte Folded Reload
	movl	$2, %r15d
	xorl	%r12d, %r12d
	movss	%xmm0, -68(%rbp)                ## 4-byte Spill
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=2
	subss	%xmm0, %xmm1
	movq	-112(%rbp), %rax                ## 8-byte Reload
	mulss	(%rax,%r12,4), %xmm1
	movss	-64(%rbp), %xmm0                ## 4-byte Reload
                                        ## xmm0 = mem[0],zero,zero,zero
	mulss	%xmm1, %xmm0
	cmpltss	-48(%rbp), %xmm1                ## 4-byte Folded Reload
	andps	%xmm1, %xmm0
	movaps	%xmm1, %xmm2
	movss	LCPI0_0(%rip), %xmm1            ## xmm1 = mem[0],zero,zero,zero
	andnps	%xmm1, %xmm2
	orps	%xmm0, %xmm2
	movaps	%xmm2, -128(%rbp)               ## 16-byte Spill
	movss	-8(%rbx,%r15,4), %xmm0          ## xmm0 = mem[0],zero,zero,zero
	mulss	%xmm2, %xmm0
	callq	_lrintf
	movl	%eax, -8(%r14,%r15,4)
	movss	-4(%rbx,%r15,4), %xmm0          ## xmm0 = mem[0],zero,zero,zero
	mulss	-128(%rbp), %xmm0               ## 16-byte Folded Reload
	callq	_lrintf
	movl	%eax, -4(%r14,%r15,4)
	movaps	-128(%rbp), %xmm0               ## 16-byte Reload
	mulss	(%rbx,%r15,4), %xmm0
	callq	_lrintf
	movss	-68(%rbp), %xmm0                ## 4-byte Reload
                                        ## xmm0 = mem[0],zero,zero,zero
	movq	-96(%rbp), %rsi                 ## 8-byte Reload
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=2
	movl	%eax, (%r14,%r15,4)
	incq	%r12
	addq	$3, %r15
	cmpq	%r12, %r13
	je	LBB0_8
LBB0_4:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movss	(%rsi,%r12,4), %xmm1            ## xmm1 = mem[0],zero,zero,zero
	ucomiss	%xmm1, %xmm0
	jb	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=2
	movq	$0, -8(%r14,%r15,4)
	xorl	%eax, %eax
	jmp	LBB0_7
LBB0_9:
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_draw_bar_rgb
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function draw_bar_rgb
_draw_bar_rgb:                          ; @draw_bar_rgb
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #176
	.cfi_def_cfa_offset 176
	stp	d13, d12, [sp, #32]             ; 16-byte Folded Spill
	stp	d11, d10, [sp, #48]             ; 16-byte Folded Spill
	stp	d9, d8, [sp, #64]               ; 16-byte Folded Spill
	stp	x28, x27, [sp, #80]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #96]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #112]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #128]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #144]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #160]            ; 16-byte Folded Spill
	add	x29, sp, #160
	.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
	stp	x1, x2, [sp, #16]               ; 16-byte Folded Spill
	cmp	w4, #1
	b.lt	LBB0_9
; %bb.1:
	fmov	s8, s0
	mov	x19, x4
	mov	x22, #0
	scvtf	s0, w4
	fmov	s9, #1.00000000
	fdiv	s10, s9, s0
	ldp	x9, x8, [x0, #8]
	ldr	x10, [x8]
	ldr	w20, [x0]
	ldrsw	x8, [x9]
	stp	x8, x10, [sp]                   ; 16-byte Folded Spill
	mov	w26, w4
	add	x21, x3, #4
	fdiv	s11, s9, s8
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x22, x22, #1
	cmp	x22, x26
	b.eq	LBB0_9
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
	cmp	w20, #1
	b.lt	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	sub	w8, w19, w22
	scvtf	s0, w8
	ldp	x8, x9, [sp]                    ; 16-byte Folded Reload
	mul	x8, x22, x8
	add	x28, x9, x8, lsl #2
	fmul	s12, s10, s0
	mov	x24, x20
	mov	x27, x21
	ldp	x23, x25, [sp, #16]             ; 16-byte Folded Reload
	b	LBB0_7
LBB0_5:                                 ;   in Loop: Header=BB0_7 Depth=2
	fsub	s0, s0, s12
	ldr	s1, [x25]
	fmul	s0, s0, s1
	fmul	s1, s11, s0
	fcmp	s0, s8
	fcsel	s13, s1, s9, mi
	ldur	s0, [x27, #-4]
	fmul	s0, s0, s13
	bl	_lrintf
	str	w0, [x28]
	ldr	s0, [x27]
	fmul	s0, s13, s0
	bl	_lrintf
	str	w0, [x28, #4]
	ldr	s0, [x27, #4]
	fmul	s0, s13, s0
	bl	_lrintf
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=2
	str	w0, [x28, #8]
	add	x28, x28, #12
	add	x25, x25, #4
	add	x23, x23, #4
	add	x27, x27, #12
	subs	x24, x24, #1
	b.eq	LBB0_2
LBB0_7:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	s0, [x23]
	fcmp	s0, s12
	b.hi	LBB0_5
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=2
	mov	w0, #0
	str	xzr, [x28]
	b	LBB0_6
LBB0_9:
	ldp	x29, x30, [sp, #160]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #144]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #128]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #112]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #96]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #80]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #64]               ; 16-byte Folded Reload
	ldp	d11, d10, [sp, #48]             ; 16-byte Folded Reload
	ldp	d13, d12, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #176
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_draw_bar_rgb
.subsections_via_symbols
