	.file	"extr_chm_lib.c_chm_retrieve_object.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	chm_retrieve_object
	.type	chm_retrieve_object, @function
chm_retrieve_object:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	test	rdi, rdi
	je	.L7
	mov	rbx, rcx
	test	rcx, rcx
	js	.L7
	mov	rax, QWORD PTR [rsi]
	mov	r13, rsi
	cmp	rax, rcx
	jle	.L7
	mov	rbp, rdx
	lea	rcx, [rcx+r8]
	mov	rdx, rax
	mov	r12, r8
	sub	rdx, rbx
	cmp	rax, rcx
	mov	r14, rdi
	mov	rax, QWORD PTR CHM_UNCOMPRESSED[rip]
	cmovl	r12, rdx
	cmp	QWORD PTR 8[rsi], rax
	je	.L15
	mov	eax, DWORD PTR [rdi]
	xor	r15d, r15d
	test	eax, eax
	jne	.L5
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L16:
	add	r15, rax
	add	rbx, rax
	add	rbp, rax
	sub	r12, rax
	je	.L1
.L5:
	mov	rdx, QWORD PTR 16[r13]
	mov	rcx, r12
	mov	rsi, rbp
	mov	rdi, r14
	add	rdx, rbx
	call	_chm_decompress_region@PLT
	test	rax, rax
	jne	.L16
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L7:
	xor	r15d, r15d
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	rax, r15
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L15:
	.cfi_restore_state
	mov	rdx, QWORD PTR 16[rsi]
	add	rdx, QWORD PTR 8[rdi]
	add	rsp, 8
	.cfi_def_cfa_offset 56
	mov	rcx, r12
	add	rdx, rbx
	mov	rsi, rbp
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	jmp	_chm_fetch_bytes@PLT
	.cfi_endproc
.LFE0:
	.size	chm_retrieve_object, .-chm_retrieve_object
	.comm	CHM_UNCOMPRESSED,8,8
	.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_chm_lib.c_chm_retrieve_object.c"
	.text
	.align	2
	.global	chm_retrieve_object
	.syntax unified
	.arm
	.fpu softvfp
	.type	chm_retrieve_object, %function
chm_retrieve_object:
	@ args = 4, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	cmp	r0, #0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	moveq	r7, #1
	lsrne	r7, r3, #31
	cmp	r7, #0
	ldr	r5, [sp, #32]
	bne	.L6
	mov	r4, r3
	ldr	r3, [r1]
	mov	r9, r1
	cmp	r3, r4
	ble	.L1
	mov	r6, r2
	add	r2, r4, r5
	cmp	r3, r2
	sublt	r5, r3, r4
	ldr	r3, .L19
	ldr	r2, [r1, #4]
	ldr	r3, [r3]
	mov	r8, r0
	cmp	r2, r3
	beq	.L17
	ldr	r7, [r0]
	cmp	r7, #0
	beq	.L1
	mov	r7, #0
	b	.L5
.L18:
	subs	r5, r5, ip
	add	r7, r7, ip
	add	r4, r4, ip
	add	r6, r6, ip
	beq	.L1
.L5:
	ldr	r2, [r9, #8]
	mov	r3, r5
	mov	r1, r6
	mov	r0, r8
	add	r2, r4, r2
	bl	_chm_decompress_region
	subs	ip, r0, #0
	bne	.L18
.L1:
	mov	r0, r7
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L6:
	mov	r7, #0
	mov	r0, r7
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L17:
	ldr	r1, [r1, #8]
	ldr	r2, [r0, #4]
	mov	r3, r5
	add	r2, r2, r1
	add	r2, r2, r4
	mov	r1, r6
	pop	{r4, r5, r6, r7, r8, r9, r10, lr}
	b	_chm_fetch_bytes
.L20:
	.align	2
.L19:
	.word	CHM_UNCOMPRESSED
	.size	chm_retrieve_object, .-chm_retrieve_object
	.comm	CHM_UNCOMPRESSED,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
