	.file	"extr_scic_sds_controller.c_scic_sds_controller_polling_completion_handler.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"SCIC Controller has encountered a fatal error.\n"
	.text
	.p2align 4
	.type	scic_sds_controller_polling_completion_handler, @function
scic_sds_controller_polling_completion_handler:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	call	sci_base_object_get_logger@PLT
	mov	edi, ebp
	call	SCIC_LOG_TRACE@PLT
	mov	rax, QWORD PTR TRUE[rip]
	mov	rdi, rbp
	cmp	QWORD PTR 0[rbp], rax
	je	.L10
	call	scic_sds_controller_completion_queue_has_entries@PLT
	test	rax, rax
	je	.L3
	mov	rax, QWORD PTR FALSE[rip]
	mov	rdi, rbp
	cmp	QWORD PTR 8[rbp], rax
	je	.L11
	call	scic_sds_controller_transitioned_process_completions@PLT
.L3:
	mov	esi, DWORD PTR SMU_ISR_COMPLETION[rip]
	or	esi, DWORD PTR SMU_ISR_QUEUE_ERROR[rip]
	mov	rdi, rbp
	or	esi, DWORD PTR SMU_ISR_QUEUE_SUSPEND[rip]
	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
	jmp	SMU_ISR_WRITE@PLT
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore_state
	call	sci_base_object_get_logger@PLT
	lea	rax, .LC0[rip]
	lea	edi, [rax]
	call	SCIC_LOG_ERROR@PLT
	mov	r12d, DWORD PTR SCI_BASE_CONTROLLER_STATE_FAILED[rip]
	mov	rdi, rbp
	call	scic_sds_controller_get_base_state_machine@PLT
	mov	edi, eax
	mov	esi, r12d
	call	sci_base_state_machine_change_state@PLT
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L11:
	call	scic_sds_controller_process_completions@PLT
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	scic_sds_controller_polling_completion_handler, .-scic_sds_controller_polling_completion_handler
	.comm	TRUE,8,8
	.comm	SMU_ISR_QUEUE_SUSPEND,4,4
	.comm	SMU_ISR_QUEUE_ERROR,4,4
	.comm	SMU_ISR_COMPLETION,4,4
	.comm	SCI_BASE_CONTROLLER_STATE_FAILED,4,4
	.comm	SCIC_LOG_OBJECT_CONTROLLER,4,4
	.comm	FALSE,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_scic_sds_controller.c_scic_sds_controller_polling_completion_handler.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"SCIC Controller has encountered a fatal error.\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	scic_sds_controller_polling_completion_handler, %function
scic_sds_controller_polling_completion_handler:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, lr}
	mov	r4, r0
	bl	sci_base_object_get_logger
	mov	r0, r4
	bl	SCIC_LOG_TRACE
	ldr	r3, .L12
	ldr	r2, [r4]
	ldr	r3, [r3]
	mov	r0, r4
	cmp	r2, r3
	beq	.L10
	bl	scic_sds_controller_completion_queue_has_entries
	cmp	r0, #0
	beq	.L3
	ldr	r3, .L12+4
	ldr	r2, [r4, #4]
	ldr	r3, [r3]
	mov	r0, r4
	cmp	r2, r3
	beq	.L11
	bl	scic_sds_controller_transitioned_process_completions
.L3:
	ldr	r3, .L12+8
	ldr	r2, .L12+12
	ldr	r1, .L12+16
	ldr	r3, [r3]
	ldr	r2, [r2]
	ldr	r1, [r1]
	orr	r3, r3, r2
	mov	r0, r4
	pop	{r4, lr}
	orr	r1, r3, r1
	b	SMU_ISR_WRITE
.L10:
	bl	sci_base_object_get_logger
	ldr	r0, .L12+20
	bl	SCIC_LOG_ERROR
	mov	r0, r4
	bl	scic_sds_controller_get_base_state_machine
	ldr	r3, .L12+24
	ldr	r1, [r3]
	bl	sci_base_state_machine_change_state
	b	.L3
.L11:
	bl	scic_sds_controller_process_completions
	b	.L3
.L13:
	.align	2
.L12:
	.word	TRUE
	.word	FALSE
	.word	SMU_ISR_COMPLETION
	.word	SMU_ISR_QUEUE_ERROR
	.word	SMU_ISR_QUEUE_SUSPEND
	.word	.LC0
	.word	SCI_BASE_CONTROLLER_STATE_FAILED
	.size	scic_sds_controller_polling_completion_handler, .-scic_sds_controller_polling_completion_handler
	.comm	TRUE,4,4
	.comm	SMU_ISR_QUEUE_SUSPEND,4,4
	.comm	SMU_ISR_QUEUE_ERROR,4,4
	.comm	SMU_ISR_COMPLETION,4,4
	.comm	SCI_BASE_CONTROLLER_STATE_FAILED,4,4
	.comm	SCIC_LOG_OBJECT_CONTROLLER,4,4
	.comm	FALSE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
