	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rdi)
	movq	_DSP_VC_TEST_ASIC@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	callq	_send_vector
	leaq	-48(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_read_dsp
	testq	%rax, %rax
	js	LBB0_1
## %bb.3:
	movq	-48(%rbp), %r12
	movq	_ASIC_ALREADY_LOADED@GOTPCREL(%rip), %r15
	movq	(%r15), %r13
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_send_vector
	leaq	-48(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_read_dsp
	testq	%rax, %rax
	js	LBB0_1
## %bb.4:
	xorl	%eax, %eax
	cmpq	%r13, %r12
	sete	%al
	movq	-48(%rbp), %rcx
	cmpq	(%r15), %rcx
	leal	1(%rax), %r12d
	cmovnel	%eax, %r12d
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_send_vector
	leaq	-48(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_read_dsp
	testq	%rax, %rax
	js	LBB0_1
## %bb.5:
	movq	-48(%rbp), %rax
	cmpq	(%r15), %rax
	jne	LBB0_7
## %bb.6:
	incl	%r12d
	cmpl	$3, %r12d
	je	LBB0_2
LBB0_7:
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_send_vector
	leaq	-48(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_read_dsp
	testq	%rax, %rax
	js	LBB0_1
## %bb.8:
	movq	-48(%rbp), %rax
	cmpq	(%r15), %rax
	jne	LBB0_10
## %bb.9:
	incl	%r12d
	cmpl	$3, %r12d
	je	LBB0_2
LBB0_10:
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_send_vector
	leaq	-48(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_read_dsp
	testq	%rax, %rax
	js	LBB0_1
## %bb.11:
	movq	-48(%rbp), %rax
	cmpq	(%r15), %rax
	jne	LBB0_13
## %bb.12:
	cmpl	$2, %r12d
	jne	LBB0_13
LBB0_2:
	movq	_TRUE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rbx)
	xorl	%eax, %eax
	jmp	LBB0_14
LBB0_1:
	leaq	L_.str(%rip), %rdi
	callq	_DE_ACT
LBB0_13:
	movq	_EIO@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_14:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FALSE,4,2                      ## @FALSE
	.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	_EIO,4,2                        ## @EIO
	.comm	_ASIC_ALREADY_LOADED,8,3        ## @ASIC_ALREADY_LOADED
	.comm	_TRUE,4,2                       ## @TRUE
	.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, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
Lloh0:
	adrp	x8, _FALSE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x0]
Lloh3:
	adrp	x20, _DSP_VC_TEST_ASIC@GOTPAGE
Lloh4:
	ldr	x20, [x20, _DSP_VC_TEST_ASIC@GOTPAGEOFF]
	ldr	w1, [x20]
	bl	_send_vector
	add	x1, sp, #8
	mov	x0, x19
	bl	_read_dsp
	tbnz	x0, #63, LBB0_12
; %bb.1:
	ldr	x22, [sp, #8]
Lloh5:
	adrp	x21, _ASIC_ALREADY_LOADED@GOTPAGE
Lloh6:
	ldr	x21, [x21, _ASIC_ALREADY_LOADED@GOTPAGEOFF]
	ldr	x23, [x21]
	ldr	w1, [x20]
	mov	x0, x19
	bl	_send_vector
	add	x1, sp, #8
	mov	x0, x19
	bl	_read_dsp
	tbnz	x0, #63, LBB0_12
; %bb.2:
	cmp	x22, x23
	cset	w8, eq
	ldr	x9, [sp, #8]
	ldr	x10, [x21]
	mov	w11, #1
	cinc	w11, w11, eq
	cmp	x9, x10
	csel	w22, w11, w8, eq
	ldr	w1, [x20]
	mov	x0, x19
	bl	_send_vector
	add	x1, sp, #8
	mov	x0, x19
	bl	_read_dsp
	tbnz	x0, #63, LBB0_12
; %bb.3:
	ldr	x8, [sp, #8]
	ldr	x9, [x21]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.4:
	add	w22, w22, #1
	cmp	w22, #3
	b.eq	LBB0_11
LBB0_5:
	ldr	w1, [x20]
	mov	x0, x19
	bl	_send_vector
	add	x1, sp, #8
	mov	x0, x19
	bl	_read_dsp
	tbnz	x0, #63, LBB0_12
; %bb.6:
	ldr	x8, [sp, #8]
	ldr	x9, [x21]
	cmp	x8, x9
	b.ne	LBB0_8
; %bb.7:
	add	w22, w22, #1
	cmp	w22, #3
	b.eq	LBB0_11
LBB0_8:
	ldr	w1, [x20]
	mov	x0, x19
	bl	_send_vector
	add	x1, sp, #8
	mov	x0, x19
	bl	_read_dsp
	tbnz	x0, #63, LBB0_12
; %bb.9:
	ldr	x8, [sp, #8]
	ldr	x9, [x21]
	cmp	x8, x9
	b.ne	LBB0_13
; %bb.10:
	cmp	w22, #2
	b.ne	LBB0_13
LBB0_11:
	mov	w0, #0
Lloh7:
	adrp	x8, _TRUE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	str	w8, [x19]
	b	LBB0_14
LBB0_12:
Lloh10:
	adrp	x0, l_.str@PAGE
Lloh11:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DE_ACT
LBB0_13:
Lloh12:
	adrp	x8, _EIO@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_14:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_FALSE,4,2                      ; @FALSE
	.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	_EIO,4,2                        ; @EIO
	.comm	_ASIC_ALREADY_LOADED,8,3        ; @ASIC_ALREADY_LOADED
	.comm	_TRUE,4,2                       ; @TRUE
	.no_dead_strip	_check_asic_status
.subsections_via_symbols
