	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_lodepng_zlib_decompress        ## -- Begin function lodepng_zlib_decompress
	.p2align	4, 0x90
_lodepng_zlib_decompress:               ## @lodepng_zlib_decompress
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	$53, %eax
	cmpq	$2, %rcx
	jb	LBB0_9
## %bb.1:
	movq	%rcx, %r12
	movq	%rdx, %rbx
	movq	%rsi, %r14
	movzbl	(%rdx), %edx
	movl	%edx, %eax
	shll	$8, %eax
	movzbl	1(%rbx), %ecx
	orl	%ecx, %eax
	imull	$-1108378657, %eax, %esi        ## imm = 0xBDEF7BDF
	movl	$24, %eax
	cmpl	$138547332, %esi                ## imm = 0x8421084
	jbe	LBB0_2
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movl	%edx, %esi
	andl	$15, %esi
	movl	$25, %eax
	cmpl	$8, %esi
	jne	LBB0_9
## %bb.3:
	testb	%dl, %dl
	js	LBB0_9
## %bb.4:
	movl	$26, %eax
	testb	$32, %cl
	jne	LBB0_9
## %bb.5:
	movq	%r8, %r13
	movq	%rdi, %r15
	leaq	2(%rbx), %rdx
	leaq	-2(%r12), %rcx
	movq	%r14, %rsi
	callq	_inflate
	testl	%eax, %eax
	jne	LBB0_9
## %bb.6:
	cmpl	$0, (%r13)
	jne	LBB0_8
## %bb.7:
	leaq	(%r12,%rbx), %rdi
	addq	$-4, %rdi
	callq	_lodepng_read32bitInt
	movl	%eax, %ebx
	movq	(%r15), %rdi
	movl	(%r14), %esi
	callq	_adler32
	movl	%eax, %ecx
	movl	$58, %eax
	cmpl	%ebx, %ecx
	jne	LBB0_9
LBB0_8:
	xorl	%eax, %eax
	jmp	LBB0_9
	.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_decompress        ; -- Begin function lodepng_zlib_decompress
	.p2align	2
_lodepng_zlib_decompress:               ; @lodepng_zlib_decompress
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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, x3
	subs	x3, x3, #2
	b.hs	LBB0_2
; %bb.1:
	mov	w0, #53
	b	LBB0_4
LBB0_2:
	mov	x22, x2
	ldrb	w9, [x2]
	ldrb	w8, [x2, #1]
	mov	x10, x8
	bfi	w10, w9, #8, #8
	mov	w11, #31711
	movk	w11, #48623, lsl #16
	mul	w10, w10, w11
	mov	w11, #4228
	movk	w11, #2114, lsl #16
	cmp	w10, w11
	b.ls	LBB0_5
; %bb.3:
	mov	w0, #24
LBB0_4:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_5:
	mov	x20, x0
	and	w10, w9, #0xf
	mov	w0, #25
	cmp	w10, #8
	b.ne	LBB0_4
; %bb.6:
	sxtb	w9, w9
	tbnz	w9, #31, LBB0_4
; %bb.7:
	tbnz	w8, #5, LBB0_12
; %bb.8:
	mov	x23, x4
	mov	x19, x1
	add	x2, x22, #2
	mov	x0, x20
	bl	_inflate
	cbnz	w0, LBB0_4
; %bb.9:
	ldr	w8, [x23]
	cbnz	w8, LBB0_11
; %bb.10:
	add	x8, x21, x22
	sub	x0, x8, #4
	bl	_lodepng_read32bitInt
	mov	x21, x0
	ldr	x0, [x20]
	ldr	w1, [x19]
	bl	_adler32
	cmp	w0, w21
	b.ne	LBB0_13
LBB0_11:
	mov	w0, #0
	b	LBB0_4
LBB0_12:
	mov	w0, #26
	b	LBB0_4
LBB0_13:
	mov	w0, #58
	b	LBB0_4
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
