	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function siena_test_chip
_siena_test_chip:                       ## @siena_test_chip
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r12
	movq	_RESET_TYPE_ALL@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movl	%r14d, %esi
	callq	_efx_reset_down
	movq	%r12, %rdi
	movl	%r14d, %esi
	callq	_efx_mcdi_reset
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	movq	_siena_register_tests@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movl	%ebx, %edi
	callq	_ARRAY_SIZE
	movq	%r12, %rdi
	movl	%ebx, %esi
	movl	%eax, %edx
	callq	_efx_farch_test_registers
	xorl	%ecx, %ecx
	negq	%rax
	sbbl	%ecx, %ecx
	orl	$1, %ecx
	movl	%ecx, (%r15)
	movq	%r12, %rdi
	movl	%r14d, %esi
	callq	_efx_mcdi_reset
	movl	%eax, %ebx
LBB0_2:
	xorl	%edx, %edx
	testl	%ebx, %ebx
	sete	%dl
	movq	%r12, %rdi
	movl	%r14d, %esi
	callq	_efx_reset_up
	testl	%ebx, %ebx
	cmovnel	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RESET_TYPE_ALL,4,2             ## @RESET_TYPE_ALL
	.comm	_siena_register_tests,4,2       ## @siena_register_tests
	.no_dead_strip	_siena_test_chip
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function siena_test_chip
_siena_test_chip:                       ; @siena_test_chip
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _RESET_TYPE_ALL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RESET_TYPE_ALL@GOTPAGEOFF]
Lloh2:
	ldr	w20, [x8]
	mov	x1, x20
	bl	_efx_reset_down
	mov	x0, x19
	mov	x1, x20
	bl	_efx_mcdi_reset
	mov	x22, x0
	cbnz	w0, LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _siena_register_tests@GOTPAGE
Lloh4:
	ldr	x8, [x8, _siena_register_tests@GOTPAGEOFF]
Lloh5:
	ldr	w22, [x8]
	mov	x0, x22
	bl	_ARRAY_SIZE
	mov	x2, x0
	mov	x0, x19
	mov	x1, x22
	bl	_efx_farch_test_registers
	cmp	x0, #0
	mov	w8, #1
	cneg	w8, w8, ne
	str	w8, [x21]
	mov	x0, x19
	mov	x1, x20
	bl	_efx_mcdi_reset
	mov	x22, x0
LBB0_2:
	cmp	w22, #0
	cset	w2, eq
	mov	x0, x19
	mov	x1, x20
	bl	_efx_reset_up
	cmp	w22, #0
	csel	w0, w0, w22, eq
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_RESET_TYPE_ALL,4,2             ; @RESET_TYPE_ALL
	.comm	_siena_register_tests,4,2       ; @siena_register_tests
	.no_dead_strip	_siena_test_chip
.subsections_via_symbols
