	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function precalculate_bars
_precalculate_bars:                     ## @precalculate_bars
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r13
	movq	24(%rdi), %rax
	movq	(%rax), %rax
	movq	%rax, (%rdi)
	xorl	%ebx, %ebx
	movq	_bars@GOTPCREL(%rip), %r8
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r8), %rcx
	movq	(%rcx,%rax,8), %rax
	movq	(%rax,%rbx,8), %rax
	movzbl	(%rax), %edx
	movzbl	1(%rax), %ecx
	movzbl	2(%rax), %eax
	movq	16(%r13), %rsi
	movl	(%rsi), %esi
	addl	$-128, %esi
	cmpl	$5, %esi
	ja	LBB0_8
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	$3, %edi
	btl	%esi, %edi
	jb	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	$12, %edi
	shrb	$3, %dl
	btl	%esi, %edi
	jae	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	shrb	$2, %cl
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_1 Depth=1
	movzbl	%dl, %r14d
	movzbl	%cl, %r15d
	movzbl	%al, %r12d
	movl	%r14d, %edi
	movl	%r15d, %esi
	movl	%r12d, %edx
	callq	_TO_Y
	movq	8(%r13), %rcx
	movq	(%rcx,%rbx,8), %rcx
	movb	%al, (%rcx)
	movl	%r14d, %edi
	movl	%r15d, %esi
	movl	%r12d, %edx
	callq	_TO_U
	movq	8(%r13), %rcx
	movq	(%rcx,%rbx,8), %rcx
	movb	%al, 1(%rcx)
	movl	%r14d, %edi
	movl	%r15d, %esi
	movl	%r12d, %edx
	callq	_TO_V
	movq	_bars@GOTPCREL(%rip), %r8
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_1 Depth=1
	shrb	$3, %cl
LBB0_7:                                 ##   in Loop: Header=BB0_1 Depth=1
	shrb	$3, %al
LBB0_8:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	8(%r13), %rsi
	movq	(%rsi,%rbx,8), %rsi
	movb	%dl, (%rsi)
	movq	8(%r13), %rdx
	movq	(%rdx,%rbx,8), %rdx
	movb	%cl, 1(%rdx)
LBB0_9:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	8(%r13), %rcx
	movq	(%rcx,%rbx,8), %rcx
	movb	%al, 2(%rcx)
	cmpq	$7, %rbx
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	(%r13), %rax
	incq	%rbx
	jmp	LBB0_1
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_bars,8,3                       ## @bars
	.no_dead_strip	_precalculate_bars
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function precalculate_bars
_precalculate_bars:                     ; @precalculate_bars
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x0
	mov	x23, #0
	ldr	x8, [x0, #24]
	ldr	x8, [x8]
	str	x8, [x0]
Lloh0:
	adrp	x24, _bars@GOTPAGE
Lloh1:
	ldr	x24, [x24, _bars@GOTPAGEOFF]
	mov	w25, #1
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x24]
	ldr	x8, [x9, x8, lsl #3]
	ldr	x8, [x8, x23]
	ldrb	w22, [x8]
	ldrb	w21, [x8, #1]
	ldrb	w20, [x8, #2]
	ldr	x8, [x19, #16]
	ldr	w8, [x8]
	sub	w8, w8, #128
	cmp	w8, #5
	b.hi	LBB0_4
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	lsl	w8, w25, w8
	tst	w8, #0x3
	b.ne	LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_1 Depth=1
	tst	w8, #0xc
	lsr	w8, w22, #3
	lsr	w9, w21, #2
	lsr	w10, w20, #3
	lsr	w11, w21, #3
	csel	w22, w8, w8, ne
	csel	w21, w9, w11, ne
	csel	w20, w10, w10, ne
LBB0_4:                                 ;   in Loop: Header=BB0_1 Depth=1
	ldr	x8, [x19, #8]
	ldr	x8, [x8, x23]
	strb	w22, [x8]
	ldr	x8, [x19, #8]
	ldr	x8, [x8, x23]
	strb	w21, [x8, #1]
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_1 Depth=1
	mov	x0, x22
	mov	x1, x21
	mov	x2, x20
	bl	_TO_Y
	ldr	x8, [x19, #8]
	ldr	x8, [x8, x23]
	strb	w0, [x8]
	mov	x0, x22
	mov	x1, x21
	mov	x2, x20
	bl	_TO_U
	ldr	x8, [x19, #8]
	ldr	x8, [x8, x23]
	strb	w0, [x8, #1]
	mov	x0, x22
	mov	x1, x21
	mov	x2, x20
	bl	_TO_V
	mov	x20, x0
LBB0_6:                                 ;   in Loop: Header=BB0_1 Depth=1
	ldr	x8, [x19, #8]
	ldr	x8, [x8, x23]
	strb	w20, [x8, #2]
	cmp	x23, #56
	b.eq	LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_1 Depth=1
	ldr	x8, [x19]
	add	x23, x23, #8
	b	LBB0_1
LBB0_8:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_bars,8,3                       ; @bars
	.no_dead_strip	_precalculate_bars
.subsections_via_symbols
