	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_color_update_m5                ## -- Begin function color_update_m5
	.p2align	4, 0x90
_color_update_m5:                       ## @color_update_m5
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_reg@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movl	%esi, %eax
	andl	$73, %eax
	testb	$4, (%rcx)
	cmovnel	%esi, %eax
	testb	$8, 48(%rcx)
	movq	_pixel_lut@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	jne	LBB0_1
## %bb.2:
	movq	8(%rcx), %rcx
	movl	%eax, %eax
	movl	(%rcx,%rax,8), %ecx
	movq	_pixel@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movslq	%edi, %rdx
	movl	%ecx, (%rax,%rdx,4)
	movl	%edi, %edx
	orl	$64, %edx
	movslq	%edx, %rdx
	movl	%ecx, (%rax,%rdx,4)
	jmp	LBB0_3
LBB0_1:
	movq	(%rcx), %rdx
	movl	%eax, %r9d
	movl	(%rdx,%r9,8), %r8d
	movq	_pixel@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movslq	%edi, %rdx
	movl	%r8d, (%rax,%rdx,4)
	movq	8(%rcx), %rsi
	movl	(%rsi,%r9,8), %esi
	orl	$64, %edx
	movslq	%edx, %rdx
	movl	%esi, (%rax,%rdx,4)
	movq	16(%rcx), %rcx
	movl	(%rcx,%r9,8), %ecx
LBB0_3:
	orl	$128, %edi
	movslq	%edi, %rdx
	movl	%ecx, (%rax,%rdx,4)
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_reg,8,3                        ## @reg
	.comm	_pixel_lut,8,3                  ## @pixel_lut
	.comm	_pixel,8,3                      ## @pixel
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_color_update_m5                ; -- Begin function color_update_m5
	.p2align	2
_color_update_m5:                       ; @color_update_m5
	.cfi_startproc
; %bb.0:
                                        ; kill: def $w0 killed $w0 def $x0
Lloh0:
	adrp	x8, _reg@GOTPAGE
Lloh1:
	ldr	x8, [x8, _reg@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x8]
	mov	w8, #73
	and	w8, w1, w8
	ldrb	w9, [x10]
	tst	w9, #0x4
	csel	w8, w8, w1, eq
Lloh3:
	adrp	x9, _pixel_lut@GOTPAGE
Lloh4:
	ldr	x9, [x9, _pixel_lut@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	ldrb	w10, [x10, #48]
	tbnz	w10, #3, LBB0_2
; %bb.1:
	ldr	x9, [x9, #8]
	ldr	x9, [x9, w8, uxtw #3]
Lloh6:
	adrp	x8, _pixel@GOTPAGE
Lloh7:
	ldr	x8, [x8, _pixel@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	mov	x10, x0
	sbfiz	x10, x10, #2, #32
	str	w9, [x8, x10]
	orr	x10, x10, #0x100
	str	w9, [x8, x10]
	b	LBB0_3
LBB0_2:
	lsl	x10, x8, #3
	ldp	x8, x11, [x9]
	ldr	x12, [x8, x10]
Lloh9:
	adrp	x8, _pixel@GOTPAGE
Lloh10:
	ldr	x8, [x8, _pixel@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	sbfiz	x13, x0, #2, #32
	str	w12, [x8, x13]
	ldr	x11, [x11, x10]
	orr	x12, x13, #0x100
	str	w11, [x8, x12]
	ldr	x9, [x9, #16]
	ldr	w9, [x9, x10]
LBB0_3:
                                        ; kill: def $w0 killed $w0 killed $x0 def $x0
	sbfiz	x10, x0, #2, #32
	orr	x10, x10, #0x200
	str	w9, [x8, x10]
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_reg,8,3                        ; @reg
	.comm	_pixel_lut,8,3                  ; @pixel_lut
	.comm	_pixel,8,3                      ; @pixel
.subsections_via_symbols
