	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function image_pixel_init
LCPI0_0:
	.long	1065353216                      ## 0x3f800000
	.long	1065353216                      ## 0x3f800000
	.long	1065353216                      ## 0x3f800000
	.long	1065353216                      ## 0x3f800000
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_image_pixel_init:                      ## @image_pixel_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r12d
	movq	_PNG_COLOR_TYPE_PALETTE@GOTPCREL(%rip), %rax
	cmpl	%edx, (%rax)
	movl	%ecx, %edx
	movl	$8, %r14d
	cmovnel	%ecx, %r14d
	movl	$-1, %r13d
	movl	%r14d, %ecx
	shll	%cl, %r13d
	movq	%r9, %r15
	movq	%rdi, %rbx
	movq	16(%rbp), %rax
	notl	%r13d
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	xorl	%r9d, %r9d
	cmpl	$0, 56(%rax)
	setne	%r9b
	xorl	%ecx, %ecx
	cmpl	$0, 52(%rax)
	setne	%cl
	cmpl	$0, 48(%rax)
	setne	%al
	movl	%eax, -64(%rbp)                 ## 4-byte Spill
	jmp	LBB0_3
LBB0_1:
	xorl	%ecx, %ecx
	xorl	%r9d, %r9d
	movl	$0, -64(%rbp)                   ## 4-byte Folded Spill
LBB0_3:
	movl	%ecx, -56(%rbp)                 ## 4-byte Spill
	movl	%ecx, (%rsp)
	movl	%esi, -60(%rbp)                 ## 4-byte Spill
	movl	%esi, %edi
	movl	%r12d, %esi
	movl	%edx, -52(%rbp)                 ## 4-byte Spill
	movl	%r8d, -44(%rbp)                 ## 4-byte Spill
	movl	%r8d, %ecx
	xorl	%r8d, %r8d
	movl	%r9d, -48(%rbp)                 ## 4-byte Spill
	callq	_sample
	movl	%eax, 12(%rbx)
	movl	%eax, 8(%rbx)
	movl	%eax, 4(%rbx)
	movl	%eax, (%rbx)
	movl	%r13d, 16(%rbx)
	movd	%r14d, %xmm0
	pshufd	$0, %xmm0, %xmm0                ## xmm0 = xmm0[0,0,0,0]
	movdqu	%xmm0, 20(%rbx)
	cmpl	$3, %r12d
	jne	LBB0_6
## %bb.4:
	testq	%r15, %r15
	movq	16(%rbp), %rdx
	je	LBB0_28
## %bb.5:
	movl	%eax, %eax
	shlq	$4, %rax
	movl	(%r15,%rax), %ecx
	movl	%ecx, 4(%rbx)
	movl	4(%r15,%rax), %ecx
	movl	%ecx, 8(%rbx)
	movl	8(%r15,%rax), %ecx
	movl	%ecx, 12(%rbx)
	movl	12(%r15,%rax), %eax
	jmp	LBB0_27
LBB0_6:
	testb	$4, %r12b
	movq	16(%rbp), %rdx
	je	LBB0_7
## %bb.8:
	testq	%rdx, %rdx
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movl	-48(%rbp), %r9d                 ## 4-byte Reload
	movl	$0, %r15d
	je	LBB0_11
## %bb.9:
	cmpq	$0, 80(%rdx)
	je	LBB0_11
## %bb.10:
	movl	%eax, 16(%rbx)
	movl	-56(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, (%rsp)
	movl	$1, %r15d
	movl	-60(%rbp), %edi                 ## 4-byte Reload
	movl	%r12d, %esi
	movl	-52(%rbp), %edx                 ## 4-byte Reload
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movl	$1, %r8d
	movl	-48(%rbp), %r9d                 ## 4-byte Reload
	callq	_sample
	movl	-48(%rbp), %r9d                 ## 4-byte Reload
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movq	16(%rbp), %rdx
	movl	%eax, 12(%rbx)
	movl	%eax, 8(%rbx)
	movl	%eax, 4(%rbx)
	movl	%eax, (%rbx)
LBB0_11:
	testb	$2, %r12b
	jne	LBB0_12
LBB0_16:
	testq	%rdx, %rdx
	je	LBB0_32
## %bb.17:
	cmpq	$0, 64(%rdx)
	je	LBB0_20
## %bb.18:
	xorl	%r13d, %eax
	movl	%eax, 12(%rbx)
	movl	%eax, 8(%rbx)
	jmp	LBB0_19
LBB0_7:
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movl	-48(%rbp), %r9d                 ## 4-byte Reload
	xorl	%r15d, %r15d
	testb	$2, %r12b
	je	LBB0_16
LBB0_12:
	leal	1(%r15), %r8d
	movl	-56(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, (%rsp)
	movl	-60(%rbp), %edi                 ## 4-byte Reload
	movl	%r12d, %esi
	movl	-52(%rbp), %edx                 ## 4-byte Reload
	callq	_sample
	movq	16(%rbp), %rcx
	movl	%eax, 8(%rbx)
	testq	%rcx, %rcx
	je	LBB0_15
## %bb.13:
	cmpq	$0, 88(%rcx)
	je	LBB0_15
## %bb.14:
	orl	$2, %r15d
	movq	%r15, -72(%rbp)                 ## 8-byte Spill
	movl	-56(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, (%rsp)
	movl	-60(%rbp), %edi                 ## 4-byte Reload
	movl	%r12d, %esi
	movl	-52(%rbp), %edx                 ## 4-byte Reload
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movl	%r15d, %r8d
	movl	-48(%rbp), %r15d                ## 4-byte Reload
	movl	%r15d, %r9d
	callq	_sample
	movl	%r15d, %r9d
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movq	16(%rbp), %rdx
LBB0_19:
	movl	%eax, 4(%rbx)
LBB0_20:
	testb	$4, %r12b
	jne	LBB0_21
	jmp	LBB0_28
LBB0_15:
	orl	$2, %r15d
	movq	%r15, -72(%rbp)                 ## 8-byte Spill
	movl	-56(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, (%rsp)
	movl	-60(%rbp), %edi                 ## 4-byte Reload
	movl	%r12d, %esi
	movl	-52(%rbp), %edx                 ## 4-byte Reload
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movl	%r15d, %r8d
	movl	-48(%rbp), %r15d                ## 4-byte Reload
	movl	%r15d, %r9d
	callq	_sample
	movl	%r15d, %r9d
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movq	16(%rbp), %rdx
	movl	%eax, 12(%rbx)
	testb	$4, %r12b
	je	LBB0_28
LBB0_21:
	testq	%rdx, %rdx
	je	LBB0_23
## %bb.22:
	cmpq	$0, 80(%rdx)
	jne	LBB0_24
	jmp	LBB0_23
LBB0_32:
	testb	$4, %r12b
	je	LBB0_28
LBB0_23:
	incl	%r15d
	movl	-56(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, (%rsp)
	movl	-60(%rbp), %edi                 ## 4-byte Reload
	movl	%r12d, %esi
	movl	-52(%rbp), %edx                 ## 4-byte Reload
	movl	%r15d, %r8d
	callq	_sample
	movq	16(%rbp), %rdx
	movl	%eax, 16(%rbx)
LBB0_24:
	testq	%rdx, %rdx
	je	LBB0_28
## %bb.25:
	cmpq	$0, 72(%rdx)
	je	LBB0_28
## %bb.26:
	movl	16(%rbx), %eax
	xorl	%r13d, %eax
LBB0_27:
	movl	%eax, 16(%rbx)
LBB0_28:
	cmpb	$0, -64(%rbp)                   ## 1-byte Folded Reload
	je	LBB0_29
## %bb.30:
	movdqu	20(%rdx), %xmm0
	pslld	$23, %xmm0
	paddd	LCPI0_0(%rip), %xmm0
	cvttps2dq	%xmm0, %xmm0
	pxor	%xmm1, %xmm1
	psubd	%xmm0, %xmm1
	pcmpeqd	%xmm0, %xmm0
	pxor	%xmm1, %xmm0
	jmp	LBB0_31
LBB0_29:
	movd	%r13d, %xmm0
	pshufd	$0, %xmm0, %xmm0                ## xmm0 = xmm0[0,0,0,0]
LBB0_31:
	movd	%xmm0, %esi
	pextrd	$1, %xmm0, %edx
	pextrd	$2, %xmm0, %ecx
	pextrd	$3, %xmm0, %r8d
	movq	%rbx, %rdi
	callq	_image_pixel_setf
	movl	%r12d, 36(%rbx)
	movl	-52(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, 40(%rbx)
	movl	%r14d, 44(%rbx)
	movl	$0, 56(%rbx)
	movq	$0, 48(%rbx)
	pxor	%xmm0, %xmm0
	movdqu	%xmm0, 64(%rbx)
	movdqu	%xmm0, 80(%rbx)
	movq	$0, 96(%rbx)
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PNG_COLOR_TYPE_PALETTE,4,2     ## @PNG_COLOR_TYPE_PALETTE
	.no_dead_strip	_image_pixel_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function image_pixel_init
_image_pixel_init:                      ; @image_pixel_init
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x22, x6
	mov	x28, x5
	mov	x20, x3
	mov	x21, x2
	mov	x19, x0
Lloh0:
	adrp	x8, _PNG_COLOR_TYPE_PALETTE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PNG_COLOR_TYPE_PALETTE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	mov	w9, #8
	cmp	w8, w2
	csel	w24, w9, w3, eq
	mov	w8, #-1
	lsl	w8, w8, w24
	mvn	w23, w8
	cbz	x6, LBB0_2
; %bb.1:
	ldr	w8, [x22, #56]
	cmp	w8, #0
	cset	w26, ne
	ldp	w9, w8, [x22, #48]
	cmp	w8, #0
	cset	w27, ne
	cmp	w9, #0
	cset	w8, ne
	str	w8, [sp, #12]                   ; 4-byte Folded Spill
	b	LBB0_3
LBB0_2:
	mov	w27, #0
	mov	w26, #0
	str	wzr, [sp, #12]                  ; 4-byte Folded Spill
LBB0_3:
	str	w1, [sp, #8]                    ; 4-byte Folded Spill
	mov	x0, x1
	mov	x1, x21
	mov	x2, x20
	mov	x25, x4
	mov	x3, x4
	mov	w4, #0
	mov	x5, x26
	mov	x6, x27
	bl	_sample
	stp	w0, w0, [x19, #8]
	stp	w0, w0, [x19]
	str	w23, [x19, #16]
	dup.4s	v0, w24
	stur	q0, [x19, #20]
	cmp	w21, #3
	b.ne	LBB0_6
; %bb.4:
	cbz	x28, LBB0_28
; %bb.5:
	add	x8, x28, w0, uxtw #4
	ldr	d0, [x8]
	stur	d0, [x19, #4]
	ldp	w9, w8, [x8, #8]
	str	w9, [x19, #12]
	b	LBB0_27
LBB0_6:
	mov	w28, #0
	mov	x3, x25
	tbz	w21, #2, LBB0_10
; %bb.7:
	cbz	x22, LBB0_10
; %bb.8:
	ldr	x8, [x22, #80]
	cbz	x8, LBB0_14
; %bb.9:
	str	w0, [x19, #16]
	mov	w28, #1
	ldr	w0, [sp, #8]                    ; 4-byte Folded Reload
	mov	x1, x21
	mov	x2, x20
	mov	w4, #1
	mov	x5, x26
	mov	x6, x27
	bl	_sample
	mov	x3, x25
	stp	w0, w0, [x19, #8]
	stp	w0, w0, [x19]
                                        ; kill: def $w0 killed $w0 killed $x0 def $x0
LBB0_10:
	tbnz	w21, #1, LBB0_15
LBB0_11:
	cbz	x22, LBB0_22
; %bb.12:
	ldr	x8, [x22, #64]
	cbz	x8, LBB0_18
; %bb.13:
	eor	w8, w0, w23
	stp	w8, w8, [x19, #8]
	str	w8, [x19, #4]
	tbnz	w21, #2, LBB0_20
	b	LBB0_28
LBB0_14:
	mov	w28, #0
	tbz	w21, #1, LBB0_11
LBB0_15:
	add	w4, w28, #1
	ldr	w0, [sp, #8]                    ; 4-byte Folded Reload
	mov	x1, x21
	mov	x2, x20
	mov	x5, x26
	mov	x6, x27
	bl	_sample
	str	w0, [x19, #8]
	cbz	x22, LBB0_19
; %bb.16:
	ldr	x8, [x22, #88]
	cbz	x8, LBB0_19
; %bb.17:
	orr	w28, w28, #0x2
	ldr	w0, [sp, #8]                    ; 4-byte Folded Reload
	mov	x1, x21
	mov	x2, x20
	mov	x3, x25
	mov	x4, x28
	mov	x5, x26
	mov	x6, x27
	bl	_sample
	mov	x3, x25
	str	w0, [x19, #4]
LBB0_18:
	tbnz	w21, #2, LBB0_20
	b	LBB0_28
LBB0_19:
	orr	w28, w28, #0x2
	ldr	w0, [sp, #8]                    ; 4-byte Folded Reload
	mov	x1, x21
	mov	x2, x20
	mov	x3, x25
	mov	x4, x28
	mov	x5, x26
	mov	x6, x27
	bl	_sample
	mov	x3, x25
	str	w0, [x19, #12]
	tbz	w21, #2, LBB0_28
LBB0_20:
	cbz	x22, LBB0_23
; %bb.21:
	ldr	x8, [x22, #80]
	cbnz	x8, LBB0_24
	b	LBB0_23
LBB0_22:
	tbz	w21, #2, LBB0_28
LBB0_23:
	add	w4, w28, #1
	ldr	w0, [sp, #8]                    ; 4-byte Folded Reload
	mov	x1, x21
	mov	x2, x20
	mov	x5, x26
	mov	x6, x27
	bl	_sample
	str	w0, [x19, #16]
LBB0_24:
	cbz	x22, LBB0_28
; %bb.25:
	ldr	x8, [x22, #72]
	cbz	x8, LBB0_28
; %bb.26:
	ldr	w8, [x19, #16]
	eor	w8, w8, w23
LBB0_27:
	str	w8, [x19, #16]
LBB0_28:
	mov	x1, x23
	mov	x2, x23
	mov	x4, x23
	ldr	w8, [sp, #12]                   ; 4-byte Folded Reload
	cbz	w8, LBB0_30
; %bb.29:
	mov	w8, #-1
	ldp	w9, w10, [x22, #20]
	lsl	w9, w8, w9
	mvn	w1, w9
	lsl	w9, w8, w10
	mvn	w2, w9
	ldp	w9, w10, [x22, #28]
	lsl	w9, w8, w9
	mvn	w23, w9
	lsl	w8, w8, w10
	mvn	w4, w8
LBB0_30:
	mov	x0, x19
	mov	x3, x23
	bl	_image_pixel_setf
	stp	w21, w20, [x19, #36]
	str	wzr, [x19, #56]
	str	xzr, [x19, #48]
	str	w24, [x19, #44]
	movi.2d	v0, #0000000000000000
	stp	q0, q0, [x19, #64]
	str	xzr, [x19, #96]
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_PNG_COLOR_TYPE_PALETTE,4,2     ; @PNG_COLOR_TYPE_PALETTE
	.no_dead_strip	_image_pixel_init
.subsections_via_symbols
