	.file	"97253.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"xf_writebin2_v"
	.string	""
.LC1:
	.string	"stdout"
.LC2:
	.string	"wb"
	.align 8
.LC3:
	.string	"%s [Error]: (file \"%s\" could not be opened for writing)"
	.align 8
.LC4:
	.string	"%s: successfully wrote %ld bytes to %s"
	.align 8
.LC5:
	.string	"%s [Error]: problem writing binary file %s (errno=%d)"
	.text
	.globl	xf_writebin2_v
	.type	xf_writebin2_v, @function
xf_writebin2_v:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 80
	mov	QWORD PTR -40[rbp], rdi
	mov	QWORD PTR -48[rbp], rsi
	mov	QWORD PTR -56[rbp], rdx
	mov	QWORD PTR -64[rbp], rcx
	mov	QWORD PTR -72[rbp], r8
	lea	rax, .LC0[rip]
	mov	QWORD PTR -24[rbp], rax
	mov	rax, QWORD PTR -56[rbp]
	imul	rax, QWORD PTR -64[rbp]
	mov	QWORD PTR -16[rbp], rax
	mov	rax, QWORD PTR -40[rbp]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	jne	.L2
	mov	rax, QWORD PTR stdout[rip]
	mov	QWORD PTR -32[rbp], rax
	jmp	.L3
.L2:
	mov	rax, QWORD PTR -40[rbp]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	call	fopen@PLT
	mov	QWORD PTR -32[rbp], rax
	cmp	QWORD PTR -32[rbp], 0
	jne	.L3
	mov	rcx, QWORD PTR -40[rbp]
	mov	rdx, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR -72[rbp]
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	mov	eax, -1
	jmp	.L4
.L3:
	mov	rdx, QWORD PTR -32[rbp]
	mov	rsi, QWORD PTR -16[rbp]
	mov	rax, QWORD PTR -48[rbp]
	mov	rcx, rdx
	mov	edx, 1
	mov	rdi, rax
	call	fwrite@PLT
	mov	QWORD PTR -8[rbp], rax
	mov	rax, QWORD PTR -40[rbp]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	call	strcmp@PLT
	test	eax, eax
	je	.L5
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	fclose@PLT
.L5:
	cmp	QWORD PTR -8[rbp], 1
	jne	.L6
	mov	rsi, QWORD PTR -40[rbp]
	mov	rcx, QWORD PTR -16[rbp]
	mov	rdx, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR -72[rbp]
	mov	r8, rsi
	lea	rsi, .LC4[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	mov	eax, 0
	jmp	.L4
.L6:
	mov	rax, QWORD PTR -32[rbp]
	mov	rdi, rax
	call	ferror@PLT
	mov	esi, eax
	mov	rcx, QWORD PTR -40[rbp]
	mov	rdx, QWORD PTR -24[rbp]
	mov	rax, QWORD PTR -72[rbp]
	mov	r8d, esi
	lea	rsi, .LC5[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	mov	eax, -1
.L4:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	xf_writebin2_v, .-xf_writebin2_v
	.ident	"GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.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, 6
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"97253.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"xf_writebin2_v\000\000"
	.align	2
.LC1:
	.ascii	"stdout\000"
	.align	2
.LC2:
	.ascii	"wb\000"
	.align	2
.LC3:
	.ascii	"%s [Error]: (file \"%s\" could not be opened for wr"
	.ascii	"iting)\000"
	.align	2
.LC4:
	.ascii	"%s: successfully wrote %ld bytes to %s\000"
	.align	2
.LC5:
	.ascii	"%s [Error]: problem writing binary file %s (errno=%"
	.ascii	"d)\000"
	.text
	.align	2
	.global	xf_writebin2_v
	.syntax unified
	.arm
	.fpu softvfp
	.type	xf_writebin2_v, %function
xf_writebin2_v:
	@ args = 4, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #40
	str	r0, [fp, #-24]
	str	r1, [fp, #-28]
	str	r2, [fp, #-32]
	str	r3, [fp, #-36]
	ldr	r3, .L7
	str	r3, [fp, #-16]
	ldr	r3, [fp, #-32]
	ldr	r2, [fp, #-36]
	mul	r3, r2, r3
	str	r3, [fp, #-12]
	ldr	r1, .L7+4
	ldr	r0, [fp, #-24]
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	bne	.L2
	ldr	r3, .L7+8
	ldr	r3, [r3]
	str	r3, [fp, #-20]
	b	.L3
.L2:
	ldr	r1, .L7+12
	ldr	r0, [fp, #-24]
	bl	fopen
	str	r0, [fp, #-20]
	ldr	r3, [fp, #-20]
	cmp	r3, #0
	bne	.L3
	ldr	r3, [fp, #-24]
	ldr	r2, [fp, #-16]
	ldr	r1, .L7+16
	ldr	r0, [fp, #4]
	bl	sprintf
	mvn	r3, #0
	b	.L4
.L3:
	ldr	r3, [fp, #-20]
	mov	r2, #1
	ldr	r1, [fp, #-12]
	ldr	r0, [fp, #-28]
	bl	fwrite
	str	r0, [fp, #-8]
	ldr	r1, .L7+4
	ldr	r0, [fp, #-24]
	bl	strcmp
	mov	r3, r0
	cmp	r3, #0
	beq	.L5
	ldr	r0, [fp, #-20]
	bl	fclose
.L5:
	ldr	r3, [fp, #-8]
	cmp	r3, #1
	bne	.L6
	ldr	r3, [fp, #-24]
	str	r3, [sp]
	ldr	r3, [fp, #-12]
	ldr	r2, [fp, #-16]
	ldr	r1, .L7+20
	ldr	r0, [fp, #4]
	bl	sprintf
	mov	r3, #0
	b	.L4
.L6:
	ldr	r0, [fp, #-20]
	bl	ferror
	mov	r3, r0
	str	r3, [sp]
	ldr	r3, [fp, #-24]
	ldr	r2, [fp, #-16]
	ldr	r1, .L7+24
	ldr	r0, [fp, #4]
	bl	sprintf
	mvn	r3, #0
.L4:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L8:
	.align	2
.L7:
	.word	.LC0
	.word	.LC1
	.word	stdout
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.word	.LC5
	.size	xf_writebin2_v, .-xf_writebin2_v
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
