	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function make_standard_palette
LCPI0_0:
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	255                             ## 0xff
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
	.byte	0                               ## 0x0
LCPI0_1:
	.quad	255                             ## 0xff
	.quad	0                               ## 0x0
LCPI0_2:
	.quad	255                             ## 0xff
	.quad	255                             ## 0xff
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_make_standard_palette:                 ## @make_standard_palette
	.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
	movl	$10296, %eax                    ## imm = 0x2838
	callq	____chkstk_darwin
	subq	%rax, %rsp
	popq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movl	%esi, %r12d
	movq	%rdi, -10328(%rbp)              ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	xorps	%xmm0, %xmm0
	movups	%xmm0, -8232(%rbp)
	movq	$0, -8216(%rbp)
	movq	$255, -8200(%rbp)
	movaps	%xmm0, -8192(%rbp)
	movaps	LCPI0_0(%rip), %xmm1            ## xmm1 = [0,0,0,0,0,0,0,0,255,0,0,0,0,0,0,0]
	movups	%xmm1, -8168(%rbp)
	movaps	LCPI0_1(%rip), %xmm2            ## xmm2 = [255,0]
	movq	$0, -8152(%rbp)
	movaps	LCPI0_2(%rip), %xmm3            ## xmm3 = [255,255]
	movups	%xmm3, -8136(%rbp)
	movq	$0, -8120(%rbp)
	movups	%xmm0, -8104(%rbp)
	movq	$255, -8088(%rbp)
	movups	%xmm2, -8072(%rbp)
	movq	$255, -8056(%rbp)
	movups	%xmm1, -8040(%rbp)
	movq	$255, -8024(%rbp)
	movups	%xmm3, -8008(%rbp)
	movq	$255, -7992(%rbp)
	movq	$0, -10320(%rbp)
	leaq	-10312(%rbp), %rdi
	movl	$1, %esi
	movl	$2046, %edx                     ## imm = 0x7FE
	callq	_memset
	movq	$0, -8280(%rbp)
	xorl	%eax, %eax
	movl	$8, %r14d
	leaq	_make_standard_palette.palette_seed(%rip), %r13
	leaq	-8272(%rbp), %rbx
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_1 Depth=1
	cmpl	$70, %r14d
	jge	LBB0_6
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	testl	%eax, %eax
	jne	LBB0_3
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	_make_four_random_bytes
	movl	$4, %eax
LBB0_3:                                 ##   in Loop: Header=BB0_1 Depth=1
	decl	%eax
	movq	-8272(%rbp,%rax,8), %rcx
	cmpq	$0, -10320(%rbp,%rcx,8)
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	movslq	%r14d, %r14
	movq	%r14, %rdx
	shlq	$5, %rdx
	movq	%rcx, -8232(%rbp,%rdx)
	movq	%rcx, -8224(%rbp,%rdx)
	incl	%r14d
	movq	%rcx, -8216(%rbp,%rdx)
	jmp	LBB0_5
LBB0_6:
	cmpl	$255, %r14d
	ja	LBB0_9
## %bb.7:
	movl	%r14d, %eax
	shlq	$5, %rax
	leaq	(%rax,%rbp), %rbx
	addq	$-8240, %rbx                    ## imm = 0xDFD0
	addl	$-256, %r14d
	leaq	_make_standard_palette.palette_seed(%rip), %r13
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r13, %rdi
	movq	%rbx, %rsi
	callq	_make_four_random_bytes
	addq	$32, %rbx
	incl	%r14d
	jne	LBB0_8
LBB0_9:
	leaq	_make_standard_palette.palette_seed(%rip), %rdi
	leaq	-10320(%rbp), %rsi
	callq	_make_four_random_bytes
	testl	%r15d, %r15d
	je	LBB0_10
## %bb.12:
	movq	-10320(%rbp), %rax
	leaq	-8144(%rbp), %rcx
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movq	%rax, %rsi
	xorq	%rdx, %rsi
	movq	%rsi, -96(%rcx)
	leaq	1(%rdx), %rsi
	xorq	%rax, %rsi
	movq	%rsi, -64(%rcx)
	leaq	2(%rdx), %rsi
	xorq	%rax, %rsi
	movq	%rsi, -32(%rcx)
	leaq	3(%rdx), %rsi
	xorq	%rax, %rsi
	movq	%rsi, (%rcx)
	subq	$-128, %rcx
	addq	$4, %rdx
	cmpq	$256, %rdx                      ## imm = 0x100
	jne	LBB0_13
	jmp	LBB0_14
LBB0_10:
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movq	$255, -8240(%rbp,%rax)
	movq	$255, -8208(%rbp,%rax)
	movq	$255, -8176(%rbp,%rax)
	movq	$255, -8144(%rbp,%rax)
	subq	$-128, %rax
	cmpq	$8192, %rax                     ## imm = 0x2000
	jne	LBB0_11
LBB0_14:
	movq	-10328(%rbp), %rdi              ## 8-byte Reload
	movl	%r12d, %esi
	callq	_store_write_palette
	testl	%r12d, %r12d
	jle	LBB0_17
## %bb.15:
	movl	%r12d, %ecx
	leaq	24(%rax), %rdx
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	movq	-10312(%rbp), %rdi
	xorq	%rsi, %rdi
	shlq	$5, %rdi
	movq	-8240(%rbp,%rdi), %rdi
	movq	%rdi, -24(%rdx)
	movq	-10312(%rbp), %rdi
	xorq	%rsi, %rdi
	shlq	$5, %rdi
	movq	-8232(%rbp,%rdi), %rdi
	movq	%rdi, -16(%rdx)
	movq	-10312(%rbp), %rdi
	xorq	%rsi, %rdi
	shlq	$5, %rdi
	movq	-8224(%rbp,%rdi), %rdi
	movq	%rdi, -8(%rdx)
	movq	-10312(%rbp), %rdi
	xorq	%rsi, %rdi
	shlq	$5, %rdi
	movq	-8216(%rbp,%rdi), %rdi
	movq	%rdi, (%rdx)
	incq	%rsi
	addq	$32, %rdx
	cmpq	%rsi, %rcx
	jne	LBB0_16
LBB0_17:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_19
## %bb.18:
	addq	$10296, %rsp                    ## imm = 0x2838
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_19:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__DATA,__data
	.p2align	2                               ## @make_standard_palette.palette_seed
_make_standard_palette.palette_seed:
	.long	2271560481                      ## 0x87654321
	.long	9                               ## 0x9

	.no_dead_strip	_make_standard_palette
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ; -- Begin function make_standard_palette
lCPI0_0:
	.quad	0                               ; 0x0
	.quad	255                             ; 0xff
lCPI0_1:
	.quad	255                             ; 0xff
	.quad	0                               ; 0x0
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_make_standard_palette:                 ; @make_standard_palette
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	w9, #10288
Lloh0:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh1:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	sub	sp, sp, #2, lsl #12             ; =8192
	sub	sp, sp, #2096
	mov	x21, x2
	mov	x19, x1
	mov	x20, x0
Lloh2:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh3:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
	add	x23, sp, #2088
	str	xzr, [sp, #2104]
	str	xzr, [sp, #2096]
	mov	w8, #255
	str	xzr, [sp, #2112]
	str	x8, [sp, #2128]
	str	xzr, [sp, #2144]
	str	xzr, [sp, #2136]
Lloh5:
	adrp	x9, lCPI0_0@PAGE
Lloh6:
	ldr	q0, [x9, lCPI0_0@PAGEOFF]
	stur	q0, [x23, #72]
	movi.2d	v1, #0x000000000000ff
	stur	q1, [x23, #104]
	str	xzr, [sp, #2176]
	str	xzr, [sp, #2208]
	str	xzr, [sp, #2232]
	str	xzr, [sp, #2224]
Lloh7:
	adrp	x9, lCPI0_1@PAGE
Lloh8:
	ldr	q2, [x9, lCPI0_1@PAGEOFF]
	stur	q2, [x23, #168]
	str	x8, [sp, #2240]
	str	x8, [sp, #2272]
	stur	q0, [x23, #200]
	stur	q1, [x23, #232]
	str	x8, [sp, #2304]
	str	x8, [sp, #2336]
	add	x24, sp, #8
	add	x0, x24, #8
	str	xzr, [sp, #8]
	mov	w1, #1
	mov	w2, #2046
	bl	_memset
	mov	w8, #0
	str	xzr, [sp, #2048]
	mov	w25, #8
	add	x26, sp, #2056
Lloh9:
	adrp	x22, _make_standard_palette.palette_seed@PAGE
Lloh10:
	add	x22, x22, _make_standard_palette.palette_seed@PAGEOFF
	b	LBB0_2
LBB0_1:                                 ;   in Loop: Header=BB0_2 Depth=1
	cmp	w25, #70
	b.ge	LBB0_6
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	cbnz	w8, LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x1, sp, #2056
	mov	x0, x22
	bl	_make_four_random_bytes
	mov	w8, #4
LBB0_4:                                 ;   in Loop: Header=BB0_2 Depth=1
	sub	w8, w8, #1
	ldr	x9, [x26, w8, uxtw #3]
	ldr	x10, [x24, x9, lsl #3]
	cbz	x10, LBB0_1
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=1
	sxtw	x10, w25
	add	x10, x23, x10, lsl #5
	stp	x9, x9, [x10, #8]
	add	w25, w25, #1
	str	x9, [x10, #24]
	b	LBB0_1
LBB0_6:
	cmp	w25, #255
	b.hi	LBB0_9
; %bb.7:
	mov	w8, w25
	add	x9, sp, #2088
	add	x22, x9, x8, lsl #5
	sub	w24, w25, #256
Lloh11:
	adrp	x23, _make_standard_palette.palette_seed@PAGE
Lloh12:
	add	x23, x23, _make_standard_palette.palette_seed@PAGEOFF
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x23
	mov	x1, x22
	bl	_make_four_random_bytes
	add	x22, x22, #32
	adds	w24, w24, #1
	b.lo	LBB0_8
LBB0_9:
Lloh13:
	adrp	x0, _make_standard_palette.palette_seed@PAGE
Lloh14:
	add	x0, x0, _make_standard_palette.palette_seed@PAGEOFF
	add	x1, sp, #8
	bl	_make_four_random_bytes
	mov	x8, #0
	cbz	w21, LBB0_12
; %bb.10:
	ldr	x9, [sp, #8]
	add	x10, sp, #2088
	add	x10, x10, #64
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	eor	x11, x9, x8
	add	x12, x8, #1
	eor	x12, x9, x12
	add	x13, x8, #2
	eor	x13, x9, x13
	add	x14, x8, #3
	eor	x14, x9, x14
	stur	x11, [x10, #-64]
	stur	x12, [x10, #-32]
	str	x13, [x10]
	str	x14, [x10, #32]
	add	x10, x10, #128
	add	x8, x8, #4
	cmp	x8, #256
	b.ne	LBB0_11
	b	LBB0_14
LBB0_12:
	add	x9, sp, #2088
	mov	w10, #255
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	add	x11, x9, x8
	str	x10, [x11]
	str	x10, [x11, #32]
	str	x10, [x11, #64]
	str	x10, [x11, #96]
	add	x8, x8, #128
	cmp	x8, #2, lsl #12                 ; =8192
	b.ne	LBB0_13
LBB0_14:
	mov	x0, x20
	mov	x1, x19
	bl	_store_write_palette
	cmp	w19, #1
	b.lt	LBB0_17
; %bb.15:
	mov	x8, #0
	add	x9, x0, #16
	add	x10, sp, #2088
	mov	w11, w19
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	ldr	x12, [sp, #16]
	eor	x12, x12, x8
	lsl	x12, x12, #5
	ldr	x12, [x10, x12]
	stur	x12, [x9, #-16]
	ldr	x12, [sp, #16]
	eor	x12, x12, x8
	add	x12, x10, x12, lsl #5
	ldr	x12, [x12, #8]
	stur	x12, [x9, #-8]
	ldr	x12, [sp, #16]
	eor	x12, x12, x8
	add	x12, x10, x12, lsl #5
	ldr	x12, [x12, #16]
	str	x12, [x9]
	ldr	x12, [sp, #16]
	eor	x12, x12, x8
	add	x12, x10, x12, lsl #5
	ldr	x12, [x12, #24]
	str	x12, [x9, #8]
	add	x8, x8, #1
	add	x9, x9, #32
	cmp	x11, x8
	b.ne	LBB0_16
LBB0_17:
	ldur	x8, [x29, #-88]
Lloh15:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh16:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_19
; %bb.18:
	add	sp, sp, #2, lsl #12             ; =8192
	add	sp, sp, #2096
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_19:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdr	Lloh7, Lloh8
	.loh AdrpAdrp	Lloh5, Lloh7
	.loh AdrpLdr	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.section	__DATA,__data
	.p2align	2                               ; @make_standard_palette.palette_seed
_make_standard_palette.palette_seed:
	.long	2271560481                      ; 0x87654321
	.long	9                               ; 0x9

	.no_dead_strip	_make_standard_palette
.subsections_via_symbols
