	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lodepng_deflatev
_lodepng_deflatev:                      ## @lodepng_deflatev
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, -88(%rbp)                 ## 8-byte Spill
	movq	%rdi, -80(%rbp)                 ## 8-byte Spill
	movq	$0, -96(%rbp)
	movl	(%rcx), %eax
	movl	$61, %r13d
	cmpl	$2, %eax
	jg	LBB0_19
## %bb.1:
	movq	%rdx, %rdi
	cmpl	$1, %eax
	je	LBB0_4
## %bb.2:
	testl	%eax, %eax
	jne	LBB0_3
## %bb.20:
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	movq	-88(%rbp), %rsi                 ## 8-byte Reload
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_deflateNoCompression           ## TAILCALL
LBB0_3:
	movq	%rdx, %rax
	shrq	$3, %rax
	cmpq	$65528, %rax                    ## imm = 0xFFF8
	movl	$65527, %edi                    ## imm = 0xFFF7
	cmovaeq	%rax, %rdi
	addq	$8, %rdi
LBB0_4:
	leaq	(%rdx,%rdi), %rsi
	decq	%rsi
	movq	%rsi, %rax
	orq	%rdi, %rax
	shrq	$32, %rax
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	je	LBB0_5
## %bb.6:
	movq	%rsi, %rax
	xorl	%edx, %edx
	divq	%rdi
	jmp	LBB0_7
LBB0_5:
	movl	%esi, %eax
	xorl	%edx, %edx
	divl	%edi
                                        ## kill: def $eax killed $eax def $rax
LBB0_7:
	cmpq	%rsi, %rdi
	movl	$1, %r12d
	cmovbeq	%rax, %r12
	movl	4(%rcx), %esi
	movq	%rdi, %r14
	leaq	-44(%rbp), %rdi
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	callq	_hash_init
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movl	%eax, %r13d
	testl	%eax, %eax
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	jne	LBB0_19
## %bb.8:
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	testq	%r12, %r12
	je	LBB0_9
## %bb.10:
	movl	$1, %r14d
	xorl	%r8d, %r8d
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	xorl	%eax, %eax
	cmpq	%r14, %r12
	sete	%al
	leaq	(%rsi,%r8), %r15
	cmpq	%rdx, %r15
	movq	%rdx, %r9
	cmovbq	%r15, %r9
	movl	(%rbx), %ecx
	cmpl	$2, %ecx
	je	LBB0_14
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	movl	$0, %r13d
	cmpl	$1, %ecx
	jne	LBB0_16
## %bb.13:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	leaq	-96(%rbp), %rsi
	leaq	-44(%rbp), %rdx
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	pushq	%rax
	pushq	%rbx
	callq	_deflateFixed
	jmp	LBB0_15
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_11 Depth=1
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	leaq	-96(%rbp), %rsi
	leaq	-44(%rbp), %rdx
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	pushq	%rax
	pushq	%rbx
	callq	_deflateDynamic
LBB0_15:                                ##   in Loop: Header=BB0_11 Depth=1
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	addq	$16, %rsp
	movl	%eax, %r13d
LBB0_16:                                ##   in Loop: Header=BB0_11 Depth=1
	cmpq	%r12, %r14
	jae	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_11 Depth=1
	incq	%r14
	movq	%r15, %r8
	testl	%r13d, %r13d
	je	LBB0_11
	jmp	LBB0_18
LBB0_9:
	xorl	%r13d, %r13d
LBB0_18:
	leaq	-44(%rbp), %rdi
	callq	_hash_cleanup
LBB0_19:
	movl	%r13d, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_lodepng_deflatev
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lodepng_deflatev
_lodepng_deflatev:                      ; @lodepng_deflatev
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	str	xzr, [sp, #8]
	ldr	w8, [x3]
	cmp	w8, #2
	b.le	LBB0_2
; %bb.1:
	mov	w24, #61
	b	LBB0_18
LBB0_2:
	mov	x21, x3
	mov	x19, x2
	mov	x20, x1
	mov	x22, x0
	mov	x25, x2
	cmp	w8, #1
	b.eq	LBB0_6
; %bb.3:
	cbnz	w8, LBB0_5
; %bb.4:
	mov	x0, x22
	mov	x1, x20
	mov	x2, x19
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_deflateNoCompression
LBB0_5:
	lsr	x8, x19, #3
	mov	w9, #65527
	cmp	x8, x9
	csel	x8, x8, x9, hi
	add	x25, x8, #8
LBB0_6:
	sub	x8, x19, #1
	adds	x8, x8, x25
	udiv	x8, x8, x25
	csinc	x26, x8, xzr, lo
	ldr	w1, [x21, #4]
	add	x0, sp, #4
	bl	_hash_init
	mov	x24, x0
	cbnz	w0, LBB0_18
; %bb.7:
	cbz	x26, LBB0_16
; %bb.8:
	mov	x23, #0
	mov	w27, #1
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	cmp	x26, x27
	cset	w7, eq
	add	x8, x25, x23
	cmp	x8, x19
	csel	x5, x8, x19, lo
	ldr	w8, [x21]
	cmp	w8, #2
	b.eq	LBB0_12
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	cmp	w8, #1
	b.ne	LBB0_14
; %bb.11:                               ;   in Loop: Header=BB0_9 Depth=1
	add	x1, sp, #8
	add	x2, sp, #4
	mov	x0, x22
	mov	x3, x20
	mov	x4, x23
	mov	x6, x21
	bl	_deflateFixed
	b	LBB0_13
LBB0_12:                                ;   in Loop: Header=BB0_9 Depth=1
	add	x1, sp, #8
	add	x2, sp, #4
	mov	x0, x22
	mov	x3, x20
	mov	x4, x23
	mov	x6, x21
	bl	_deflateDynamic
LBB0_13:                                ;   in Loop: Header=BB0_9 Depth=1
	mov	x24, x0
	cmp	x27, x26
	b.lo	LBB0_15
	b	LBB0_17
LBB0_14:                                ;   in Loop: Header=BB0_9 Depth=1
	mov	w24, #0
	cmp	x27, x26
	b.hs	LBB0_17
LBB0_15:                                ;   in Loop: Header=BB0_9 Depth=1
	add	x27, x27, #1
	add	x23, x23, x25
	cbz	w24, LBB0_9
	b	LBB0_17
LBB0_16:
	mov	w24, #0
LBB0_17:
	add	x0, sp, #4
	bl	_hash_cleanup
LBB0_18:
	mov	x0, x24
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_lodepng_deflatev
.subsections_via_symbols
