	.file	"extr_sessionfuzz.c_writeFile.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"wb"
.LC1:
	.string	"cannot open \"%s\" for writing\n"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC2:
	.string	"only wrote %d of %d bytes to \"%s\"\n"
	.text
	.p2align 4
	.type	writeFile, @function
writeFile:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13, rsi
	lea	rsi, .LC0[rip]
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12d, edx
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	call	fopen@PLT
	mov	rbp, rax
	test	rax, rax
	je	.L6
.L2:
	mov	rdi, r13
	mov	rcx, rbp
	mov	edx, r12d
	mov	esi, 1
	call	fwrite@PLT
	mov	rdi, rbp
	mov	r13, rax
	call	fclose@PLT
	cmp	r12d, r13d
	jne	.L7
	add	rsp, 8
	.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
.L7:
	.cfi_restore_state
	mov	edi, DWORD PTR stderr[rip]
	mov	r8, rbx
	mov	ecx, r12d
	mov	edx, r13d
	lea	rsi, .LC2[rip]
	xor	eax, eax
	call	fprintf@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	edi, 1
	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
	jmp	exit@PLT
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore_state
	mov	edi, DWORD PTR stderr[rip]
	mov	rdx, rbx
	lea	rsi, .LC1[rip]
	xor	eax, eax
	call	fprintf@PLT
	mov	edi, 1
	call	exit@PLT
	jmp	.L2
	.cfi_endproc
.LFE0:
	.size	writeFile, .-writeFile
	.comm	stderr,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_sessionfuzz.c_writeFile.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"wb\000"
	.align	2
.LC1:
	.ascii	"cannot open \"%s\" for writing\012\000"
	.align	2
.LC2:
	.ascii	"only wrote %d of %d bytes to \"%s\"\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	writeFile, %function
writeFile:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	mov	r6, r1
	sub	sp, sp, #12
	ldr	r1, .L8
	mov	r5, r2
	mov	r7, r0
	bl	fopen
	subs	r4, r0, #0
	beq	.L6
.L2:
	mov	r0, r6
	mov	r3, r4
	mov	r2, r5
	mov	r1, #1
	bl	fwrite
	mov	r6, r0
	mov	r0, r4
	bl	fclose
	cmp	r5, r6
	bne	.L7
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L7:
	ldr	r1, .L8+4
	str	r7, [sp]
	mov	r3, r5
	mov	r2, r6
	ldr	r0, [r1]
	ldr	r1, .L8+8
	bl	fprintf
	mov	r0, #1
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, lr}
	b	exit
.L6:
	ldr	r3, .L8+4
	mov	r2, r7
	ldr	r0, [r3]
	ldr	r1, .L8+12
	bl	fprintf
	mov	r0, #1
	bl	exit
	b	.L2
.L9:
	.align	2
.L8:
	.word	.LC0
	.word	stderr
	.word	.LC2
	.word	.LC1
	.size	writeFile, .-writeFile
	.comm	stderr,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
