	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function check_asic_status
_check_asic_status:                     ## @check_asic_status
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	callq	_wait_handshake
	testq	%rax, %rax
	jne	LBB0_1
## %bb.3:
	movq	_E3G_ASIC_NOT_LOADED@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	callq	_cpu_to_le32
	movq	8(%r14), %rcx
	movl	%eax, (%rcx)
	movq	_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r14)
	movq	%r14, %rdi
	callq	_clear_handshake
	movq	_DSP_VC_TEST_ASIC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_send_vector
	movq	%r14, %rdi
	callq	_wait_handshake
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	$0, 16(%r14)
LBB0_1:
	movq	_EIO@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_8:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	8(%r14), %rax
	movl	(%rax), %edi
	callq	_le32_to_cpu
	movl	%eax, %ebx
	movslq	%eax, %rdi
	callq	_DE_INIT
	cmpl	(%r15), %ebx
	jne	LBB0_7
## %bb.6:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_7:
	movq	_TRUE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r14)
	movq	_E3G_BOX_TYPE_MASK@GOTPCREL(%rip), %rax
	andl	(%rax), %ebx
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_EIO,4,2                        ## @EIO
	.comm	_E3G_ASIC_NOT_LOADED,4,2        ## @E3G_ASIC_NOT_LOADED
	.comm	_FALSE,4,2                      ## @FALSE
	.comm	_DSP_VC_TEST_ASIC,4,2           ## @DSP_VC_TEST_ASIC
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_TRUE,4,2                       ## @TRUE
	.comm	_E3G_BOX_TYPE_MASK,4,2          ## @E3G_BOX_TYPE_MASK
	.no_dead_strip	_check_asic_status
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function check_asic_status
_check_asic_status:                     ; @check_asic_status
	.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	x19, x0
	bl	_wait_handshake
	cbnz	x0, LBB0_3
; %bb.1:
Lloh0:
	adrp	x21, _E3G_ASIC_NOT_LOADED@GOTPAGE
Lloh1:
	ldr	x21, [x21, _E3G_ASIC_NOT_LOADED@GOTPAGEOFF]
	ldr	w0, [x21]
	bl	_cpu_to_le32
	ldr	x8, [x19, #8]
	str	w0, [x8]
Lloh2:
	adrp	x8, _FALSE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	str	w8, [x19]
	mov	x0, x19
	bl	_clear_handshake
Lloh5:
	adrp	x8, _DSP_VC_TEST_ASIC@GOTPAGE
Lloh6:
	ldr	x8, [x8, _DSP_VC_TEST_ASIC@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_send_vector
	mov	x0, x19
	bl	_wait_handshake
	cbz	x0, LBB0_6
; %bb.2:
	str	xzr, [x19, #16]
LBB0_3:
Lloh8:
	adrp	x8, _EIO@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
LBB0_4:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_5:
	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
LBB0_6:
	ldr	x8, [x19, #8]
	ldr	w0, [x8]
	bl	_le32_to_cpu
	mov	x20, x0
	sxtw	x0, w20
	bl	_DE_INIT
	ldr	w8, [x21]
	cmp	w20, w8
	b.ne	LBB0_8
; %bb.7:
Lloh10:
	adrp	x8, _ENODEV@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_4
LBB0_8:
Lloh12:
	adrp	x8, _TRUE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	str	w8, [x19]
Lloh15:
	adrp	x8, _E3G_BOX_TYPE_MASK@GOTPAGE
Lloh16:
	ldr	x8, [x8, _E3G_BOX_TYPE_MASK@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	and	w0, w8, w20
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_EIO,4,2                        ; @EIO
	.comm	_E3G_ASIC_NOT_LOADED,4,2        ; @E3G_ASIC_NOT_LOADED
	.comm	_FALSE,4,2                      ; @FALSE
	.comm	_DSP_VC_TEST_ASIC,4,2           ; @DSP_VC_TEST_ASIC
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_TRUE,4,2                       ; @TRUE
	.comm	_E3G_BOX_TYPE_MASK,4,2          ; @E3G_BOX_TYPE_MASK
	.no_dead_strip	_check_asic_status
.subsections_via_symbols
