	.file	"extr_libchdr_zlib.c_zlib_codec_decompress.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	zlib_codec_decompress
	.type	zlib_codec_decompress, @function
zlib_codec_decompress:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, r8
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	rbx, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	QWORD PTR 40[rdi], rsi
	mov	QWORD PTR 32[rdi], rdx
	mov	QWORD PTR 24[rdi], 0
	mov	QWORD PTR 16[rdi], rcx
	mov	QWORD PTR 8[rdi], r8
	mov	QWORD PTR [rdi], 0
	call	inflateReset@PLT
	cmp	DWORD PTR Z_OK[rip], eax
	je	.L2
.L6:
	mov	eax, DWORD PTR CHDERR_DECOMPRESSION_ERROR[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	esi, DWORD PTR Z_FINISH[rip]
	mov	rdi, rbx
	call	inflate@PLT
	mov	eax, DWORD PTR CHDERR_NONE[rip]
	cmp	QWORD PTR [rbx], rbp
	jne	.L6
	add	rsp, 8
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	zlib_codec_decompress, .-zlib_codec_decompress
	.comm	Z_OK,4,4
	.comm	Z_FINISH,4,4
	.comm	CHDERR_NONE,4,4
	.comm	CHDERR_DECOMPRESSION_ERROR,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_libchdr_zlib.c_zlib_codec_decompress.c"
	.text
	.align	2
	.global	zlib_codec_decompress
	.syntax unified
	.arm
	.fpu softvfp
	.type	zlib_codec_decompress, %function
zlib_codec_decompress:
	@ args = 4, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	mov	ip, #0
	push	{r4, r5, r6, lr}
	ldr	r5, [sp, #16]
	str	r3, [r0, #8]
	str	r1, [r0, #20]
	str	r2, [r0, #16]
	str	ip, [r0, #12]
	str	ip, [r0]
	str	r5, [r0, #4]
	mov	r4, r0
	bl	inflateReset
	ldr	r3, .L8
	ldr	r3, [r3]
	cmp	r3, r0
	beq	.L2
.L6:
	ldr	r3, .L8+4
	ldr	r0, [r3]
	pop	{r4, r5, r6, pc}
.L2:
	ldr	r3, .L8+8
	mov	r0, r4
	ldr	r1, [r3]
	bl	inflate
	ldr	r3, [r4]
	cmp	r3, r5
	bne	.L6
	ldr	r3, .L8+12
	ldr	r0, [r3]
	pop	{r4, r5, r6, pc}
.L9:
	.align	2
.L8:
	.word	Z_OK
	.word	CHDERR_DECOMPRESSION_ERROR
	.word	Z_FINISH
	.word	CHDERR_NONE
	.size	zlib_codec_decompress, .-zlib_codec_decompress
	.comm	Z_OK,4,4
	.comm	Z_FINISH,4,4
	.comm	CHDERR_NONE,4,4
	.comm	CHDERR_DECOMPRESSION_ERROR,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
