	.file	"extr_fdutil.c_printstatus.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"\nFDC status ST0=%#x ST1=%#x ST2=%#x C=%u H=%u R=%u N=%u:\n"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"unexcpted interrupt code %#x"
	.section	.rodata.str1.8
	.align 8
.LC2:
	.string	"unexpected error code in ST1/ST2"
	.align 8
.LC3:
	.string	"end of cylinder (wrong format)"
	.section	.rodata.str1.1
.LC4:
	.string	"CRC error in data field"
.LC5:
	.string	"CRC error in ID field"
.LC6:
	.string	"no address mark in data field"
.LC7:
	.string	"no address mark in ID field"
	.section	.rodata.str1.8
	.align 8
.LC8:
	.string	"wrong cylinder (format mismatch)"
	.section	.rodata.str1.1
.LC9:
	.string	"no data (sector not found)"
	.text
	.p2align 4
	.globl	printstatus
	.type	printstatus, @function
printstatus:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	rbx, rdi
	sub	rsp, 120
	.cfi_def_cfa_offset 144
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 104[rsp], rax
	xor	eax, eax
	mov	rax, QWORD PTR [rdi]
	mov	edx, DWORD PTR [rax]
	test	esi, esi
	je	.L18
.L2:
	and	edx, DWORD PTR NE7_ST0_IC_RC[rip]
	je	.L19
	cmp	edx, DWORD PTR NE7_ST0_IC_AT[rip]
	mov	rbp, rsp
	je	.L5
	lea	rsi, .LC1[rip]
	mov	rdi, rbp
	xor	eax, eax
	call	sprintf@PLT
.L4:
	mov	esi, DWORD PTR stderr[rip]
	mov	rdi, rbp
	call	fputs@PLT
	mov	rax, QWORD PTR 104[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L20
	add	rsp, 120
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	lea	rsi, .LC2[rip]
	mov	rdi, rbp
	call	strcpy@PLT
	mov	rdx, QWORD PTR [rbx]
	mov	eax, DWORD PTR 4[rdx]
	test	DWORD PTR NE7_ST1_EN[rip], eax
	jne	.L21
	mov	edx, DWORD PTR 8[rdx]
	test	DWORD PTR NE7_ST1_DE[rip], eax
	je	.L7
	test	DWORD PTR NE7_ST2_DD[rip], edx
	je	.L8
	lea	rsi, .LC4[rip]
	mov	rdi, rbp
	call	strcpy@PLT
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L19:
	movabs	rax, 32780218601924980
	mov	rbp, rsp
	mov	QWORD PTR [rsp], rax
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L18:
	movzx	esi, BYTE PTR 24[rax]
	sub	rsp, 8
	.cfi_def_cfa_offset 152
	movzx	r9d, BYTE PTR 12[rax]
	movzx	edx, dl
	movzx	r8d, BYTE PTR 8[rax]
	movzx	ecx, BYTE PTR 4[rax]
	push	rsi
	.cfi_def_cfa_offset 160
	movzx	esi, BYTE PTR 20[rax]
	mov	edi, DWORD PTR stderr[rip]
	push	rsi
	.cfi_def_cfa_offset 168
	movzx	eax, BYTE PTR 16[rax]
	lea	rsi, .LC0[rip]
	push	rax
	.cfi_def_cfa_offset 176
	call	fprintf@PLT
	mov	rax, QWORD PTR [rbx]
	add	rsp, 32
	.cfi_def_cfa_offset 144
	mov	edx, DWORD PTR [rax]
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L21:
	lea	rsi, .LC3[rip]
	mov	rdi, rbp
	call	strcpy@PLT
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L7:
	test	DWORD PTR NE7_ST1_MA[rip], eax
	jne	.L22
	test	DWORD PTR NE7_ST2_WC[rip], edx
	jne	.L23
	test	DWORD PTR NE7_ST1_ND[rip], eax
	je	.L4
	lea	rsi, .LC9[rip]
	mov	rdi, rbp
	call	strcpy@PLT
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L22:
	test	DWORD PTR NE7_ST2_MD[rip], edx
	je	.L10
	lea	rsi, .LC6[rip]
	mov	rdi, rbp
	call	strcpy@PLT
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L8:
	lea	rsi, .LC5[rip]
	mov	rdi, rbp
	call	strcpy@PLT
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L10:
	lea	rsi, .LC7[rip]
	mov	rdi, rbp
	call	strcpy@PLT
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L23:
	lea	rsi, .LC8[rip]
	mov	rdi, rbp
	call	strcpy@PLT
	jmp	.L4
.L20:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	printstatus, .-printstatus
	.comm	stderr,4,4
	.comm	NE7_ST2_WC,4,4
	.comm	NE7_ST2_MD,4,4
	.comm	NE7_ST2_DD,4,4
	.comm	NE7_ST1_ND,4,4
	.comm	NE7_ST1_MA,4,4
	.comm	NE7_ST1_EN,4,4
	.comm	NE7_ST1_DE,4,4
	.comm	NE7_ST0_IC_RC,4,4
	.comm	NE7_ST0_IC_AT,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_fdutil.c_printstatus.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"\012FDC status ST0=%#x ST1=%#x ST2=%#x C=%u H=%u R="
	.ascii	"%u N=%u:\012\000"
	.align	2
.LC1:
	.ascii	"timeout\000"
	.align	2
.LC2:
	.ascii	"unexcpted interrupt code %#x\000"
	.align	2
.LC3:
	.ascii	"unexpected error code in ST1/ST2\000"
	.align	2
.LC4:
	.ascii	"end of cylinder (wrong format)\000"
	.align	2
.LC5:
	.ascii	"CRC error in data field\000"
	.align	2
.LC6:
	.ascii	"CRC error in ID field\000"
	.align	2
.LC7:
	.ascii	"no address mark in data field\000"
	.align	2
.LC8:
	.ascii	"no address mark in ID field\000"
	.align	2
.LC9:
	.ascii	"wrong cylinder (format mismatch)\000"
	.align	2
.LC10:
	.ascii	"no data (sector not found)\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC11:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	printstatus
	.syntax unified
	.arm
	.fpu softvfp
	.type	printstatus, %function
printstatus:
	@ args = 0, pretend = 0, frame = 104
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	ldr	ip, [r0]
	ldr	r3, .L25
	sub	sp, sp, #132
	cmp	r1, #0
	ldr	r3, [r3]
	str	r3, [sp, #124]
	mov	r3,#0
	ldr	r2, [ip]
	beq	.L17
	ldr	r5, .L25+4
.L2:
	ldr	r3, .L25+8
	ldr	r3, [r3]
	ands	r2, r2, r3
	beq	.L20
	ldr	r3, .L25+12
	add	r6, sp, #24
	ldr	r3, [r3]
	cmp	r2, r3
	beq	.L5
	mov	r0, r6
	ldr	r1, .L25+16
	bl	sprintf
.L4:
	mov	r0, r6
	ldr	r1, [r5]
	bl	fputs
	ldr	r3, .L25
	ldr	r2, [r3]
	ldr	r3, [sp, #124]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L21
	add	sp, sp, #132
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L5:
	mov	lr, r6
	ldr	r4, .L25+20
	ldr	r7, .L25+24
	ldmia	r4!, {r0, r1, r2, r3}
	stmia	lr!, {r0, r1, r2, r3}
	ldmia	r4!, {r0, r1, r2, r3}
	stmia	lr!, {r0, r1, r2, r3}
	ldr	r3, [r4]
	ldr	r2, [r7]
	strb	r3, [lr]
	ldr	r3, [ip, #4]
	tst	r3, r2
	bne	.L22
	ldr	r1, .L25+28
	ldr	r2, [ip, #8]
	ldr	r1, [r1]
	tst	r3, r1
	beq	.L7
	ldr	r3, .L25+32
	mov	ip, r6
	ldr	r3, [r3]
	tst	r2, r3
	beq	.L8
	ldr	lr, .L25+36
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldm	lr, {r0, r1}
	stm	ip, {r0, r1}
	b	.L4
.L20:
	ldr	r3, .L25+40
	add	r6, sp, #24
	ldm	r3, {r0, r1}
	stm	r6, {r0, r1}
	b	.L4
.L17:
	mov	r4, r0
	ldrb	r1, [ip, #24]	@ zero_extendqisi2
	ldrb	r3, [ip, #4]	@ zero_extendqisi2
	str	r1, [sp, #16]
	ldrb	r1, [ip, #20]	@ zero_extendqisi2
	ldr	r5, .L25+4
	str	r1, [sp, #12]
	ldrb	r1, [ip, #16]	@ zero_extendqisi2
	and	r2, r2, #255
	str	r1, [sp, #8]
	ldrb	r1, [ip, #12]	@ zero_extendqisi2
	ldr	r0, [r5]
	str	r1, [sp, #4]
	ldrb	r1, [ip, #8]	@ zero_extendqisi2
	str	r1, [sp]
	ldr	r1, .L25+44
	bl	fprintf
	ldr	ip, [r4]
	ldr	r2, [ip]
	b	.L2
.L22:
	mov	ip, r6
	ldr	lr, .L25+48
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldm	lr, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2}
	lsr	r2, r3, #16
	strh	r3, [ip], #2	@ movhi
	strb	r2, [ip]
	b	.L4
.L7:
	ldr	r1, .L25+52
	ldr	r1, [r1]
	tst	r3, r1
	bne	.L23
	ldr	r1, .L25+56
	ldr	r1, [r1]
	tst	r2, r1
	bne	.L24
	ldr	r2, .L25+60
	ldr	r2, [r2]
	tst	r3, r2
	beq	.L4
	mov	ip, r6
	ldr	lr, .L25+64
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldm	lr, {r0, r1, r2}
	stmia	ip!, {r0, r1}
	lsr	r3, r2, #16
	strh	r2, [ip], #2	@ movhi
	strb	r3, [ip]
	b	.L4
.L23:
	ldr	r3, .L25+68
	mov	ip, r6
	ldr	r3, [r3]
	tst	r2, r3
	beq	.L10
	ldr	lr, .L25+72
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldm	lr, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2}
	strh	r3, [ip]	@ movhi
	b	.L4
.L8:
	ldr	lr, .L25+76
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldm	lr, {r0, r1}
	str	r0, [ip], #4
	strh	r1, [ip]	@ movhi
	b	.L4
.L10:
	ldr	lr, .L25+80
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldm	lr, {r0, r1, r2}
	stm	ip, {r0, r1, r2}
	b	.L4
.L24:
	mov	ip, r6
	ldr	lr, .L25+84
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldmia	lr!, {r0, r1, r2, r3}
	stmia	ip!, {r0, r1, r2, r3}
	ldr	r3, [lr]
	strb	r3, [ip]
	b	.L4
.L21:
	bl	__stack_chk_fail
.L26:
	.align	2
.L25:
	.word	.LC11
	.word	stderr
	.word	NE7_ST0_IC_RC
	.word	NE7_ST0_IC_AT
	.word	.LC2
	.word	.LC3
	.word	NE7_ST1_EN
	.word	NE7_ST1_DE
	.word	NE7_ST2_DD
	.word	.LC5
	.word	.LC1
	.word	.LC0
	.word	.LC4
	.word	NE7_ST1_MA
	.word	NE7_ST2_WC
	.word	NE7_ST1_ND
	.word	.LC10
	.word	NE7_ST2_MD
	.word	.LC7
	.word	.LC6
	.word	.LC8
	.word	.LC9
	.size	printstatus, .-printstatus
	.comm	stderr,4,4
	.comm	NE7_ST2_WC,4,4
	.comm	NE7_ST2_MD,4,4
	.comm	NE7_ST2_DD,4,4
	.comm	NE7_ST1_ND,4,4
	.comm	NE7_ST1_MA,4,4
	.comm	NE7_ST1_EN,4,4
	.comm	NE7_ST1_DE,4,4
	.comm	NE7_ST0_IC_RC,4,4
	.comm	NE7_ST0_IC_AT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
