	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sh_veu_colour_offset
_sh_veu_colour_offset:                  ## @sh_veu_colour_offset
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	8(%rsi), %ebx
	movl	(%rdi), %eax
	imull	12(%rsi), %eax
	andl	$-4, %ebx
	movq	8(%rdi), %rcx
	imull	(%rcx), %ebx
	sarl	$3, %ebx
	addl	%eax, %ebx
	movl	%ebx, (%rsi)
	movq	24(%rsi), %rax
	movl	(%rax), %eax
	addl	$-128, %eax
	cmpl	$7, %eax
	ja	LBB0_3
## %bb.1:
	movq	%rsi, %r14
	movl	$143, %ecx
	btl	%eax, %ecx
	jae	LBB0_2
## %bb.4:
	movl	$0, 4(%r14)
	jmp	LBB0_5
LBB0_2:
	movl	20(%r14), %edi
	movl	$16, %esi
	callq	_ALIGN
	imull	16(%r14), %eax
	addl	%ebx, %eax
	movl	%eax, 4(%r14)
LBB0_5:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_3:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_BUG                            ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_sh_veu_colour_offset
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sh_veu_colour_offset
_sh_veu_colour_offset:                  ; @sh_veu_colour_offset
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldp	w8, w9, [x1, #8]
	and	w8, w8, #0xfffffffc
	ldr	w10, [x0]
	mul	w9, w10, w9
	ldr	x10, [x0, #8]
	ldr	w10, [x10]
	mul	w8, w10, w8
	add	w20, w9, w8, asr #3
	str	w20, [x1]
	ldr	x8, [x1, #24]
	ldr	w8, [x8]
	sub	w8, w8, #128
	cmp	w8, #7
	b.hi	LBB0_5
; %bb.1:
	mov	x19, x1
	mov	w9, #1
	lsl	w8, w9, w8
	mov	w9, #143
	tst	w8, w9
	b.eq	LBB0_3
; %bb.2:
	str	wzr, [x19, #4]
	b	LBB0_4
LBB0_3:
	ldr	w0, [x19, #20]
	mov	w1, #16
	bl	_ALIGN
	ldr	w8, [x19, #16]
	madd	w8, w8, w0, w20
	str	w8, [x19, #4]
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_BUG
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_sh_veu_colour_offset
.subsections_via_symbols
