	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hdsp_get_iobox_version
_hdsp_get_iobox_version:                ## @hdsp_get_iobox_version
	.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	_HDSP_statusRegister@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_hdsp_read
	movq	_HDSP_DllError@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_6
## %bb.1:
	movq	_HDSP_control2Reg@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	_HDSP_PROGRAM@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_hdsp_write
	movq	_HDSP_fifoData@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	xorl	%r14d, %r14d
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_hdsp_write
	movq	_HDSP_SHORT_WAIT@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_hdsp_fifo_wait
	testq	%rax, %rax
	js	LBB0_2
## %bb.3:
	movl	(%r15), %esi
	movq	_HDSP_S_LOAD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_hdsp_write
	movl	(%r13), %esi
	xorl	%r14d, %r14d
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_hdsp_write
	movl	(%r12), %edx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_hdsp_fifo_wait
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	_Multiface@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%rbx)
	movl	(%r15), %esi
	movq	_HDSP_VERSION_BIT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_hdsp_write
	movl	(%r15), %esi
	movq	_HDSP_S_LOAD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_hdsp_write
	movl	(%r12), %edx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_hdsp_fifo_wait
	jmp	LBB0_10
LBB0_6:
	movq	_HDSP_status2Register@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_hdsp_read
	movq	_HDSP_version1@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_8
## %bb.7:
	movq	_Multiface@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_2:
	movq	_EIO@GOTPCREL(%rip), %rax
	subl	(%rax), %r14d
	jmp	LBB0_10
LBB0_5:
	movq	_Digiface@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%rbx)
	jmp	LBB0_10
LBB0_8:
	movq	_Digiface@GOTPCREL(%rip), %rax
LBB0_9:
	movq	(%rax), %rax
	movq	%rax, (%rbx)
	xorl	%r14d, %r14d
LBB0_10:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HDSP_statusRegister,4,2        ## @HDSP_statusRegister
	.comm	_HDSP_DllError,4,2              ## @HDSP_DllError
	.comm	_HDSP_control2Reg,4,2           ## @HDSP_control2Reg
	.comm	_HDSP_PROGRAM,4,2               ## @HDSP_PROGRAM
	.comm	_HDSP_fifoData,4,2              ## @HDSP_fifoData
	.comm	_HDSP_SHORT_WAIT,4,2            ## @HDSP_SHORT_WAIT
	.comm	_EIO,4,2                        ## @EIO
	.comm	_HDSP_S_LOAD,4,2                ## @HDSP_S_LOAD
	.comm	_Multiface,8,3                  ## @Multiface
	.comm	_HDSP_VERSION_BIT,4,2           ## @HDSP_VERSION_BIT
	.comm	_Digiface,8,3                   ## @Digiface
	.comm	_HDSP_status2Register,4,2       ## @HDSP_status2Register
	.comm	_HDSP_version1,4,2              ## @HDSP_version1
	.no_dead_strip	_hdsp_get_iobox_version
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hdsp_get_iobox_version
_hdsp_get_iobox_version:                ; @hdsp_get_iobox_version
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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, _HDSP_statusRegister@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HDSP_statusRegister@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_hdsp_read
Lloh3:
	adrp	x8, _HDSP_DllError@GOTPAGE
Lloh4:
	ldr	x8, [x8, _HDSP_DllError@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_4
; %bb.1:
Lloh6:
	adrp	x20, _HDSP_control2Reg@GOTPAGE
Lloh7:
	ldr	x20, [x20, _HDSP_control2Reg@GOTPAGEOFF]
	ldr	w1, [x20]
Lloh8:
	adrp	x8, _HDSP_PROGRAM@GOTPAGE
Lloh9:
	ldr	x8, [x8, _HDSP_PROGRAM@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_hdsp_write
Lloh11:
	adrp	x23, _HDSP_fifoData@GOTPAGE
Lloh12:
	ldr	x23, [x23, _HDSP_fifoData@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	x0, x19
	mov	w2, #0
	bl	_hdsp_write
Lloh13:
	adrp	x21, _HDSP_SHORT_WAIT@GOTPAGE
Lloh14:
	ldr	x21, [x21, _HDSP_SHORT_WAIT@GOTPAGEOFF]
	ldr	w2, [x21]
	mov	x0, x19
	mov	w1, #0
	bl	_hdsp_fifo_wait
	tbnz	x0, #63, LBB0_6
; %bb.2:
	ldr	w1, [x20]
Lloh15:
	adrp	x22, _HDSP_S_LOAD@GOTPAGE
Lloh16:
	ldr	x22, [x22, _HDSP_S_LOAD@GOTPAGEOFF]
	ldr	w2, [x22]
	mov	x0, x19
	bl	_hdsp_write
	ldr	w1, [x23]
	mov	x0, x19
	mov	w2, #0
	bl	_hdsp_write
	ldr	w2, [x21]
	mov	x0, x19
	mov	w1, #0
	bl	_hdsp_fifo_wait
	cbz	x0, LBB0_8
; %bb.3:
Lloh17:
	adrp	x8, _Multiface@GOTPAGE
Lloh18:
	ldr	x8, [x8, _Multiface@GOTPAGEOFF]
Lloh19:
	ldr	x8, [x8]
	str	x8, [x19]
	ldr	w1, [x20]
Lloh20:
	adrp	x8, _HDSP_VERSION_BIT@GOTPAGE
Lloh21:
	ldr	x8, [x8, _HDSP_VERSION_BIT@GOTPAGEOFF]
Lloh22:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_hdsp_write
	ldr	w1, [x20]
	ldr	w2, [x22]
	mov	x0, x19
	bl	_hdsp_write
	ldr	w2, [x21]
	mov	x0, x19
	mov	w1, #0
	bl	_hdsp_fifo_wait
	mov	w0, #0
	b	LBB0_10
LBB0_4:
Lloh23:
	adrp	x8, _HDSP_status2Register@GOTPAGE
Lloh24:
	ldr	x8, [x8, _HDSP_status2Register@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_hdsp_read
Lloh26:
	adrp	x8, _HDSP_version1@GOTPAGE
Lloh27:
	ldr	x8, [x8, _HDSP_version1@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_7
; %bb.5:
	mov	w0, #0
Lloh29:
	adrp	x8, _Multiface@GOTPAGE
Lloh30:
	ldr	x8, [x8, _Multiface@GOTPAGEOFF]
	b	LBB0_9
LBB0_6:
Lloh31:
	adrp	x8, _EIO@GOTPAGE
Lloh32:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh33:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_10
LBB0_7:
	mov	w0, #0
LBB0_8:
Lloh34:
	adrp	x8, _Digiface@GOTPAGE
Lloh35:
	ldr	x8, [x8, _Digiface@GOTPAGEOFF]
LBB0_9:
	ldr	x8, [x8]
	str	x8, [x19]
LBB0_10:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh34, Lloh35
	.cfi_endproc
                                        ; -- End function
	.comm	_HDSP_statusRegister,4,2        ; @HDSP_statusRegister
	.comm	_HDSP_DllError,4,2              ; @HDSP_DllError
	.comm	_HDSP_control2Reg,4,2           ; @HDSP_control2Reg
	.comm	_HDSP_PROGRAM,4,2               ; @HDSP_PROGRAM
	.comm	_HDSP_fifoData,4,2              ; @HDSP_fifoData
	.comm	_HDSP_SHORT_WAIT,4,2            ; @HDSP_SHORT_WAIT
	.comm	_EIO,4,2                        ; @EIO
	.comm	_HDSP_S_LOAD,4,2                ; @HDSP_S_LOAD
	.comm	_Multiface,8,3                  ; @Multiface
	.comm	_HDSP_VERSION_BIT,4,2           ; @HDSP_VERSION_BIT
	.comm	_Digiface,8,3                   ; @Digiface
	.comm	_HDSP_status2Register,4,2       ; @HDSP_status2Register
	.comm	_HDSP_version1,4,2              ; @HDSP_version1
	.no_dead_strip	_hdsp_get_iobox_version
.subsections_via_symbols
