	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function UnfilterImage
_UnfilterImage:                         ## @UnfilterImage
	.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	$120, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -64(%rbp)
	movaps	%xmm0, -80(%rbp)
	movq	_qfalse@GOTPCREL(%rip), %rax
	testq	%rdi, %rdi
	je	LBB0_26
## %bb.1:
	movq	%rcx, %r13
	testq	%rcx, %rcx
	je	LBB0_26
## %bb.2:
	movq	_qtrue@GOTPCREL(%rip), %rax
	testq	%rsi, %rsi
	jle	LBB0_26
## %bb.3:
	movq	%rdx, %r8
	testq	%rdx, %rdx
	je	LBB0_26
## %bb.4:
	movq	%r8, %rax
	orq	%r13, %rax
	shrq	$32, %rax
	je	LBB0_5
## %bb.6:
	movq	%r8, %rax
	cqto
	idivq	%r13
	jmp	LBB0_7
LBB0_5:
	movl	%r8d, %eax
	xorl	%edx, %edx
	divl	%r13d
                                        ## kill: def $eax killed $eax def $rax
LBB0_7:
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	notq	%r8
	leaq	(,%r13,4), %rax
	movq	%rax, -120(%rbp)                ## 8-byte Spill
	xorl	%eax, %eax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	leaq	LJTI0_0(%rip), %rbx
	movq	%r8, -128(%rbp)                 ## 8-byte Spill
	movq	%rsi, -112(%rbp)                ## 8-byte Spill
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_24:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	-88(%rbp), %rdx                 ## 8-byte Reload
	incq	%rdx
	movq	%rax, %rdi
	movq	-112(%rbp), %rsi                ## 8-byte Reload
	movq	%rdx, %rax
	movq	%rdx, -88(%rbp)                 ## 8-byte Spill
	cmpq	%rsi, %rdx
	je	LBB0_25
LBB0_8:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_10 Depth 2
                                        ##       Child Loop BB0_14 Depth 3
	leaq	4(%rdi), %rax
	cmpq	$0, -96(%rbp)                   ## 8-byte Folded Reload
	jle	LBB0_24
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movl	(%rdi), %edi
	cmpq	$0, -88(%rbp)                   ## 8-byte Folded Reload
	leaq	(%rax,%r8,4), %r9
	leaq	-80(%rbp), %rdx
	cmoveq	%rdx, %r9
	addl	$-128, %edi
	xorl	%esi, %esi
	movq	%rdx, -104(%rbp)                ## 8-byte Spill
	movq	%rdx, %r11
	movq	%rdi, -144(%rbp)                ## 8-byte Spill
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_23:                                ##   in Loop: Header=BB0_10 Depth=2
	movq	-120(%rbp), %rax                ## 8-byte Reload
	addq	%r12, %rax
	cmpq	$0, -88(%rbp)                   ## 8-byte Folded Reload
	movq	-128(%rbp), %r8                 ## 8-byte Reload
	leaq	(%r12,%r8,4), %rdx
	movq	-104(%rbp), %rsi                ## 8-byte Reload
	cmovneq	%rdx, %rsi
	movq	%rsi, -104(%rbp)                ## 8-byte Spill
	leaq	(%rax,%r8,4), %rdx
	cmovneq	%rdx, %r9
	movq	-136(%rbp), %rsi                ## 8-byte Reload
	incq	%rsi
	movq	%r12, %r11
	cmpq	-96(%rbp), %rsi                 ## 8-byte Folded Reload
	je	LBB0_24
LBB0_10:                                ##   Parent Loop BB0_8 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_14 Depth 3
	movq	%rsi, -136(%rbp)                ## 8-byte Spill
	movq	%rax, %r12
	testq	%r13, %r13
	jle	LBB0_23
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=2
	cmpl	$4, %edi
	ja	LBB0_12
## %bb.13:                              ##   in Loop: Header=BB0_10 Depth=2
	movq	%r12, %r14
	xorl	%r15d, %r15d
	movq	%r9, -160(%rbp)                 ## 8-byte Spill
	movq	%r11, -152(%rbp)                ## 8-byte Spill
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_14 Depth=3
	movl	(%r11,%r15,4), %eax
LBB0_17:                                ##   in Loop: Header=BB0_14 Depth=3
	leaq	(%r12,%r15,4), %rdx
	movl	(%r14), %esi
LBB0_21:                                ##   in Loop: Header=BB0_14 Depth=3
	addl	%esi, %eax
	movl	%eax, (%rdx)
LBB0_22:                                ##   in Loop: Header=BB0_14 Depth=3
	incq	%r15
	addq	$4, %r14
	cmpq	%r15, %r13
	je	LBB0_23
LBB0_14:                                ##   Parent Loop BB0_8 Depth=1
                                        ##     Parent Loop BB0_10 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	cmpl	$4, %edi
	ja	LBB0_20
## %bb.15:                              ##   in Loop: Header=BB0_14 Depth=3
	movslq	(%rbx,%rdi,4), %rax
	addq	%rbx, %rax
	jmpq	*%rax
LBB0_18:                                ##   in Loop: Header=BB0_14 Depth=3
	movl	(%r9,%r15,4), %eax
	jmp	LBB0_17
LBB0_19:                                ##   in Loop: Header=BB0_14 Depth=3
	movl	(%r9,%r15,4), %eax
	addl	(%r11,%r15,4), %eax
	movl	%eax, %esi
	shrl	$31, %esi
	addl	%eax, %esi
	sarl	%esi
	leaq	(%r12,%r15,4), %rdx
	movl	(%r14), %eax
	jmp	LBB0_21
LBB0_20:                                ##   in Loop: Header=BB0_14 Depth=3
	movl	(%r11,%r15,4), %edi
	movl	(%r9,%r15,4), %esi
	movq	-104(%rbp), %rax                ## 8-byte Reload
	movl	(%rax,%r15,4), %edx
	callq	_PredictPaeth
	movq	-152(%rbp), %r11                ## 8-byte Reload
	movq	-144(%rbp), %rdi                ## 8-byte Reload
	movq	-160(%rbp), %r9                 ## 8-byte Reload
	movl	(%r14), %esi
	movq	%r14, %rdx
	jmp	LBB0_21
LBB0_12:
	movq	_qfalse@GOTPCREL(%rip), %rax
LBB0_26:
	movl	(%rax), %eax
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_28
## %bb.27:
	addq	$120, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_25:
	movq	_qtrue@GOTPCREL(%rip), %rax
	jmp	LBB0_26
LBB0_28:
	callq	___stack_chk_fail
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_18, LBB0_18-LJTI0_0
.set L0_0_set_16, LBB0_16-LJTI0_0
.set L0_0_set_20, LBB0_20-LJTI0_0
.set L0_0_set_22, LBB0_22-LJTI0_0
.set L0_0_set_19, LBB0_19-LJTI0_0
LJTI0_0:
	.long	L0_0_set_18
	.long	L0_0_set_16
	.long	L0_0_set_20
	.long	L0_0_set_22
	.long	L0_0_set_19
	.end_data_region
                                        ## -- End function
	.comm	_qfalse,4,2                     ## @qfalse
	.comm	_qtrue,4,2                      ## @qtrue
	.no_dead_strip	_UnfilterImage
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function UnfilterImage
_UnfilterImage:                         ; @UnfilterImage
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #192
	.cfi_def_cfa_offset 192
	stp	x28, x27, [sp, #96]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #112]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #128]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #144]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #160]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #176]            ; 16-byte Folded Spill
	add	x29, sp, #176
	.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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #88]
	movi.2d	v0, #0000000000000000
	stp	q0, q0, [sp, #48]
Lloh3:
	adrp	x8, _qfalse@GOTPAGE
Lloh4:
	ldr	x8, [x8, _qfalse@GOTPAGEOFF]
	cbz	x0, LBB0_22
; %bb.1:
	cbz	x3, LBB0_22
; %bb.2:
Lloh5:
	adrp	x8, _qtrue@GOTPAGE
Lloh6:
	ldr	x8, [x8, _qtrue@GOTPAGEOFF]
	cmp	x1, #1
	b.lt	LBB0_22
; %bb.3:
	cbz	x2, LBB0_22
; %bb.4:
	mvn	x8, x2
	str	x8, [sp, #16]                   ; 8-byte Folded Spill
	lsl	x8, x3, #2
	stp	x1, x8, [sp]                    ; 16-byte Folded Spill
Lloh7:
	adrp	x26, lJTI0_0@PAGE
Lloh8:
	add	x26, x26, lJTI0_0@PAGEOFF
	sdiv	x8, x2, x3
	stp	x8, xzr, [sp, #24]              ; 16-byte Folded Spill
	str	x3, [sp, #40]                   ; 8-byte Folded Spill
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [sp, #32]                   ; 8-byte Folded Reload
	add	x8, x8, #1
	ldr	x1, [sp]                        ; 8-byte Folded Reload
	str	x8, [sp, #32]                   ; 8-byte Folded Spill
	cmp	x8, x1
Lloh9:
	adrp	x8, _qtrue@GOTPAGE
Lloh10:
	ldr	x8, [x8, _qtrue@GOTPAGEOFF]
	b.eq	LBB0_22
LBB0_6:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_9 Depth 2
                                        ;       Child Loop BB0_16 Depth 3
	ldr	w8, [x0], #4
	ldr	x9, [sp, #24]                   ; 8-byte Folded Reload
	cmp	x9, #1
	b.lt	LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x28, #0
	add	x24, sp, #48
	ldr	x9, [sp, #16]                   ; 8-byte Folded Reload
	add	x9, x0, x9, lsl #2
	ldr	x10, [sp, #32]                  ; 8-byte Folded Reload
	cmp	x10, #0
	csel	x20, x24, x9, eq
	sub	w21, w8, #128
	add	x23, sp, #48
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=2
	ldr	x8, [sp, #16]                   ; 8-byte Folded Reload
	lsl	x8, x8, #2
	add	x9, x25, x8
	ldp	x10, x3, [sp, #32]              ; 16-byte Folded Reload
	cmp	x10, #0
	csel	x24, x24, x9, eq
	ldr	x9, [sp, #8]                    ; 8-byte Folded Reload
	add	x0, x25, x9
	add	x8, x0, x8
	csel	x20, x20, x8, eq
	add	x28, x28, #1
	mov	x23, x25
	ldr	x8, [sp, #24]                   ; 8-byte Folded Reload
	cmp	x28, x8
	b.eq	LBB0_5
LBB0_9:                                 ;   Parent Loop BB0_6 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_16 Depth 3
	mov	x25, x0
	cmp	x3, #1
	b.lt	LBB0_8
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=2
	cmp	w21, #4
	b.hi	LBB0_21
; %bb.11:                               ;   in Loop: Header=BB0_9 Depth=2
	mov	x27, #0
	mov	x22, #0
	ldr	x19, [sp, #40]                  ; 8-byte Folded Reload
	b	LBB0_16
LBB0_12:                                ;   in Loop: Header=BB0_16 Depth=3
	ldr	w0, [x23, x27]
LBB0_13:                                ;   in Loop: Header=BB0_16 Depth=3
	ldr	w8, [x25, x27]
	add	x9, x25, x22, lsl #2
LBB0_14:                                ;   in Loop: Header=BB0_16 Depth=3
	add	w8, w8, w0
	str	w8, [x9]
LBB0_15:                                ;   in Loop: Header=BB0_16 Depth=3
	add	x22, x22, #1
	add	x27, x27, #4
	subs	x19, x19, #1
	b.eq	LBB0_8
LBB0_16:                                ;   Parent Loop BB0_6 Depth=1
                                        ;     Parent Loop BB0_9 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	cmp	w21, #4
	b.hi	LBB0_20
; %bb.17:                               ;   in Loop: Header=BB0_16 Depth=3
	adr	x8, LBB0_12
	ldrb	w9, [x26, x21]
	add	x8, x8, x9, lsl #2
	br	x8
LBB0_18:                                ;   in Loop: Header=BB0_16 Depth=3
	ldr	w0, [x20, x27]
	b	LBB0_13
LBB0_19:                                ;   in Loop: Header=BB0_16 Depth=3
	ldr	w8, [x23, x27]
	ldr	w9, [x20, x27]
	add	w8, w9, w8
	cmp	w8, #0
	cinc	w8, w8, lt
	asr	w8, w8, #1
	add	x9, x25, x22, lsl #2
	ldr	w0, [x25, x27]
	b	LBB0_14
LBB0_20:                                ;   in Loop: Header=BB0_16 Depth=3
	ldr	w0, [x23, x27]
	ldr	w1, [x20, x27]
	ldr	w2, [x24, x27]
	bl	_PredictPaeth
	add	x9, x25, x27
	ldr	w8, [x9]
	b	LBB0_14
LBB0_21:
Lloh11:
	adrp	x8, _qfalse@GOTPAGE
Lloh12:
	ldr	x8, [x8, _qfalse@GOTPAGEOFF]
LBB0_22:
	ldr	w0, [x8]
	ldr	x8, [sp, #88]
Lloh13:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh14:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_24
; %bb.23:
	ldp	x29, x30, [sp, #176]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #160]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #144]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #128]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #112]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #96]             ; 16-byte Folded Reload
	add	sp, sp, #192
	ret
LBB0_24:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_18-LBB0_12)>>2
	.byte	(LBB0_12-LBB0_12)>>2
	.byte	(LBB0_20-LBB0_12)>>2
	.byte	(LBB0_15-LBB0_12)>>2
	.byte	(LBB0_19-LBB0_12)>>2
                                        ; -- End function
	.comm	_qfalse,4,2                     ; @qfalse
	.comm	_qtrue,4,2                      ; @qtrue
	.no_dead_strip	_UnfilterImage
.subsections_via_symbols
