	.file	"extr_hpi6205.c_outstream_host_buffer_get_info.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	outstream_host_buffer_get_info, @function
outstream_host_buffer_get_info:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdx
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rsi
	sub	rsp, 24
	.cfi_def_cfa_offset 64
	mov	r12, QWORD PTR [rdi]
	mov	rdx, QWORD PTR [rsi]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	mov	rax, QWORD PTR [r12]
	mov	r13, QWORD PTR 8[r12]
	lea	rdi, [rax+rdx*4]
	call	hpios_locked_mem_valid@PLT
	test	rax, rax
	je	.L2
	mov	rdx, QWORD PTR [rbx]
	mov	rax, QWORD PTR [r12]
	mov	rsi, rsp
	lea	rdi, [rax+rdx*4]
	call	hpios_locked_mem_get_virt_addr@PLT
	test	rax, rax
	je	.L3
	mov	eax, DWORD PTR HPI_ERROR_INVALID_OPERATION[rip]
	mov	DWORD PTR 16[rbp], eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L2:
	mov	ecx, DWORD PTR HPI_ERROR_INVALID_OPERATION[rip]
	mov	edx, DWORD PTR HPI_OSTREAM_HOSTBUFFER_GET_INFO[rip]
	mov	rdi, rbp
	mov	esi, DWORD PTR HPI_OBJ_OSTREAM[rip]
	call	hpi_init_response@PLT
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L9
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	mov	rdx, QWORD PTR [rbx]
	mov	rax, QWORD PTR 0[r13]
	xor	ecx, ecx
	mov	rdi, rbp
	mov	esi, DWORD PTR HPI_OBJ_OSTREAM[rip]
	lea	rbx, [rax+rdx*4]
	mov	edx, DWORD PTR HPI_OSTREAM_HOSTBUFFER_GET_INFO[rip]
	call	hpi_init_response@PLT
	mov	rax, QWORD PTR [rsp]
	mov	QWORD PTR 0[rbp], rbx
	mov	QWORD PTR 8[rbp], rax
	jmp	.L1
.L9:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	outstream_host_buffer_get_info, .-outstream_host_buffer_get_info
	.comm	HPI_OSTREAM_HOSTBUFFER_GET_INFO,4,4
	.comm	HPI_OBJ_OSTREAM,4,4
	.comm	HPI_ERROR_INVALID_OPERATION,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_hpi6205.c_outstream_host_buffer_get_info.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	outstream_host_buffer_get_info, %function
outstream_host_buffer_get_info:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	ldr	r6, [r0]
	ldr	r0, [r1]
	ldr	r3, [r6]
	sub	sp, sp, #12
	add	r0, r3, r0, lsl #2
	ldr	r3, .L10
	mov	r4, r1
	mov	r5, r2
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	ldr	r7, [r6, #4]
	bl	hpios_locked_mem_valid
	cmp	r0, #0
	beq	.L2
	ldr	r3, [r6]
	ldr	r0, [r4]
	mov	r1, sp
	add	r0, r3, r0, lsl #2
	bl	hpios_locked_mem_get_virt_addr
	subs	r3, r0, #0
	beq	.L3
	ldr	r3, .L10+4
	ldr	r3, [r3]
	str	r3, [r5, #8]
	b	.L1
.L2:
	ldr	r3, .L10+4
	ldr	r2, .L10+8
	ldr	r1, .L10+12
	mov	r0, r5
	ldr	r3, [r3]
	ldr	r2, [r2]
	ldr	r1, [r1]
	bl	hpi_init_response
.L1:
	ldr	r3, .L10
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L9
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L3:
	ldr	r2, .L10+8
	ldr	r1, .L10+12
	ldr	ip, [r4]
	ldr	r4, [r7]
	mov	r0, r5
	ldr	r2, [r2]
	ldr	r1, [r1]
	add	r4, r4, ip, lsl #2
	bl	hpi_init_response
	ldr	r3, [sp]
	str	r4, [r5]
	str	r3, [r5, #4]
	b	.L1
.L9:
	bl	__stack_chk_fail
.L11:
	.align	2
.L10:
	.word	.LC0
	.word	HPI_ERROR_INVALID_OPERATION
	.word	HPI_OSTREAM_HOSTBUFFER_GET_INFO
	.word	HPI_OBJ_OSTREAM
	.size	outstream_host_buffer_get_info, .-outstream_host_buffer_get_info
	.comm	HPI_OSTREAM_HOSTBUFFER_GET_INFO,4,4
	.comm	HPI_OBJ_OSTREAM,4,4
	.comm	HPI_ERROR_INVALID_OPERATION,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
