	.file	"extr_aic94xx_hwi.c_asd_init_hw.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"couldn't read PCIC_HSTPCIX_CNTRL of %s\n"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"couldn't read ocm(%d)\n"
.LC2:
	.string	"couldn't read flash(%d)\n"
	.section	.rodata.str1.8
	.align 8
.LC3:
	.string	"No SAS Address provided for %s\n"
	.align 8
.LC4:
	.string	"couldn't initialize phys for %s\n"
	.align 8
.LC5:
	.string	"couldn't initialize scbs for %s\n"
	.align 8
.LC6:
	.string	"couldn't initialize the done list:%d\n"
	.section	.rodata.str1.1
.LC7:
	.string	"couldn't initialize escbs\n"
.LC8:
	.string	"couldn't init the chip\n"
	.text
	.p2align 4
	.globl	asd_init_hw
	.type	asd_init_hw, @function
asd_init_hw:
.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, 24
	.cfi_def_cfa_offset 48
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	call	asd_init_sw@PLT
	mov	r12d, eax
	test	eax, eax
	je	.L23
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L24
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	eax, r12d
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L23:
	.cfi_restore_state
	mov	esi, DWORD PTR PCIC_HSTPCIX_CNTRL[rip]
	mov	edi, DWORD PTR 0[rbp]
	lea	rdx, 4[rsp]
	call	pci_read_config_dword@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L25
	mov	edi, DWORD PTR 0[rbp]
	mov	esi, DWORD PTR PCIC_HSTPCIX_CNTRL[rip]
	mov	edx, DWORD PTR 4[rsp]
	or	edx, DWORD PTR SC_TMR_DIS[rip]
	call	pci_write_config_dword@PLT
	mov	rdi, rbp
	call	asd_read_ocm@PLT
	test	eax, eax
	jne	.L26
.L4:
	mov	rdi, rbp
	call	asd_read_flash@PLT
	test	eax, eax
	jne	.L27
.L5:
	mov	rdi, rbp
	call	asd_init_ctxmem@PLT
	mov	rdi, rbp
	call	asd_get_user_sas_addr@PLT
	test	rax, rax
	jne	.L28
	mov	rdi, rbp
	call	asd_propagate_sas_addr@PLT
	mov	rdi, rbp
	call	asd_init_phys@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L29
	mov	rdi, rbp
	call	asd_init_ports@PLT
	mov	rdi, rbp
	call	asd_init_scbs@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L30
	mov	rdi, rbp
	call	asd_init_dl@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L31
	mov	rdi, rbp
	call	asd_init_escbs@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L32
	mov	rdi, rbp
	call	asd_init_chip@PLT
	mov	r12d, eax
	test	eax, eax
	je	.L1
	lea	rdi, .LC8[rip]
	xor	eax, eax
	call	asd_printk@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L29:
	mov	edi, DWORD PTR 0[rbp]
	call	pci_name@PLT
	lea	rdi, .LC4[rip]
	mov	esi, eax
	xor	eax, eax
	call	asd_printk@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L25:
	mov	edi, DWORD PTR 0[rbp]
	call	pci_name@PLT
	lea	rdi, .LC0[rip]
	mov	esi, eax
	xor	eax, eax
	call	asd_printk@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L28:
	mov	edi, DWORD PTR 0[rbp]
	call	pci_name@PLT
	lea	rdi, .LC3[rip]
	mov	esi, eax
	xor	eax, eax
	call	asd_printk@PLT
	mov	r12d, DWORD PTR ENODEV[rip]
	neg	r12d
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L27:
	mov	esi, eax
	lea	rdi, .LC2[rip]
	xor	eax, eax
	call	asd_printk@PLT
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L26:
	mov	esi, eax
	lea	rdi, .LC1[rip]
	xor	eax, eax
	call	asd_printk@PLT
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L32:
	lea	rdi, .LC7[rip]
	xor	eax, eax
	call	asd_printk@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L30:
	mov	edi, DWORD PTR 0[rbp]
	call	pci_name@PLT
	lea	rdi, .LC5[rip]
	mov	esi, eax
	xor	eax, eax
	call	asd_printk@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L31:
	mov	esi, eax
	lea	rdi, .LC6[rip]
	xor	eax, eax
	call	asd_printk@PLT
	jmp	.L1
.L24:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	asd_init_hw, .-asd_init_hw
	.comm	SC_TMR_DIS,4,4
	.comm	PCIC_HSTPCIX_CNTRL,4,4
	.comm	ENODEV,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_aic94xx_hwi.c_asd_init_hw.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"couldn't read PCIC_HSTPCIX_CNTRL of %s\012\000"
	.align	2
.LC1:
	.ascii	"couldn't read ocm(%d)\012\000"
	.align	2
.LC2:
	.ascii	"couldn't read flash(%d)\012\000"
	.align	2
.LC3:
	.ascii	"No SAS Address provided for %s\012\000"
	.align	2
.LC4:
	.ascii	"couldn't initialize phys for %s\012\000"
	.align	2
.LC5:
	.ascii	"couldn't initialize scbs for %s\012\000"
	.align	2
.LC6:
	.ascii	"couldn't initialize the done list:%d\012\000"
	.align	2
.LC7:
	.ascii	"couldn't initialize escbs\012\000"
	.align	2
.LC8:
	.ascii	"couldn't init the chip\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC9:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	asd_init_hw
	.syntax unified
	.arm
	.fpu softvfp
	.type	asd_init_hw, %function
asd_init_hw:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r3, .L33
	sub	sp, sp, #8
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	mov	r5, r0
	bl	asd_init_sw
	subs	r4, r0, #0
	beq	.L23
.L1:
	ldr	r3, .L33
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L24
	mov	r0, r4
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, pc}
.L23:
	ldr	r6, .L33+4
	mov	r2, sp
	ldr	r1, [r6]
	ldr	r0, [r5]
	bl	pci_read_config_dword
	subs	r4, r0, #0
	bne	.L25
	ldr	r3, .L33+8
	ldr	r2, [sp]
	ldr	r3, [r3]
	ldr	r1, [r6]
	orr	r2, r2, r3
	ldr	r0, [r5]
	bl	pci_write_config_dword
	mov	r0, r5
	bl	asd_read_ocm
	subs	r1, r0, #0
	bne	.L26
.L4:
	mov	r0, r5
	bl	asd_read_flash
	subs	r1, r0, #0
	bne	.L27
.L5:
	mov	r0, r5
	bl	asd_init_ctxmem
	mov	r0, r5
	bl	asd_get_user_sas_addr
	cmp	r0, #0
	bne	.L28
	mov	r0, r5
	bl	asd_propagate_sas_addr
	mov	r0, r5
	bl	asd_init_phys
	subs	r4, r0, #0
	bne	.L29
	mov	r0, r5
	bl	asd_init_ports
	mov	r0, r5
	bl	asd_init_scbs
	subs	r4, r0, #0
	bne	.L30
	mov	r0, r5
	bl	asd_init_dl
	subs	r4, r0, #0
	bne	.L31
	mov	r0, r5
	bl	asd_init_escbs
	subs	r4, r0, #0
	bne	.L32
	mov	r0, r5
	bl	asd_init_chip
	subs	r4, r0, #0
	beq	.L1
	ldr	r0, .L33+12
	bl	asd_printk
	b	.L1
.L29:
	ldr	r0, [r5]
	bl	pci_name
	mov	r1, r0
	ldr	r0, .L33+16
	bl	asd_printk
	b	.L1
.L25:
	ldr	r0, [r5]
	bl	pci_name
	mov	r1, r0
	ldr	r0, .L33+20
	bl	asd_printk
	b	.L1
.L28:
	ldr	r0, [r5]
	bl	pci_name
	mov	r1, r0
	ldr	r0, .L33+24
	bl	asd_printk
	ldr	r3, .L33+28
	ldr	r0, [r3]
	rsb	r4, r0, #0
	b	.L1
.L27:
	ldr	r0, .L33+32
	bl	asd_printk
	b	.L5
.L26:
	ldr	r0, .L33+36
	bl	asd_printk
	b	.L4
.L32:
	ldr	r0, .L33+40
	bl	asd_printk
	b	.L1
.L30:
	ldr	r0, [r5]
	bl	pci_name
	mov	r1, r0
	ldr	r0, .L33+44
	bl	asd_printk
	b	.L1
.L31:
	mov	r1, r4
	ldr	r0, .L33+48
	bl	asd_printk
	b	.L1
.L24:
	bl	__stack_chk_fail
.L34:
	.align	2
.L33:
	.word	.LC9
	.word	PCIC_HSTPCIX_CNTRL
	.word	SC_TMR_DIS
	.word	.LC8
	.word	.LC4
	.word	.LC0
	.word	.LC3
	.word	ENODEV
	.word	.LC2
	.word	.LC1
	.word	.LC7
	.word	.LC5
	.word	.LC6
	.size	asd_init_hw, .-asd_init_hw
	.comm	SC_TMR_DIS,4,4
	.comm	PCIC_HSTPCIX_CNTRL,4,4
	.comm	ENODEV,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
