	.file	"extr_fdisk.c_process_geometry.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"ERROR line %d: the geometry specification line must occur before\n    all partition specifications"
	.align 8
.LC1:
	.string	"ERROR line %d: incorrect number of geometry args"
	.align 8
.LC2:
	.string	"ERROR line %d: unknown geometry arg type: '%c' (0x%02x)"
	.align 8
.LC3:
	.string	"ERROR line %d: number of cylinders not specified"
	.align 8
.LC4:
	.string	"WARNING line %d: number of cylinders (%d) may be out-of-range\n    (must be within 1-1024 for normal BIOS operation, unless the entire disk\n    is dedicated to FreeBSD)"
	.align 8
.LC5:
	.string	"ERROR line %d: number of heads not specified"
	.align 8
.LC6:
	.string	"ERROR line %d: number of heads must be within (1-256)"
	.align 8
.LC7:
	.string	"ERROR line %d: number of sectors not specified"
	.align 8
.LC8:
	.string	"ERROR line %d: number of sectors must be within (1-63)"
	.text
	.p2align 4
	.type	process_geometry, @function
process_geometry:
.LFB0:
	.cfi_startproc
	endbr64
	cmp	QWORD PTR part_processed[rip], 0
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	DWORD PTR geom_processed[rip], 1
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	jne	.L21
	cmp	DWORD PTR [rdi], 3
	mov	rbx, rdi
	jne	.L22
	mov	DWORD PTR dos_cyls[rip], 0
	xor	ebp, ebp
	mov	r12d, 1
	mov	DWORD PTR dos_heads[rip], 0
	mov	DWORD PTR dos_sectors[rip], 0
.L9:
	mov	rax, QWORD PTR 8[rbx]
	add	rax, rbp
	mov	edx, DWORD PTR [rax]
	cmp	edx, 104
	je	.L5
	cmp	edx, 115
	je	.L6
	cmp	edx, 99
	je	.L23
	mov	esi, DWORD PTR current_line_number[rip]
	mov	ecx, edx
	xor	eax, eax
	xor	r12d, r12d
	lea	rdi, .LC2[rip]
	call	warnx@PLT
.L8:
	add	rbp, 8
	cmp	rbp, 24
	jne	.L9
	test	r12d, r12d
	je	.L1
	mov	eax, DWORD PTR dos_heads[rip]
	imul	eax, DWORD PTR dos_sectors[rip]
	mov	edx, DWORD PTR dos_cyls[rip]
	mov	DWORD PTR dos_cylsecs[rip], eax
	test	edx, edx
	je	.L24
.L10:
	cmp	edx, 1024
	jg	.L25
.L11:
	mov	eax, DWORD PTR dos_heads[rip]
	test	eax, eax
	je	.L26
	cmp	eax, 256
	jg	.L27
.L13:
	mov	eax, DWORD PTR dos_sectors[rip]
	test	eax, eax
	je	.L28
	cmp	eax, 63
	jle	.L1
	mov	esi, DWORD PTR current_line_number[rip]
	lea	rdi, .LC8[rip]
	xor	eax, eax
	xor	r12d, r12d
	call	warnx@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L22:
	mov	esi, DWORD PTR current_line_number[rip]
	lea	rdi, .LC1[rip]
	xor	eax, eax
	xor	r12d, r12d
	call	warnx@PLT
.L1:
	mov	eax, r12d
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L21:
	.cfi_restore_state
	mov	esi, DWORD PTR current_line_number[rip]
	xor	r12d, r12d
	lea	rdi, .LC0[rip]
	xor	eax, eax
	call	warnx@PLT
	mov	eax, r12d
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L23:
	.cfi_restore_state
	mov	eax, DWORD PTR 4[rax]
	mov	DWORD PTR dos_cyls[rip], eax
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L6:
	mov	eax, DWORD PTR 4[rax]
	mov	DWORD PTR dos_sectors[rip], eax
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L5:
	mov	eax, DWORD PTR 4[rax]
	mov	DWORD PTR dos_heads[rip], eax
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L24:
	mov	esi, DWORD PTR current_line_number[rip]
	lea	rdi, .LC3[rip]
	xor	eax, eax
	xor	r12d, r12d
	call	warnx@PLT
	mov	edx, DWORD PTR dos_cyls[rip]
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L28:
	mov	esi, DWORD PTR current_line_number[rip]
	lea	rdi, .LC7[rip]
	xor	r12d, r12d
	call	warnx@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L26:
	mov	esi, DWORD PTR current_line_number[rip]
	lea	rdi, .LC5[rip]
	xor	r12d, r12d
	call	warnx@PLT
	jmp	.L13
	.p2align 4,,10
	.p2align 3
.L25:
	mov	esi, DWORD PTR current_line_number[rip]
	lea	rdi, .LC4[rip]
	xor	eax, eax
	call	warnx@PLT
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L27:
	mov	esi, DWORD PTR current_line_number[rip]
	lea	rdi, .LC6[rip]
	xor	eax, eax
	xor	r12d, r12d
	call	warnx@PLT
	jmp	.L13
	.cfi_endproc
.LFE0:
	.size	process_geometry, .-process_geometry
	.comm	part_processed,8,8
	.comm	geom_processed,4,4
	.comm	dos_sectors,4,4
	.comm	dos_heads,4,4
	.comm	dos_cylsecs,4,4
	.comm	dos_cyls,4,4
	.comm	current_line_number,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_fdisk.c_process_geometry.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"ERROR line %d: the geometry specification line must"
	.ascii	" occur before\012    all partition specifications\000"
	.align	2
.LC1:
	.ascii	"ERROR line %d: incorrect number of geometry args\000"
	.align	2
.LC2:
	.ascii	"ERROR line %d: unknown geometry arg type: '%c' (0x%"
	.ascii	"02x)\000"
	.align	2
.LC3:
	.ascii	"ERROR line %d: number of cylinders not specified\000"
	.align	2
.LC4:
	.ascii	"WARNING line %d: number of cylinders (%d) may be ou"
	.ascii	"t-of-range\012    (must be within 1-1024 for normal"
	.ascii	" BIOS operation, unless the entire disk\012    is d"
	.ascii	"edicated to FreeBSD)\000"
	.align	2
.LC5:
	.ascii	"ERROR line %d: number of heads not specified\000"
	.align	2
.LC6:
	.ascii	"ERROR line %d: number of heads must be within (1-25"
	.ascii	"6)\000"
	.align	2
.LC7:
	.ascii	"ERROR line %d: number of sectors not specified\000"
	.align	2
.LC8:
	.ascii	"ERROR line %d: number of sectors must be within (1-"
	.ascii	"63)\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	process_geometry, %function
process_geometry:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	mov	r3, #1
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r1, .L29
	ldr	r2, .L29+4
	ldr	r5, [r1]
	sub	sp, sp, #12
	cmp	r5, #0
	str	r3, [r2]
	bne	.L21
	ldr	r2, [r0]
	mov	r6, r0
	cmp	r2, #3
	bne	.L22
	mov	r4, r5
	ldr	r9, .L29+8
	ldr	r8, .L29+12
	ldr	r7, .L29+16
	ldr	fp, .L29+20
	ldr	r10, .L29+24
	str	r5, [r9]
	str	r5, [r8]
	str	r5, [r7]
.L9:
	ldr	r2, [r6, #4]
	ldr	r1, [r2, r4]
	add	r2, r2, r4
	cmp	r1, #104
	beq	.L5
	cmp	r1, #115
	beq	.L6
	cmp	r1, #99
	beq	.L23
	mov	r3, r1
	mov	r2, r1
	mov	r0, r10
	ldr	r1, [fp]
	bl	warnx
	mov	r3, #0
.L8:
	add	r4, r4, #8
	cmp	r4, #24
	bne	.L9
	cmp	r3, #0
	beq	.L19
	ldr	r0, [r7]
	ldr	r1, [r8]
	ldr	r2, [r9]
	mul	r1, r0, r1
	ldr	r0, .L29+28
	cmp	r2, #0
	str	r1, [r0]
	beq	.L24
.L10:
	cmp	r2, #1024
	bgt	.L25
.L11:
	ldr	r2, [r8]
	cmp	r2, #0
	beq	.L26
	cmp	r2, #256
	bgt	.L27
.L13:
	ldr	r2, [r7]
	cmp	r2, #0
	beq	.L28
	cmp	r2, #63
	movle	r5, r3
	ble	.L1
	ldr	r3, .L29+20
	ldr	r0, .L29+32
	ldr	r1, [r3]
	bl	warnx
	b	.L1
.L22:
	ldr	r3, .L29+20
	ldr	r0, .L29+36
	ldr	r1, [r3]
	bl	warnx
.L1:
	mov	r0, r5
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L21:
	ldr	r3, .L29+20
	ldr	r0, .L29+40
	ldr	r1, [r3]
	bl	warnx
.L19:
	mov	r5, #0
	mov	r0, r5
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L23:
	ldr	r2, [r2, #4]
	str	r2, [r9]
	b	.L8
.L6:
	ldr	r2, [r2, #4]
	str	r2, [r7]
	b	.L8
.L5:
	ldr	r2, [r2, #4]
	str	r2, [r8]
	b	.L8
.L24:
	ldr	r3, .L29+20
	ldr	r0, .L29+44
	ldr	r1, [r3]
	str	r2, [sp, #4]
	bl	warnx
	ldr	r2, [r9]
	ldr	r3, [sp, #4]
	b	.L10
.L28:
	ldr	r3, .L29+20
	ldr	r0, .L29+48
	ldr	r1, [r3]
	mov	r5, r2
	bl	warnx
	b	.L1
.L26:
	ldr	r3, .L29+20
	ldr	r0, .L29+52
	ldr	r1, [r3]
	str	r2, [sp, #4]
	bl	warnx
	ldr	r3, [sp, #4]
	b	.L13
.L25:
	ldr	r1, .L29+20
	ldr	r0, .L29+56
	ldr	r1, [r1]
	str	r3, [sp, #4]
	bl	warnx
	ldr	r3, [sp, #4]
	b	.L11
.L27:
	ldr	r3, .L29+20
	ldr	r0, .L29+60
	ldr	r1, [r3]
	bl	warnx
	mov	r3, #0
	b	.L13
.L30:
	.align	2
.L29:
	.word	part_processed
	.word	geom_processed
	.word	dos_cyls
	.word	dos_heads
	.word	dos_sectors
	.word	current_line_number
	.word	.LC2
	.word	dos_cylsecs
	.word	.LC8
	.word	.LC1
	.word	.LC0
	.word	.LC3
	.word	.LC7
	.word	.LC5
	.word	.LC4
	.word	.LC6
	.size	process_geometry, .-process_geometry
	.comm	part_processed,4,4
	.comm	geom_processed,4,4
	.comm	dos_sectors,4,4
	.comm	dos_heads,4,4
	.comm	dos_cylsecs,4,4
	.comm	dos_cyls,4,4
	.comm	current_line_number,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
