	.file	"extr_hermes.c_hermes_bap_pread.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	hermes_bap_pread, @function
hermes_bap_pread:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	mov	eax, DWORD PTR HERMES_DATA1[rip]
	test	esi, esi
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	cmove	eax, DWORD PTR HERMES_DATA0[rip]
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	test	ecx, ecx
	js	.L4
	mov	ebx, ecx
	test	cl, 1
	je	.L5
.L4:
	mov	r12d, DWORD PTR EINVAL[rip]
	neg	r12d
.L1:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	mov	r13, rdx
	mov	ecx, r9d
	mov	edx, r8d
	mov	rbp, rdi
	mov	r14d, eax
	call	hermes_bap_seek@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L1
	sar	ebx
	mov	rdx, r13
	mov	esi, r14d
	mov	rdi, rbp
	mov	ecx, ebx
	call	hermes_read_words@PLT
	pop	rbx
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	hermes_bap_pread, .-hermes_bap_pread
	.comm	HERMES_DATA1,4,4
	.comm	HERMES_DATA0,4,4
	.comm	EINVAL,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_hermes.c_hermes_bap_pread.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	hermes_bap_pread, %function
hermes_bap_pread:
	@ args = 8, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, r3
	cmp	r1, #0
	ldrne	r3, .L9
	ldreq	r3, .L9+4
	cmp	r4, #0
	mov	r7, r0
	mov	r6, r2
	ldr	r8, [r3]
	blt	.L4
	tst	r4, #1
	beq	.L5
.L4:
	ldr	r3, .L9+8
	ldr	r5, [r3]
	rsb	r5, r5, #0
.L1:
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, pc}
.L5:
	ldr	r3, [sp, #28]
	ldr	r2, [sp, #24]
	bl	hermes_bap_seek
	subs	r5, r0, #0
	bne	.L1
	mov	r2, r6
	mov	r1, r8
	mov	r0, r7
	asr	r3, r4, #1
	bl	hermes_read_words
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, pc}
.L10:
	.align	2
.L9:
	.word	HERMES_DATA1
	.word	HERMES_DATA0
	.word	EINVAL
	.size	hermes_bap_pread, .-hermes_bap_pread
	.comm	HERMES_DATA1,4,4
	.comm	HERMES_DATA0,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
