	.file	"extr_hw_atl_a0.c_hw_atl_a0_hw_reset.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	hw_atl_a0_hw_reset, @function
hw_atl_a0_hw_reset:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	esi, 1
	mov	r12d, 1
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	call	hw_atl_glb_glb_reg_res_dis_set@PLT
	xor	esi, esi
	mov	rdi, rbp
	call	hw_atl_pci_pci_reg_res_dis_set@PLT
	xor	esi, esi
	mov	rdi, rbp
	call	hw_atl_rx_rx_reg_res_dis_set@PLT
	xor	esi, esi
	mov	rdi, rbp
	call	hw_atl_tx_tx_reg_res_dis_set@PLT
	xor	eax, eax
	call	HW_ATL_FLUSH@PLT
	mov	esi, 1
	mov	rdi, rbp
	call	hw_atl_glb_soft_res_set@PLT
	mov	edi, DWORD PTR hw_atl_glb_soft_res_get[rip]
	xor	edx, edx
	mov	ecx, r12d
	mov	r9d, 10000
	mov	r8d, 1000
	mov	rsi, rbp
	call	readx_poll_timeout_atomic@PLT
	test	eax, eax
	js	.L1
	xor	esi, esi
	mov	rdi, rbp
	call	hw_atl_itr_irq_reg_res_dis_set@PLT
	mov	esi, 1
	mov	rdi, rbp
	call	hw_atl_itr_res_irq_set@PLT
	mov	edi, DWORD PTR hw_atl_itr_res_irq_get[rip]
	xor	edx, edx
	mov	ecx, r12d
	mov	r9d, 10000
	mov	r8d, 1000
	mov	rsi, rbp
	call	readx_poll_timeout_atomic@PLT
	test	eax, eax
	js	.L1
	mov	rax, QWORD PTR 0[rbp]
	mov	rdi, rbp
	mov	esi, DWORD PTR MPI_RESET[rip]
	call	[QWORD PTR [rax]]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	rdi, rbp
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	aq_hw_err_from_flags@PLT
.L2:
	.p2align 4,,10
	.p2align 3
.L1:
	.cfi_restore_state
	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	hw_atl_a0_hw_reset, .-hw_atl_a0_hw_reset
	.comm	hw_atl_itr_res_irq_get,4,4
	.comm	hw_atl_glb_soft_res_get,4,4
	.comm	MPI_RESET,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_hw_atl_a0.c_hw_atl_a0_hw_reset.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	hw_atl_a0_hw_reset, %function
hw_atl_a0_hw_reset:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	mov	r5, #1
	mov	r4, r0
	mov	r6, #1000
	sub	sp, sp, #12
	mov	r1, r5
	bl	hw_atl_glb_glb_reg_res_dis_set
	mov	r1, #0
	mov	r0, r4
	bl	hw_atl_pci_pci_reg_res_dis_set
	mov	r1, #0
	mov	r0, r4
	bl	hw_atl_rx_rx_reg_res_dis_set
	mov	r1, #0
	mov	r0, r4
	bl	hw_atl_tx_tx_reg_res_dis_set
	bl	HW_ATL_FLUSH
	mov	r1, r5
	mov	r0, r4
	bl	hw_atl_glb_soft_res_set
	ldr	r7, .L5
	ldr	r2, .L5+4
	str	r6, [sp]
	ldr	r0, [r2]
	mov	r1, r4
	mov	r3, r5
	mov	r2, #0
	str	r7, [sp, #4]
	bl	readx_poll_timeout_atomic
	cmp	r0, #0
	blt	.L1
	mov	r1, #0
	mov	r0, r4
	bl	hw_atl_itr_irq_reg_res_dis_set
	mov	r1, r5
	mov	r0, r4
	bl	hw_atl_itr_res_irq_set
	stm	sp, {r6, r7}
	ldr	r2, .L5+8
	mov	r3, r5
	ldr	r0, [r2]
	mov	r1, r4
	mov	r2, #0
	bl	readx_poll_timeout_atomic
	cmp	r0, #0
	blt	.L1
	ldr	r2, .L5+12
	ldr	r3, [r4]
	mov	r0, r4
	ldr	r1, [r2]
	ldr	r3, [r3]
	blx	r3
	mov	r0, r4
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, lr}
	b	aq_hw_err_from_flags
.L2:
.L1:
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L6:
	.align	2
.L5:
	.word	10000
	.word	hw_atl_glb_soft_res_get
	.word	hw_atl_itr_res_irq_get
	.word	MPI_RESET
	.size	hw_atl_a0_hw_reset, .-hw_atl_a0_hw_reset
	.comm	hw_atl_itr_res_irq_get,4,4
	.comm	hw_atl_glb_soft_res_get,4,4
	.comm	MPI_RESET,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
