	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_lodepng_zlib_compress          ## -- Begin function lodepng_zlib_compress
	.p2align	4, 0x90
_lodepng_zlib_compress:                 ## @lodepng_zlib_compress
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, -48(%rbp)                  ## 8-byte Spill
	movq	%rcx, %r14
	movq	%rdx, %r13
	movq	%rsi, %r15
	movq	%rdi, %r12
	movq	$0, -64(%rbp)
	movq	$0, -56(%rbp)
	movq	(%rdi), %rsi
	movq	(%r15), %rdx
	leaq	-80(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_ucvector_init_buffer
	movq	%rbx, %rdi
	movl	$120, %esi
	callq	_ucvector_push_back
	movq	%rbx, %rdi
	movq	%r14, %rbx
	movl	$1, %esi
	callq	_ucvector_push_back
	leaq	-64(%rbp), %rdi
	leaq	-56(%rbp), %rsi
	movq	%r13, %rdx
	movq	%r14, %rcx
	movq	-48(%rbp), %r8                  ## 8-byte Reload
	callq	_deflate
	movl	%eax, %r14d
	testl	%eax, %eax
	jne	LBB0_5
## %bb.1:
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
	movq	%r13, %rdi
	movl	%ebx, %esi
	callq	_adler32
	movl	%eax, %r12d
	cmpq	$0, -56(%rbp)
	je	LBB0_4
## %bb.2:
	xorl	%ebx, %ebx
	leaq	-80(%rbp), %r13
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	-64(%rbp), %rax
	movzbl	(%rax,%rbx), %esi
	movq	%r13, %rdi
	callq	_ucvector_push_back
	incq	%rbx
	cmpq	-56(%rbp), %rbx
	jb	LBB0_3
LBB0_4:
	movq	-64(%rbp), %rdi
	callq	_lodepng_free
	leaq	-80(%rbp), %rdi
	movl	%r12d, %esi
	callq	_lodepng_add32bitInt
	movq	-48(%rbp), %r12                 ## 8-byte Reload
LBB0_5:
	movq	-80(%rbp), %rax
	movq	%rax, (%r12)
	movq	-72(%rbp), %rax
	movq	%rax, (%r15)
	movl	%r14d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_lodepng_zlib_compress          ; -- Begin function lodepng_zlib_compress
	.p2align	2
_lodepng_zlib_compress:                 ; @lodepng_zlib_compress
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x21, x4
	mov	x22, x3
	mov	x23, x2
	mov	x19, x1
	mov	x20, x0
	stp	xzr, xzr, [sp]
	ldr	x1, [x0]
	ldr	x2, [x19]
	add	x0, sp, #16
	bl	_ucvector_init_buffer
	add	x0, sp, #16
	mov	w1, #120
	bl	_ucvector_push_back
	add	x0, sp, #16
	mov	w1, #1
	bl	_ucvector_push_back
	add	x0, sp, #8
	mov	x1, sp
	mov	x2, x23
	mov	x3, x22
	mov	x4, x21
	bl	_deflate
	mov	x21, x0
	cbnz	w0, LBB0_5
; %bb.1:
	mov	x0, x23
	mov	x1, x22
	bl	_adler32
	mov	x22, x0
	ldr	x8, [sp]
	cbz	x8, LBB0_4
; %bb.2:
	mov	x23, #0
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [sp, #8]
	ldrb	w1, [x8, x23]
	add	x0, sp, #16
	bl	_ucvector_push_back
	add	x23, x23, #1
	ldr	x8, [sp]
	cmp	x23, x8
	b.lo	LBB0_3
LBB0_4:
	ldr	x0, [sp, #8]
	bl	_lodepng_free
	add	x0, sp, #16
	mov	x1, x22
	bl	_lodepng_add32bitInt
LBB0_5:
	ldp	x8, x9, [sp, #16]
	str	x8, [x20]
	str	x9, [x19]
	mov	x0, x21
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
