	.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	_DARLA24@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
	je	LBB0_4
## %bb.3:
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rdi
LBB0_8:
	callq	_DE_INIT
LBB0_9:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movl	%r12d, (%r14)
	movl	%r15d, 4(%r14)
	movq	_TRUE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 16(%r14)
	movq	_card_fw@GOTPCREL(%rip), %rcx
	movq	_FW_DARLA24_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
	movq	_ECHO_CLOCK_BIT_ESYNC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movl	%ecx, 8(%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, 16(%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_5:
	movl	%eax, %ebx
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"init_hw() - Darla24\n"

	.comm	_DARLA24,4,2                    ## @DARLA24
	.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_DARLA24_DSP,8,3             ## @FW_DARLA24_DSP
	.comm	_ECHO_CLOCK_BIT_INTERNAL,4,2    ## @ECHO_CLOCK_BIT_INTERNAL
	.comm	_ECHO_CLOCK_BIT_ESYNC,4,2       ## @ECHO_CLOCK_BIT_ESYNC
	.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, _DARLA24@GOTPAGE
Lloh3:
	ldr	x9, [x9, _DARLA24@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_5
LBB0_2:
	mov	x0, x19
	bl	_init_dsp_comm_page
	cbz	w0, LBB0_6
; %bb.3:
	mov	x20, x0
Lloh8:
	adrp	x0, l_.str.1@PAGE
Lloh9:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_4:
	bl	_DE_INIT
LBB0_5:
	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
LBB0_6:
	stp	w22, w21, [x19]
Lloh10:
	adrp	x8, _TRUE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh12:
	ldr	x8, [x8]
Lloh13:
	adrp	x9, _card_fw@GOTPAGE
Lloh14:
	ldr	x9, [x9, _card_fw@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
Lloh16:
	adrp	x10, _FW_DARLA24_DSP@GOTPAGE
Lloh17:
	ldr	x10, [x10, _FW_DARLA24_DSP@GOTPAGEOFF]
Lloh18:
	ldr	x10, [x10]
	add	x9, x9, x10, lsl #2
	stp	x8, x9, [x19, #24]
	str	x8, [x19, #16]
Lloh19:
	adrp	x8, _ECHO_CLOCK_BIT_INTERNAL@GOTPAGE
Lloh20:
	ldr	x8, [x8, _ECHO_CLOCK_BIT_INTERNAL@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
Lloh22:
	adrp	x9, _ECHO_CLOCK_BIT_ESYNC@GOTPAGE
Lloh23:
	ldr	x9, [x9, _ECHO_CLOCK_BIT_ESYNC@GOTPAGEOFF]
Lloh24:
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [x19, #8]
	mov	x0, x19
	bl	_load_firmware
	tbnz	w0, #31, LBB0_9
; %bb.7:
Lloh25:
	adrp	x8, _FALSE@GOTPAGE
Lloh26:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh27:
	ldr	x8, [x8]
	str	x8, [x19, #16]
	mov	x0, x19
	bl	_init_line_levels
	mov	x20, x0
	tbnz	w0, #31, LBB0_5
; %bb.8:
Lloh28:
	adrp	x0, l_.str.2@PAGE
Lloh29:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_4
LBB0_9:
	mov	x20, x0
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpAdd	Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"init_hw() - Darla24\n"

	.comm	_DARLA24,4,2                    ; @DARLA24
	.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_DARLA24_DSP,8,3             ; @FW_DARLA24_DSP
	.comm	_ECHO_CLOCK_BIT_INTERNAL,4,2    ; @ECHO_CLOCK_BIT_INTERNAL
	.comm	_ECHO_CLOCK_BIT_ESYNC,4,2       ; @ECHO_CLOCK_BIT_ESYNC
	.comm	_FALSE,8,3                      ; @FALSE
l_.str.2:                               ; @.str.2
	.asciz	"init_hw done\n"

	.no_dead_strip	_init_hw
.subsections_via_symbols
