	.file	"extr_ef10.c_efx_ef10_reset.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	efx_ef10_reset, @function
efx_ef10_reset:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	ebx, esi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	call	efx_mcdi_reset@PLT
	cmp	DWORD PTR RESET_TYPE_WORLD[rip], ebx
	mov	edx, DWORD PTR RESET_TYPE_ALL[rip]
	je	.L2
.L3:
	cmp	ebx, edx
	je	.L5
	cmp	DWORD PTR RESET_TYPE_MCDI_TIMEOUT[rip], ebx
	je	.L5
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	test	eax, eax
	jne	.L1
.L7:
	mov	rdi, rbp
	call	efx_ef10_reset_mc_allocations@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	ecx, eax
	add	ecx, DWORD PTR EPERM[rip]
	jne	.L3
	cmp	ebx, edx
	je	.L7
	cmp	ebx, DWORD PTR RESET_TYPE_MCDI_TIMEOUT[rip]
	je	.L7
	xor	eax, eax
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	efx_ef10_reset, .-efx_ef10_reset
	.comm	RESET_TYPE_WORLD,4,4
	.comm	RESET_TYPE_MCDI_TIMEOUT,4,4
	.comm	RESET_TYPE_ALL,4,4
	.comm	EPERM,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_ef10.c_efx_ef10_reset.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	efx_ef10_reset, %function
efx_ef10_reset:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r4, r1
	mov	r5, r0
	bl	efx_mcdi_reset
	ldr	r3, .L10
	ldr	r3, [r3]
	cmp	r3, r4
	beq	.L2
	ldr	r3, .L10+4
	ldr	r2, [r3]
.L3:
	cmp	r4, r2
	beq	.L5
	ldr	r3, .L10+8
	ldr	r3, [r3]
	cmp	r3, r4
	popne	{r4, r5, r6, pc}
.L5:
	cmp	r0, #0
	popne	{r4, r5, r6, pc}
.L7:
	mov	r0, r5
	bl	efx_ef10_reset_mc_allocations
	mov	r0, #0
	pop	{r4, r5, r6, pc}
.L2:
	ldr	r1, .L10+12
	ldr	r2, .L10+4
	ldr	r1, [r1]
	ldr	r2, [r2]
	cmn	r0, r1
	bne	.L3
	cmp	r3, r2
	beq	.L7
	ldr	r2, .L10+8
	ldr	r2, [r2]
	cmp	r3, r2
	beq	.L7
	mov	r0, #0
	pop	{r4, r5, r6, pc}
.L11:
	.align	2
.L10:
	.word	RESET_TYPE_WORLD
	.word	RESET_TYPE_ALL
	.word	RESET_TYPE_MCDI_TIMEOUT
	.word	EPERM
	.size	efx_ef10_reset, .-efx_ef10_reset
	.comm	RESET_TYPE_WORLD,4,4
	.comm	RESET_TYPE_MCDI_TIMEOUT,4,4
	.comm	RESET_TYPE_ALL,4,4
	.comm	EPERM,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
