	.file	"extr_sati_test_unit_ready.c_sati_test_unit_ready_translate_response.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	sati_test_unit_ready_translate_response
	.type	sati_test_unit_ready_translate_response, @function
sati_test_unit_ready_translate_response:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	mov	rdi, rdx
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	call	sati_cb_get_d2h_register_fis_address@PLT
	mov	rdi, rax
	call	sati_get_ata_status@PLT
	mov	r8d, eax
	mov	eax, DWORD PTR SATI_COMPLETE[rip]
	test	DWORD PTR ATA_STATUS_REG_ERROR_BIT[rip], r8d
	jne	.L7
	add	rsp, 8
	.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
.L7:
	.cfi_restore_state
	mov	r9d, DWORD PTR SCSI_ASCQ_LUN_NOT_RESPOND_TO_SELECTION[rip]
	mov	r8d, DWORD PTR SCSI_ASC_LUN_NOT_RESPOND_TO_SELECTION[rip]
	mov	rsi, r12
	mov	rdi, rbp
	mov	ecx, DWORD PTR SCSI_SENSE_NOT_READY[rip]
	mov	edx, DWORD PTR SCSI_STATUS_CHECK_CONDITION[rip]
	call	sati_scsi_sense_data_construct@PLT
	mov	eax, DWORD PTR SATI_FAILURE_CHECK_RESPONSE_DATA[rip]
	add	rsp, 8
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	sati_test_unit_ready_translate_response, .-sati_test_unit_ready_translate_response
	.comm	SCSI_STATUS_CHECK_CONDITION,4,4
	.comm	SCSI_SENSE_NOT_READY,4,4
	.comm	SCSI_ASC_LUN_NOT_RESPOND_TO_SELECTION,4,4
	.comm	SCSI_ASCQ_LUN_NOT_RESPOND_TO_SELECTION,4,4
	.comm	SATI_FAILURE_CHECK_RESPONSE_DATA,4,4
	.comm	SATI_COMPLETE,4,4
	.comm	ATA_STATUS_REG_ERROR_BIT,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_sati_test_unit_ready.c_sati_test_unit_ready_translate_response.c"
	.text
	.align	2
	.global	sati_test_unit_ready_translate_response
	.syntax unified
	.arm
	.fpu softvfp
	.type	sati_test_unit_ready_translate_response, %function
sati_test_unit_ready_translate_response:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, lr}
	mov	r5, r0
	sub	sp, sp, #12
	mov	r0, r2
	mov	r4, r1
	bl	sati_cb_get_d2h_register_fis_address
	bl	sati_get_ata_status
	ldr	r3, .L7
	ldr	r3, [r3]
	tst	r0, r3
	bne	.L6
	ldr	r3, .L7+4
	ldr	r0, [r3]
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, pc}
.L6:
	ldr	r2, .L7+8
	ldr	r3, .L7+12
	ldr	lr, [r2]
	ldr	ip, [r3]
	ldr	r2, .L7+16
	stm	sp, {ip, lr}
	ldr	r3, .L7+20
	mov	r1, r4
	mov	r0, r5
	ldr	r3, [r3]
	ldr	r2, [r2]
	bl	sati_scsi_sense_data_construct
	ldr	r3, .L7+24
	ldr	r0, [r3]
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, pc}
.L8:
	.align	2
.L7:
	.word	ATA_STATUS_REG_ERROR_BIT
	.word	SATI_COMPLETE
	.word	SCSI_ASCQ_LUN_NOT_RESPOND_TO_SELECTION
	.word	SCSI_ASC_LUN_NOT_RESPOND_TO_SELECTION
	.word	SCSI_STATUS_CHECK_CONDITION
	.word	SCSI_SENSE_NOT_READY
	.word	SATI_FAILURE_CHECK_RESPONSE_DATA
	.size	sati_test_unit_ready_translate_response, .-sati_test_unit_ready_translate_response
	.comm	SCSI_STATUS_CHECK_CONDITION,4,4
	.comm	SCSI_SENSE_NOT_READY,4,4
	.comm	SCSI_ASC_LUN_NOT_RESPOND_TO_SELECTION,4,4
	.comm	SCSI_ASCQ_LUN_NOT_RESPOND_TO_SELECTION,4,4
	.comm	SATI_FAILURE_CHECK_RESPONSE_DATA,4,4
	.comm	SATI_COMPLETE,4,4
	.comm	ATA_STATUS_REG_ERROR_BIT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
