	.file	"extr_nsp32.c_nsp32_eh_abort.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"abort"
.LC1:
	.string	"abort failed"
.LC2:
	.string	"abort success"
	.text
	.p2align 4
	.type	nsp32_eh_abort, @function
nsp32_eh_abort:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	lea	rsi, .LC0[rip]
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rax, QWORD PTR 8[rdi]
	mov	rbp, rdi
	mov	edi, DWORD PTR KERN_WARNING[rip]
	mov	rax, QWORD PTR [rax]
	mov	r12, QWORD PTR 8[rax]
	mov	r13d, DWORD PTR [rax]
	call	nsp32_msg@PLT
	mov	rax, QWORD PTR 8[r12]
	cmp	QWORD PTR [rax], 0
	je	.L10
	mov	rsi, QWORD PTR [r12]
	mov	eax, DWORD PTR SDTR_INITIATOR[rip]
	or	eax, DWORD PTR SDTR_TARGET[rip]
	test	DWORD PTR [rsi], eax
	jne	.L11
.L4:
	mov	esi, DWORD PTR TRANSFER_CONTROL[rip]
	xor	edx, edx
	mov	edi, r13d
	call	nsp32_write2@PLT
	mov	esi, DWORD PTR BM_CNT[rip]
	xor	edx, edx
	mov	edi, r13d
	call	nsp32_write2@PLT
	mov	eax, DWORD PTR DID_ABORT[rip]
	mov	rdi, rbp
	sal	eax, 16
	mov	DWORD PTR 0[rbp], eax
	call	nsp32_scsi_done@PLT
	mov	edi, DWORD PTR NSP32_DEBUG_BUSRESET[rip]
	lea	rsi, .LC2[rip]
	call	nsp32_dbg@PLT
	mov	eax, DWORD PTR SUCCESS[rip]
.L1:
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L11:
	.cfi_restore_state
	mov	DWORD PTR [rsi], 0
	mov	rdi, r12
	call	nsp32_set_async@PLT
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L10:
	mov	edi, DWORD PTR NSP32_DEBUG_BUSRESET[rip]
	lea	rsi, .LC1[rip]
	call	nsp32_dbg@PLT
	mov	eax, DWORD PTR FAILED[rip]
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	nsp32_eh_abort, .-nsp32_eh_abort
	.comm	TRANSFER_CONTROL,4,4
	.comm	SUCCESS,4,4
	.comm	SDTR_TARGET,4,4
	.comm	SDTR_INITIATOR,4,4
	.comm	NSP32_DEBUG_BUSRESET,4,4
	.comm	KERN_WARNING,4,4
	.comm	FAILED,4,4
	.comm	DID_ABORT,4,4
	.comm	BM_CNT,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_nsp32.c_nsp32_eh_abort.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"abort\000"
	.align	2
.LC1:
	.ascii	"abort failed\000"
	.align	2
.LC2:
	.ascii	"abort success\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	nsp32_eh_abort, %function
nsp32_eh_abort:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, [r0, #4]
	ldr	r2, .L12
	ldr	r3, [r3]
	push	{r4, r5, r6, lr}
	ldr	r5, [r3, #4]
	mov	r4, r0
	ldr	r1, .L12+4
	ldr	r0, [r2]
	ldr	r6, [r3]
	bl	nsp32_msg
	ldr	r3, [r5, #4]
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L10
	ldr	r2, .L12+8
	ldr	r3, .L12+12
	ldr	r1, [r5]
	ldr	r0, [r2]
	ldr	r3, [r3]
	ldr	r2, [r1]
	orr	r3, r3, r0
	tst	r3, r2
	bne	.L11
.L4:
	ldr	r3, .L12+16
	mov	r2, #0
	ldr	r1, [r3]
	mov	r0, r6
	bl	nsp32_write2
	ldr	r3, .L12+20
	mov	r2, #0
	ldr	r1, [r3]
	mov	r0, r6
	bl	nsp32_write2
	ldr	r3, .L12+24
	mov	r0, r4
	ldr	r3, [r3]
	lsl	r3, r3, #16
	str	r3, [r4]
	bl	nsp32_scsi_done
	ldr	r3, .L12+28
	ldr	r1, .L12+32
	ldr	r0, [r3]
	bl	nsp32_dbg
	ldr	r3, .L12+36
	ldr	r0, [r3]
	pop	{r4, r5, r6, pc}
.L11:
	mov	r3, #0
	mov	r0, r5
	str	r3, [r1]
	bl	nsp32_set_async
	b	.L4
.L10:
	ldr	r3, .L12+28
	ldr	r1, .L12+40
	ldr	r0, [r3]
	bl	nsp32_dbg
	ldr	r3, .L12+44
	ldr	r0, [r3]
	pop	{r4, r5, r6, pc}
.L13:
	.align	2
.L12:
	.word	KERN_WARNING
	.word	.LC0
	.word	SDTR_TARGET
	.word	SDTR_INITIATOR
	.word	TRANSFER_CONTROL
	.word	BM_CNT
	.word	DID_ABORT
	.word	NSP32_DEBUG_BUSRESET
	.word	.LC2
	.word	SUCCESS
	.word	.LC1
	.word	FAILED
	.size	nsp32_eh_abort, .-nsp32_eh_abort
	.comm	TRANSFER_CONTROL,4,4
	.comm	SUCCESS,4,4
	.comm	SDTR_TARGET,4,4
	.comm	SDTR_INITIATOR,4,4
	.comm	NSP32_DEBUG_BUSRESET,4,4
	.comm	KERN_WARNING,4,4
	.comm	FAILED,4,4
	.comm	DID_ABORT,4,4
	.comm	BM_CNT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
