	.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	%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
	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	_LAYLA24@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_5
LBB0_2:
	movq	%r14, %rdi
	callq	_init_dsp_comm_page
	testl	%eax, %eax
	je	LBB0_6
## %bb.3:
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rdi
LBB0_4:
	callq	_DE_INIT
	jmp	LBB0_5
LBB0_6:
	movl	%r12d, (%r14)
	movl	%r15d, 4(%r14)
	movq	_TRUE@GOTPCREL(%rip), %r15
	movq	(%r15), %rax
	movq	%rax, 16(%r14)
	movq	%rax, 56(%r14)
	movq	_card_fw@GOTPCREL(%rip), %rcx
	movq	_FW_LAYLA24_DSP@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	shlq	$2, %rdx
	addq	(%rcx), %rdx
	movq	%rdx, 48(%r14)
	movq	_ECHO_CLOCK_BIT_INTERNAL@GOTPCREL(%rip), %rcx
	movq	_ECHO_CLOCK_BIT_SPDIF@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	movq	_ECHO_CLOCK_BIT_WORD@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edx
	movq	_ECHO_CLOCK_BIT_ADAT@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edx
	movl	%edx, 8(%r14)
	movq	_ECHOCAPS_HAS_DIGITAL_MODE_SPDIF_RCA@GOTPCREL(%rip), %rcx
	movq	_ECHOCAPS_HAS_DIGITAL_MODE_SPDIF_OPTICAL@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	movq	_ECHOCAPS_HAS_DIGITAL_MODE_ADAT@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edx
	movl	%edx, 12(%r14)
	movq	_DIGITAL_MODE_SPDIF_RCA@GOTPCREL(%rip), %r12
	movl	(%r12), %ecx
	movl	%ecx, 40(%r14)
	movq	_FALSE@GOTPCREL(%rip), %r13
	movq	(%r13), %rcx
	movq	%rcx, 32(%r14)
	movq	%rax, 24(%r14)
	movq	%r14, %rdi
	callq	_load_firmware
	testl	%eax, %eax
	js	LBB0_10
## %bb.7:
	movq	(%r13), %rax
	movq	%rax, 16(%r14)
	movq	%r14, %rdi
	callq	_init_line_levels
	testl	%eax, %eax
	js	LBB0_10
## %bb.8:
	movl	(%r12), %esi
	movq	%r14, %rdi
	callq	_set_digital_mode
	testl	%eax, %eax
	js	LBB0_10
## %bb.9:
	movq	(%r15), %rsi
	movq	%r14, %rdi
	callq	_set_professional_spdif
	movl	%eax, %ebx
	leaq	L_.str.2(%rip), %rdi
	jmp	LBB0_4
LBB0_10:
	movl	%eax, %ebx
LBB0_5:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"init_hw() - Layla24\n"

	.comm	_LAYLA24,4,2                    ## @LAYLA24
	.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_LAYLA24_DSP,8,3             ## @FW_LAYLA24_DSP
	.comm	_ECHO_CLOCK_BIT_INTERNAL,4,2    ## @ECHO_CLOCK_BIT_INTERNAL
	.comm	_ECHO_CLOCK_BIT_SPDIF,4,2       ## @ECHO_CLOCK_BIT_SPDIF
	.comm	_ECHO_CLOCK_BIT_WORD,4,2        ## @ECHO_CLOCK_BIT_WORD
	.comm	_ECHO_CLOCK_BIT_ADAT,4,2        ## @ECHO_CLOCK_BIT_ADAT
	.comm	_ECHOCAPS_HAS_DIGITAL_MODE_SPDIF_RCA,4,2 ## @ECHOCAPS_HAS_DIGITAL_MODE_SPDIF_RCA
	.comm	_ECHOCAPS_HAS_DIGITAL_MODE_SPDIF_OPTICAL,4,2 ## @ECHOCAPS_HAS_DIGITAL_MODE_SPDIF_OPTICAL
	.comm	_ECHOCAPS_HAS_DIGITAL_MODE_ADAT,4,2 ## @ECHOCAPS_HAS_DIGITAL_MODE_ADAT
	.comm	_DIGITAL_MODE_SPDIF_RCA,4,2     ## @DIGITAL_MODE_SPDIF_RCA
	.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	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	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, _LAYLA24@GOTPAGE
Lloh3:
	ldr	x9, [x9, _LAYLA24@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
	cbz	w0, LBB0_4
; %bb.3:
	mov	x20, x0
Lloh8:
	adrp	x0, l_.str.1@PAGE
Lloh9:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_DE_INIT
	b	LBB0_9
LBB0_4:
	stp	w22, w21, [x19]
Lloh10:
	adrp	x21, _TRUE@GOTPAGE
Lloh11:
	ldr	x21, [x21, _TRUE@GOTPAGEOFF]
	ldr	x8, [x21]
Lloh12:
	adrp	x9, _card_fw@GOTPAGE
Lloh13:
	ldr	x9, [x9, _card_fw@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
Lloh15:
	adrp	x10, _FW_LAYLA24_DSP@GOTPAGE
Lloh16:
	ldr	x10, [x10, _FW_LAYLA24_DSP@GOTPAGEOFF]
Lloh17:
	ldr	x10, [x10]
	add	x9, x9, x10, lsl #2
	stp	x9, x8, [x19, #48]
Lloh18:
	adrp	x9, _ECHO_CLOCK_BIT_INTERNAL@GOTPAGE
Lloh19:
	ldr	x9, [x9, _ECHO_CLOCK_BIT_INTERNAL@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
Lloh21:
	adrp	x10, _ECHO_CLOCK_BIT_SPDIF@GOTPAGE
Lloh22:
	ldr	x10, [x10, _ECHO_CLOCK_BIT_SPDIF@GOTPAGEOFF]
Lloh23:
	ldr	w10, [x10]
Lloh24:
	adrp	x11, _ECHO_CLOCK_BIT_WORD@GOTPAGE
Lloh25:
	ldr	x11, [x11, _ECHO_CLOCK_BIT_WORD@GOTPAGEOFF]
	orr	w9, w10, w9
Lloh26:
	ldr	w10, [x11]
	orr	w9, w9, w10
Lloh27:
	adrp	x10, _ECHO_CLOCK_BIT_ADAT@GOTPAGE
Lloh28:
	ldr	x10, [x10, _ECHO_CLOCK_BIT_ADAT@GOTPAGEOFF]
Lloh29:
	ldr	w10, [x10]
	orr	w9, w9, w10
Lloh30:
	adrp	x10, _ECHOCAPS_HAS_DIGITAL_MODE_SPDIF_RCA@GOTPAGE
Lloh31:
	ldr	x10, [x10, _ECHOCAPS_HAS_DIGITAL_MODE_SPDIF_RCA@GOTPAGEOFF]
Lloh32:
	ldr	w10, [x10]
Lloh33:
	adrp	x11, _ECHOCAPS_HAS_DIGITAL_MODE_SPDIF_OPTICAL@GOTPAGE
Lloh34:
	ldr	x11, [x11, _ECHOCAPS_HAS_DIGITAL_MODE_SPDIF_OPTICAL@GOTPAGEOFF]
Lloh35:
	ldr	w11, [x11]
	orr	w10, w11, w10
Lloh36:
	adrp	x11, _ECHOCAPS_HAS_DIGITAL_MODE_ADAT@GOTPAGE
Lloh37:
	ldr	x11, [x11, _ECHOCAPS_HAS_DIGITAL_MODE_ADAT@GOTPAGEOFF]
Lloh38:
	ldr	w11, [x11]
	orr	w10, w10, w11
	stp	w9, w10, [x19, #8]
Lloh39:
	adrp	x22, _DIGITAL_MODE_SPDIF_RCA@GOTPAGE
Lloh40:
	ldr	x22, [x22, _DIGITAL_MODE_SPDIF_RCA@GOTPAGEOFF]
	ldr	w9, [x22]
	str	w9, [x19, #40]
Lloh41:
	adrp	x23, _FALSE@GOTPAGE
Lloh42:
	ldr	x23, [x23, _FALSE@GOTPAGEOFF]
	ldr	x9, [x23]
	stp	x8, x9, [x19, #24]
	str	x8, [x19, #16]
	mov	x0, x19
	bl	_load_firmware
	tbnz	w0, #31, LBB0_8
; %bb.5:
	ldr	x8, [x23]
	str	x8, [x19, #16]
	mov	x0, x19
	bl	_init_line_levels
	tbnz	w0, #31, LBB0_8
; %bb.6:
	ldr	w1, [x22]
	mov	x0, x19
	bl	_set_digital_mode
	tbnz	w0, #31, LBB0_8
; %bb.7:
	ldr	x1, [x21]
	mov	x0, x19
	bl	_set_professional_spdif
	mov	x19, x0
Lloh43:
	adrp	x0, l_.str.2@PAGE
Lloh44:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_DE_INIT
	mov	x0, x19
	b	LBB0_10
LBB0_8:
	mov	x20, x0
LBB0_9:
	mov	x0, x20
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	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh41, Lloh42
	.loh AdrpLdrGot	Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh36, Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh43, Lloh44
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"init_hw() - Layla24\n"

	.comm	_LAYLA24,4,2                    ; @LAYLA24
	.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_LAYLA24_DSP,8,3             ; @FW_LAYLA24_DSP
	.comm	_ECHO_CLOCK_BIT_INTERNAL,4,2    ; @ECHO_CLOCK_BIT_INTERNAL
	.comm	_ECHO_CLOCK_BIT_SPDIF,4,2       ; @ECHO_CLOCK_BIT_SPDIF
	.comm	_ECHO_CLOCK_BIT_WORD,4,2        ; @ECHO_CLOCK_BIT_WORD
	.comm	_ECHO_CLOCK_BIT_ADAT,4,2        ; @ECHO_CLOCK_BIT_ADAT
	.comm	_ECHOCAPS_HAS_DIGITAL_MODE_SPDIF_RCA,4,2 ; @ECHOCAPS_HAS_DIGITAL_MODE_SPDIF_RCA
	.comm	_ECHOCAPS_HAS_DIGITAL_MODE_SPDIF_OPTICAL,4,2 ; @ECHOCAPS_HAS_DIGITAL_MODE_SPDIF_OPTICAL
	.comm	_ECHOCAPS_HAS_DIGITAL_MODE_ADAT,4,2 ; @ECHOCAPS_HAS_DIGITAL_MODE_ADAT
	.comm	_DIGITAL_MODE_SPDIF_RCA,4,2     ; @DIGITAL_MODE_SPDIF_RCA
	.comm	_FALSE,8,3                      ; @FALSE
l_.str.2:                               ; @.str.2
	.asciz	"init_hw done\n"

	.no_dead_strip	_init_hw
.subsections_via_symbols
