	.file	"extr_mkfile.c_create_file.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"%s %llu bytes\n"
	.text
	.p2align 4
	.type	create_file, @function
create_file:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	rbx, rsi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	cmp	QWORD PTR verbose[rip], 0
	jne	.L26
.L2:
	mov	edx, DWORD PTR MKFILE_MODE[rip]
	mov	esi, DWORD PTR MKFILE_FLAG[rip]
	mov	rdi, rbp
	call	open@PLT
	mov	ebp, eax
	test	eax, eax
	js	.L5
	mov	edx, DWORD PTR SEEK_SET[rip]
	lea	rsi, -1[rbx]
	mov	edi, eax
	call	lseek@PLT
	cmp	rax, -1
	je	.L5
	mov	esi, DWORD PTR buf[rip]
	mov	edx, 1
	mov	edi, ebp
	call	write@PLT
	cmp	rax, -1
	je	.L5
	mov	eax, DWORD PTR nofill[rip]
	test	eax, eax
	jne	.L6
	mov	edx, DWORD PTR SEEK_SET[rip]
	xor	esi, esi
	mov	edi, ebp
	call	lseek@PLT
	cmp	rax, -1
	je	.L5
	test	rbx, rbx
	jne	.L7
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L27:
	sub	rbx, rax
	je	.L6
.L7:
	cmp	QWORD PTR MKFILE_WBUF[rip], rbx
	mov	rdx, rbx
	mov	esi, DWORD PTR buf[rip]
	mov	edi, ebp
	cmovbe	rdx, QWORD PTR MKFILE_WBUF[rip]
	call	write@PLT
	cmp	rax, -1
	jne	.L27
.L5:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	eax, -1
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore_state
	mov	edi, ebp
	call	close@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L26:
	.cfi_restore_state
	mov	rdx, rdi
	mov	edi, DWORD PTR stdout[rip]
	mov	rcx, rsi
	lea	rsi, .LC0[rip]
	call	fprintf@PLT
	mov	edi, DWORD PTR stdout[rip]
	call	fflush@PLT
	jmp	.L2
	.cfi_endproc
.LFE0:
	.size	create_file, .-create_file
	.comm	verbose,8,8
	.comm	stdout,4,4
	.comm	nofill,4,4
	.comm	buf,4,4
	.comm	SEEK_SET,4,4
	.comm	MKFILE_WBUF,8,8
	.comm	MKFILE_MODE,4,4
	.comm	MKFILE_FLAG,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_mkfile.c_create_file.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"%s %llu bytes\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	create_file, %function
create_file:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, r2
	ldr	r2, .L32
	mov	r6, r0
	ldr	r2, [r2]
	mov	r5, r3
	cmp	r2, #0
	sub	sp, sp, #8
	bne	.L30
.L2:
	ldr	r3, .L32+4
	ldr	r2, .L32+8
	mov	r0, r6
	ldr	r2, [r2]
	ldr	r1, [r3]
	bl	open
	subs	r6, r0, #0
	blt	.L5
	ldr	r8, .L32+12
	sub	r1, r4, #1
	ldr	r2, [r8]
	bl	lseek
	cmn	r0, #1
	beq	.L5
	ldr	r7, .L32+16
	mov	r2, #1
	mov	r0, r6
	ldr	r1, [r7]
	bl	write
	cmn	r0, #1
	beq	.L5
	ldr	r3, .L32+20
	ldr	r1, [r3]
	cmp	r1, #0
	bne	.L6
	mov	r0, r6
	ldr	r2, [r8]
	bl	lseek
	cmn	r0, #1
	beq	.L5
	orrs	r3, r4, r5
	beq	.L6
	ldr	r8, .L32+24
	b	.L8
.L31:
	subs	r4, r4, r0
	sbc	r5, r5, r0, asr #31
	orrs	r3, r4, r5
	beq	.L6
.L8:
	ldmia	r8, {r2-r3}
	cmp	r3, r5
	cmpeq	r2, r4
	movhi	r2, r4
	mov	r0, r6
	ldr	r1, [r7]
	bl	write
	cmn	r0, #1
	bne	.L31
.L5:
	mvn	r0, #0
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L6:
	mov	r0, r6
	bl	close
	mov	r0, #0
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L30:
	stm	sp, {r4-r5}
	ldr	r7, .L32+28
	mov	r2, r6
	ldr	r0, [r7]
	ldr	r1, .L32+32
	bl	fprintf
	ldr	r0, [r7]
	bl	fflush
	b	.L2
.L33:
	.align	2
.L32:
	.word	verbose
	.word	MKFILE_FLAG
	.word	MKFILE_MODE
	.word	SEEK_SET
	.word	buf
	.word	nofill
	.word	MKFILE_WBUF
	.word	stdout
	.word	.LC0
	.size	create_file, .-create_file
	.comm	verbose,4,4
	.comm	stdout,4,4
	.comm	nofill,4,4
	.comm	buf,4,4
	.comm	SEEK_SET,4,4
	.comm	MKFILE_WBUF,8,8
	.comm	MKFILE_MODE,4,4
	.comm	MKFILE_FLAG,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
