	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function postProcessScanlines
_postProcessScanlines:                  ## @postProcessScanlines
	.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	$280, %rsp                      ## imm = 0x118
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r15
	movl	%ecx, %ebx
	movl	%edx, %r12d
	movq	%rsi, %r14
	movq	%rdi, -312(%rbp)                ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	leaq	8(%r8), %rdi
	callq	_lodepng_get_bpp
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movl	%eax, %r13d
	cmpq	$0, (%r15)
	je	LBB0_3
## %bb.7:
	leaq	-80(%rbp), %rdi
	leaq	-112(%rbp), %rsi
	leaq	-176(%rbp), %rdx
	leaq	-240(%rbp), %rcx
	leaq	-304(%rbp), %r8
	movl	%r12d, %r9d
	pushq	%r13
	movq	%rbx, %r15
	pushq	%rbx
	callq	_Adam7_getpassvalues
	addq	$16, %rsp
	xorl	%ebx, %ebx
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_8 Depth=1
	addq	$4, %rbx
	cmpq	$28, %rbx
	je	LBB0_11
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	-240(%rbp,%rbx,2), %rdi
	addq	%r14, %rdi
	movq	-176(%rbp,%rbx,2), %rsi
	addq	%r14, %rsi
	movl	-80(%rbp,%rbx), %edx
	movl	-112(%rbp,%rbx), %ecx
	movl	%r13d, %r8d
	callq	_unfilter
	movl	%eax, %edi
	callq	_CERROR_TRY_RETURN
	cmpl	$7, %r13d
	ja	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movq	-304(%rbp,%rbx,2), %rdi
	addq	%r14, %rdi
	movq	-240(%rbp,%rbx,2), %rsi
	addq	%r14, %rsi
	movl	-80(%rbp,%rbx), %edx
	imull	%r13d, %edx
	leal	7(%rdx), %ecx
	andl	$-8, %ecx
	movl	-112(%rbp,%rbx), %r8d
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_removePaddingBits
	jmp	LBB0_10
LBB0_11:
	movq	-312(%rbp), %rdi                ## 8-byte Reload
	movq	%r14, %rsi
	movl	%r12d, %edx
	movl	%r15d, %ecx
	movl	%r13d, %r8d
	callq	_Adam7_deinterlace
	jmp	LBB0_12
LBB0_1:
	movl	$31, %eax
	jmp	LBB0_13
LBB0_3:
	cmpl	$7, %r13d
	ja	LBB0_6
## %bb.4:
	movl	%r13d, %r15d
	imull	%r12d, %r15d
	leal	7(%r15), %eax
	andl	$-8, %eax
	cmpl	%eax, %r15d
	jne	LBB0_5
LBB0_6:
	movq	-312(%rbp), %rdi                ## 8-byte Reload
	movq	%r14, %rsi
	movl	%r12d, %edx
	movl	%ebx, %ecx
	movl	%r13d, %r8d
	callq	_unfilter
	movl	%eax, %edi
	callq	_CERROR_TRY_RETURN
	jmp	LBB0_12
LBB0_5:
	movq	%r14, %rdi
	movq	%r14, %rsi
	movl	%r12d, %edx
	movl	%eax, %r12d
	movl	%ebx, %ecx
	movl	%r13d, %r8d
	callq	_unfilter
	movl	%eax, %edi
	callq	_CERROR_TRY_RETURN
	movq	-312(%rbp), %rdi                ## 8-byte Reload
	movq	%r14, %rsi
	movl	%r15d, %edx
	movl	%r12d, %ecx
	movl	%ebx, %r8d
	callq	_removePaddingBits
LBB0_12:
	xorl	%eax, %eax
LBB0_13:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_15
## %bb.14:
	addq	$280, %rsp                      ## imm = 0x118
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_postProcessScanlines
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function postProcessScanlines
_postProcessScanlines:                  ; @postProcessScanlines
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #384
	.cfi_def_cfa_offset 384
	stp	x28, x27, [sp, #288]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #304]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #320]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #336]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #352]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #368]            ; 16-byte Folded Spill
	add	x29, sp, #368
	.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	x24, x4
	mov	x19, x3
	mov	x22, x2
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-96]
	add	x0, x4, #8
	bl	_lodepng_get_bpp
	cbz	w0, LBB0_7
; %bb.1:
	mov	x23, x0
	ldr	x8, [x24]
	cbz	x8, LBB0_8
; %bb.2:
	str	x21, [sp, #8]                   ; 8-byte Folded Spill
	sub	x24, x29, #124
	sub	x25, x29, #152
	add	x26, sp, #152
	add	x27, sp, #88
	add	x28, sp, #24
	sub	x0, x29, #124
	sub	x1, x29, #152
	add	x2, sp, #152
	add	x3, sp, #88
	add	x4, sp, #24
	str	w22, [sp, #4]                   ; 4-byte Folded Spill
	mov	x5, x22
	str	w19, [sp, #20]                  ; 4-byte Folded Spill
	mov	x6, x19
	mov	x7, x23
	bl	_Adam7_getpassvalues
	mov	x21, #0
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x21, x21, #1
	cmp	x21, #7
	b.eq	LBB0_6
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	lsl	x22, x21, #3
	ldr	x8, [x27, x22]
	add	x0, x20, x8
	ldr	x8, [x26, x22]
	add	x1, x20, x8
	lsl	x19, x21, #2
	ldr	w2, [x24, x19]
	ldr	w3, [x25, x19]
	mov	x4, x23
	bl	_unfilter
	bl	_CERROR_TRY_RETURN
	cmp	w23, #7
	b.hi	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x28, x22]
	add	x0, x20, x8
	ldr	x8, [x27, x22]
	ldr	w9, [x24, x19]
	add	x1, x20, x8
	mul	w2, w9, w23
	add	w8, w2, #7
	and	w3, w8, #0xfffffff8
	ldr	w4, [x25, x19]
	bl	_removePaddingBits
	b	LBB0_3
LBB0_6:
	ldr	x0, [sp, #8]                    ; 8-byte Folded Reload
	mov	x1, x20
	ldr	w2, [sp, #4]                    ; 4-byte Folded Reload
	ldr	w3, [sp, #20]                   ; 4-byte Folded Reload
	mov	x4, x23
	bl	_Adam7_deinterlace
	b	LBB0_12
LBB0_7:
	mov	w0, #31
	b	LBB0_13
LBB0_8:
	cmp	w23, #7
	b.hi	LBB0_10
; %bb.9:
	mul	w24, w23, w22
	add	w8, w24, #7
	and	w25, w8, #0xfffffff8
	cmp	w24, w25
	b.ne	LBB0_11
LBB0_10:
	mov	x0, x21
	mov	x1, x20
	mov	x2, x22
	mov	x3, x19
	mov	x4, x23
	bl	_unfilter
	bl	_CERROR_TRY_RETURN
	b	LBB0_12
LBB0_11:
	mov	x0, x20
	mov	x1, x20
	mov	x2, x22
	mov	x3, x19
	mov	x4, x23
	bl	_unfilter
	bl	_CERROR_TRY_RETURN
	mov	x0, x21
	mov	x1, x20
	mov	x2, x24
	mov	x3, x25
	mov	x4, x19
	bl	_removePaddingBits
LBB0_12:
	mov	w0, #0
LBB0_13:
	ldur	x8, [x29, #-96]
Lloh3:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh4:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_15
; %bb.14:
	ldp	x29, x30, [sp, #368]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #352]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #336]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #320]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #304]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #288]            ; 16-byte Folded Reload
	add	sp, sp, #384
	ret
LBB0_15:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_postProcessScanlines
.subsections_via_symbols
