	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function apng_do_inverse_blend
_apng_do_inverse_blend:                 ## @apng_do_inverse_blend
	.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	$168, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, -52(%rbp)                 ## 4-byte Spill
	movl	(%rsi), %eax
	movl	4(%rsi), %r8d
	movq	16(%rsi), %rbx
	movl	(%rbx), %ebx
	movq	%rbx, -72(%rbp)                 ## 8-byte Spill
	movq	16(%rdi), %rbx
	movl	(%rbx), %ebx
	testl	%r8d, %r8d
	movq	%rsi, -104(%rbp)                ## 8-byte Spill
	movq	%rbx, -120(%rbp)                ## 8-byte Spill
	movq	%rdx, -128(%rbp)                ## 8-byte Spill
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	je	LBB0_11
## %bb.1:
	movq	8(%rdi), %rdx
	movq	(%rdx), %r12
	movq	8(%rsi), %rdx
	movq	(%rdx), %r13
	xorl	%r14d, %r14d
	movl	%eax, %edx
	movl	%r8d, -44(%rbp)                 ## 4-byte Spill
	movl	$0, -48(%rbp)                   ## 4-byte Folded Spill
	movl	%eax, %edi
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	xorl	%r15d, %r15d
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_2:                                 ##   in Loop: Header=BB0_4 Depth=1
	movl	4(%rsi), %r8d
	movl	%eax, %edx
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movq	-120(%rbp), %rbx                ## 8-byte Reload
LBB0_3:                                 ##   in Loop: Header=BB0_4 Depth=1
	leaq	(%r13,%rdi,4), %r13
	leaq	(%r12,%rbx,4), %r12
	movl	-80(%rbp), %ecx                 ## 4-byte Reload
	movl	%ecx, %r15d
	cmpl	%r8d, %ecx
	jae	LBB0_12
LBB0_4:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_8 Depth 2
	leal	1(%r15), %ecx
	movl	%ecx, -80(%rbp)                 ## 4-byte Spill
	testl	%edx, %edx
	je	LBB0_10
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	xorl	%ebx, %ebx
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_8 Depth=2
	movl	-56(%rbp), %eax                 ## 4-byte Reload
	cmpl	%eax, %ebx
	cmovbl	%ebx, %eax
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	movl	%ecx, %eax
	cmpq	%rax, %rbx
	leaq	1(%rbx), %rbx
	cmovael	%ebx, %ecx
	movl	%ecx, -48(%rbp)                 ## 4-byte Spill
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	cmpl	%eax, %r15d
	cmovbl	%r15d, %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	cmpl	%r14d, %r15d
	cmovael	-80(%rbp), %r14d                ## 4-byte Folded Reload
LBB0_7:                                 ##   in Loop: Header=BB0_8 Depth=2
	movq	-104(%rbp), %rsi                ## 8-byte Reload
	movl	(%rsi), %eax
	cmpq	%rax, %rbx
	jae	LBB0_2
LBB0_8:                                 ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	%ebx, %eax
	movl	-52(%rbp), %edx                 ## 4-byte Reload
	imull	%edx, %eax
	leaq	(,%rax,4), %rdi
	addq	%r13, %rdi
	leaq	(%r12,%rax,4), %rsi
	callq	_memcmp
	testl	%eax, %eax
	jne	LBB0_6
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=2
	incq	%rbx
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_4 Depth=1
	xorl	%edx, %edx
	jmp	LBB0_3
LBB0_11:
	movl	$0, -48(%rbp)                   ## 4-byte Folded Spill
	movl	%eax, %ecx
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	movl	$0, -44(%rbp)                   ## 4-byte Folded Spill
	xorl	%r14d, %r14d
LBB0_12:
	movq	-128(%rbp), %r9                 ## 8-byte Reload
	movq	(%r9), %rcx
	movq	_APNG_BLEND_OP_SOURCE@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movl	-56(%rbp), %r11d                ## 4-byte Reload
	cmpl	%eax, %r11d
	jne	LBB0_15
## %bb.13:
	cmpl	$0, -48(%rbp)                   ## 4-byte Folded Reload
	jne	LBB0_15
## %bb.14:
	movl	$1, -48(%rbp)                   ## 4-byte Folded Spill
	xorl	%r11d, %r11d
	movl	$0, %r8d
	movl	$1, %r14d
	cmpq	%rdx, %rcx
	movq	-64(%rbp), %r10                 ## 8-byte Reload
	je	LBB0_17
	jmp	LBB0_21
LBB0_15:
	cmpq	%rdx, %rcx
	jne	LBB0_20
## %bb.16:
	movl	-44(%rbp), %r8d                 ## 4-byte Reload
	cmpl	%r8d, %r14d
	movq	-64(%rbp), %r10                 ## 8-byte Reload
	jbe	LBB0_60
LBB0_17:
	movl	%r14d, %r14d
	movq	%r14, -112(%rbp)                ## 8-byte Spill
	movq	8(%r10), %rax
	movq	(%rax), %r14
	movl	%r11d, %ecx
	movl	-52(%rbp), %eax                 ## 4-byte Reload
	imull	%eax, %ecx
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	movl	%r11d, -56(%rbp)                ## 4-byte Spill
	subl	%r11d, %edx
	imull	%eax, %edx
	movl	%edx, -52(%rbp)                 ## 4-byte Spill
	movl	%r8d, %eax
	movl	%r8d, %r15d
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
                                        ## kill: def $ebx killed $ebx killed $rbx def $rbx
	movl	%r8d, -44(%rbp)                 ## 4-byte Spill
	imull	%r8d, %ebx
	movq	-120(%rbp), %r13                ## 8-byte Reload
	shlq	$2, %r13
	shlq	$2, %rcx
	movq	%rcx, %r12
	.p2align	4, 0x90
LBB0_18:                                ## =>This Inner Loop Header: Depth=1
	movq	8(%rsi), %rax
	movq	(%rax), %rax
	addq	%r12, %rax
	movl	%ebx, %ecx
	leaq	(%rax,%rcx,4), %rsi
	movq	%r14, %rdi
	movl	-52(%rbp), %edx                 ## 4-byte Reload
	callq	_memcpy
	movq	-104(%rbp), %rsi                ## 8-byte Reload
	incq	%r15
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	addl	%eax, %ebx
	addq	%r13, %r14
	cmpq	%r15, -112(%rbp)                ## 8-byte Folded Reload
	jne	LBB0_18
## %bb.19:
	movq	-112(%rbp), %r14                ## 8-byte Reload
	movl	-56(%rbp), %r11d                ## 4-byte Reload
	movl	-44(%rbp), %r8d                 ## 4-byte Reload
	movq	-128(%rbp), %r9                 ## 8-byte Reload
	movq	-64(%rbp), %r10                 ## 8-byte Reload
	jmp	LBB0_60
LBB0_20:
	movq	-64(%rbp), %r10                 ## 8-byte Reload
	movl	-44(%rbp), %r8d                 ## 4-byte Reload
LBB0_21:
	movl	24(%rsi), %edx
	movl	$-1, %eax
	leal	-128(%rdx), %ecx
                                        ## implicit-def: $rbx
                                        ## kill: killed $rbx
                                        ## implicit-def: $rbx
                                        ## kill: killed $rbx
	cmpl	$3, %ecx
	jb	LBB0_35
## %bb.22:
                                        ## implicit-def: $rcx
                                        ## kill: killed $rcx
                                        ## implicit-def: $rcx
                                        ## kill: killed $rcx
	cmpl	$132, %edx
	je	LBB0_35
## %bb.23:
	cmpl	$131, %edx
	jne	LBB0_61
## %bb.24:
	movq	8(%rsi), %rax
	movq	8(%rax), %rax
	movl	$3, %ecx
	movq	%rax, -184(%rbp)                ## 8-byte Spill
	.p2align	4, 0x90
LBB0_25:                                ## =>This Inner Loop Header: Depth=1
	cmpl	$16777216, -12(%rax,%rcx,4)     ## imm = 0x1000000
	jb	LBB0_31
## %bb.26:                              ##   in Loop: Header=BB0_25 Depth=1
	cmpl	$16777216, -8(%rax,%rcx,4)      ## imm = 0x1000000
	jb	LBB0_32
## %bb.27:                              ##   in Loop: Header=BB0_25 Depth=1
	cmpl	$16777216, -4(%rax,%rcx,4)      ## imm = 0x1000000
	jb	LBB0_33
## %bb.28:                              ##   in Loop: Header=BB0_25 Depth=1
	cmpl	$16777216, (%rax,%rcx,4)        ## imm = 0x1000000
	jb	LBB0_34
## %bb.29:                              ##   in Loop: Header=BB0_25 Depth=1
	addq	$4, %rcx
	cmpq	$259, %rcx                      ## imm = 0x103
	jne	LBB0_25
## %bb.30:
	movl	$256, %eax                      ## imm = 0x100
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	jmp	LBB0_35
LBB0_31:
	addq	$-3, %rcx
	jmp	LBB0_34
LBB0_32:
	addq	$-2, %rcx
	jmp	LBB0_34
LBB0_33:
	decq	%rcx
LBB0_34:
	movq	%rcx, -88(%rbp)                 ## 8-byte Spill
LBB0_35:
	cmpl	%r8d, %r14d
	jbe	LBB0_60
## %bb.36:
	movl	%r11d, %ecx
	movl	-52(%rbp), %eax                 ## 4-byte Reload
	imull	%eax, %ecx
	movq	%rcx, -168(%rbp)                ## 8-byte Spill
	movl	%eax, %ecx
	movl	%r8d, %esi
	movq	%r14, -112(%rbp)                ## 8-byte Spill
	movl	%r14d, %eax
	movq	%rax, -176(%rbp)                ## 8-byte Spill
	movq	-120(%rbp), %rax                ## 8-byte Reload
                                        ## kill: def $eax killed $eax killed $rax
	imull	%r8d, %eax
	shlq	$2, %rcx
	movq	%rcx, -200(%rbp)                ## 8-byte Spill
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
                                        ## kill: def $ecx killed $ecx killed $rcx
	movl	%r8d, -44(%rbp)                 ## 4-byte Spill
	imull	%r8d, %ecx
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	subl	%r11d, %edx
	movl	%edx, -132(%rbp)                ## 4-byte Spill
	xorl	%edx, %edx
	movl	%r11d, -56(%rbp)                ## 4-byte Spill
	jmp	LBB0_38
	.p2align	4, 0x90
LBB0_37:                                ##   in Loop: Header=BB0_38 Depth=1
	movq	-192(%rbp), %rsi                ## 8-byte Reload
	incq	%rsi
	movq	-120(%rbp), %rdx                ## 8-byte Reload
	movq	-144(%rbp), %rax                ## 8-byte Reload
	addl	%edx, %eax
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movq	-152(%rbp), %rdi                ## 8-byte Reload
	addl	%edi, %ecx
	movq	-160(%rbp), %rdi                ## 8-byte Reload
	addl	%edi, %edx
	cmpq	-176(%rbp), %rsi                ## 8-byte Folded Reload
	movl	-56(%rbp), %r11d                ## 4-byte Reload
	je	LBB0_59
LBB0_38:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_43 Depth 2
	movq	%rsi, -192(%rbp)                ## 8-byte Spill
	movl	%eax, %eax
	movq	%rax, -144(%rbp)                ## 8-byte Spill
	movl	%ecx, %eax
	movq	%rax, -152(%rbp)                ## 8-byte Spill
	movl	%edx, %eax
	movq	%rax, -160(%rbp)                ## 8-byte Spill
	cmpl	%r11d, -48(%rbp)                ## 4-byte Folded Reload
	jbe	LBB0_37
## %bb.39:                              ##   in Loop: Header=BB0_38 Depth=1
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rax
	movq	(%rax), %rax
	movq	-104(%rbp), %rcx                ## 8-byte Reload
	movq	8(%rcx), %rcx
	movq	-168(%rbp), %rsi                ## 8-byte Reload
	leaq	(%rax,%rsi,4), %rdx
	leaq	(,%rsi,4), %rsi
	addq	(%rcx), %rsi
	movq	-144(%rbp), %rcx                ## 8-byte Reload
	leaq	(%rdx,%rcx,4), %rcx
	movq	%rcx, -96(%rbp)                 ## 8-byte Spill
	movq	-152(%rbp), %rcx                ## 8-byte Reload
	leaq	(%rsi,%rcx,4), %r13
	movq	-160(%rbp), %rcx                ## 8-byte Reload
	leaq	(%rax,%rcx,4), %rax
	movq	%rax, -208(%rbp)                ## 8-byte Spill
	movl	-132(%rbp), %r12d               ## 4-byte Reload
	xorl	%r15d, %r15d
	jmp	LBB0_43
LBB0_40:                                ##   in Loop: Header=BB0_43 Depth=2
	movl	(%rbx), %eax
	movq	-184(%rbp), %rcx                ## 8-byte Reload
	cmpl	$16777215, (%rcx,%rax,4)        ## imm = 0xFFFFFF
	ja	LBB0_58
	.p2align	4, 0x90
LBB0_41:                                ##   in Loop: Header=BB0_43 Depth=2
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	movq	%r14, %rsi
	movl	-52(%rbp), %edx                 ## 4-byte Reload
	callq	_memmove
LBB0_42:                                ##   in Loop: Header=BB0_43 Depth=2
	addq	-200(%rbp), %r15                ## 8-byte Folded Reload
	decl	%r12d
	je	LBB0_37
LBB0_43:                                ##   Parent Loop BB0_38 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rax,%r15), %rsi
	leaq	(%r15,%r13), %rdi
	movq	-208(%rbp), %rax                ## 8-byte Reload
	addq	%r15, %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	%rdi, %r14
	movq	%rsi, %rbx
	movl	-52(%rbp), %edx                 ## 4-byte Reload
	callq	_memcmp
	movq	-104(%rbp), %rcx                ## 8-byte Reload
	movl	24(%rcx), %ecx
	testl	%eax, %eax
	je	LBB0_48
## %bb.44:                              ##   in Loop: Header=BB0_43 Depth=2
	addl	$-128, %ecx
	cmpl	$4, %ecx
	ja	LBB0_41
## %bb.45:                              ##   in Loop: Header=BB0_43 Depth=2
	leaq	LJTI0_0(%rip), %rdx
	movslq	(%rdx,%rcx,4), %rax
	addq	%rdx, %rax
	jmpq	*%rax
LBB0_46:                                ##   in Loop: Header=BB0_43 Depth=2
	cmpl	$65535, 4(%r13,%r15)            ## imm = 0xFFFF
	je	LBB0_41
	jmp	LBB0_47
	.p2align	4, 0x90
LBB0_48:                                ##   in Loop: Header=BB0_43 Depth=2
	cmpl	$131, %ecx
	jne	LBB0_51
## %bb.49:                              ##   in Loop: Header=BB0_43 Depth=2
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	cmpq	$256, %rax                      ## imm = 0x100
	je	LBB0_58
## %bb.50:                              ##   in Loop: Header=BB0_43 Depth=2
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	jmp	LBB0_42
LBB0_51:                                ##   in Loop: Header=BB0_43 Depth=2
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	xorl	%esi, %esi
	movl	-52(%rbp), %edx                 ## 4-byte Reload
	callq	_memset
	jmp	LBB0_42
LBB0_52:                                ##   in Loop: Header=BB0_43 Depth=2
	cmpl	$65535, 12(%r13,%r15)           ## imm = 0xFFFF
	je	LBB0_41
	jmp	LBB0_53
LBB0_54:                                ##   in Loop: Header=BB0_43 Depth=2
	cmpl	$255, 12(%r13,%r15)
	je	LBB0_41
LBB0_53:                                ##   in Loop: Header=BB0_43 Depth=2
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	cmpl	$0, 12(%rax,%r15)
	je	LBB0_41
	jmp	LBB0_58
LBB0_56:                                ##   in Loop: Header=BB0_43 Depth=2
	cmpl	$255, 4(%r13,%r15)
	je	LBB0_41
LBB0_47:                                ##   in Loop: Header=BB0_43 Depth=2
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	cmpl	$0, 4(%rax,%r15)
	je	LBB0_41
LBB0_58:
	movl	$-1, %eax
	jmp	LBB0_61
LBB0_59:
	movq	-128(%rbp), %r9                 ## 8-byte Reload
	movq	-64(%rbp), %r10                 ## 8-byte Reload
	movq	-112(%rbp), %r14                ## 8-byte Reload
	movl	-44(%rbp), %r8d                 ## 4-byte Reload
LBB0_60:
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	subl	%r11d, %eax
	movl	%eax, (%r10)
	subl	%r8d, %r14d
	movl	%r14d, 4(%r10)
	movl	%eax, 8(%r9)
	movl	%r14d, 12(%r9)
	movl	%r11d, 16(%r9)
	movl	%r8d, 20(%r9)
	xorl	%eax, %eax
LBB0_61:
	addq	$168, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_46, LBB0_46-LJTI0_0
.set L0_0_set_52, LBB0_52-LJTI0_0
.set L0_0_set_54, LBB0_54-LJTI0_0
.set L0_0_set_40, LBB0_40-LJTI0_0
.set L0_0_set_56, LBB0_56-LJTI0_0
LJTI0_0:
	.long	L0_0_set_46
	.long	L0_0_set_52
	.long	L0_0_set_54
	.long	L0_0_set_40
	.long	L0_0_set_56
	.end_data_region
                                        ## -- End function
	.comm	_APNG_BLEND_OP_SOURCE,8,3       ## @APNG_BLEND_OP_SOURCE
	.no_dead_strip	_apng_do_inverse_blend
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function apng_do_inverse_blend
_apng_do_inverse_blend:                 ; @apng_do_inverse_blend
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #256
	.cfi_def_cfa_offset 256
	stp	x28, x27, [sp, #160]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #176]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #192]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #208]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #224]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #240]            ; 16-byte Folded Spill
	add	x29, sp, #240
	.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, x3
	str	x2, [sp, #80]                   ; 8-byte Folded Spill
	ldp	w8, w9, [x1]
	ldr	x10, [x1, #16]
	ldr	w21, [x10]
	ldr	x10, [x0, #16]
	ldr	w10, [x10]
	stur	x10, [x29, #-112]               ; 8-byte Folded Spill
	stur	x1, [x29, #-96]                 ; 8-byte Folded Spill
	str	x0, [sp, #72]                   ; 8-byte Folded Spill
	cbz	w9, LBB0_7
; %bb.1:
	mov	w27, #0
	mov	w26, #0
	mov	w25, #0
	ldr	x10, [x0, #8]
	ldr	x23, [x10]
	ldr	x10, [x1, #8]
	ldr	x24, [x10]
	mov	x10, x8
	mov	x28, x9
	mov	x19, x8
	str	x21, [sp, #104]                 ; 8-byte Folded Spill
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x24, x24, x21, lsl #2
	mov	x25, x20
	ldur	x11, [x29, #-112]               ; 8-byte Folded Reload
	add	x23, x23, x11, lsl #2
	cmp	w20, w9
	b.hs	LBB0_8
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_5 Depth 2
	add	w20, w25, #1
	cbz	w10, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x21, #0
LBB0_5:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mul	w8, w21, w22
	lsl	x8, x8, #2
	add	x0, x24, x8
	add	x1, x23, x8
	mov	x2, x22
	bl	_memcmp
	ldur	x1, [x29, #-96]                 ; 8-byte Folded Reload
	cmp	w21, w19
	csel	w8, w21, w19, lo
	add	x9, x21, #1
	cmp	x21, w26, uxtw
	csel	w10, w26, w9, lo
	cmp	w25, w28
	csel	w11, w25, w28, lo
	cmp	w25, w27
	csel	w12, w27, w20, lo
	cmp	w0, #0
	csel	w19, w8, w19, ne
	csinc	x21, x9, x21, eq
	csel	w26, w10, w26, ne
	csel	w28, w11, w28, ne
	csel	w27, w12, w27, ne
	ldr	w8, [x1]
	cmp	x21, x8
	b.lo	LBB0_5
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w9, [x1, #4]
	mov	x10, x8
	ldr	x21, [sp, #104]                 ; 8-byte Folded Reload
	b	LBB0_2
LBB0_7:
	mov	w26, #0
	mov	w28, #0
	mov	w27, #0
	mov	x19, x8
LBB0_8:
	ldr	x9, [sp, #80]                   ; 8-byte Folded Reload
	ldr	x9, [x9]
Lloh0:
	adrp	x10, _APNG_BLEND_OP_SOURCE@GOTPAGE
Lloh1:
	ldr	x10, [x10, _APNG_BLEND_OP_SOURCE@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x10]
	cmp	w19, w8
	ccmp	w26, #0, #0, eq
	b.eq	LBB0_11
; %bb.9:
	cmp	x9, x10
	b.ne	LBB0_14
; %bb.10:
	cmp	w27, w28
	b.hi	LBB0_12
	b	LBB0_44
LBB0_11:
	mov	w19, #0
	mov	w28, #0
	mov	w26, #1
	mov	w27, #1
	cmp	x9, x10
	b.ne	LBB0_14
LBB0_12:
	mov	w27, w27
	ldr	x8, [sp, #72]                   ; 8-byte Folded Reload
	ldr	x8, [x8, #8]
	ldr	x23, [x8]
	mul	w8, w19, w22
	stur	x8, [x29, #-104]                ; 8-byte Folded Spill
	sub	w8, w26, w19
	mul	w22, w8, w22
	mov	x20, x21
	mov	w21, w28
	mul	w24, w28, w20
	ldur	x8, [x29, #-112]                ; 8-byte Folded Reload
	lsl	x25, x8, #2
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x1, #8]
	ldr	x8, [x8]
	ldur	x9, [x29, #-104]                ; 8-byte Folded Reload
	add	x8, x8, x9, lsl #2
	add	x1, x8, w24, uxtw #2
	mov	x0, x23
	mov	x2, x22
	bl	_memcpy
	ldur	x1, [x29, #-96]                 ; 8-byte Folded Reload
	add	x21, x21, #1
	add	w24, w24, w20
	add	x23, x23, x25
	cmp	x27, x21
	b.ne	LBB0_13
	b	LBB0_44
LBB0_14:
	ldr	w8, [x1, #24]
	sub	w9, w8, #128
                                        ; implicit-def: $x10
                                        ; kill: killed $x10
                                        ; implicit-def: $x10
	cmp	w9, #3
	b.lo	LBB0_21
; %bb.15:
                                        ; implicit-def: $x9
                                        ; kill: killed $x9
                                        ; implicit-def: $x10
	cmp	w8, #132
	b.eq	LBB0_21
; %bb.16:
	cmp	w8, #131
	b.ne	LBB0_42
; %bb.17:
	mov	x9, #0
	ldr	x8, [x1, #8]
	ldr	x10, [x8, #8]
LBB0_18:                                ; =>This Inner Loop Header: Depth=1
	add	x8, x10, x9, lsl #2
	ldrb	w8, [x8, #3]
	cbz	w8, LBB0_43
; %bb.19:                               ;   in Loop: Header=BB0_18 Depth=1
	add	x9, x9, #1
	cmp	x9, #256
	b.ne	LBB0_18
; %bb.20:
	mov	w8, #256
	str	x8, [sp, #40]                   ; 8-byte Folded Spill
LBB0_21:
	cmp	w27, w28
	b.ls	LBB0_44
LBB0_22:
	str	x10, [sp, #24]                  ; 8-byte Folded Spill
	mov	w8, #0
	mul	w11, w19, w22
	mov	w10, w22
	mov	w12, w28
	mov	w9, w27
	str	x9, [sp, #16]                   ; 8-byte Folded Spill
	ldur	x9, [x29, #-112]                ; 8-byte Folded Reload
	mul	w9, w28, w9
	lsl	x10, x10, #2
	str	x10, [sp, #88]                  ; 8-byte Folded Spill
	mul	w10, w28, w21
	sub	w13, w26, w19
	str	w13, [sp, #12]                  ; 4-byte Folded Spill
	lsl	x11, x11, #2
	str	x11, [sp]                       ; 8-byte Folded Spill
	b	LBB0_24
LBB0_23:                                ;   in Loop: Header=BB0_24 Depth=1
	ldr	x12, [sp, #32]                  ; 8-byte Folded Reload
	add	x12, x12, #1
	ldur	x8, [x29, #-112]                ; 8-byte Folded Reload
	ldp	x10, x9, [sp, #56]              ; 16-byte Folded Reload
	add	w9, w9, w8
	add	w8, w10, w8
	ldr	x10, [sp, #48]                  ; 8-byte Folded Reload
	add	w10, w10, w21
	ldr	x11, [sp, #16]                  ; 8-byte Folded Reload
	cmp	x12, x11
	b.eq	LBB0_44
LBB0_24:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_29 Depth 2
	str	x12, [sp, #32]                  ; 8-byte Folded Spill
	mov	w9, w9
	mov	w8, w8
	stp	x8, x9, [sp, #56]               ; 16-byte Folded Spill
	mov	w8, w10
	str	x8, [sp, #48]                   ; 8-byte Folded Spill
	cmp	w26, w19
	b.ls	LBB0_23
; %bb.25:                               ;   in Loop: Header=BB0_24 Depth=1
	mov	x20, #0
	ldp	x12, x8, [sp, #64]              ; 16-byte Folded Reload
	ldr	x8, [x8, #8]
	ldr	x8, [x8]
	ldur	x9, [x29, #-96]                 ; 8-byte Folded Reload
	ldr	x9, [x9, #8]
	ldr	x9, [x9]
	ldr	x11, [sp]                       ; 8-byte Folded Reload
	add	x10, x8, x11
	add	x10, x10, x12, lsl #2
	str	x10, [sp, #112]                 ; 8-byte Folded Spill
	ldr	x10, [sp, #56]                  ; 8-byte Folded Reload
	add	x8, x8, x10, lsl #2
	str	x8, [sp, #96]                   ; 8-byte Folded Spill
	add	x8, x9, x11
	ldr	x9, [sp, #48]                   ; 8-byte Folded Reload
	add	x8, x8, x9, lsl #2
	str	x8, [sp, #120]                  ; 8-byte Folded Spill
	ldr	w23, [sp, #12]                  ; 4-byte Folded Reload
	b	LBB0_29
LBB0_26:                                ;   in Loop: Header=BB0_29 Depth=2
	ldr	w8, [x25]
	ldr	x9, [sp, #24]                   ; 8-byte Folded Reload
	add	x8, x9, x8, lsl #2
	ldrb	w8, [x8, #3]
	cbnz	w8, LBB0_42
LBB0_27:                                ;   in Loop: Header=BB0_29 Depth=2
	ldur	x0, [x29, #-104]                ; 8-byte Folded Reload
	mov	x1, x24
	mov	x2, x22
	bl	_memmove
LBB0_28:                                ;   in Loop: Header=BB0_29 Depth=2
	ldr	x8, [sp, #88]                   ; 8-byte Folded Reload
	add	x20, x20, x8
	subs	w23, w23, #1
	b.eq	LBB0_23
LBB0_29:                                ;   Parent Loop BB0_24 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [sp, #112]                  ; 8-byte Folded Reload
	add	x25, x8, x20
	ldr	x8, [sp, #96]                   ; 8-byte Folded Reload
	add	x8, x8, x20
	stur	x8, [x29, #-104]                ; 8-byte Folded Spill
	ldr	x8, [sp, #120]                  ; 8-byte Folded Reload
	add	x24, x8, x20
	mov	x0, x24
	mov	x1, x25
	mov	x2, x22
	bl	_memcmp
	ldur	x8, [x29, #-96]                 ; 8-byte Folded Reload
	ldr	w8, [x8, #24]
	cbz	w0, LBB0_33
; %bb.30:                               ;   in Loop: Header=BB0_29 Depth=2
	sub	w8, w8, #128
	cmp	w8, #4
	b.hi	LBB0_27
; %bb.31:                               ;   in Loop: Header=BB0_29 Depth=2
Lloh3:
	adrp	x11, lJTI0_0@PAGE
Lloh4:
	add	x11, x11, lJTI0_0@PAGEOFF
	adr	x9, LBB0_26
	ldrb	w10, [x11, x8]
	add	x9, x9, x10, lsl #2
	br	x9
LBB0_32:                                ;   in Loop: Header=BB0_29 Depth=2
	ldr	x8, [sp, #120]                  ; 8-byte Folded Reload
	add	x8, x8, x20
	ldr	w8, [x8, #4]
	mov	w9, #65535
	cmp	w8, w9
	b.eq	LBB0_27
	b	LBB0_41
LBB0_33:                                ;   in Loop: Header=BB0_29 Depth=2
	cmp	w8, #131
	b.ne	LBB0_36
; %bb.34:                               ;   in Loop: Header=BB0_29 Depth=2
	ldr	x8, [sp, #40]                   ; 8-byte Folded Reload
	cmp	x8, #256
	b.eq	LBB0_42
; %bb.35:                               ;   in Loop: Header=BB0_29 Depth=2
	ldur	x9, [x29, #-104]                ; 8-byte Folded Reload
	str	w8, [x9]
	b	LBB0_28
LBB0_36:                                ;   in Loop: Header=BB0_29 Depth=2
	ldur	x0, [x29, #-104]                ; 8-byte Folded Reload
	mov	w1, #0
	mov	x2, x22
	bl	_memset
	b	LBB0_28
LBB0_37:                                ;   in Loop: Header=BB0_29 Depth=2
	ldr	x8, [sp, #120]                  ; 8-byte Folded Reload
	add	x8, x8, x20
	ldr	w8, [x8, #12]
	mov	w9, #65535
	cmp	w8, w9
	b.eq	LBB0_27
	b	LBB0_39
LBB0_38:                                ;   in Loop: Header=BB0_29 Depth=2
	ldr	x8, [sp, #120]                  ; 8-byte Folded Reload
	add	x8, x8, x20
	ldr	w8, [x8, #12]
	cmp	w8, #255
	b.eq	LBB0_27
LBB0_39:                                ;   in Loop: Header=BB0_29 Depth=2
	ldr	x8, [sp, #112]                  ; 8-byte Folded Reload
	add	x8, x8, x20
	ldr	w8, [x8, #12]
	cbz	w8, LBB0_27
	b	LBB0_42
LBB0_40:                                ;   in Loop: Header=BB0_29 Depth=2
	ldr	x8, [sp, #120]                  ; 8-byte Folded Reload
	add	x8, x8, x20
	ldr	w8, [x8, #4]
	cmp	w8, #255
	b.eq	LBB0_27
LBB0_41:                                ;   in Loop: Header=BB0_29 Depth=2
	ldr	x8, [sp, #112]                  ; 8-byte Folded Reload
	add	x8, x8, x20
	ldr	w8, [x8, #4]
	cbz	w8, LBB0_27
LBB0_42:
	mov	w0, #-1
	b	LBB0_45
LBB0_43:
	str	x9, [sp, #40]                   ; 8-byte Folded Spill
	cmp	w27, w28
	b.hi	LBB0_22
LBB0_44:
	mov	w0, #0
	sub	w8, w26, w19
	sub	w9, w27, w28
	ldr	x10, [sp, #72]                  ; 8-byte Folded Reload
	stp	w8, w9, [x10]
	ldr	x10, [sp, #80]                  ; 8-byte Folded Reload
	stp	w8, w9, [x10, #8]
	stp	w19, w28, [x10, #16]
LBB0_45:
	ldp	x29, x30, [sp, #240]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #224]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #208]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #192]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #176]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #160]            ; 16-byte Folded Reload
	add	sp, sp, #256
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_32-LBB0_26)>>2
	.byte	(LBB0_37-LBB0_26)>>2
	.byte	(LBB0_38-LBB0_26)>>2
	.byte	(LBB0_26-LBB0_26)>>2
	.byte	(LBB0_40-LBB0_26)>>2
                                        ; -- End function
	.comm	_APNG_BLEND_OP_SOURCE,8,3       ; @APNG_BLEND_OP_SOURCE
	.no_dead_strip	_apng_do_inverse_blend
.subsections_via_symbols
