	.file	"extr_cpcihp_zt5550.c_zt5550_hc_init_one.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"returned from zt5550_hc_config"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"using ENUM# polling mode"
	.section	.rodata.str1.8
	.align 8
.LC2:
	.string	"could not register cPCI hotplug controller"
	.section	.rodata.str1.1
.LC3:
	.string	"registered controller"
	.section	.rodata.str1.8
	.align 8
.LC4:
	.string	"could not register cPCI hotplug bus"
	.section	.rodata.str1.1
.LC5:
	.string	"registered bus"
	.section	.rodata.str1.8
	.align 8
.LC6:
	.string	"could not started cPCI hotplug system"
	.section	.rodata.str1.1
.LC7:
	.string	"started cpci hp system"
.LC8:
	.string	"status = %d"
	.text
	.p2align 4
	.type	zt5550_hc_init_one, @function
zt5550_hc_init_one:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	call	zt5550_hc_config@PLT
	mov	r12d, eax
	test	eax, eax
	je	.L13
.L1:
	mov	eax, r12d
	pop	r12
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L13:
	.cfi_restore_state
	lea	rdi, .LC0[rip]
	call	dbg@PLT
	mov	edx, 4
	xor	esi, esi
	lea	rdi, zt5550_hpc[rip]
	call	memset@PLT
	mov	eax, DWORD PTR zt5550_hc_query_enum[rip]
	mov	DWORD PTR zt5550_hpc_ops[rip+12], eax
	lea	rax, zt5550_hpc_ops[rip]
	mov	QWORD PTR zt5550_hpc[rip+16], rax
	mov	eax, DWORD PTR poll[rip]
	test	eax, eax
	jne	.L3
	mov	rax, QWORD PTR hc_dev[rip]
	mov	edx, DWORD PTR [rax]
	mov	QWORD PTR zt5550_hpc[rip], rax
	mov	eax, DWORD PTR zt5550_hc_enable_irq[rip]
	mov	DWORD PTR zt5550_hpc[rip+12], edx
	mov	edx, DWORD PTR IRQF_SHARED[rip]
	mov	DWORD PTR zt5550_hpc_ops[rip+8], eax
	mov	eax, DWORD PTR zt5550_hc_disable_irq[rip]
	mov	DWORD PTR zt5550_hpc[rip+8], edx
	mov	DWORD PTR zt5550_hpc_ops[rip+4], eax
	mov	eax, DWORD PTR zt5550_hc_check_irq[rip]
	mov	DWORD PTR zt5550_hpc_ops[rip], eax
.L4:
	lea	rdi, zt5550_hpc[rip]
	call	cpci_hp_register_controller@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L14
	lea	rdi, .LC3[rip]
	call	dbg@PLT
	mov	edi, DWORD PTR PCI_VENDOR_ID_DEC[rip]
	mov	esi, DWORD PTR PCI_DEVICE_ID_DEC_21154[rip]
	xor	edx, edx
	call	pci_get_device@PLT
	mov	r12d, DWORD PTR ENODEV[rip]
	mov	QWORD PTR bus0_dev[rip], rax
	mov	rdi, rax
	neg	r12d
	test	rax, rax
	je	.L8
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR bus0[rip], eax
	call	pci_dev_put@PLT
	mov	edi, DWORD PTR bus0[rip]
	mov	edx, 15
	mov	esi, 10
	call	cpci_hp_register_bus@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L15
	lea	rdi, .LC5[rip]
	call	dbg@PLT
	xor	eax, eax
	call	cpci_hp_start@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L16
	lea	rdi, .LC7[rip]
	call	dbg@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L15:
	lea	rdi, .LC4[rip]
	xor	eax, eax
	call	err@PLT
.L8:
	lea	rdi, zt5550_hpc[rip]
	call	cpci_hp_unregister_controller@PLT
.L6:
	mov	esi, r12d
	lea	rdi, .LC8[rip]
	xor	eax, eax
	call	err@PLT
	xor	eax, eax
	call	zt5550_hc_cleanup@PLT
	mov	eax, r12d
	pop	r12
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L14:
	.cfi_restore_state
	lea	rdi, .LC2[rip]
	xor	eax, eax
	call	err@PLT
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L3:
	lea	rdi, .LC1[rip]
	call	info@PLT
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L16:
	lea	rdi, .LC6[rip]
	xor	eax, eax
	call	err@PLT
	mov	edi, DWORD PTR bus0[rip]
	call	cpci_hp_unregister_bus@PLT
	jmp	.L8
	.cfi_endproc
.LFE0:
	.size	zt5550_hc_init_one, .-zt5550_hc_init_one
	.comm	zt5550_hpc_ops,16,16
	.comm	zt5550_hpc,24,16
	.comm	zt5550_hc_query_enum,4,4
	.comm	zt5550_hc_enable_irq,4,4
	.comm	zt5550_hc_disable_irq,4,4
	.comm	zt5550_hc_check_irq,4,4
	.comm	poll,4,4
	.comm	hc_dev,8,8
	.comm	bus0_dev,8,8
	.comm	bus0,4,4
	.comm	PCI_VENDOR_ID_DEC,4,4
	.comm	PCI_DEVICE_ID_DEC_21154,4,4
	.comm	IRQF_SHARED,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_cpcihp_zt5550.c_zt5550_hc_init_one.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"returned from zt5550_hc_config\000"
	.align	2
.LC1:
	.ascii	"using ENUM# polling mode\000"
	.align	2
.LC2:
	.ascii	"could not register cPCI hotplug controller\000"
	.align	2
.LC3:
	.ascii	"registered controller\000"
	.align	2
.LC4:
	.ascii	"could not register cPCI hotplug bus\000"
	.align	2
.LC5:
	.ascii	"registered bus\000"
	.align	2
.LC6:
	.ascii	"could not started cPCI hotplug system\000"
	.align	2
.LC7:
	.ascii	"started cpci hp system\000"
	.align	2
.LC8:
	.ascii	"status = %d\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	zt5550_hc_init_one, %function
zt5550_hc_init_one:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	bl	zt5550_hc_config
	subs	r4, r0, #0
	beq	.L13
.L1:
	mov	r0, r4
	pop	{r4, r5, r6, pc}
.L13:
	ldr	r0, .L18
	bl	dbg
	ldr	r2, .L18+4
	ldr	r3, .L18+8
	ldr	r0, [r2]
	ldr	r1, [r3]
	ldr	r2, .L18+12
	ldr	r3, .L18+16
	cmp	r0, #0
	str	r1, [r3, #12]
	str	r3, [r2, #12]
	str	r4, [r2]
	bne	.L3
	ldr	lr, .L18+20
	ldr	ip, .L18+24
	ldr	r0, .L18+28
	ldr	r4, [lr]
	ldr	r1, .L18+32
	ldr	lr, [ip]
	ldr	ip, [r0]
	ldr	r0, .L18+36
	ldr	r1, [r1]
	ldr	r0, [r0]
	ldr	r5, [r1]
	stm	r3, {r0, ip, lr}
	stm	r2, {r1, r4}
	str	r5, [r2, #8]
.L4:
	ldr	r0, .L18+12
	bl	cpci_hp_register_controller
	subs	r4, r0, #0
	bne	.L14
	ldr	r0, .L18+40
	bl	dbg
	ldr	r3, .L18+44
	ldr	r1, .L18+48
	mov	r2, r4
	ldr	r1, [r1]
	ldr	r0, [r3]
	bl	pci_get_device
	ldr	r2, .L18+52
	cmp	r0, #0
	str	r0, [r2]
	beq	.L15
	ldr	r3, [r0]
	ldr	r5, .L18+56
	str	r3, [r5]
	bl	pci_dev_put
	mov	r2, #15
	mov	r1, #10
	ldr	r0, [r5]
	bl	cpci_hp_register_bus
	subs	r4, r0, #0
	bne	.L16
	ldr	r0, .L18+60
	bl	dbg
	bl	cpci_hp_start
	subs	r4, r0, #0
	bne	.L17
	ldr	r0, .L18+64
	bl	dbg
	b	.L1
.L16:
	ldr	r0, .L18+68
	bl	err
.L8:
	ldr	r0, .L18+12
	bl	cpci_hp_unregister_controller
.L6:
	mov	r1, r4
	ldr	r0, .L18+72
	bl	err
	bl	zt5550_hc_cleanup
	mov	r0, r4
	pop	{r4, r5, r6, pc}
.L14:
	ldr	r0, .L18+76
	bl	err
	b	.L6
.L3:
	ldr	r0, .L18+80
	bl	info
	b	.L4
.L15:
	ldr	r3, .L18+84
	ldr	r0, [r3]
	rsb	r4, r0, #0
	b	.L8
.L17:
	ldr	r0, .L18+88
	bl	err
	ldr	r0, [r5]
	bl	cpci_hp_unregister_bus
	b	.L8
.L19:
	.align	2
.L18:
	.word	.LC0
	.word	poll
	.word	zt5550_hc_query_enum
	.word	zt5550_hpc
	.word	zt5550_hpc_ops
	.word	IRQF_SHARED
	.word	zt5550_hc_enable_irq
	.word	zt5550_hc_disable_irq
	.word	hc_dev
	.word	zt5550_hc_check_irq
	.word	.LC3
	.word	PCI_VENDOR_ID_DEC
	.word	PCI_DEVICE_ID_DEC_21154
	.word	bus0_dev
	.word	bus0
	.word	.LC5
	.word	.LC7
	.word	.LC4
	.word	.LC8
	.word	.LC2
	.word	.LC1
	.word	ENODEV
	.word	.LC6
	.size	zt5550_hc_init_one, .-zt5550_hc_init_one
	.comm	zt5550_hpc_ops,16,4
	.comm	zt5550_hpc,16,4
	.comm	zt5550_hc_query_enum,4,4
	.comm	zt5550_hc_enable_irq,4,4
	.comm	zt5550_hc_disable_irq,4,4
	.comm	zt5550_hc_check_irq,4,4
	.comm	poll,4,4
	.comm	hc_dev,4,4
	.comm	bus0_dev,4,4
	.comm	bus0,4,4
	.comm	PCI_VENDOR_ID_DEC,4,4
	.comm	PCI_DEVICE_ID_DEC_21154,4,4
	.comm	IRQF_SHARED,4,4
	.comm	ENODEV,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
