	.file	"extr_traverse.c_ufs2_blksout.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	ufs2_blksout, @function
ufs2_blksout:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	ebx, r8d
	sub	rsp, 40
	.cfi_def_cfa_offset 96
	mov	rax, QWORD PTR sblock[rip]
	mov	esi, DWORD PTR TP_BSIZE[rip]
	mov	QWORD PTR 16[rsp], rdi
	imul	edx, DWORD PTR [rax]
	mov	DWORD PTR 12[rsp], ecx
	mov	edi, edx
	call	howmany@PLT
	mov	DWORD PTR 8[rsp], eax
	test	ebx, ebx
	je	.L49
	mov	r8d, DWORD PTR writingextdata.1972[rip]
	mov	r12d, DWORD PTR TP_BSIZE[rip]
	mov	rdi, QWORD PTR sblock[rip]
	mov	esi, DWORD PTR spcl[rip+16]
	test	r8d, r8d
	je	.L51
.L48:
	call	fragoff@PLT
	mov	esi, r12d
	mov	edi, eax
	call	howmany@PLT
	mov	r12d, eax
	mov	rax, QWORD PTR sblock[rip]
	test	r12d, r12d
	jle	.L3
	mov	esi, DWORD PTR TP_BSIZE[rip]
	mov	edi, DWORD PTR [rax]
	call	howmany@PLT
	sub	eax, r12d
	sub	DWORD PTR 8[rsp], eax
.L49:
	mov	rax, QWORD PTR sblock[rip]
.L3:
	mov	r9d, DWORD PTR 4[rax]
	mov	ecx, DWORD PTR tp_bshift[rip]
	mov	esi, DWORD PTR 8[rsp]
	sar	r9d, cl
	mov	r14d, r9d
	test	esi, esi
	jle	.L1
	test	ebx, ebx
	mov	r12d, DWORD PTR TP_NINDIR[rip]
	setne	BYTE PTR 27[rsp]
	xor	ebx, ebx
	.p2align 4,,10
	.p2align 3
.L18:
	mov	eax, DWORD PTR 8[rsp]
	add	r12d, ebx
	cmp	r12d, eax
	mov	r15d, eax
	cmovle	r15d, r12d
	xor	edi, edi
	cmp	r12d, r15d
	setge	dil
	call	assert@PLT
	cmp	r15d, ebx
	jle	.L7
	movsx	rcx, ebx
	mov	rax, QWORD PTR spcl[rip]
	mov	rdx, rcx
	neg	rdx
	lea	rsi, [rax+rdx*4]
	.p2align 4,,10
	.p2align 3
.L10:
	mov	eax, ecx
	cdq
	idiv	r14d
	cdqe
	cmp	QWORD PTR 0[rbp+rax*8], 0
	setne	al
	movzx	eax, al
	mov	DWORD PTR [rsi+rcx*4], eax
	add	rcx, 1
	cmp	r15d, ecx
	jg	.L10
	mov	eax, r15d
	sub	eax, ebx
	cmp	r12d, DWORD PTR 8[rsp]
	setge	r12b
	and	r12b, BYTE PTR 27[rsp]
	mov	DWORD PTR spcl[rip+8], eax
	mov	BYTE PTR 26[rsp], r12b
	je	.L52
	mov	edx, DWORD PTR writingextdata.1972[rip]
	test	edx, edx
	je	.L28
	mov	edi, DWORD PTR 12[rsp]
	call	writeheader@PLT
	mov	eax, ebx
	cdq
	idiv	r14d
	cdqe
	lea	r12, 0[rbp+rax*8]
.L27:
	mov	BYTE PTR 26[rsp], 1
.L21:
	mov	r13d, ebx
	jmp	.L16
	.p2align 4,,10
	.p2align 3
.L53:
	mov	rax, QWORD PTR sblock[rip]
	mov	esi, DWORD PTR 4[rax]
	call	dumpblock@PLT
.L13:
	add	r12, 8
	cmp	r15d, r13d
	jle	.L15
.L16:
	mov	rdi, QWORD PTR [r12]
	mov	eax, r13d
	add	r13d, r14d
	test	rdi, rdi
	je	.L13
	cmp	r15d, r13d
	jge	.L53
	mov	esi, r15d
	sub	esi, eax
	imul	esi, DWORD PTR TP_BSIZE[rip]
	call	dumpblock@PLT
.L15:
	mov	eax, DWORD PTR TS_ADDR[rip]
	cmp	BYTE PTR 26[rsp], 0
	mov	DWORD PTR spcl[rip+8], 0
	mov	DWORD PTR spcl[rip+12], eax
	je	.L17
.L20:
	mov	ecx, DWORD PTR writingextdata.1972[rip]
	test	ecx, ecx
	je	.L54
.L17:
	mov	r12d, DWORD PTR TP_NINDIR[rip]
	add	ebx, r12d
	cmp	DWORD PTR 8[rsp], ebx
	jg	.L18
.L1:
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L52:
	.cfi_restore_state
	mov	edi, DWORD PTR 12[rsp]
	call	writeheader@PLT
	mov	eax, ebx
	cdq
	idiv	r14d
	cdqe
	lea	r12, 0[rbp+rax*8]
	jmp	.L21
	.p2align 4,,10
	.p2align 3
.L28:
	mov	rdi, QWORD PTR 16[rsp]
	call	appendextdata@PLT
	mov	edi, DWORD PTR 12[rsp]
	mov	DWORD PTR 28[rsp], eax
	call	writeheader@PLT
	mov	eax, ebx
	cdq
	idiv	r14d
	cdqe
	lea	r12, 0[rbp+rax*8]
	cmp	r15d, ebx
	jg	.L27
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L54:
	mov	edx, DWORD PTR 28[rsp]
	mov	esi, DWORD PTR 12[rsp]
	mov	DWORD PTR writingextdata.1972[rip], 1
	mov	rdi, QWORD PTR 16[rsp]
	call	writeextdata@PLT
	mov	DWORD PTR writingextdata.1972[rip], 0
	jmp	.L17
	.p2align 4,,10
	.p2align 3
.L7:
	mov	eax, r15d
	sub	eax, ebx
	mov	DWORD PTR spcl[rip+8], eax
	cmp	r12d, DWORD PTR 8[rsp]
	jl	.L26
	cmp	BYTE PTR 27[rsp], 0
	je	.L26
	mov	eax, DWORD PTR writingextdata.1972[rip]
	test	eax, eax
	je	.L28
	mov	edi, DWORD PTR 12[rsp]
	call	writeheader@PLT
.L12:
	mov	DWORD PTR spcl[rip+8], 0
	mov	eax, DWORD PTR TS_ADDR[rip]
	mov	DWORD PTR spcl[rip+12], eax
	jmp	.L20
.L51:
	mov	rax, QWORD PTR 16[rsp]
	mov	esi, DWORD PTR [rax]
	jmp	.L48
.L26:
	mov	edi, DWORD PTR 12[rsp]
	call	writeheader@PLT
	mov	eax, DWORD PTR TS_ADDR[rip]
	mov	DWORD PTR spcl[rip+8], 0
	mov	DWORD PTR spcl[rip+12], eax
	jmp	.L17
	.cfi_endproc
.LFE0:
	.size	ufs2_blksout, .-ufs2_blksout
	.local	writingextdata.1972
	.comm	writingextdata.1972,4,4
	.comm	tp_bshift,4,4
	.comm	spcl,24,16
	.comm	sblock,8,8
	.comm	TS_ADDR,4,4
	.comm	TP_NINDIR,4,4
	.comm	TP_BSIZE,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_traverse.c_ufs2_blksout.c"
	.text
	.global	__aeabi_idiv
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ufs2_blksout, %function
ufs2_blksout:
	@ args = 4, pretend = 0, frame = 24
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r5, .L57
	mov	r7, r1
	ldr	ip, [r5]
	ldr	r1, .L57+4
	ldr	ip, [ip]
	sub	sp, sp, #28
	str	r0, [sp, #16]
	ldr	r1, [r1]
	mul	r0, ip, r2
	ldr	r4, [sp, #64]
	str	r3, [sp, #8]
	bl	howmany
	cmp	r4, #0
	str	r0, [sp, #4]
	bne	.L2
	ldr	r3, [r5]
.L3:
	ldr	r2, .L57+8
	ldr	r5, [r3, #4]
	ldr	r3, [r2]
	ldr	r2, [sp, #4]
	asr	r5, r5, r3
	cmp	r2, #0
	ble	.L1
	subs	r3, r4, #0
	movne	r3, #1
	mov	r6, #0
	str	r3, [sp, #12]
	ldr	r3, .L57+12
	ldr	r8, .L57+16
	ldr	r4, [r3]
.L18:
	ldr	r3, [sp, #4]
	add	r4, r6, r4
	cmp	r4, r3
	movge	r10, r3
	movlt	r10, r4
	cmp	r4, r10
	movlt	r0, #0
	movge	r0, #1
	bl	assert
	cmp	r10, r6
	ble	.L7
	mov	r9, r6
	ldr	fp, [r8]
	rsb	r1, r6, r6, lsl #30
	add	fp, fp, r1, lsl #2
.L10:
	mov	r0, r9
	mov	r1, r5
	bl	__aeabi_idiv
	ldr	r3, [r7, r0, lsl #2]
	cmp	r3, #0
	movne	r3, #1
	str	r3, [fp, r9, lsl #2]
	add	r9, r9, #1
	cmp	r10, r9
	bne	.L10
	ldr	r9, [sp, #12]
	ldr	r3, [sp, #4]
	sub	r2, r10, r6
	cmp	r4, r3
	movlt	r9, #0
	andge	r9, r9, #1
	cmp	r9, #0
	str	r2, [r8, #4]
	beq	.L53
	ldr	r3, .L57+20
	ldr	r2, [r3]
	cmp	r2, #0
	beq	.L27
	ldr	r0, [sp, #8]
	bl	writeheader
	mov	r1, r5
	mov	r0, r6
	bl	__aeabi_idiv
	add	r2, r7, r0, lsl #2
.L26:
	mov	r9, #1
.L21:
	mov	r4, r6
	sub	fp, r2, #4
	b	.L16
.L54:
	ldr	r3, .L57
	ldr	r3, [r3]
	ldr	r1, [r3, #4]
	bl	dumpblock
.L13:
	cmp	r10, r4
	ble	.L15
.L16:
	ldr	r0, [fp, #4]!
	mov	ip, r4
	cmp	r0, #0
	add	r4, r4, r5
	beq	.L13
	cmp	r10, r4
	bge	.L54
	ldr	r3, .L57+4
	sub	ip, r10, ip
	ldr	r1, [r3]
	mul	r1, ip, r1
	bl	dumpblock
.L15:
	mov	r2, #0
	ldr	r3, .L57+24
	cmp	r9, r2
	ldr	r3, [r3]
	stmib	r8, {r2, r3}
	beq	.L17
.L20:
	ldr	r3, .L57+20
	ldr	r4, [r3]
	cmp	r4, #0
	beq	.L55
.L17:
	ldr	r3, .L57+12
	ldr	r4, [r3]
	ldr	r3, [sp, #4]
	add	r6, r6, r4
	cmp	r3, r6
	bgt	.L18
.L1:
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L53:
	ldr	r0, [sp, #8]
	bl	writeheader
	mov	r1, r5
	mov	r0, r6
	bl	__aeabi_idiv
	add	r2, r7, r0, lsl #2
	b	.L21
.L27:
	ldr	r0, [sp, #16]
	bl	appendextdata
	mov	r2, r0
	ldr	r0, [sp, #8]
	str	r2, [sp, #20]
	bl	writeheader
	mov	r1, r5
	mov	r0, r6
	bl	__aeabi_idiv
	cmp	r10, r6
	add	r2, r7, r0, lsl #2
	bgt	.L26
	b	.L12
.L55:
	mov	r9, r3
	mov	ip, #1
	ldr	r2, [sp, #20]
	ldr	r1, [sp, #8]
	ldr	r0, [sp, #16]
	str	ip, [r3]
	bl	writeextdata
	str	r4, [r9]
	b	.L17
.L7:
	ldr	r2, [sp, #4]
	ldr	r3, [sp, #12]
	cmp	r4, r2
	movlt	r3, #0
	andge	r3, r3, #1
	sub	r2, r10, r6
	cmp	r3, #0
	mov	r4, r3
	str	r2, [r8, #4]
	beq	.L56
	ldr	r3, .L57+20
	ldr	r2, [r3]
	cmp	r2, #0
	beq	.L27
	ldr	r0, [sp, #8]
	bl	writeheader
.L12:
	mov	r2, #0
	ldr	r3, .L57+24
	ldr	r3, [r3]
	stmib	r8, {r2, r3}
	b	.L20
.L2:
	ldr	r3, .L57+20
	ldr	r2, .L57
	ldr	r3, [r3]
	ldr	r0, [r2]
	cmp	r3, #0
	ldreq	r3, [sp, #16]
	ldrne	r8, .L57+16
	ldreq	r1, [r3]
	ldrne	r1, [r8, #12]
	bl	fragoff
	ldr	r3, .L57+4
	ldr	r6, .L57
	ldr	r1, [r3]
	bl	howmany
	cmp	r0, #0
	mov	r5, r0
	ldr	r3, [r6]
	ble	.L3
	ldr	r0, [r3]
	ldr	r3, .L57+4
	ldr	r1, [r3]
	bl	howmany
	ldr	r2, [sp, #4]
	sub	r5, r0, r5
	sub	r2, r2, r5
	ldr	r3, [r6]
	str	r2, [sp, #4]
	b	.L3
.L56:
	ldr	r0, [sp, #8]
	bl	writeheader
	ldr	r3, .L57+24
	str	r4, [r8, #4]
	ldr	r3, [r3]
	str	r3, [r8, #8]
	b	.L17
.L58:
	.align	2
.L57:
	.word	sblock
	.word	TP_BSIZE
	.word	tp_bshift
	.word	TP_NINDIR
	.word	spcl
	.word	.LANCHOR0
	.word	TS_ADDR
	.size	ufs2_blksout, .-ufs2_blksout
	.comm	tp_bshift,4,4
	.comm	spcl,16,4
	.comm	sblock,4,4
	.comm	TS_ADDR,4,4
	.comm	TP_NINDIR,4,4
	.comm	TP_BSIZE,4,4
	.bss
	.align	2
	.set	.LANCHOR0,. + 0
	.type	writingextdata.4256, %object
	.size	writingextdata.4256, 4
writingextdata.4256:
	.space	4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
