	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function standard_palette_init
_standard_palette_init:                 ## @standard_palette_init
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movl	12(%rdi), %edi
	movq	%r14, %rsi
	callq	_store_current_palette
	movl	(%r14), %ebx
	testl	%ebx, %ebx
	jle	LBB0_7
## %bb.1:
	movq	%rax, %r15
	movl	8(%r14), %edi
	leal	(,%rbx,4), %edx
	movq	%rax, %rsi
	callq	_memcpy
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	testq	%rbx, %rbx
	jle	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	decq	%rbx
	movl	%ebx, %eax
	cmpl	$254, (%r15,%rax,4)
	jg	LBB0_2
## %bb.5:
	movl	$1, %eax
	jmp	LBB0_6
LBB0_3:
	xorl	%eax, %eax
LBB0_6:
	movl	%eax, 4(%r14)
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_standard_palette_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function standard_palette_init
_standard_palette_init:                 ; @standard_palette_init
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x0
	ldr	w0, [x0, #12]
	mov	x1, x19
	bl	_store_current_palette
	ldr	w21, [x19]
	cmp	w21, #1
	b.lt	LBB0_7
; %bb.1:
	mov	x20, x0
	ldr	w0, [x19, #8]
	lsl	w2, w21, #2
	mov	x1, x20
	bl	_memcpy
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	subs	x21, x21, #1
	b.lt	LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w8, [x20, w21, uxtw #2]
	cmp	w8, #254
	b.gt	LBB0_2
; %bb.4:
	mov	w8, #1
	b	LBB0_6
LBB0_5:
	mov	w8, #0
LBB0_6:
	str	w8, [x19, #4]
LBB0_7:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_standard_palette_init
.subsections_via_symbols
