	.file	"extr_mxwriter.c_write_data_to_stream.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	write_data_to_stream, @function
write_data_to_stream:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	mov	rbx, rdi
	sub	rsp, 16
	.cfi_def_cfa_offset 32
	mov	edi, DWORD PTR 8[rdi]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	mov	DWORD PTR 4[rsp], 0
	test	edi, edi
	je	.L5
	mov	rdx, QWORD PTR 16[rbx]
	test	rdx, rdx
	jne	.L4
	mov	rax, QWORD PTR XmlEncoding_UTF8[rip]
	cmp	QWORD PTR [rbx], rax
	je	.L9
.L5:
	mov	rcx, QWORD PTR 8[rsp]
	xor	rcx, QWORD PTR fs:40
	mov	eax, DWORD PTR S_OK[rip]
	jne	.L10
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 16
	pop	rbx
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L4:
	.cfi_restore_state
	mov	esi, DWORD PTR 24[rbx]
	lea	rcx, 4[rsp]
	call	IStream_Write@PLT
	mov	QWORD PTR 16[rbx], 0
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L9:
	mov	esi, DWORD PTR 24[rbx]
	lea	rcx, 4[rsp]
	call	IStream_Write@PLT
	jmp	.L5
.L10:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	write_data_to_stream, .-write_data_to_stream
	.comm	XmlEncoding_UTF8,8,8
	.comm	S_OK,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_mxwriter.c_write_data_to_stream.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	write_data_to_stream, %function
write_data_to_stream:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, lr}
	mov	r5, #0
	mov	r4, r0
	ldr	r0, [r0, #4]
	ldr	r3, .L11
	sub	sp, sp, #12
	cmp	r0, r5
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	str	r5, [sp]
	beq	.L5
	ldr	r2, [r4, #8]
	cmp	r2, #0
	bne	.L4
	ldr	r3, .L11+4
	ldr	r1, [r4]
	ldr	r3, [r3]
	cmp	r1, r3
	beq	.L9
.L5:
	ldr	r3, .L11+8
	ldr	r0, [r3]
	ldr	r3, .L11
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L10
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, pc}
.L4:
	mov	r3, sp
	ldr	r1, [r4, #12]
	bl	IStream_Write
	str	r5, [r4, #8]
	b	.L5
.L9:
	mov	r3, sp
	ldr	r1, [r4, #12]
	bl	IStream_Write
	b	.L5
.L10:
	bl	__stack_chk_fail
.L12:
	.align	2
.L11:
	.word	.LC0
	.word	XmlEncoding_UTF8
	.word	S_OK
	.size	write_data_to_stream, .-write_data_to_stream
	.comm	XmlEncoding_UTF8,4,4
	.comm	S_OK,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
