	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function handle_small_bpp
_handle_small_bpp:                      ## @handle_small_bpp
	.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
	movl	(%rdi), %eax
	cmpl	$4, %eax
	je	LBB0_46
## %bb.1:
	cmpl	$2, %eax
	je	LBB0_24
## %bb.2:
	cmpl	$1, %eax
	jne	LBB0_60
## %bb.3:
	movq	8(%rdi), %rax
	movq	_PNG_COLOR_TYPE_PALETTE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_60
## %bb.4:
	cmpl	$0, 16(%rdi)
	jle	LBB0_60
## %bb.5:
	movq	(%rsi), %rax
	movq	(%rax), %r11
	xorl	%r8d, %r8d
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_23:                                ##   in Loop: Header=BB0_6 Depth=1
	movslq	24(%rdi), %rax
	leaq	(%r11,%rax,4), %r11
	incl	%r8d
	cmpl	16(%rdi), %r8d
	jge	LBB0_60
LBB0_6:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_22 Depth 2
	movl	20(%rdi), %esi
	leal	7(%rsi), %ecx
	testl	%esi, %esi
	cmovnsl	%esi, %ecx
	movl	%ecx, %r9d
	sarl	$3, %r9d
	movslq	%r9d, %rdx
	andl	$-8, %ecx
	movslq	%ecx, %r10
	movl	%esi, %ecx
	andl	$7, %ecx
	cmpl	$7, %ecx
	je	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	cmpl	$6, %ecx
	jae	LBB0_9
LBB0_10:                                ##   in Loop: Header=BB0_6 Depth=1
	cmpl	$5, %ecx
	jae	LBB0_11
LBB0_12:                                ##   in Loop: Header=BB0_6 Depth=1
	cmpl	$4, %ecx
	jae	LBB0_13
LBB0_14:                                ##   in Loop: Header=BB0_6 Depth=1
	cmpl	$3, %ecx
	jae	LBB0_15
LBB0_16:                                ##   in Loop: Header=BB0_6 Depth=1
	cmpl	$2, %ecx
	jae	LBB0_17
LBB0_18:                                ##   in Loop: Header=BB0_6 Depth=1
	testl	%ecx, %ecx
	je	LBB0_20
LBB0_19:                                ##   in Loop: Header=BB0_6 Depth=1
	movl	(%r11,%rdx,4), %ecx
	shrl	$7, %ecx
	andl	$1, %ecx
	movl	%ecx, (%r11,%r10,4)
LBB0_20:                                ##   in Loop: Header=BB0_6 Depth=1
	cmpl	$7, %esi
	jle	LBB0_23
## %bb.21:                              ##   in Loop: Header=BB0_6 Depth=1
	movl	%r9d, %ecx
	incq	%rcx
	leal	-4(,%r9,8), %edx
	.p2align	4, 0x90
LBB0_22:                                ##   Parent Loop BB0_6 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	leal	-2(%rcx), %esi
	movl	(%r11,%rsi,4), %ebx
	andl	$1, %ebx
	leal	3(%rdx), %eax
	movl	%ebx, (%r11,%rax,4)
	movl	(%r11,%rsi,4), %eax
	shrl	%eax
	andl	$1, %eax
	leal	2(%rdx), %ebx
	movl	%eax, (%r11,%rbx,4)
	movl	(%r11,%rsi,4), %eax
	shrl	$2, %eax
	leal	1(%rdx), %ebx
	andl	$1, %eax
	movl	%eax, (%r11,%rbx,4)
	movl	(%r11,%rsi,4), %eax
	shrl	$3, %eax
	andl	$1, %eax
	movl	%edx, %ebx
	movl	%eax, (%r11,%rbx,4)
	movl	(%r11,%rsi,4), %eax
	shrl	$4, %eax
	andl	$1, %eax
	leal	-1(%rdx), %ebx
	movl	%eax, (%r11,%rbx,4)
	movl	(%r11,%rsi,4), %eax
	shrl	$5, %eax
	andl	$1, %eax
	leal	-2(%rdx), %ebx
	leal	-4(%rdx), %r9d
	movl	%eax, (%r11,%rbx,4)
	movl	(%r11,%rsi,4), %eax
	shrl	$6, %eax
	andl	$1, %eax
	leal	-3(%rdx), %ebx
	movl	%eax, (%r11,%rbx,4)
	movl	(%r11,%rsi,4), %eax
	sarl	$7, %eax
	movl	%eax, (%r11,%r9,4)
	decq	%rcx
	addl	$-8, %edx
	cmpq	$1, %rcx
	ja	LBB0_22
	jmp	LBB0_23
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_6 Depth=1
	movl	(%r11,%rdx,4), %ecx
	shrl	%ecx
	andl	$1, %ecx
	leaq	(,%r10,4), %rbx
	orq	$24, %rbx
	movl	%ecx, (%r11,%rbx)
	movl	20(%rdi), %ecx
	andl	$7, %ecx
	cmpl	$6, %ecx
	jb	LBB0_10
LBB0_9:                                 ##   in Loop: Header=BB0_6 Depth=1
	movl	(%r11,%rdx,4), %ecx
	shrl	$2, %ecx
	andl	$1, %ecx
	leaq	(,%r10,4), %rbx
	orq	$20, %rbx
	movl	%ecx, (%r11,%rbx)
	movl	20(%rdi), %ecx
	andl	$7, %ecx
	cmpl	$5, %ecx
	jb	LBB0_12
LBB0_11:                                ##   in Loop: Header=BB0_6 Depth=1
	movl	(%r11,%rdx,4), %ecx
	shrl	$3, %ecx
	andl	$1, %ecx
	leaq	(,%r10,4), %rbx
	orq	$16, %rbx
	movl	%ecx, (%r11,%rbx)
	movl	20(%rdi), %ecx
	andl	$7, %ecx
	cmpl	$4, %ecx
	jb	LBB0_14
LBB0_13:                                ##   in Loop: Header=BB0_6 Depth=1
	movl	(%r11,%rdx,4), %ecx
	shrl	$4, %ecx
	andl	$1, %ecx
	leaq	(,%r10,4), %rbx
	orq	$12, %rbx
	movl	%ecx, (%r11,%rbx)
	movl	20(%rdi), %ecx
	andl	$7, %ecx
	cmpl	$3, %ecx
	jb	LBB0_16
LBB0_15:                                ##   in Loop: Header=BB0_6 Depth=1
	movl	(%r11,%rdx,4), %ecx
	shrl	$5, %ecx
	andl	$1, %ecx
	leaq	(,%r10,4), %rbx
	orq	$8, %rbx
	movl	%ecx, (%r11,%rbx)
	movl	20(%rdi), %ecx
	andl	$7, %ecx
	cmpl	$2, %ecx
	jb	LBB0_18
LBB0_17:                                ##   in Loop: Header=BB0_6 Depth=1
	movl	(%r11,%rdx,4), %ecx
	shrl	$6, %ecx
	andl	$1, %ecx
	leaq	(,%r10,4), %rbx
	orq	$4, %rbx
	movl	%ecx, (%r11,%rbx)
	movl	20(%rdi), %ecx
	andl	$7, %ecx
	testl	%ecx, %ecx
	jne	LBB0_19
	jmp	LBB0_20
LBB0_46:
	cmpl	$0, 16(%rdi)
	jle	LBB0_60
## %bb.47:
	movq	(%rsi), %rax
	movq	(%rax), %r14
	movq	8(%rdi), %r8
	movq	_PNG_COLOR_TYPE_PALETTE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %r9
	xorl	%r11d, %r11d
	jmp	LBB0_48
	.p2align	4, 0x90
LBB0_59:                                ##   in Loop: Header=BB0_48 Depth=1
	movslq	24(%rdi), %rax
	leaq	(%r14,%rax,4), %r14
	incl	%r11d
	cmpl	16(%rdi), %r11d
	jge	LBB0_60
LBB0_48:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_58 Depth 2
                                        ##     Child Loop BB0_53 Depth 2
	movl	20(%rdi), %edx
	movl	%edx, %ecx
	shrl	$31, %ecx
	addl	%edx, %ecx
	sarl	%ecx
	cmpq	%r9, %r8
	jne	LBB0_54
## %bb.49:                              ##   in Loop: Header=BB0_48 Depth=1
	testb	$1, %dl
	je	LBB0_51
## %bb.50:                              ##   in Loop: Header=BB0_48 Depth=1
	movslq	%ecx, %rbx
	movl	(%r14,%rbx,4), %r10d
	sarl	$4, %r10d
	leal	(%rcx,%rcx), %ebx
	movslq	%ebx, %rbx
	movl	%r10d, (%r14,%rbx,4)
LBB0_51:                                ##   in Loop: Header=BB0_48 Depth=1
	cmpl	$2, %edx
	jl	LBB0_59
## %bb.52:                              ##   in Loop: Header=BB0_48 Depth=1
	movl	%ecx, %edx
	incq	%rdx
	addl	%ecx, %ecx
	decl	%ecx
	.p2align	4, 0x90
LBB0_53:                                ##   Parent Loop BB0_48 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	leal	-2(%rdx), %ebx
	movl	(%r14,%rbx,4), %ebx
	movl	%ebx, %esi
	andl	$15, %esi
	leal	-1(%rcx), %r10d
	movl	%ecx, %eax
	movl	%esi, (%r14,%rax,4)
	sarl	$4, %ebx
	movl	%ebx, (%r14,%r10,4)
	decq	%rdx
	addl	$-2, %ecx
	cmpq	$1, %rdx
	ja	LBB0_53
	jmp	LBB0_59
	.p2align	4, 0x90
LBB0_54:                                ##   in Loop: Header=BB0_48 Depth=1
	testb	$1, %dl
	je	LBB0_56
## %bb.55:                              ##   in Loop: Header=BB0_48 Depth=1
	movslq	%ecx, %rax
	movl	(%r14,%rax,4), %esi
	movl	%esi, %ebx
	sarl	$4, %ebx
	andl	$-16, %esi
	addl	%ebx, %esi
	addl	%eax, %eax
	cltq
	movl	%esi, (%r14,%rax,4)
LBB0_56:                                ##   in Loop: Header=BB0_48 Depth=1
	cmpl	$2, %edx
	jl	LBB0_59
## %bb.57:                              ##   in Loop: Header=BB0_48 Depth=1
	movl	%ecx, %edx
	incq	%rdx
	addl	%ecx, %ecx
	decl	%ecx
	.p2align	4, 0x90
LBB0_58:                                ##   Parent Loop BB0_48 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	leal	-2(%rdx), %eax
	movl	(%r14,%rax,4), %eax
	movl	%eax, %ebx
	andl	$15, %ebx
	movl	%ebx, %esi
	shll	$4, %esi
	orl	%ebx, %esi
	leal	-1(%rcx), %r10d
	movl	%ecx, %ebx
	movl	%esi, (%r14,%rbx,4)
	movl	%eax, %esi
	sarl	$4, %esi
	andl	$-16, %eax
	addl	%esi, %eax
	movl	%eax, (%r14,%r10,4)
	decq	%rdx
	addl	$-2, %ecx
	cmpq	$1, %rdx
	ja	LBB0_58
	jmp	LBB0_59
LBB0_24:
	cmpl	$0, 16(%rdi)
	jle	LBB0_60
## %bb.25:
	movq	(%rsi), %rax
	movq	(%rax), %r14
	movq	8(%rdi), %r8
	movq	_PNG_COLOR_TYPE_PALETTE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %r9
	xorl	%r10d, %r10d
	jmp	LBB0_26
	.p2align	4, 0x90
LBB0_45:                                ##   in Loop: Header=BB0_26 Depth=1
	movslq	24(%rdi), %rax
	leaq	(%r14,%rax,4), %r14
	incl	%r10d
	cmpl	16(%rdi), %r10d
	jge	LBB0_60
LBB0_26:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_44 Depth 2
                                        ##     Child Loop BB0_35 Depth 2
	movl	20(%rdi), %edx
	leal	3(%rdx), %ecx
	testl	%edx, %edx
	cmovnsl	%edx, %ecx
	sarl	$2, %ecx
	movl	%edx, %ebx
	andl	$3, %ebx
	cmpq	%r9, %r8
	jne	LBB0_36
## %bb.27:                              ##   in Loop: Header=BB0_26 Depth=1
	movl	%edx, %esi
	cmpl	$3, %ebx
	je	LBB0_28
## %bb.29:                              ##   in Loop: Header=BB0_26 Depth=1
	testb	$2, %sil
	jne	LBB0_30
LBB0_31:                                ##   in Loop: Header=BB0_26 Depth=1
	testb	$3, %sil
	je	LBB0_33
LBB0_32:                                ##   in Loop: Header=BB0_26 Depth=1
	movslq	%ecx, %rsi
	movl	(%r14,%rsi,4), %esi
	sarl	$6, %esi
	leal	(,%rcx,4), %ebx
	movslq	%ebx, %rbx
	movl	%esi, (%r14,%rbx,4)
LBB0_33:                                ##   in Loop: Header=BB0_26 Depth=1
	cmpl	$4, %edx
	jl	LBB0_45
## %bb.34:                              ##   in Loop: Header=BB0_26 Depth=1
	movl	%ecx, %edx
	incq	%rdx
	leal	-2(,%rcx,4), %ecx
	.p2align	4, 0x90
LBB0_35:                                ##   Parent Loop BB0_26 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	leal	-2(%rdx), %esi
	movl	(%r14,%rsi,4), %ebx
	andl	$3, %ebx
	leal	-2(%rcx), %r11d
	leal	1(%rcx), %eax
	movl	%ebx, (%r14,%rax,4)
	movl	(%r14,%rsi,4), %eax
	shrl	$2, %eax
	andl	$3, %eax
	movl	%ecx, %ebx
	movl	%eax, (%r14,%rbx,4)
	movl	(%r14,%rsi,4), %eax
	shrl	$4, %eax
	andl	$3, %eax
	leal	-1(%rcx), %ebx
	movl	%eax, (%r14,%rbx,4)
	movl	(%r14,%rsi,4), %eax
	sarl	$6, %eax
	movl	%eax, (%r14,%r11,4)
	decq	%rdx
	addl	$-4, %ecx
	cmpq	$1, %rdx
	ja	LBB0_35
	jmp	LBB0_45
	.p2align	4, 0x90
LBB0_36:                                ##   in Loop: Header=BB0_26 Depth=1
	movslq	%ecx, %r11
	movl	%edx, %esi
	cmpl	$3, %ebx
	je	LBB0_37
## %bb.38:                              ##   in Loop: Header=BB0_26 Depth=1
	testb	$2, %sil
	jne	LBB0_39
LBB0_40:                                ##   in Loop: Header=BB0_26 Depth=1
	testb	$3, %sil
	je	LBB0_42
LBB0_41:                                ##   in Loop: Header=BB0_26 Depth=1
	movl	(%r14,%r11,4), %eax
	sarl	$6, %eax
	imull	$85, %eax, %eax
	shll	$2, %r11d
	movslq	%r11d, %rsi
	movl	%eax, (%r14,%rsi,4)
LBB0_42:                                ##   in Loop: Header=BB0_26 Depth=1
	cmpl	$4, %edx
	jl	LBB0_45
## %bb.43:                              ##   in Loop: Header=BB0_26 Depth=1
	movl	%ecx, %edx
	incq	%rdx
	leal	-2(,%rcx,4), %ecx
	.p2align	4, 0x90
LBB0_44:                                ##   Parent Loop BB0_26 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	leal	-2(%rdx), %esi
	movl	(%r14,%rsi,4), %eax
	andl	$3, %eax
	imull	$85, %eax, %eax
	leal	-2(%rcx), %r11d
	leal	1(%rcx), %ebx
	movl	%eax, (%r14,%rbx,4)
	movl	(%r14,%rsi,4), %eax
	shrl	$2, %eax
	andl	$3, %eax
	imull	$85, %eax, %eax
	movl	%ecx, %ebx
	movl	%eax, (%r14,%rbx,4)
	movl	(%r14,%rsi,4), %eax
	shrl	$4, %eax
	andl	$3, %eax
	imull	$85, %eax, %eax
	leal	-1(%rcx), %ebx
	movl	%eax, (%r14,%rbx,4)
	movl	(%r14,%rsi,4), %eax
	sarl	$6, %eax
	imull	$85, %eax, %eax
	movl	%eax, (%r14,%r11,4)
	decq	%rdx
	addl	$-4, %ecx
	cmpq	$1, %rdx
	ja	LBB0_44
	jmp	LBB0_45
	.p2align	4, 0x90
LBB0_28:                                ##   in Loop: Header=BB0_26 Depth=1
	movslq	%ecx, %rsi
	movl	(%r14,%rsi,4), %esi
	shrl	$2, %esi
	andl	$3, %esi
	leal	2(,%rcx,4), %ebx
	movslq	%ebx, %rbx
	movl	%esi, (%r14,%rbx,4)
	movl	20(%rdi), %esi
	testb	$2, %sil
	je	LBB0_31
LBB0_30:                                ##   in Loop: Header=BB0_26 Depth=1
	movslq	%ecx, %rsi
	movl	(%r14,%rsi,4), %esi
	shrl	$4, %esi
	andl	$3, %esi
	leal	1(,%rcx,4), %ebx
	movslq	%ebx, %rbx
	movl	%esi, (%r14,%rbx,4)
	movl	20(%rdi), %esi
	testb	$3, %sil
	jne	LBB0_32
	jmp	LBB0_33
	.p2align	4, 0x90
LBB0_37:                                ##   in Loop: Header=BB0_26 Depth=1
	movl	(%r14,%r11,4), %eax
	shrl	$2, %eax
	andl	$3, %eax
	imull	$85, %eax, %eax
	leal	2(,%r11,4), %esi
	movslq	%esi, %rsi
	movl	%eax, (%r14,%rsi,4)
	movl	20(%rdi), %esi
	testb	$2, %sil
	je	LBB0_40
LBB0_39:                                ##   in Loop: Header=BB0_26 Depth=1
	movl	(%r14,%r11,4), %eax
	shrl	$4, %eax
	andl	$3, %eax
	imull	$85, %eax, %eax
	leal	1(,%r11,4), %esi
	movslq	%esi, %rsi
	movl	%eax, (%r14,%rsi,4)
	movl	20(%rdi), %esi
	testb	$3, %sil
	jne	LBB0_41
	jmp	LBB0_42
LBB0_60:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PNG_COLOR_TYPE_PALETTE,8,3     ## @PNG_COLOR_TYPE_PALETTE
	.no_dead_strip	_handle_small_bpp
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function handle_small_bpp
_handle_small_bpp:                      ; @handle_small_bpp
	.cfi_startproc
; %bb.0:
	ldr	w8, [x0]
	cmp	w8, #4
	b.eq	LBB0_24
; %bb.1:
	cmp	w8, #2
	b.eq	LBB0_38
; %bb.2:
	cmp	w8, #1
	b.ne	LBB0_60
; %bb.3:
	ldr	x8, [x0, #8]
Lloh0:
	adrp	x9, _PNG_COLOR_TYPE_PALETTE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _PNG_COLOR_TYPE_PALETTE@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_60
; %bb.4:
	ldr	w8, [x0, #16]
	cmp	w8, #1
	b.lt	LBB0_60
; %bb.5:
	mov	w8, #0
	ldr	x9, [x1]
	ldr	x9, [x9]
	mov	w10, #20
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	ldrsw	x11, [x0, #24]
	add	x9, x9, x11, lsl #2
	add	w8, w8, #1
	ldr	w11, [x0, #16]
	cmp	w8, w11
	b.ge	LBB0_60
LBB0_7:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_17 Depth 2
	ldr	w12, [x0, #20]
	add	w11, w12, #7
	cmp	w12, #0
	csel	w11, w11, w12, lt
	asr	w13, w11, #3
	sbfx	x11, x11, #3, #29
	sbfiz	x13, x13, #3, #32
	and	w14, w12, #0x7
	cmp	w14, #7
	b.eq	LBB0_18
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	cmp	w14, #6
	b.hs	LBB0_19
LBB0_9:                                 ;   in Loop: Header=BB0_7 Depth=1
	cmp	w14, #5
	b.hs	LBB0_20
LBB0_10:                                ;   in Loop: Header=BB0_7 Depth=1
	cmp	w14, #4
	b.hs	LBB0_21
LBB0_11:                                ;   in Loop: Header=BB0_7 Depth=1
	cmp	w14, #3
	b.hs	LBB0_22
LBB0_12:                                ;   in Loop: Header=BB0_7 Depth=1
	cmp	w14, #2
	b.hs	LBB0_23
LBB0_13:                                ;   in Loop: Header=BB0_7 Depth=1
	cbz	w14, LBB0_15
LBB0_14:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	w14, [x9, x11, lsl #2]
	ubfx	w14, w14, #7, #1
	str	w14, [x9, x13, lsl #2]
LBB0_15:                                ;   in Loop: Header=BB0_7 Depth=1
	cmp	w12, #7
	b.le	LBB0_6
; %bb.16:                               ;   in Loop: Header=BB0_7 Depth=1
	and	x12, x11, #0xffffffff
	add	x12, x12, #1
	lsl	w11, w11, #3
	sub	w11, w11, #4
LBB0_17:                                ;   Parent Loop BB0_7 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	sub	w13, w12, #2
	lsl	x13, x13, #2
	ldr	w14, [x9, x13]
	and	w14, w14, #0x1
	add	w15, w11, #3
	str	w14, [x9, w15, uxtw #2]
	ldr	w14, [x9, x13]
	ubfx	w14, w14, #1, #1
	add	w15, w11, #2
	str	w14, [x9, w15, uxtw #2]
	ldr	w14, [x9, x13]
	ubfx	w14, w14, #2, #1
	add	w15, w11, #1
	str	w14, [x9, w15, uxtw #2]
	ldr	w14, [x9, x13]
	sub	w15, w11, #4
	ubfx	w14, w14, #3, #1
	str	w14, [x9, w11, uxtw #2]
	ldr	w14, [x9, x13]
	ubfx	w14, w14, #4, #1
	sub	w16, w11, #1
	str	w14, [x9, w16, uxtw #2]
	ldr	w14, [x9, x13]
	ubfx	w14, w14, #5, #1
	sub	w16, w11, #2
	str	w14, [x9, w16, uxtw #2]
	ldr	w14, [x9, x13]
	ubfx	w14, w14, #6, #1
	sub	w16, w11, #3
	str	w14, [x9, w16, uxtw #2]
	ldr	w13, [x9, x13]
	asr	w13, w13, #7
	str	w13, [x9, w15, uxtw #2]
	sub	x12, x12, #1
	sub	w11, w11, #8
	cmp	x12, #1
	b.hi	LBB0_17
	b	LBB0_6
LBB0_18:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	w14, [x9, x11, lsl #2]
	ubfx	w14, w14, #1, #1
	lsl	x15, x13, #2
	orr	x15, x15, #0x18
	str	w14, [x9, x15]
	ldr	w14, [x0, #20]
	and	w14, w14, #0x7
	cmp	w14, #6
	b.lo	LBB0_9
LBB0_19:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	w14, [x9, x11, lsl #2]
	ubfx	w14, w14, #2, #1
	orr	x15, x10, x13, lsl #2
	str	w14, [x9, x15]
	ldr	w14, [x0, #20]
	and	w14, w14, #0x7
	cmp	w14, #5
	b.lo	LBB0_10
LBB0_20:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	w14, [x9, x11, lsl #2]
	ubfx	w14, w14, #3, #1
	lsl	x15, x13, #2
	orr	x15, x15, #0x10
	str	w14, [x9, x15]
	ldr	w14, [x0, #20]
	and	w14, w14, #0x7
	cmp	w14, #4
	b.lo	LBB0_11
LBB0_21:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	w14, [x9, x11, lsl #2]
	ubfx	w14, w14, #4, #1
	lsl	x15, x13, #2
	orr	x15, x15, #0xc
	str	w14, [x9, x15]
	ldr	w14, [x0, #20]
	and	w14, w14, #0x7
	cmp	w14, #3
	b.lo	LBB0_12
LBB0_22:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	w14, [x9, x11, lsl #2]
	ubfx	w14, w14, #5, #1
	lsl	x15, x13, #2
	orr	x15, x15, #0x8
	str	w14, [x9, x15]
	ldr	w14, [x0, #20]
	and	w14, w14, #0x7
	cmp	w14, #2
	b.lo	LBB0_13
LBB0_23:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	w14, [x9, x11, lsl #2]
	ubfx	w14, w14, #6, #1
	lsl	x15, x13, #2
	orr	x15, x15, #0x4
	str	w14, [x9, x15]
	ldr	w14, [x0, #20]
	and	w14, w14, #0x7
	cbnz	w14, LBB0_14
	b	LBB0_15
LBB0_24:
	ldr	w8, [x0, #16]
	cmp	w8, #1
	b.lt	LBB0_60
; %bb.25:
	mov	w8, #0
	ldr	x9, [x1]
	ldr	x9, [x9]
	ldr	x10, [x0, #8]
Lloh3:
	adrp	x11, _PNG_COLOR_TYPE_PALETTE@GOTPAGE
Lloh4:
	ldr	x11, [x11, _PNG_COLOR_TYPE_PALETTE@GOTPAGEOFF]
Lloh5:
	ldr	x11, [x11]
	b	LBB0_27
LBB0_26:                                ;   in Loop: Header=BB0_27 Depth=1
	ldrsw	x12, [x0, #24]
	add	x9, x9, x12, lsl #2
	add	w8, w8, #1
	ldr	w12, [x0, #16]
	cmp	w8, w12
	b.ge	LBB0_60
LBB0_27:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_37 Depth 2
                                        ;     Child Loop BB0_32 Depth 2
	ldr	w13, [x0, #20]
	cmp	w13, #0
	cinc	w12, w13, lt
	asr	w12, w12, #1
	cmp	x10, x11
	b.ne	LBB0_33
; %bb.28:                               ;   in Loop: Header=BB0_27 Depth=1
	tbz	w13, #0, LBB0_30
; %bb.29:                               ;   in Loop: Header=BB0_27 Depth=1
	ldr	w14, [x9, w12, sxtw #2]
	asr	w14, w14, #4
	mov	x15, x12
	sbfiz	x15, x15, #3, #32
	str	w14, [x9, x15]
LBB0_30:                                ;   in Loop: Header=BB0_27 Depth=1
	cmp	w13, #2
	b.lt	LBB0_26
; %bb.31:                               ;   in Loop: Header=BB0_27 Depth=1
	add	x13, x12, #1
	lsl	w12, w12, #1
	sub	w12, w12, #1
LBB0_32:                                ;   Parent Loop BB0_27 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	sub	w14, w13, #2
	ldr	w14, [x9, w14, uxtw #2]
	and	w15, w14, #0xf
	sub	w16, w12, #1
	str	w15, [x9, w12, uxtw #2]
	asr	w14, w14, #4
	str	w14, [x9, w16, uxtw #2]
	sub	x13, x13, #1
	sub	w12, w12, #2
	cmp	x13, #1
	b.hi	LBB0_32
	b	LBB0_26
LBB0_33:                                ;   in Loop: Header=BB0_27 Depth=1
	tbz	w13, #0, LBB0_35
; %bb.34:                               ;   in Loop: Header=BB0_27 Depth=1
	ldr	w14, [x9, w12, sxtw #2]
	and	w15, w14, #0xfffffff0
	add	w14, w15, w14, asr #4
	mov	x15, x12
	sbfiz	x15, x15, #3, #32
	str	w14, [x9, x15]
LBB0_35:                                ;   in Loop: Header=BB0_27 Depth=1
	cmp	w13, #2
	b.lt	LBB0_26
; %bb.36:                               ;   in Loop: Header=BB0_27 Depth=1
	add	x13, x12, #1
	lsl	w12, w12, #1
	sub	w12, w12, #1
LBB0_37:                                ;   Parent Loop BB0_27 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	sub	w14, w13, #2
	ldr	w14, [x9, w14, uxtw #2]
	and	w15, w14, #0xf
	bfi	w15, w15, #4, #4
	sub	w16, w12, #1
	str	w15, [x9, w12, uxtw #2]
	and	w15, w14, #0xfffffff0
	add	w14, w15, w14, asr #4
	str	w14, [x9, w16, uxtw #2]
	sub	x13, x13, #1
	sub	w12, w12, #2
	cmp	x13, #1
	b.hi	LBB0_37
	b	LBB0_26
LBB0_38:
	ldr	w8, [x0, #16]
	cmp	w8, #1
	b.lt	LBB0_60
; %bb.39:
	mov	w8, #0
	ldr	x9, [x1]
	ldr	x9, [x9]
	ldr	x10, [x0, #8]
Lloh6:
	adrp	x11, _PNG_COLOR_TYPE_PALETTE@GOTPAGE
Lloh7:
	ldr	x11, [x11, _PNG_COLOR_TYPE_PALETTE@GOTPAGEOFF]
Lloh8:
	ldr	x11, [x11]
	mov	w12, #85
	b	LBB0_41
LBB0_40:                                ;   in Loop: Header=BB0_41 Depth=1
	ldrsw	x13, [x0, #24]
	add	x9, x9, x13, lsl #2
	add	w8, w8, #1
	ldr	w13, [x0, #16]
	cmp	w8, w13
	b.ge	LBB0_60
LBB0_41:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_55 Depth 2
                                        ;     Child Loop BB0_48 Depth 2
	ldr	w14, [x0, #20]
	add	w13, w14, #3
	cmp	w14, #0
	csel	w13, w13, w14, lt
	asr	w13, w13, #2
	and	w17, w14, #0x3
	cmp	x10, x11
	b.ne	LBB0_49
; %bb.42:                               ;   in Loop: Header=BB0_41 Depth=1
	mov	x15, x14
	cmp	w17, #3
	b.eq	LBB0_56
; %bb.43:                               ;   in Loop: Header=BB0_41 Depth=1
	tbnz	w15, #1, LBB0_57
LBB0_44:                                ;   in Loop: Header=BB0_41 Depth=1
	tst	w15, #0x3
	b.eq	LBB0_46
LBB0_45:                                ;   in Loop: Header=BB0_41 Depth=1
	ldr	w15, [x9, w13, sxtw #2]
	asr	w15, w15, #6
	mov	x16, x13
	sbfiz	x16, x16, #4, #32
	str	w15, [x9, x16]
LBB0_46:                                ;   in Loop: Header=BB0_41 Depth=1
	cmp	w14, #4
	b.lt	LBB0_40
; %bb.47:                               ;   in Loop: Header=BB0_41 Depth=1
	add	x14, x13, #1
	lsl	w13, w13, #2
	sub	w13, w13, #2
LBB0_48:                                ;   Parent Loop BB0_41 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	sub	w15, w14, #2
	lsl	x15, x15, #2
	ldr	w16, [x9, x15]
	and	w16, w16, #0x3
	add	w17, w13, #1
	str	w16, [x9, w17, uxtw #2]
	ldr	w16, [x9, x15]
	sub	w17, w13, #2
	ubfx	w16, w16, #2, #2
	str	w16, [x9, w13, uxtw #2]
	ldr	w16, [x9, x15]
	ubfx	w16, w16, #4, #2
	sub	w1, w13, #1
	str	w16, [x9, w1, uxtw #2]
	ldr	w15, [x9, x15]
	asr	w15, w15, #6
	str	w15, [x9, w17, uxtw #2]
	sub	x14, x14, #1
	sub	w13, w13, #4
	cmp	x14, #1
	b.hi	LBB0_48
	b	LBB0_40
LBB0_49:                                ;   in Loop: Header=BB0_41 Depth=1
	add	x15, x9, w13, sxtw #4
	mov	x16, x14
	cmp	w17, #3
	b.eq	LBB0_58
; %bb.50:                               ;   in Loop: Header=BB0_41 Depth=1
	tbnz	w16, #1, LBB0_59
LBB0_51:                                ;   in Loop: Header=BB0_41 Depth=1
	tst	w16, #0x3
	b.eq	LBB0_53
LBB0_52:                                ;   in Loop: Header=BB0_41 Depth=1
	ldr	w15, [x9, w13, sxtw #2]
	asr	w15, w15, #6
	mul	w15, w15, w12
	mov	x16, x13
	sbfiz	x16, x16, #4, #32
	str	w15, [x9, x16]
LBB0_53:                                ;   in Loop: Header=BB0_41 Depth=1
	cmp	w14, #4
	b.lt	LBB0_40
; %bb.54:                               ;   in Loop: Header=BB0_41 Depth=1
	add	x14, x13, #1
	lsl	w13, w13, #2
	sub	w13, w13, #2
LBB0_55:                                ;   Parent Loop BB0_41 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	sub	w15, w14, #2
	lsl	x15, x15, #2
	ldr	w16, [x9, x15]
	and	w16, w16, #0x3
	mul	w16, w16, w12
	sub	w17, w13, #2
	add	w1, w13, #1
	str	w16, [x9, w1, uxtw #2]
	ldr	w16, [x9, x15]
	ubfx	w16, w16, #2, #2
	mul	w16, w16, w12
	str	w16, [x9, w13, uxtw #2]
	ldr	w16, [x9, x15]
	ubfx	w16, w16, #4, #2
	mul	w16, w16, w12
	sub	w1, w13, #1
	str	w16, [x9, w1, uxtw #2]
	ldr	w15, [x9, x15]
	asr	w15, w15, #6
	mul	w15, w15, w12
	str	w15, [x9, w17, uxtw #2]
	sub	x14, x14, #1
	sub	w13, w13, #4
	cmp	x14, #1
	b.hi	LBB0_55
	b	LBB0_40
LBB0_56:                                ;   in Loop: Header=BB0_41 Depth=1
	ldr	w15, [x9, w13, sxtw #2]
	ubfx	w15, w15, #2, #2
	add	x16, x9, w13, sxtw #4
	str	w15, [x16, #8]
	ldr	w15, [x0, #20]
	tbz	w15, #1, LBB0_44
LBB0_57:                                ;   in Loop: Header=BB0_41 Depth=1
	ldr	w15, [x9, w13, sxtw #2]
	ubfx	w15, w15, #4, #2
	add	x16, x9, w13, sxtw #4
	str	w15, [x16, #4]
	ldr	w15, [x0, #20]
	tst	w15, #0x3
	b.ne	LBB0_45
	b	LBB0_46
LBB0_58:                                ;   in Loop: Header=BB0_41 Depth=1
	ldr	w16, [x9, w13, sxtw #2]
	ubfx	w16, w16, #2, #2
	mul	w16, w16, w12
	str	w16, [x15, #8]
	ldr	w16, [x0, #20]
	tbz	w16, #1, LBB0_51
LBB0_59:                                ;   in Loop: Header=BB0_41 Depth=1
	ldr	w16, [x9, w13, sxtw #2]
	ubfx	w16, w16, #4, #2
	mul	w16, w16, w12
	str	w16, [x15, #4]
	ldr	w16, [x0, #20]
	tst	w16, #0x3
	b.ne	LBB0_52
	b	LBB0_53
LBB0_60:
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_PNG_COLOR_TYPE_PALETTE,8,3     ; @PNG_COLOR_TYPE_PALETTE
	.no_dead_strip	_handle_small_bpp
.subsections_via_symbols
