	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function preProcessScanlines
_preProcessScanlines:                   ## @preProcessScanlines
	.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	$328, %rsp                      ## imm = 0x148
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %rbx
	movl	%r8d, %r13d
	movl	%ecx, %r15d
	movq	%rdx, -336(%rbp)                ## 8-byte Spill
	movq	%rsi, -368(%rbp)                ## 8-byte Spill
	movq	%rdi, %r14
	movq	16(%rbp), %rax
	movq	%rax, -328(%rbp)                ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	leaq	8(%r9), %rdi
	movq	%rdi, -320(%rbp)                ## 8-byte Spill
	callq	_lodepng_get_bpp
	movl	%eax, %r12d
	cmpq	$0, (%rbx)
	movq	%r14, -344(%rbp)                ## 8-byte Spill
	movl	%r15d, -308(%rbp)               ## 4-byte Spill
	je	LBB0_1
## %bb.11:
	leaq	-80(%rbp), %rdi
	leaq	-112(%rbp), %rsi
	leaq	-176(%rbp), %rdx
	leaq	-240(%rbp), %rcx
	leaq	-304(%rbp), %r8
	movl	%r15d, %r9d
	pushq	%r12
	movq	%r13, %rbx
	pushq	%r13
	callq	_Adam7_getpassvalues
	addq	$16, %rsp
	movq	-120(%rbp), %rdi
	movq	-368(%rbp), %rax                ## 8-byte Reload
	movq	%rdi, (%rax)
	callq	_lodepng_malloc
	movq	%rax, %r15
	movq	%rax, (%r14)
	movq	-248(%rbp), %rdi
	callq	_lodepng_malloc
	movq	%rax, %r13
	testq	%rax, %rax
	sete	%al
	cmpq	$0, -248(%rbp)
	setne	%cl
	movl	$83, %r14d
	testb	%cl, %al
	jne	LBB0_22
## %bb.12:
	testq	%r15, %r15
	je	LBB0_22
## %bb.13:
	movq	%r13, %rdi
	movq	-336(%rbp), %rsi                ## 8-byte Reload
	movl	-308(%rbp), %edx                ## 4-byte Reload
	movl	%ebx, %ecx
	movl	%r12d, %r8d
	callq	_Adam7_interlace
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	cmpl	$7, %r12d
	ja	LBB0_20
## %bb.15:                              ##   in Loop: Header=BB0_14 Depth=1
	movq	-232(%rbp,%rbx,2), %rdi
	subq	-240(%rbp,%rbx,2), %rdi
	callq	_lodepng_malloc
	movq	%rax, %r15
	testq	%rax, %rax
	movq	-344(%rbp), %r14                ## 8-byte Reload
	jne	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_14 Depth=1
	movl	$83, %edi
	callq	_ERROR_BREAK
LBB0_17:                                ##   in Loop: Header=BB0_14 Depth=1
	movq	-304(%rbp,%rbx,2), %rsi
	addq	%r13, %rsi
	movl	-80(%rbp,%rbx), %ecx
	imull	%r12d, %ecx
	leal	7(%rcx), %edx
	andl	$-8, %edx
	movl	-112(%rbp,%rbx), %r8d
	movq	%r15, %rdi
                                        ## kill: def $ecx killed $ecx killed $rcx
	callq	_addPaddingBits
	movq	(%r14), %rdi
	addq	-176(%rbp,%rbx,2), %rdi
	movl	-80(%rbp,%rbx), %edx
	movl	-112(%rbp,%rbx), %ecx
	movq	%r15, %rsi
	movq	-320(%rbp), %r8                 ## 8-byte Reload
	movq	-328(%rbp), %r9                 ## 8-byte Reload
	callq	_filter
	movl	%eax, %r14d
	movq	%r15, %rdi
	callq	_lodepng_free
	testl	%r14d, %r14d
	je	LBB0_18
	jmp	LBB0_22
	.p2align	4, 0x90
LBB0_20:                                ##   in Loop: Header=BB0_14 Depth=1
	movq	-344(%rbp), %rax                ## 8-byte Reload
	movq	(%rax), %rdi
	addq	-176(%rbp,%rbx,2), %rdi
	movq	-240(%rbp,%rbx,2), %rsi
	addq	%r13, %rsi
	movl	-80(%rbp,%rbx), %edx
	movl	-112(%rbp,%rbx), %ecx
	movq	-320(%rbp), %r8                 ## 8-byte Reload
	movq	-328(%rbp), %r9                 ## 8-byte Reload
	callq	_filter
	movl	%eax, %r14d
	testl	%r14d, %r14d
	jne	LBB0_22
LBB0_18:                                ##   in Loop: Header=BB0_14 Depth=1
	addq	$4, %rbx
	cmpq	$28, %rbx
	jne	LBB0_14
## %bb.19:
	xorl	%r14d, %r14d
LBB0_22:
	movq	%r13, %rdi
LBB0_23:
	callq	_lodepng_free
LBB0_24:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_26
## %bb.25:
	movl	%r14d, %eax
	addq	$328, %rsp                      ## imm = 0x148
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	movl	%r12d, %eax
	imull	%r15d, %eax
	movq	%rax, -360(%rbp)                ## 8-byte Spill
	addl	$7, %eax
	movl	%eax, -348(%rbp)                ## 4-byte Spill
	movl	%eax, %ebx
	shrl	$3, %ebx
	imull	%r13d, %ebx
	leal	(%rbx,%r13), %edi
	movq	-368(%rbp), %r15                ## 8-byte Reload
	movq	%rdi, (%r15)
	callq	_lodepng_malloc
	movq	%rax, (%r14)
	testq	%rax, %rax
	je	LBB0_2
LBB0_3:
	cmpl	$7, %r12d
	movl	-348(%rbp), %r15d               ## 4-byte Reload
	ja	LBB0_9
## %bb.4:
	andl	$-8, %r15d
	cmpl	%r15d, -360(%rbp)               ## 4-byte Folded Reload
	jne	LBB0_5
LBB0_9:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	movl	-308(%rbp), %edx                ## 4-byte Reload
	jne	LBB0_26
## %bb.10:
	movq	%rax, %rdi
	movq	-336(%rbp), %rsi                ## 8-byte Reload
	movl	%r13d, %ecx
	movq	-320(%rbp), %r8                 ## 8-byte Reload
	movq	-328(%rbp), %r9                 ## 8-byte Reload
	addq	$328, %rsp                      ## imm = 0x148
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_filter                         ## TAILCALL
LBB0_2:
	movl	$83, %r14d
	cmpq	$0, (%r15)
	jne	LBB0_24
	jmp	LBB0_3
LBB0_5:
	movl	%ebx, %edi
	callq	_lodepng_malloc
	movq	%rax, %rbx
	testq	%rax, %rax
	movl	-308(%rbp), %r14d               ## 4-byte Reload
	je	LBB0_6
## %bb.7:
	movq	%rbx, %rdi
	movq	-336(%rbp), %rsi                ## 8-byte Reload
	movl	%r15d, %edx
	movq	-360(%rbp), %rcx                ## 8-byte Reload
                                        ## kill: def $ecx killed $ecx killed $rcx
	movl	%r13d, %r8d
	callq	_addPaddingBits
	movq	-344(%rbp), %rax                ## 8-byte Reload
	movq	(%rax), %rdi
	movq	%rbx, %rsi
	movl	%r14d, %edx
	movl	%r13d, %ecx
	movq	-320(%rbp), %r8                 ## 8-byte Reload
	movq	-328(%rbp), %r9                 ## 8-byte Reload
	callq	_filter
	movl	%eax, %r14d
	movq	%rbx, %rdi
	jmp	LBB0_23
LBB0_6:
	movl	$83, %r14d
	movq	%rbx, %rdi
	jmp	LBB0_23
LBB0_26:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_preProcessScanlines
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function preProcessScanlines
_preProcessScanlines:                   ; @preProcessScanlines
	.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	x19, x6
	mov	x27, x5
	mov	x24, x4
	mov	x25, x3
	mov	x28, x2
	mov	x23, x1
	mov	x20, 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, x5, #8
	str	x0, [sp, #16]                   ; 8-byte Folded Spill
	bl	_lodepng_get_bpp
	mov	x22, x0
	ldr	x8, [x27]
	cbz	x8, LBB0_3
; %bb.1:
	sub	x26, x29, #152
	sub	x0, x29, #124
	sub	x1, x29, #152
	add	x2, sp, #152
	add	x3, sp, #88
	add	x4, sp, #24
	mov	x5, x25
	mov	x6, x24
	mov	x7, x22
	bl	_Adam7_getpassvalues
	ldr	x0, [sp, #208]
	str	x0, [x23]
	bl	_lodepng_malloc
	mov	x27, x0
	str	x0, [x20]
	ldr	x0, [sp, #80]
	bl	_lodepng_malloc
	mov	x21, x0
	ldr	x8, [sp, #80]
	cmp	x8, #0
	ccmp	x0, #0, #0, ne
	ccmp	x27, #0, #4, ne
	b.ne	LBB0_8
; %bb.2:
	mov	w24, #83
	b	LBB0_16
LBB0_3:
	mov	x21, x28
	mul	w27, w22, w25
	add	w26, w27, #7
	lsr	w8, w26, #3
	mul	w28, w8, w24
	add	w0, w28, w24
	str	x0, [x23]
	bl	_lodepng_malloc
	str	x0, [x20]
	cbz	x0, LBB0_20
LBB0_4:
	cmp	w22, #7
	b.hi	LBB0_6
; %bb.5:
	and	w23, w26, #0xfffffff8
	cmp	w27, w23
	b.ne	LBB0_22
LBB0_6:
	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_25
; %bb.7:
	mov	x1, x21
	mov	x2, x25
	mov	x3, x24
	ldr	x4, [sp, #16]                   ; 8-byte Folded Reload
	mov	x5, x19
	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
	b	_filter
LBB0_8:
	mov	x0, x21
	mov	x1, x28
	mov	x2, x25
	mov	x3, x24
	mov	x4, x22
	bl	_Adam7_interlace
	mov	x27, #0
	add	x28, sp, #88
	str	x19, [sp, #8]                   ; 8-byte Folded Spill
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	lsl	x24, x27, #2
	cmp	w22, #7
	b.hi	LBB0_13
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	ldp	x9, x8, [x28]
	sub	x0, x8, x9
	bl	_lodepng_malloc
	mov	x25, x0
	cbnz	x0, LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	w0, #83
	bl	_ERROR_BREAK
LBB0_12:                                ;   in Loop: Header=BB0_9 Depth=1
	lsl	x26, x27, #3
	add	x8, sp, #24
	ldr	x8, [x8, x26]
	sub	x19, x29, #124
	ldr	w9, [x19, x24]
	add	x1, x21, x8
	mul	w3, w9, w22
	add	w8, w3, #7
	and	w2, w8, #0xfffffff8
	sub	x23, x29, #152
	ldr	w4, [x23, x24]
	mov	x0, x25
	bl	_addPaddingBits
	add	x8, sp, #152
	ldr	x8, [x8, x26]
	ldr	x9, [x20]
	add	x0, x9, x8
	ldr	w2, [x19, x24]
	sub	x26, x29, #152
	ldr	w3, [x23, x24]
	mov	x1, x25
	ldp	x19, x4, [sp, #8]               ; 16-byte Folded Reload
	mov	x5, x19
	bl	_filter
	mov	x24, x0
	mov	x0, x25
	bl	_lodepng_free
	cbz	w24, LBB0_14
	b	LBB0_16
LBB0_13:                                ;   in Loop: Header=BB0_9 Depth=1
	ldr	x8, [x20]
	add	x9, sp, #152
	ldr	x9, [x9, x27, lsl #3]
	add	x0, x8, x9
	ldr	x8, [x28]
	add	x1, x21, x8
	sub	x8, x29, #124
	ldr	w2, [x8, x24]
	ldr	w3, [x26, x24]
	ldr	x4, [sp, #16]                   ; 8-byte Folded Reload
	mov	x5, x19
	bl	_filter
	mov	x24, x0
	cbnz	w24, LBB0_16
LBB0_14:                                ;   in Loop: Header=BB0_9 Depth=1
	add	x27, x27, #1
	add	x28, x28, #8
	cmp	x27, #7
	b.ne	LBB0_9
; %bb.15:
	mov	w24, #0
LBB0_16:
	mov	x0, x21
LBB0_17:
	bl	_lodepng_free
LBB0_18:
	ldur	x8, [x29, #-96]
Lloh6:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh7:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_25
; %bb.19:
	mov	x0, x24
	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_20:
	ldr	x8, [x23]
	cbz	x8, LBB0_4
; %bb.21:
	mov	w24, #83
	b	LBB0_18
LBB0_22:
	mov	x0, x28
	bl	_lodepng_malloc
	mov	x22, x0
	cbz	x0, LBB0_24
; %bb.23:
	mov	x0, x22
	mov	x1, x21
	mov	x2, x23
	mov	x3, x27
	mov	x4, x24
	bl	_addPaddingBits
	ldr	x0, [x20]
	mov	x1, x22
	mov	x2, x25
	mov	x3, x24
	ldr	x4, [sp, #16]                   ; 8-byte Folded Reload
	mov	x5, x19
	bl	_filter
	mov	x24, x0
	mov	x0, x22
	b	LBB0_17
LBB0_24:
	mov	w24, #83
	mov	x0, x22
	b	LBB0_17
LBB0_25:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_preProcessScanlines
.subsections_via_symbols
