	.file	"extr_initio.c_initio_status_msg.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	initio_status_msg
	.type	initio_status_msg, @function
initio_status_msg:
.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
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	rbx, QWORD PTR 24[rdi]
	mov	rsi, QWORD PTR TUL_SCmd[rip]
	add	rsi, QWORD PTR 16[rdi]
	mov	edi, DWORD PTR TSC_CMD_COMP[rip]
	call	outb@PLT
	mov	rdi, rbp
	call	wait_tulip@PLT
	cmp	eax, -1
	je	.L3
	mov	rdi, QWORD PTR TUL_SFifo[rip]
	add	rdi, QWORD PTR 16[rbp]
	call	inb@PLT
	mov	DWORD PTR [rbx], eax
	mov	rax, QWORD PTR 0[rbp]
	cmp	rax, QWORD PTR MSG_OUT[rip]
	je	.L20
	cmp	rax, QWORD PTR MSG_IN[rip]
	je	.L21
.L7:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	rdi, rbp
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	jmp	initio_bad_seq@PLT
	.p2align 4,,10
	.p2align 3
.L21:
	.cfi_restore_state
	mov	rdi, QWORD PTR TUL_SFifo[rip]
	add	rdi, QWORD PTR 16[rbp]
	call	inb@PLT
	mov	edx, DWORD PTR 8[rbp]
	test	DWORD PTR TSS_PAR_ERROR[rip], edx
	jne	.L22
	test	rax, rax
	je	.L23
	cmp	QWORD PTR MSG_LINK_COMP[rip], rax
	je	.L13
	cmp	QWORD PTR MSG_LINK_FLAG[rip], rax
	jne	.L7
.L13:
	mov	eax, DWORD PTR [rbx]
	and	eax, 24
	cmp	eax, 16
	jne	.L7
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	rdi, rbp
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	jmp	initio_msgin_accept@PLT
	.p2align 4,,10
	.p2align 3
.L20:
	.cfi_restore_state
	mov	rsi, QWORD PTR TUL_SFifo[rip]
	mov	eax, DWORD PTR 8[rbp]
	add	rsi, QWORD PTR 16[rbp]
	test	DWORD PTR TSS_PAR_ERROR[rip], eax
	jne	.L24
	mov	edi, DWORD PTR MSG_NOP[rip]
.L18:
	call	outb@PLT
.L6:
	mov	edi, DWORD PTR TSC_XF_FIFO_OUT[rip]
	mov	rsi, QWORD PTR TUL_SCmd[rip]
	add	rsi, QWORD PTR 16[rbp]
	call	outb@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	rdi, rbp
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	jmp	wait_tulip@PLT
	.p2align 4,,10
	.p2align 3
.L24:
	.cfi_restore_state
	mov	edi, DWORD PTR MSG_PARITY[rip]
	call	outb@PLT
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L22:
	mov	rdi, rbp
	call	initio_msgin_accept@PLT
	cmp	eax, -1
	je	.L3
	mov	rax, QWORD PTR MSG_OUT[rip]
	cmp	QWORD PTR 0[rbp], rax
	jne	.L7
	mov	rsi, QWORD PTR TUL_SFifo[rip]
	mov	edi, DWORD PTR MSG_PARITY[rip]
	add	rsi, QWORD PTR 16[rbp]
	jmp	.L18
	.p2align 4,,10
	.p2align 3
.L23:
	mov	eax, DWORD PTR [rbx]
	and	eax, 24
	cmp	eax, 16
	je	.L7
	mov	edi, DWORD PTR TSC_FLUSH_FIFO[rip]
	mov	rsi, QWORD PTR TUL_SCtrl0[rip]
	add	rsi, QWORD PTR 16[rbp]
	call	outb@PLT
	mov	edi, DWORD PTR TSC_MSG_ACCEPT[rip]
	mov	rsi, QWORD PTR TUL_SCmd[rip]
	add	rsi, QWORD PTR 16[rbp]
	call	outb@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	rdi, rbp
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	jmp	initio_wait_done_disc@PLT
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	add	rsp, 8
	.cfi_def_cfa_offset 24
	mov	eax, -1
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	initio_status_msg, .-initio_status_msg
	.comm	TUL_SFifo,8,8
	.comm	TUL_SCtrl0,8,8
	.comm	TUL_SCmd,8,8
	.comm	TSS_PAR_ERROR,4,4
	.comm	TSC_XF_FIFO_OUT,4,4
	.comm	TSC_MSG_ACCEPT,4,4
	.comm	TSC_FLUSH_FIFO,4,4
	.comm	TSC_CMD_COMP,4,4
	.comm	MSG_PARITY,4,4
	.comm	MSG_OUT,8,8
	.comm	MSG_NOP,4,4
	.comm	MSG_LINK_FLAG,8,8
	.comm	MSG_LINK_COMP,8,8
	.comm	MSG_IN,8,8
	.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_initio.c_initio_status_msg.c"
	.text
	.align	2
	.global	initio_status_msg
	.syntax unified
	.arm
	.fpu softvfp
	.type	initio_status_msg, %function
initio_status_msg:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, r0
	ldr	r6, .L25
	ldr	r1, [r0, #8]
	ldr	r2, [r6]
	ldr	r3, .L25+4
	add	r1, r1, r2
	ldr	r0, [r3]
	ldr	r7, [r4, #12]
	bl	outb
	mov	r0, r4
	bl	wait_tulip
	cmn	r0, #1
	beq	.L3
	ldr	r5, .L25+8
	ldr	r0, [r4, #8]
	ldr	r3, [r5]
	ldr	r8, .L25+12
	add	r0, r0, r3
	bl	inb
	ldr	r2, [r8]
	ldr	r3, [r4]
	str	r0, [r7]
	cmp	r3, r2
	beq	.L20
	ldr	r2, .L25+16
	ldr	r2, [r2]
	cmp	r3, r2
	beq	.L21
.L7:
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, lr}
	b	initio_bad_seq
.L21:
	ldr	r3, [r5]
	ldr	r0, [r4, #8]
	add	r0, r0, r3
	bl	inb
	ldr	r3, .L25+20
	ldr	r2, [r4, #4]
	ldr	r3, [r3]
	tst	r2, r3
	bne	.L22
	cmp	r0, #0
	beq	.L23
	ldr	r3, .L25+24
	ldr	r3, [r3]
	cmp	r3, r0
	beq	.L13
	ldr	r3, .L25+28
	ldr	r3, [r3]
	cmp	r3, r0
	bne	.L7
.L13:
	ldr	r3, [r7]
	and	r3, r3, #24
	cmp	r3, #16
	bne	.L7
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, lr}
	b	initio_msgin_accept
.L20:
	ldr	r3, .L25+20
	ldr	r0, [r4, #4]
	ldr	r2, [r3]
	ldr	r1, [r4, #8]
	ldr	r3, [r5]
	tst	r0, r2
	add	r1, r1, r3
	bne	.L24
	ldr	r3, .L25+32
.L18:
	ldr	r0, [r3]
	bl	outb
.L6:
	ldr	r2, [r6]
	ldr	r1, [r4, #8]
	ldr	r3, .L25+36
	add	r1, r1, r2
	ldr	r0, [r3]
	bl	outb
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, lr}
	b	wait_tulip
.L24:
	ldr	r3, .L25+40
	ldr	r0, [r3]
	bl	outb
	b	.L6
.L22:
	mov	r0, r4
	bl	initio_msgin_accept
	cmn	r0, #1
	beq	.L3
	ldr	r3, [r8]
	ldr	r2, [r4]
	cmp	r2, r3
	bne	.L7
	ldr	r2, [r5]
	ldr	r1, [r4, #8]
	ldr	r3, .L25+40
	add	r1, r1, r2
	b	.L18
.L23:
	ldr	r3, [r7]
	and	r3, r3, #24
	cmp	r3, #16
	beq	.L7
	ldr	r3, .L25+44
	ldr	r1, [r4, #8]
	ldr	r2, [r3]
	ldr	r3, .L25+48
	add	r1, r1, r2
	ldr	r0, [r3]
	bl	outb
	ldr	r2, [r6]
	ldr	r1, [r4, #8]
	ldr	r3, .L25+52
	add	r1, r1, r2
	ldr	r0, [r3]
	bl	outb
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, lr}
	b	initio_wait_done_disc
.L3:
	mvn	r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L26:
	.align	2
.L25:
	.word	TUL_SCmd
	.word	TSC_CMD_COMP
	.word	TUL_SFifo
	.word	MSG_OUT
	.word	MSG_IN
	.word	TSS_PAR_ERROR
	.word	MSG_LINK_COMP
	.word	MSG_LINK_FLAG
	.word	MSG_NOP
	.word	TSC_XF_FIFO_OUT
	.word	MSG_PARITY
	.word	TUL_SCtrl0
	.word	TSC_FLUSH_FIFO
	.word	TSC_MSG_ACCEPT
	.size	initio_status_msg, .-initio_status_msg
	.comm	TUL_SFifo,4,4
	.comm	TUL_SCtrl0,4,4
	.comm	TUL_SCmd,4,4
	.comm	TSS_PAR_ERROR,4,4
	.comm	TSC_XF_FIFO_OUT,4,4
	.comm	TSC_MSG_ACCEPT,4,4
	.comm	TSC_FLUSH_FIFO,4,4
	.comm	TSC_CMD_COMP,4,4
	.comm	MSG_PARITY,4,4
	.comm	MSG_OUT,4,4
	.comm	MSG_NOP,4,4
	.comm	MSG_LINK_FLAG,4,4
	.comm	MSG_LINK_COMP,4,4
	.comm	MSG_IN,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
