	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	_DSP_VC_TEST_ASIC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_send_vector
	leaq	-16(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_read_dsp
	testq	%rax, %rax
	js	LBB0_1
## %bb.2:
	movq	-16(%rbp), %rcx
	movq	_ASIC_ALREADY_LOADED@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	xorl	%eax, %eax
	cmpq	%rdx, %rcx
	sete	%al
	movl	%eax, (%rbx)
	movq	_EIO@GOTPCREL(%rip), %rsi
	xorl	%eax, %eax
	subl	(%rsi), %eax
	xorl	%esi, %esi
	cmpq	%rdx, %rcx
	cmovel	%esi, %eax
	jmp	LBB0_3
LBB0_1:
	leaq	L_.str(%rip), %rdi
	callq	_DE_INIT
	movq	_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rbx)
	movq	_EIO@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DSP_VC_TEST_ASIC,4,2           ## @DSP_VC_TEST_ASIC
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"check_asic_status: failed on read_dsp\n"

	.comm	_FALSE,4,2                      ## @FALSE
	.comm	_EIO,4,2                        ## @EIO
	.comm	_ASIC_ALREADY_LOADED,8,3        ## @ASIC_ALREADY_LOADED
	.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:
	sub	sp, sp, #48
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, _DSP_VC_TEST_ASIC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DSP_VC_TEST_ASIC@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_send_vector
	add	x1, sp, #8
	mov	x0, x19
	bl	_read_dsp
	tbnz	x0, #63, LBB0_2
; %bb.1:
	ldr	x8, [sp, #8]
Lloh3:
	adrp	x9, _ASIC_ALREADY_LOADED@GOTPAGE
Lloh4:
	ldr	x9, [x9, _ASIC_ALREADY_LOADED@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	cset	w8, eq
	str	w8, [x19]
Lloh6:
	adrp	x8, _EIO@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	csneg	w0, wzr, w8, eq
	b	LBB0_3
LBB0_2:
Lloh9:
	adrp	x0, l_.str@PAGE
Lloh10:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DE_INIT
Lloh11:
	adrp	x8, _FALSE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	str	w8, [x19]
Lloh14:
	adrp	x8, _EIO@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_3:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_DSP_VC_TEST_ASIC,4,2           ; @DSP_VC_TEST_ASIC
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"check_asic_status: failed on read_dsp\n"

	.comm	_FALSE,4,2                      ; @FALSE
	.comm	_EIO,4,2                        ; @EIO
	.comm	_ASIC_ALREADY_LOADED,8,3        ; @ASIC_ALREADY_LOADED
	.no_dead_strip	_check_asic_status
.subsections_via_symbols
