	.file	"extr_aic7xxx_core.c_ahc_clear_msg_state.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	ahc_clear_msg_state, @function
ahc_clear_msg_state:
.LFB0:
	.cfi_startproc
	endbr64
	mov	eax, DWORD PTR MSG_TYPE_NONE[rip]
	mov	esi, DWORD PTR SCSISIGI[rip]
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rdi
	mov	QWORD PTR 16[rdi], 0
	mov	QWORD PTR 8[rdi], 0
	mov	DWORD PTR [rdi], eax
	call	ahc_inb@PLT
	test	DWORD PTR ATNI[rip], eax
	jne	.L8
.L2:
	mov	edx, DWORD PTR MSG_NOOP[rip]
	mov	esi, DWORD PTR MSG_OUT[rip]
	mov	rdi, rbp
	call	ahc_outb@PLT
	mov	esi, DWORD PTR SEQ_FLAGS2[rip]
	mov	rdi, rbp
	call	ahc_inb@PLT
	mov	edx, DWORD PTR TARGET_MSG_PENDING[rip]
	mov	esi, DWORD PTR SEQ_FLAGS2[rip]
	mov	rdi, rbp
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	not	edx
	and	edx, eax
	jmp	ahc_outb@PLT
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	mov	edx, DWORD PTR CLRATNO[rip]
	mov	esi, DWORD PTR CLRSINT1[rip]
	mov	rdi, rbp
	call	ahc_outb@PLT
	jmp	.L2
	.cfi_endproc
.LFE0:
	.size	ahc_clear_msg_state, .-ahc_clear_msg_state
	.comm	TARGET_MSG_PENDING,4,4
	.comm	SEQ_FLAGS2,4,4
	.comm	SCSISIGI,4,4
	.comm	MSG_TYPE_NONE,4,4
	.comm	MSG_OUT,4,4
	.comm	MSG_NOOP,4,4
	.comm	CLRSINT1,4,4
	.comm	CLRATNO,4,4
	.comm	ATNI,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_aic7xxx_core.c_ahc_clear_msg_state.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ahc_clear_msg_state, %function
ahc_clear_msg_state:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	mov	r3, #0
	ldr	r1, .L9
	ldr	r2, .L9+4
	ldr	r1, [r1]
	push	{r4, r5, r6, lr}
	stm	r0, {r1, r3}
	str	r3, [r0, #8]
	ldr	r1, [r2]
	mov	r4, r0
	bl	ahc_inb
	ldr	r3, .L9+8
	ldr	r3, [r3]
	tst	r0, r3
	bne	.L8
.L2:
	ldr	r3, .L9+12
	ldr	r2, .L9+16
	ldr	r1, [r3]
	ldr	r2, [r2]
	mov	r0, r4
	bl	ahc_outb
	ldr	r3, .L9+20
	mov	r0, r4
	ldr	r5, [r3]
	mov	r1, r5
	bl	ahc_inb
	mov	r3, r0
	ldr	r2, .L9+24
	mov	r1, r5
	ldr	r2, [r2]
	mov	r0, r4
	pop	{r4, r5, r6, lr}
	bic	r2, r3, r2
	b	ahc_outb
.L8:
	ldr	r3, .L9+28
	ldr	r2, .L9+32
	mov	r0, r4
	ldr	r2, [r2]
	ldr	r1, [r3]
	bl	ahc_outb
	b	.L2
.L10:
	.align	2
.L9:
	.word	MSG_TYPE_NONE
	.word	SCSISIGI
	.word	ATNI
	.word	MSG_OUT
	.word	MSG_NOOP
	.word	SEQ_FLAGS2
	.word	TARGET_MSG_PENDING
	.word	CLRSINT1
	.word	CLRATNO
	.size	ahc_clear_msg_state, .-ahc_clear_msg_state
	.comm	TARGET_MSG_PENDING,4,4
	.comm	SEQ_FLAGS2,4,4
	.comm	SCSISIGI,4,4
	.comm	MSG_TYPE_NONE,4,4
	.comm	MSG_OUT,4,4
	.comm	MSG_NOOP,4,4
	.comm	CLRSINT1,4,4
	.comm	CLRATNO,4,4
	.comm	ATNI,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
