	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function init_hw
_init_hw:                               ## @init_hw
	.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
	movl	%edx, %r15d
	movl	%esi, %r12d
	movq	%rdi, %r14
	leaq	L_.str(%rip), %rdi
	callq	_DE_INIT
	movl	%r15d, %eax
	andl	$65520, %eax                    ## imm = 0xFFF0
	movq	_INDIGO_IOX@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	cmpl	(%rcx), %eax
	setne	%dil
	callq	_snd_BUG_ON
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_ENODEV@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_9
LBB0_2:
	movq	%r14, %rdi
	callq	_init_dsp_comm_page
	testl	%eax, %eax
	js	LBB0_3
## %bb.4:
	movl	%r12d, (%r14)
	movl	%r15d, 4(%r14)
	movq	_TRUE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%r14)
	movq	_card_fw@GOTPCREL(%rip), %rcx
	movq	_FW_INDIGO_IOX_DSP@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	shlq	$2, %rdx
	addq	(%rcx), %rdx
	movq	%rdx, 32(%r14)
	movq	%rax, 24(%r14)
	movq	_ECHO_CLOCK_BIT_INTERNAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r14)
	movq	%r14, %rdi
	callq	_load_firmware
	testl	%eax, %eax
	js	LBB0_5
## %bb.6:
	movq	_FALSE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%r14)
	movq	%r14, %rdi
	callq	_init_line_levels
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_9
## %bb.7:
	leaq	L_.str.2(%rip), %rdi
	jmp	LBB0_8
LBB0_3:
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rdi
LBB0_8:
	callq	_DE_INIT
	jmp	LBB0_9
LBB0_5:
	movl	%eax, %ebx
LBB0_9:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"init_hw() - Indigo IOx\n"

	.comm	_INDIGO_IOX,4,2                 ## @INDIGO_IOX
	.comm	_ENODEV,4,2                     ## @ENODEV
L_.str.1:                               ## @.str.1
	.asciz	"init_hw - could not initialize DSP comm page\n"

	.comm	_TRUE,8,3                       ## @TRUE
	.comm	_card_fw,8,3                    ## @card_fw
	.comm	_FW_INDIGO_IOX_DSP,8,3          ## @FW_INDIGO_IOX_DSP
	.comm	_ECHO_CLOCK_BIT_INTERNAL,4,2    ## @ECHO_CLOCK_BIT_INTERNAL
	.comm	_FALSE,8,3                      ## @FALSE
L_.str.2:                               ## @.str.2
	.asciz	"init_hw done\n"

	.no_dead_strip	_init_hw
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function init_hw
_init_hw:                               ; @init_hw
	.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, x2
	mov	x22, x1
	mov	x19, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DE_INIT
	and	w8, w21, #0xfff0
Lloh2:
	adrp	x9, _INDIGO_IOX@GOTPAGE
Lloh3:
	ldr	x9, [x9, _INDIGO_IOX@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	cmp	w8, w9
	cset	w0, ne
	bl	_snd_BUG_ON
	cbz	x0, LBB0_2
; %bb.1:
Lloh5:
	adrp	x8, _ENODEV@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_9
LBB0_2:
	mov	x0, x19
	bl	_init_dsp_comm_page
	tbnz	w0, #31, LBB0_6
; %bb.3:
	stp	w22, w21, [x19]
Lloh8:
	adrp	x8, _TRUE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
Lloh11:
	adrp	x9, _card_fw@GOTPAGE
Lloh12:
	ldr	x9, [x9, _card_fw@GOTPAGEOFF]
	str	x8, [x19, #8]
Lloh13:
	ldr	x9, [x9]
Lloh14:
	adrp	x10, _FW_INDIGO_IOX_DSP@GOTPAGE
Lloh15:
	ldr	x10, [x10, _FW_INDIGO_IOX_DSP@GOTPAGEOFF]
Lloh16:
	ldr	x10, [x10]
	add	x9, x9, x10, lsl #2
	stp	x8, x9, [x19, #24]
Lloh17:
	adrp	x8, _ECHO_CLOCK_BIT_INTERNAL@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ECHO_CLOCK_BIT_INTERNAL@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	str	w8, [x19, #16]
	mov	x0, x19
	bl	_load_firmware
	tbnz	w0, #31, LBB0_8
; %bb.4:
Lloh20:
	adrp	x8, _FALSE@GOTPAGE
Lloh21:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh22:
	ldr	x8, [x8]
	str	x8, [x19, #8]
	mov	x0, x19
	bl	_init_line_levels
	mov	x20, x0
	tbnz	w0, #31, LBB0_9
; %bb.5:
Lloh23:
	adrp	x0, l_.str.2@PAGE
Lloh24:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_7
LBB0_6:
	mov	x20, x0
Lloh25:
	adrp	x0, l_.str.1@PAGE
Lloh26:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_7:
	bl	_DE_INIT
	b	LBB0_9
LBB0_8:
	mov	x20, x0
LBB0_9:
	mov	x0, x20
	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	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"init_hw() - Indigo IOx\n"

	.comm	_INDIGO_IOX,4,2                 ; @INDIGO_IOX
	.comm	_ENODEV,4,2                     ; @ENODEV
l_.str.1:                               ; @.str.1
	.asciz	"init_hw - could not initialize DSP comm page\n"

	.comm	_TRUE,8,3                       ; @TRUE
	.comm	_card_fw,8,3                    ; @card_fw
	.comm	_FW_INDIGO_IOX_DSP,8,3          ; @FW_INDIGO_IOX_DSP
	.comm	_ECHO_CLOCK_BIT_INTERNAL,4,2    ; @ECHO_CLOCK_BIT_INTERNAL
	.comm	_FALSE,8,3                      ; @FALSE
l_.str.2:                               ; @.str.2
	.asciz	"init_hw done\n"

	.no_dead_strip	_init_hw
.subsections_via_symbols
