	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function setup_art_colours
_setup_art_colours:                     ## @setup_art_colours
	.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
	movq	_ANTIC_cl@GOTPCREL(%rip), %rax
	movq	(%rax), %r9
	movq	_C_PF1@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	$3855, %edi                     ## imm = 0xF0F
	andl	(%r9,%rax,4), %edi
	movq	_setup_art_colours.art_colpf1_save(%rip), %rax
	movq	_C_PF2@GOTPCREL(%rip), %rcx
	movq	(%rcx), %r8
	movl	(%r9,%r8,4), %r11d
	cmpl	(%rax), %edi
	jne	LBB0_2
## %bb.1:
	movq	_setup_art_colours.art_colpf2_save(%rip), %rax
	cmpl	(%rax), %r11d
	je	LBB0_17
LBB0_2:
	movl	%r11d, %eax
	andl	$3855, %eax                     ## imm = 0xF0F
	cmpl	%eax, %edi
	movq	_art_normal_colpf1_save@GOTPCREL(%rip), %r14
	cmovbq	_art_reverse_colpf1_save@GOTPCREL(%rip), %r14
	movq	_art_normal_colpf2_save@GOTPCREL(%rip), %r10
	cmovbq	_art_reverse_colpf2_save@GOTPCREL(%rip), %r10
	movq	%r14, _setup_art_colours.art_colpf1_save(%rip)
	movq	_art_lookup_normal@GOTPCREL(%rip), %rax
	cmovbq	_art_lookup_reverse@GOTPCREL(%rip), %rax
	movq	%r10, _setup_art_colours.art_colpf2_save(%rip)
	movq	(%rax), %rax
	movq	_art_curtable@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	movq	_art_lummask_normal@GOTPCREL(%rip), %rcx
	cmovbq	_art_lummask_reverse@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rsi
	movq	_art_curlummask@GOTPCREL(%rip), %rcx
	movq	%rsi, (%rcx)
	movq	_art_bkmask_normal@GOTPCREL(%rip), %rcx
	cmovbq	_art_bkmask_reverse@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	_art_curbkmask@GOTPCREL(%rip), %rdx
	movq	%rcx, (%rdx)
	movl	(%r14), %ebx
	xorl	%edi, %ebx
	je	LBB0_10
## %bb.3:
	movl	%ebx, %edx
	shll	$16, %edx
	orl	%ebx, %edx
	movl	%edi, (%r14)
	leaq	1024(%rsi), %rdi
	cmpq	%rdi, %rax
	jae	LBB0_7
## %bb.4:
	leaq	1024(%rax), %rdi
	cmpq	%rdi, %rsi
	jae	LBB0_7
## %bb.5:
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rsi,%rdi,4), %ebx
	andl	%edx, %ebx
	xorl	%ebx, (%rax,%rdi,4)
	movl	4(%rsi,%rdi,4), %ebx
	andl	%edx, %ebx
	xorl	%ebx, 4(%rax,%rdi,4)
	addq	$2, %rdi
	cmpq	$256, %rdi                      ## imm = 0x100
	jne	LBB0_6
	jmp	LBB0_9
LBB0_7:
	movd	%edx, %xmm0
	pshufd	$0, %xmm0, %xmm0                ## xmm0 = xmm0[0,0,0,0]
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movdqu	(%rsi,%rdx,4), %xmm1
	movdqu	16(%rsi,%rdx,4), %xmm2
	pand	%xmm0, %xmm1
	pand	%xmm0, %xmm2
	movdqu	(%rax,%rdx,4), %xmm3
	pxor	%xmm1, %xmm3
	movdqu	16(%rax,%rdx,4), %xmm1
	pxor	%xmm2, %xmm1
	movdqu	32(%rax,%rdx,4), %xmm2
	movdqu	48(%rax,%rdx,4), %xmm4
	movdqu	%xmm3, (%rax,%rdx,4)
	movdqu	%xmm1, 16(%rax,%rdx,4)
	movdqu	32(%rsi,%rdx,4), %xmm1
	movdqu	48(%rsi,%rdx,4), %xmm3
	pand	%xmm0, %xmm1
	pxor	%xmm2, %xmm1
	pand	%xmm0, %xmm3
	pxor	%xmm4, %xmm3
	movdqu	%xmm1, 32(%rax,%rdx,4)
	movdqu	%xmm3, 48(%rax,%rdx,4)
	addq	$16, %rdx
	cmpq	$256, %rdx                      ## imm = 0x100
	jne	LBB0_8
LBB0_9:
	movl	(%r9,%r8,4), %r11d
LBB0_10:
	movl	(%r10), %esi
	xorl	%r11d, %esi
	je	LBB0_17
## %bb.11:
	movl	%esi, %edx
	shll	$16, %edx
	orl	%esi, %edx
	movl	%r11d, (%r10)
	leaq	1024(%rcx), %rsi
	cmpq	%rsi, %rax
	jae	LBB0_15
## %bb.12:
	leaq	1024(%rax), %rsi
	cmpq	%rsi, %rcx
	jae	LBB0_15
## %bb.13:
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movl	(%rcx,%rsi,4), %edi
	andl	%edx, %edi
	xorl	%edi, (%rax,%rsi,4)
	movl	4(%rcx,%rsi,4), %edi
	andl	%edx, %edi
	xorl	%edi, 4(%rax,%rsi,4)
	addq	$2, %rsi
	cmpq	$256, %rsi                      ## imm = 0x100
	jne	LBB0_14
	jmp	LBB0_17
LBB0_15:
	movd	%edx, %xmm0
	pshufd	$0, %xmm0, %xmm0                ## xmm0 = xmm0[0,0,0,0]
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	movdqu	(%rcx,%rdx,4), %xmm1
	movdqu	16(%rcx,%rdx,4), %xmm2
	pand	%xmm0, %xmm1
	pand	%xmm0, %xmm2
	movdqu	(%rax,%rdx,4), %xmm3
	pxor	%xmm1, %xmm3
	movdqu	16(%rax,%rdx,4), %xmm1
	pxor	%xmm2, %xmm1
	movdqu	32(%rax,%rdx,4), %xmm2
	movdqu	48(%rax,%rdx,4), %xmm4
	movdqu	%xmm3, (%rax,%rdx,4)
	movdqu	%xmm1, 16(%rax,%rdx,4)
	movdqu	32(%rcx,%rdx,4), %xmm1
	movdqu	48(%rcx,%rdx,4), %xmm3
	pand	%xmm0, %xmm1
	pxor	%xmm2, %xmm1
	pand	%xmm0, %xmm3
	pxor	%xmm4, %xmm3
	movdqu	%xmm1, 32(%rax,%rdx,4)
	movdqu	%xmm3, 48(%rax,%rdx,4)
	addq	$16, %rdx
	cmpq	$256, %rdx                      ## imm = 0x100
	jne	LBB0_16
LBB0_17:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__DATA,__data
	.p2align	3                               ## @setup_art_colours.art_colpf1_save
_setup_art_colours.art_colpf1_save:
	.quad	_art_normal_colpf1_save

	.comm	_art_normal_colpf1_save,4,2     ## @art_normal_colpf1_save
	.p2align	3                               ## @setup_art_colours.art_colpf2_save
_setup_art_colours.art_colpf2_save:
	.quad	_art_normal_colpf2_save

	.comm	_art_normal_colpf2_save,4,2     ## @art_normal_colpf2_save
	.comm	_ANTIC_cl,8,3                   ## @ANTIC_cl
	.comm	_C_PF1,8,3                      ## @C_PF1
	.comm	_C_PF2,8,3                      ## @C_PF2
	.comm	_art_reverse_colpf1_save,4,2    ## @art_reverse_colpf1_save
	.comm	_art_reverse_colpf2_save,4,2    ## @art_reverse_colpf2_save
	.comm	_art_lookup_reverse,8,3         ## @art_lookup_reverse
	.comm	_art_curtable,8,3               ## @art_curtable
	.comm	_art_lummask_reverse,8,3        ## @art_lummask_reverse
	.comm	_art_curlummask,8,3             ## @art_curlummask
	.comm	_art_bkmask_reverse,8,3         ## @art_bkmask_reverse
	.comm	_art_curbkmask,8,3              ## @art_curbkmask
	.comm	_art_lookup_normal,8,3          ## @art_lookup_normal
	.comm	_art_lummask_normal,8,3         ## @art_lummask_normal
	.comm	_art_bkmask_normal,8,3          ## @art_bkmask_normal
	.no_dead_strip	_setup_art_colours
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function setup_art_colours
_setup_art_colours:                     ; @setup_art_colours
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _ANTIC_cl@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ANTIC_cl@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x8]
Lloh3:
	adrp	x8, _C_PF1@GOTPAGE
Lloh4:
	ldr	x8, [x8, _C_PF1@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	ldr	w8, [x9, x8, lsl #2]
	mov	w12, #3855
	and	w14, w8, w12
	adrp	x8, _setup_art_colours.art_colpf1_save@PAGE
	ldr	x10, [x8, _setup_art_colours.art_colpf1_save@PAGEOFF]
Lloh6:
	adrp	x11, _C_PF2@GOTPAGE
Lloh7:
	ldr	x11, [x11, _C_PF2@GOTPAGEOFF]
	ldr	w15, [x10]
Lloh8:
	ldr	x11, [x11]
	ldr	w13, [x9, x11, lsl #2]
	adrp	x10, _setup_art_colours.art_colpf2_save@PAGE
	cmp	w14, w15
	b.ne	LBB0_2
; %bb.1:
	ldr	x15, [x10, _setup_art_colours.art_colpf2_save@PAGEOFF]
	ldr	w15, [x15]
	cmp	w13, w15
	b.eq	LBB0_15
LBB0_2:
	and	w12, w13, w12
Lloh9:
	adrp	x15, _art_normal_colpf1_save@GOTPAGE
Lloh10:
	ldr	x15, [x15, _art_normal_colpf1_save@GOTPAGEOFF]
Lloh11:
	adrp	x16, _art_reverse_colpf1_save@GOTPAGE
Lloh12:
	ldr	x16, [x16, _art_reverse_colpf1_save@GOTPAGEOFF]
	cmp	w14, w12
	csel	x16, x16, x15, lo
Lloh13:
	adrp	x12, _art_normal_colpf2_save@GOTPAGE
Lloh14:
	ldr	x12, [x12, _art_normal_colpf2_save@GOTPAGEOFF]
Lloh15:
	adrp	x15, _art_reverse_colpf2_save@GOTPAGE
Lloh16:
	ldr	x15, [x15, _art_reverse_colpf2_save@GOTPAGEOFF]
	csel	x12, x15, x12, lo
	str	x16, [x8, _setup_art_colours.art_colpf1_save@PAGEOFF]
	str	x12, [x10, _setup_art_colours.art_colpf2_save@PAGEOFF]
Lloh17:
	adrp	x8, _art_lookup_reverse@GOTPAGE
Lloh18:
	ldr	x8, [x8, _art_lookup_reverse@GOTPAGEOFF]
Lloh19:
	adrp	x10, _art_lookup_normal@GOTPAGE
Lloh20:
	ldr	x10, [x10, _art_lookup_normal@GOTPAGEOFF]
	csel	x8, x8, x10, lo
	ldr	x8, [x8]
Lloh21:
	adrp	x10, _art_curtable@GOTPAGE
Lloh22:
	ldr	x10, [x10, _art_curtable@GOTPAGEOFF]
Lloh23:
	str	x8, [x10]
Lloh24:
	adrp	x10, _art_lummask_reverse@GOTPAGE
Lloh25:
	ldr	x10, [x10, _art_lummask_reverse@GOTPAGEOFF]
Lloh26:
	adrp	x15, _art_lummask_normal@GOTPAGE
Lloh27:
	ldr	x15, [x15, _art_lummask_normal@GOTPAGEOFF]
	csel	x10, x10, x15, lo
	ldr	x15, [x10]
Lloh28:
	adrp	x10, _art_curlummask@GOTPAGE
Lloh29:
	ldr	x10, [x10, _art_curlummask@GOTPAGEOFF]
Lloh30:
	str	x15, [x10]
Lloh31:
	adrp	x10, _art_bkmask_reverse@GOTPAGE
Lloh32:
	ldr	x10, [x10, _art_bkmask_reverse@GOTPAGEOFF]
Lloh33:
	adrp	x17, _art_bkmask_normal@GOTPAGE
Lloh34:
	ldr	x17, [x17, _art_bkmask_normal@GOTPAGEOFF]
	csel	x10, x10, x17, lo
	ldr	x10, [x10]
Lloh35:
	adrp	x17, _art_curbkmask@GOTPAGE
Lloh36:
	ldr	x17, [x17, _art_curbkmask@GOTPAGEOFF]
Lloh37:
	str	x10, [x17]
	ldr	w17, [x16]
	eor	w17, w17, w14
	cbz	w17, LBB0_9
; %bb.3:
	orr	w17, w17, w17, lsl #16
	str	w14, [x16]
	add	x13, x8, #1024
	add	x14, x15, #1024
	cmp	x8, x14
	ccmp	x15, x13, #2, lo
	b.lo	LBB0_6
; %bb.4:
	mov	x13, #0
	dup.4s	v0, w17
	add	x14, x15, #32
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	add	x15, x14, x13
	ldp	q1, q2, [x15, #-32]
	ldp	q3, q4, [x15]
	and.16b	v1, v1, v0
	and.16b	v2, v2, v0
	and.16b	v3, v3, v0
	and.16b	v4, v4, v0
	add	x15, x8, x13
	ldp	q5, q6, [x15]
	ldp	q7, q16, [x15, #32]
	eor.16b	v1, v5, v1
	eor.16b	v2, v6, v2
	eor.16b	v3, v7, v3
	eor.16b	v4, v16, v4
	stp	q1, q2, [x15]
	stp	q3, q4, [x15, #32]
	add	x13, x13, #64
	cmp	x13, #1024
	b.ne	LBB0_5
	b	LBB0_8
LBB0_6:
	mov	x13, #0
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w14, [x15, x13]
	ldr	w16, [x8, x13]
	and	w14, w14, w17
	eor	w14, w16, w14
	str	w14, [x8, x13]
	add	x13, x13, #4
	cmp	x13, #1024
	b.ne	LBB0_7
LBB0_8:
	ldr	w13, [x9, x11, lsl #2]
LBB0_9:
	ldr	w9, [x12]
	eor	w9, w9, w13
	cbz	w9, LBB0_15
; %bb.10:
	orr	w11, w9, w9, lsl #16
	str	w13, [x12]
	add	x9, x8, #1024
	add	x12, x10, #1024
	cmp	x8, x12
	ccmp	x10, x9, #2, lo
	b.lo	LBB0_13
; %bb.11:
	mov	x9, #0
	dup.4s	v0, w11
	add	x10, x10, #32
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	add	x11, x10, x9
	ldp	q1, q2, [x11, #-32]
	ldp	q3, q4, [x11]
	and.16b	v1, v1, v0
	and.16b	v2, v2, v0
	and.16b	v3, v3, v0
	and.16b	v4, v4, v0
	add	x11, x8, x9
	ldp	q5, q6, [x11]
	ldp	q7, q16, [x11, #32]
	eor.16b	v1, v5, v1
	eor.16b	v2, v6, v2
	eor.16b	v3, v7, v3
	eor.16b	v4, v16, v4
	stp	q1, q2, [x11]
	stp	q3, q4, [x11, #32]
	add	x9, x9, #64
	cmp	x9, #1024
	b.ne	LBB0_12
	b	LBB0_15
LBB0_13:
	mov	x9, #0
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	ldr	w12, [x10, x9]
	ldr	w13, [x8, x9]
	and	w12, w12, w11
	eor	w12, w13, w12
	str	w12, [x8, x9]
	add	x9, x9, #4
	cmp	x9, #1024
	b.ne	LBB0_14
LBB0_15:
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotStr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpLdrGotStr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGotStr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.section	__DATA,__data
	.p2align	3                               ; @setup_art_colours.art_colpf1_save
_setup_art_colours.art_colpf1_save:
	.quad	_art_normal_colpf1_save

	.comm	_art_normal_colpf1_save,4,2     ; @art_normal_colpf1_save
	.p2align	3                               ; @setup_art_colours.art_colpf2_save
_setup_art_colours.art_colpf2_save:
	.quad	_art_normal_colpf2_save

	.comm	_art_normal_colpf2_save,4,2     ; @art_normal_colpf2_save
	.comm	_ANTIC_cl,8,3                   ; @ANTIC_cl
	.comm	_C_PF1,8,3                      ; @C_PF1
	.comm	_C_PF2,8,3                      ; @C_PF2
	.comm	_art_reverse_colpf1_save,4,2    ; @art_reverse_colpf1_save
	.comm	_art_reverse_colpf2_save,4,2    ; @art_reverse_colpf2_save
	.comm	_art_lookup_reverse,8,3         ; @art_lookup_reverse
	.comm	_art_curtable,8,3               ; @art_curtable
	.comm	_art_lummask_reverse,8,3        ; @art_lummask_reverse
	.comm	_art_curlummask,8,3             ; @art_curlummask
	.comm	_art_bkmask_reverse,8,3         ; @art_bkmask_reverse
	.comm	_art_curbkmask,8,3              ; @art_curbkmask
	.comm	_art_lookup_normal,8,3          ; @art_lookup_normal
	.comm	_art_lummask_normal,8,3         ; @art_lummask_normal
	.comm	_art_bkmask_normal,8,3          ; @art_bkmask_normal
	.no_dead_strip	_setup_art_colours
.subsections_via_symbols
