	.file	"extr_siena.c_siena_test_chip.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	siena_test_chip, @function
siena_test_chip:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rsi
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	r13d, DWORD PTR RESET_TYPE_ALL[rip]
	mov	esi, r13d
	call	efx_reset_down@PLT
	mov	esi, r13d
	mov	rdi, rbp
	call	efx_mcdi_reset@PLT
	test	eax, eax
	je	.L9
	mov	esi, r13d
	mov	rdi, rbp
	xor	edx, edx
	mov	r12d, eax
	call	efx_reset_up@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore_state
	mov	edi, DWORD PTR siena_register_tests[rip]
	call	ARRAY_SIZE@PLT
	mov	esi, DWORD PTR siena_register_tests[rip]
	mov	rdi, rbp
	mov	edx, eax
	call	efx_farch_test_registers@PLT
	mov	esi, r13d
	mov	rdi, rbp
	cmp	rax, 1
	sbb	eax, eax
	and	eax, 2
	sub	eax, 1
	mov	DWORD PTR [rbx], eax
	call	efx_mcdi_reset@PLT
	xor	edx, edx
	mov	esi, r13d
	mov	rdi, rbp
	test	eax, eax
	mov	r12d, eax
	sete	dl
	call	efx_reset_up@PLT
	test	r12d, r12d
	cmove	r12d, eax
	add	rsp, 8
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	mov	eax, r12d
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	siena_test_chip, .-siena_test_chip
	.comm	siena_register_tests,4,4
	.comm	RESET_TYPE_ALL,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_siena.c_siena_test_chip.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	siena_test_chip, %function
siena_test_chip:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r5, r0
	ldr	r3, .L10
	mov	r7, r1
	ldr	r6, [r3]
	mov	r1, r6
	bl	efx_reset_down
	mov	r1, r6
	mov	r0, r5
	bl	efx_mcdi_reset
	subs	r4, r0, #0
	beq	.L9
	mov	r1, r6
	mov	r0, r5
	mov	r2, #0
	bl	efx_reset_up
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L9:
	ldr	r3, .L10+4
	ldr	r4, [r3]
	mov	r0, r4
	bl	ARRAY_SIZE
	mov	r1, r4
	mov	r2, r0
	mov	r0, r5
	bl	efx_farch_test_registers
	cmp	r0, #0
	mvnne	r3, #0
	moveq	r3, #1
	mov	r1, r6
	str	r3, [r7]
	mov	r0, r5
	bl	efx_mcdi_reset
	clz	r2, r0
	mov	r4, r0
	mov	r1, r6
	mov	r0, r5
	lsr	r2, r2, #5
	bl	efx_reset_up
	cmp	r4, #0
	moveq	r4, r0
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L11:
	.align	2
.L10:
	.word	RESET_TYPE_ALL
	.word	siena_register_tests
	.size	siena_test_chip, .-siena_test_chip
	.comm	siena_register_tests,4,4
	.comm	RESET_TYPE_ALL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
