	.file	"extr_scic_sds_stp_request.c_scic_sds_stp_request_non_data_await_d2h_frame_handler.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	scic_sds_stp_request_non_data_await_d2h_frame_handler, @function
scic_sds_stp_request_non_data_await_d2h_frame_handler:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12d, esi
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rdi
	sub	rsp, 40
	.cfi_def_cfa_offset 80
	mov	r14, QWORD PTR 8[rdi]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 24[rsp], rax
	xor	eax, eax
	call	sci_base_object_get_logger@PLT
	mov	edi, r12d
	call	SCIC_LOG_TRACE@PLT
	lea	rdx, 8[rsp]
	mov	esi, r12d
	mov	rdi, r14
	call	scic_sds_unsolicited_frame_control_get_header@PLT
	cmp	QWORD PTR SCI_SUCCESS[rip], rax
	mov	r13, rax
	jne	.L2
	mov	rax, QWORD PTR 8[rsp]
	cmp	DWORD PTR [rax], 128
	je	.L9
	mov	rdi, rbp
	call	sci_base_object_get_logger@PLT
	mov	edi, r12d
	call	SCIC_LOG_WARNING@PLT
	mov	edx, DWORD PTR SCI_FAILURE_PROTOCOL_VIOLATION[rip]
	mov	esi, DWORD PTR SCU_TASK_DONE_UNEXP_FIS[rip]
	mov	rdi, rbp
	call	scic_sds_request_set_status@PLT
.L4:
	mov	esi, DWORD PTR SCI_BASE_REQUEST_STATE_COMPLETED[rip]
	mov	rdi, rbp
	call	sci_base_state_machine_change_state@PLT
	mov	esi, r12d
	mov	rdi, r14
	call	scic_sds_controller_release_frame@PLT
.L1:
	mov	rax, QWORD PTR 24[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L10
	add	rsp, 40
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	rax, r13
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	rdi, rbp
	call	sci_base_object_get_logger@PLT
	mov	edi, r13d
	call	SCIC_LOG_ERROR@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L9:
	lea	rdx, 16[rsp]
	mov	esi, r12d
	mov	rdi, r14
	call	scic_sds_unsolicited_frame_control_get_buffer@PLT
	mov	rdx, QWORD PTR 16[rsp]
	mov	rsi, QWORD PTR 8[rsp]
	lea	rdi, 16[rbp]
	call	scic_sds_controller_copy_sata_response@PLT
	mov	edx, DWORD PTR SCI_FAILURE_IO_RESPONSE_VALID[rip]
	mov	esi, DWORD PTR SCU_TASK_DONE_CHECK_RESPONSE[rip]
	mov	rdi, rbp
	call	scic_sds_request_set_status@PLT
	jmp	.L4
.L10:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	scic_sds_stp_request_non_data_await_d2h_frame_handler, .-scic_sds_stp_request_non_data_await_d2h_frame_handler
	.comm	SCU_TASK_DONE_UNEXP_FIS,4,4
	.comm	SCU_TASK_DONE_CHECK_RESPONSE,4,4
	.comm	SCI_SUCCESS,8,8
	.comm	SCI_FAILURE_PROTOCOL_VIOLATION,4,4
	.comm	SCI_FAILURE_IO_RESPONSE_VALID,4,4
	.comm	SCI_BASE_REQUEST_STATE_COMPLETED,4,4
	.comm	SCIC_LOG_OBJECT_STP_IO_REQUEST,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_scic_sds_stp_request.c_scic_sds_stp_request_non_data_await_d2h_frame_handler.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	scic_sds_stp_request_non_data_await_d2h_frame_handler, %function
scic_sds_stp_request_non_data_await_d2h_frame_handler:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	mov	r4, r1
	ldr	r3, .L11
	sub	sp, sp, #20
	ldr	r7, [r0, #4]
	ldr	r3, [r3]
	str	r3, [sp, #12]
	mov	r3,#0
	mov	r5, r0
	bl	sci_base_object_get_logger
	mov	r0, r4
	bl	SCIC_LOG_TRACE
	mov	r0, r7
	mov	r1, r4
	add	r2, sp, #4
	bl	scic_sds_unsolicited_frame_control_get_header
	ldr	r3, .L11+4
	mov	r6, r0
	ldr	r3, [r3]
	cmp	r3, r0
	bne	.L2
	ldr	r3, [sp, #4]
	ldr	r3, [r3]
	cmp	r3, #128
	beq	.L9
	mov	r0, r5
	bl	sci_base_object_get_logger
	mov	r0, r4
	bl	SCIC_LOG_WARNING
	ldr	r2, .L11+8
	ldr	r3, .L11+12
	mov	r0, r5
	ldr	r2, [r2]
	ldr	r1, [r3]
	bl	scic_sds_request_set_status
.L4:
	ldr	r3, .L11+16
	mov	r0, r5
	ldr	r1, [r3]
	bl	sci_base_state_machine_change_state
	mov	r1, r4
	mov	r0, r7
	bl	scic_sds_controller_release_frame
.L1:
	ldr	r3, .L11
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L10
	mov	r0, r6
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L2:
	mov	r0, r5
	bl	sci_base_object_get_logger
	mov	r0, r6
	bl	SCIC_LOG_ERROR
	b	.L1
.L9:
	mov	r1, r4
	add	r2, sp, #8
	mov	r0, r7
	bl	scic_sds_unsolicited_frame_control_get_buffer
	ldmib	sp, {r1, r2}
	add	r0, r5, #8
	bl	scic_sds_controller_copy_sata_response
	ldr	r3, .L11+20
	ldr	r2, .L11+24
	mov	r0, r5
	ldr	r2, [r2]
	ldr	r1, [r3]
	bl	scic_sds_request_set_status
	b	.L4
.L10:
	bl	__stack_chk_fail
.L12:
	.align	2
.L11:
	.word	.LC0
	.word	SCI_SUCCESS
	.word	SCI_FAILURE_PROTOCOL_VIOLATION
	.word	SCU_TASK_DONE_UNEXP_FIS
	.word	SCI_BASE_REQUEST_STATE_COMPLETED
	.word	SCU_TASK_DONE_CHECK_RESPONSE
	.word	SCI_FAILURE_IO_RESPONSE_VALID
	.size	scic_sds_stp_request_non_data_await_d2h_frame_handler, .-scic_sds_stp_request_non_data_await_d2h_frame_handler
	.comm	SCU_TASK_DONE_UNEXP_FIS,4,4
	.comm	SCU_TASK_DONE_CHECK_RESPONSE,4,4
	.comm	SCI_SUCCESS,4,4
	.comm	SCI_FAILURE_PROTOCOL_VIOLATION,4,4
	.comm	SCI_FAILURE_IO_RESPONSE_VALID,4,4
	.comm	SCI_BASE_REQUEST_STATE_COMPLETED,4,4
	.comm	SCIC_LOG_OBJECT_STP_IO_REQUEST,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
