	.file	"extr_hpifunc.c_hpi_outstream_close.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	hpi_outstream_close
	.type	hpi_outstream_close, @function
hpi_outstream_close:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12d, edi
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	sub	rsp, 40
	.cfi_def_cfa_offset 80
	mov	edx, DWORD PTR HPI_OBJ_OSTREAM[rip]
	mov	ecx, DWORD PTR HPI_OSTREAM_HOSTBUFFER_FREE[rip]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	lea	rbp, 16[rsp]
	lea	r13, 12[rsp]
	mov	rsi, r13
	mov	rdi, rbp
	lea	r14, 20[rsp]
	call	hpi_init_message_response@PLT
	mov	rdx, rbp
	mov	rsi, r14
	mov	edi, r12d
	call	hpi_handle_indexes@PLT
	test	rax, rax
	je	.L2
	mov	eax, DWORD PTR HPI_ERROR_INVALID_HANDLE[rip]
.L1:
	mov	rcx, QWORD PTR 24[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L7
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	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
.L2:
	.cfi_restore_state
	mov	rsi, r13
	mov	rdi, rbp
	call	hpi_send_recv@PLT
	mov	ecx, DWORD PTR HPI_OSTREAM_GROUP_RESET[rip]
	mov	rsi, r13
	mov	rdi, rbp
	mov	edx, DWORD PTR HPI_OBJ_OSTREAM[rip]
	call	hpi_init_message_response@PLT
	mov	rdx, rbp
	mov	rsi, r14
	mov	edi, r12d
	call	hpi_handle_indexes@PLT
	mov	rsi, r13
	mov	rdi, rbp
	call	hpi_send_recv@PLT
	mov	ecx, DWORD PTR HPI_OSTREAM_CLOSE[rip]
	mov	rsi, r13
	mov	rdi, rbp
	mov	edx, DWORD PTR HPI_OBJ_OSTREAM[rip]
	call	hpi_init_message_response@PLT
	mov	rdx, rbp
	mov	rsi, r14
	mov	edi, r12d
	call	hpi_handle_indexes@PLT
	mov	rsi, r13
	mov	rdi, rbp
	call	hpi_send_recv@PLT
	mov	eax, DWORD PTR 12[rsp]
	jmp	.L1
.L7:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	hpi_outstream_close, .-hpi_outstream_close
	.comm	HPI_OSTREAM_HOSTBUFFER_FREE,4,4
	.comm	HPI_OSTREAM_GROUP_RESET,4,4
	.comm	HPI_OSTREAM_CLOSE,4,4
	.comm	HPI_OBJ_OSTREAM,4,4
	.comm	HPI_ERROR_INVALID_HANDLE,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_hpifunc.c_hpi_outstream_close.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	hpi_outstream_close
	.syntax unified
	.arm
	.fpu softvfp
	.type	hpi_outstream_close, %function
hpi_outstream_close:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, lr}
	mov	r4, r0
	ldr	r3, .L8
	ldr	r5, .L8+4
	sub	sp, sp, #20
	ldr	ip, .L8+8
	mov	r1, sp
	ldr	r3, [r3]
	ldr	r2, [r5]
	add	r0, sp, #4
	ldr	ip, [ip]
	str	ip, [sp, #12]
	mov	ip,#0
	bl	hpi_init_message_response
	mov	r0, r4
	add	r2, sp, #4
	add	r1, sp, #8
	bl	hpi_handle_indexes
	cmp	r0, #0
	beq	.L2
	ldr	r3, .L8+12
	ldr	r0, [r3]
.L1:
	ldr	r3, .L8+8
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L7
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, pc}
.L2:
	mov	r1, sp
	add	r0, sp, #4
	bl	hpi_send_recv
	ldr	r3, .L8+16
	mov	r1, sp
	ldr	r3, [r3]
	ldr	r2, [r5]
	add	r0, sp, #4
	bl	hpi_init_message_response
	add	r2, sp, #4
	add	r1, sp, #8
	mov	r0, r4
	bl	hpi_handle_indexes
	mov	r1, sp
	add	r0, sp, #4
	bl	hpi_send_recv
	ldr	r3, .L8+20
	mov	r1, sp
	ldr	r3, [r3]
	ldr	r2, [r5]
	add	r0, sp, #4
	bl	hpi_init_message_response
	add	r2, sp, #4
	add	r1, sp, #8
	mov	r0, r4
	bl	hpi_handle_indexes
	mov	r1, sp
	add	r0, sp, #4
	bl	hpi_send_recv
	ldr	r0, [sp]
	b	.L1
.L7:
	bl	__stack_chk_fail
.L9:
	.align	2
.L8:
	.word	HPI_OSTREAM_HOSTBUFFER_FREE
	.word	HPI_OBJ_OSTREAM
	.word	.LC0
	.word	HPI_ERROR_INVALID_HANDLE
	.word	HPI_OSTREAM_GROUP_RESET
	.word	HPI_OSTREAM_CLOSE
	.size	hpi_outstream_close, .-hpi_outstream_close
	.comm	HPI_OSTREAM_HOSTBUFFER_FREE,4,4
	.comm	HPI_OSTREAM_GROUP_RESET,4,4
	.comm	HPI_OSTREAM_CLOSE,4,4
	.comm	HPI_OBJ_OSTREAM,4,4
	.comm	HPI_ERROR_INVALID_HANDLE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
