	.file	"extr_ufs_uprintf.c_fill_blocks.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"fill_blocks: open(%s)"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC1:
	.string	"fill_blocks: write(%d) returned %zd"
	.section	.rodata.str1.1
.LC2:
	.string	"fill_blocks: write"
	.section	.rodata.str1.8
	.align 8
.LC3:
	.string	"fill_blocks: write after ENOSPC"
	.text
	.p2align 4
	.type	fill_blocks, @function
fill_blocks:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r14
	push	r13
	push	r12
	push	rbx
	sub	rsp, 16
	.cfi_offset 14, -24
	.cfi_offset 13, -32
	.cfi_offset 12, -40
	.cfi_offset 3, -48
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -40[rbp], rax
	xor	eax, eax
	movsx	rax, DWORD PTR BLOCKSIZE[rip]
	mov	rcx, rsp
	add	rax, 15
	mov	rdx, rax
	and	rax, -4096
	sub	rcx, rax
	and	rdx, -16
	mov	rax, rcx
	cmp	rsp, rax
	je	.L3
.L24:
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	cmp	rsp, rax
	jne	.L24
.L3:
	and	edx, 4095
	sub	rsp, rdx
	test	rdx, rdx
	jne	.L25
.L4:
	mov	edi, DWORD PTR BLOCKS_FILENAME[rip]
	mov	esi, DWORD PTR O_CREAT[rip]
	mov	edx, 384
	mov	rbx, rsp
	or	esi, DWORD PTR O_TRUNC[rip]
	or	esi, DWORD PTR O_RDWR[rip]
	call	open@PLT
	mov	r12d, eax
	test	eax, eax
	jns	.L5
	mov	edx, DWORD PTR BLOCKS_FILENAME[rip]
	lea	rsi, .LC0[rip]
	mov	edi, -1
	call	err@PLT
.L5:
	mov	esi, DWORD PTR BLOCKSIZE[rip]
	mov	rdi, rbx
	lea	r13, .LC1[rip]
	call	bzero@PLT
	mov	QWORD PTR errno[rip], 0
.L8:
	mov	r8d, DWORD PTR BLOCKSIZE[rip]
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L27:
	movsx	rdx, DWORD PTR BLOCKSIZE[rip]
	mov	r8, rdx
	cmp	rdx, rax
	jne	.L26
.L7:
	mov	edx, r8d
	mov	rsi, rbx
	mov	edi, r12d
	call	write@PLT
	test	rax, rax
	jns	.L27
	mov	rax, QWORD PTR ENOSPC[rip]
	cmp	QWORD PTR errno[rip], rax
	je	.L9
	lea	rdi, .LC2[rip]
	call	warn@PLT
	mov	edi, r12d
	call	close@PLT
	mov	edi, DWORD PTR BLOCKS_FILENAME[rip]
	call	unlink@PLT
	mov	edi, -1
	call	exit@PLT
.L9:
	mov	eax, DWORD PTR NUMTRIES[rip]
	xor	r13d, r13d
	lea	r14, .LC3[rip]
	test	eax, eax
	jg	.L10
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L11:
	add	r13d, 1
	cmp	DWORD PTR NUMTRIES[rip], r13d
	jle	.L12
.L10:
	mov	edx, DWORD PTR BLOCKSIZE[rip]
	mov	rsi, rbx
	mov	edi, r12d
	call	write@PLT
	test	rax, rax
	jns	.L11
	mov	rax, QWORD PTR ENOSPC[rip]
	cmp	QWORD PTR errno[rip], rax
	je	.L11
	mov	rdi, r14
	add	r13d, 1
	call	warn@PLT
	mov	edi, r12d
	call	close@PLT
	mov	edi, DWORD PTR BLOCKS_FILENAME[rip]
	call	unlink@PLT
	mov	edi, -1
	call	exit@PLT
	cmp	DWORD PTR NUMTRIES[rip], r13d
	jg	.L10
	.p2align 4,,10
	.p2align 3
.L12:
	mov	edi, r12d
	call	close@PLT
	mov	edi, DWORD PTR BLOCKS_FILENAME[rip]
	call	unlink@PLT
	mov	rax, QWORD PTR -40[rbp]
	xor	rax, QWORD PTR fs:40
	jne	.L28
	lea	rsp, -32[rbp]
	pop	rbx
	pop	r12
	pop	r13
	pop	r14
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
	.p2align 4,,10
	.p2align 3
.L26:
	.cfi_restore_state
	mov	rdx, rax
	mov	esi, r8d
	mov	rdi, r13
	call	warnx@PLT
	mov	edi, r12d
	call	close@PLT
	mov	edi, DWORD PTR BLOCKS_FILENAME[rip]
	call	unlink@PLT
	mov	edi, -1
	call	exit@PLT
	jmp	.L8
.L25:
	or	QWORD PTR -8[rsp+rdx], 0
	jmp	.L4
.L28:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	fill_blocks, .-fill_blocks
	.comm	errno,8,8
	.comm	O_TRUNC,4,4
	.comm	O_RDWR,4,4
	.comm	O_CREAT,4,4
	.comm	NUMTRIES,4,4
	.comm	ENOSPC,8,8
	.comm	BLOCKS_FILENAME,4,4
	.comm	BLOCKSIZE,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_ufs_uprintf.c_fill_blocks.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"fill_blocks: open(%s)\000"
	.align	2
.LC1:
	.ascii	"fill_blocks: write(%d) returned %zd\000"
	.align	2
.LC2:
	.ascii	"fill_blocks: write\000"
	.align	2
.LC3:
	.ascii	"fill_blocks: write after ENOSPC\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	fill_blocks, %function
fill_blocks:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	add	fp, sp, #32
	sub	sp, sp, #12
	ldr	r5, .L21
	ldr	r2, .L21+4
	ldr	r3, [r5]
	ldr	r0, .L21+8
	add	r3, r3, #7
	bic	r3, r3, #7
	ldr	r1, .L21+12
	ldr	r0, [r0]
	sub	sp, sp, r3
	ldr	r2, [r2]
	ldr	r3, .L21+16
	ldr	r1, [r1]
	orr	r2, r2, r0
	ldr	r0, [r3]
	ldr	r3, .L21+20
	orr	r1, r2, r1
	mov	r2, #384
	ldr	r3, [r3]
	str	r3, [fp, #-40]
	mov	r3,#0
	bl	open
	subs	r4, r0, #0
	mov	r6, sp
	blt	.L17
.L2:
	mov	r0, r6
	ldr	r1, [r5]
	bl	bzero
	mov	r3, #0
	ldr	r8, .L21+24
	ldr	r7, .L21+28
	str	r3, [r8]
.L5:
	ldr	r2, [r5]
	b	.L4
.L19:
	ldr	r1, [r5]
	cmp	r1, r2
	bne	.L18
.L4:
	mov	r1, r6
	mov	r0, r4
	bl	write
	subs	r2, r0, #0
	bge	.L19
	ldr	r10, .L21+32
	ldr	r2, [r8]
	ldr	r3, [r10]
	cmp	r2, r3
	beq	.L6
	ldr	r0, .L21+36
	bl	warn
	mov	r0, r4
	bl	close
	ldr	r3, .L21+16
	ldr	r0, [r3]
	bl	unlink
	mvn	r0, #0
	bl	exit
.L6:
	ldr	r7, .L21+40
	ldr	r3, [r7]
	cmp	r3, #0
	movgt	r9, #0
	bgt	.L7
	b	.L9
.L8:
	ldr	r2, [r7]
	add	r9, r9, #1
	cmp	r2, r9
	ble	.L9
.L7:
	mov	r1, r6
	mov	r0, r4
	ldr	r2, [r5]
	bl	write
	cmp	r0, #0
	bge	.L8
	ldr	r1, [r8]
	ldr	r2, [r10]
	cmp	r1, r2
	beq	.L8
	ldr	r0, .L21+44
	bl	warn
	mov	r0, r4
	bl	close
	ldr	r3, .L21+16
	add	r9, r9, #1
	ldr	r0, [r3]
	bl	unlink
	mvn	r0, #0
	bl	exit
	ldr	r2, [r7]
	cmp	r2, r9
	bgt	.L7
.L9:
	mov	r0, r4
	bl	close
	ldr	r3, .L21+16
	ldr	r0, [r3]
	bl	unlink
	ldr	r3, .L21+20
	ldr	r2, [r3]
	ldr	r3, [fp, #-40]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L20
	sub	sp, fp, #32
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L18:
	mov	r0, r7
	bl	warnx
	mov	r0, r4
	bl	close
	ldr	r3, .L21+16
	ldr	r0, [r3]
	bl	unlink
	mvn	r0, #0
	bl	exit
	b	.L5
.L17:
	ldr	r3, .L21+16
	ldr	r1, .L21+48
	ldr	r2, [r3]
	mvn	r0, #0
	bl	err
	b	.L2
.L20:
	bl	__stack_chk_fail
.L22:
	.align	2
.L21:
	.word	BLOCKSIZE
	.word	O_CREAT
	.word	O_TRUNC
	.word	O_RDWR
	.word	BLOCKS_FILENAME
	.word	.LC4
	.word	errno
	.word	.LC1
	.word	ENOSPC
	.word	.LC2
	.word	NUMTRIES
	.word	.LC3
	.word	.LC0
	.size	fill_blocks, .-fill_blocks
	.comm	errno,4,4
	.comm	O_TRUNC,4,4
	.comm	O_RDWR,4,4
	.comm	O_CREAT,4,4
	.comm	NUMTRIES,4,4
	.comm	ENOSPC,4,4
	.comm	BLOCKS_FILENAME,4,4
	.comm	BLOCKSIZE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
