	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function snd_hdsp_initialize_channels
LCPI0_0:
	.long	4                               ## 0x4
	.long	4                               ## 0x4
	.space	4
	.space	4
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_snd_hdsp_initialize_channels:          ## @snd_hdsp_initialize_channels
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movl	(%rdi), %eax
	addl	$-128, %eax
	cmpl	$3, %eax
	ja	LBB0_7
## %bb.1:
	movq	%rdi, %rbx
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_5:
	leaq	L_.str.3(%rip), %rax
	movq	%rax, 8(%rbx)
	movq	_MULTIFACE_SS_CHANNELS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%rbx)
	movl	%eax, 28(%rbx)
	movq	_MULTIFACE_DS_CHANNELS@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_3:
	leaq	L_.str.1(%rip), %rax
	movq	%rax, 8(%rbx)
	movq	_H9652_SS_CHANNELS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%rbx)
	movl	%eax, 28(%rbx)
	movq	_H9652_DS_CHANNELS@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_4:
	movq	_HDSP_statusRegister@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_hdsp_read
	leaq	L_.str.2(%rip), %rcx
	movq	%rcx, 8(%rbx)
	movq	_H9632_QS_CHANNELS@GOTPCREL(%rip), %rcx
	movq	_HDSP_AEBI@GOTPCREL(%rip), %rdx
	movq	_HDSP_AEBO@GOTPCREL(%rip), %rsi
	movd	(%rsi), %xmm0                   ## xmm0 = mem[0],zero,zero,zero
	pinsrd	$1, (%rdx), %xmm0
	movl	(%rcx), %ecx
	movd	%eax, %xmm1
	pshufd	$80, %xmm1, %xmm1               ## xmm1 = xmm1[0,0,1,1]
	pand	%xmm0, %xmm1
	pxor	%xmm0, %xmm0
	pcmpeqd	%xmm1, %xmm0
	pand	LCPI0_0(%rip), %xmm0
	movd	%xmm0, %eax
	pshufd	$68, %xmm0, %xmm1               ## xmm1 = xmm0[0,1,0,1]
	pextrd	$1, %xmm0, %edx
	movq	_H9632_SS_CHANNELS@GOTPCREL(%rip), %rsi
	movq	_H9632_DS_CHANNELS@GOTPCREL(%rip), %rdi
	addl	%ecx, %edx
	movd	(%rdi), %xmm0                   ## xmm0 = mem[0],zero,zero,zero
	pinsrd	$1, (%rsi), %xmm0
	movl	%edx, 36(%rbx)
	pshufd	$80, %xmm0, %xmm0               ## xmm0 = xmm0[0,0,1,1]
	paddd	%xmm1, %xmm0
	movdqu	%xmm0, 16(%rbx)
	addl	%ecx, %eax
	movl	%eax, 32(%rbx)
	jmp	LBB0_7
LBB0_2:
	leaq	L_.str(%rip), %rax
	movq	%rax, 8(%rbx)
	movq	_DIGIFACE_SS_CHANNELS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%rbx)
	movl	%eax, 28(%rbx)
	movq	_DIGIFACE_DS_CHANNELS@GOTPCREL(%rip), %rax
LBB0_6:
	movl	(%rax), %eax
	movl	%eax, 16(%rbx)
	movl	%eax, 20(%rbx)
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
LJTI0_0:
	.long	L0_0_set_5
	.long	L0_0_set_3
	.long	L0_0_set_4
	.long	L0_0_set_2
	.end_data_region
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"RME Hammerfall DSP + Digiface"

	.comm	_DIGIFACE_SS_CHANNELS,4,2       ## @DIGIFACE_SS_CHANNELS
	.comm	_DIGIFACE_DS_CHANNELS,4,2       ## @DIGIFACE_DS_CHANNELS
L_.str.1:                               ## @.str.1
	.asciz	"RME Hammerfall HDSP 9652"

	.comm	_H9652_SS_CHANNELS,4,2          ## @H9652_SS_CHANNELS
	.comm	_H9652_DS_CHANNELS,4,2          ## @H9652_DS_CHANNELS
	.comm	_HDSP_statusRegister,4,2        ## @HDSP_statusRegister
	.comm	_HDSP_AEBI,4,2                  ## @HDSP_AEBI
	.comm	_HDSP_AEBO,4,2                  ## @HDSP_AEBO
L_.str.2:                               ## @.str.2
	.asciz	"RME Hammerfall HDSP 9632"

	.comm	_H9632_SS_CHANNELS,4,2          ## @H9632_SS_CHANNELS
	.comm	_H9632_DS_CHANNELS,4,2          ## @H9632_DS_CHANNELS
	.comm	_H9632_QS_CHANNELS,4,2          ## @H9632_QS_CHANNELS
L_.str.3:                               ## @.str.3
	.asciz	"RME Hammerfall DSP + Multiface"

	.comm	_MULTIFACE_SS_CHANNELS,4,2      ## @MULTIFACE_SS_CHANNELS
	.comm	_MULTIFACE_DS_CHANNELS,4,2      ## @MULTIFACE_DS_CHANNELS
	.no_dead_strip	_snd_hdsp_initialize_channels
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function snd_hdsp_initialize_channels
_snd_hdsp_initialize_channels:          ; @snd_hdsp_initialize_channels
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	w8, [x0]
	sub	w8, w8, #128
	cmp	w8, #3
	b.hi	LBB0_7
; %bb.1:
	mov	x19, x0
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
Lloh2:
	adrp	x8, l_.str.3@PAGE
Lloh3:
	add	x8, x8, l_.str.3@PAGEOFF
	str	x8, [x19, #8]
Lloh4:
	adrp	x8, _MULTIFACE_SS_CHANNELS@GOTPAGE
Lloh5:
	ldr	x8, [x8, _MULTIFACE_SS_CHANNELS@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	stp	w8, w8, [x19, #24]
Lloh7:
	adrp	x8, _MULTIFACE_DS_CHANNELS@GOTPAGE
Lloh8:
	ldr	x8, [x8, _MULTIFACE_DS_CHANNELS@GOTPAGEOFF]
	b	LBB0_6
LBB0_3:
Lloh9:
	adrp	x8, l_.str.1@PAGE
Lloh10:
	add	x8, x8, l_.str.1@PAGEOFF
	str	x8, [x19, #8]
Lloh11:
	adrp	x8, _H9652_SS_CHANNELS@GOTPAGE
Lloh12:
	ldr	x8, [x8, _H9652_SS_CHANNELS@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	stp	w8, w8, [x19, #24]
Lloh14:
	adrp	x8, _H9652_DS_CHANNELS@GOTPAGE
Lloh15:
	ldr	x8, [x8, _H9652_DS_CHANNELS@GOTPAGEOFF]
	b	LBB0_6
LBB0_4:
Lloh16:
	adrp	x8, _HDSP_statusRegister@GOTPAGE
Lloh17:
	ldr	x8, [x8, _HDSP_statusRegister@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_hdsp_read
Lloh19:
	adrp	x8, _HDSP_AEBI@GOTPAGE
Lloh20:
	ldr	x8, [x8, _HDSP_AEBI@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	tst	w8, w0
	cset	w8, eq
	lsl	w8, w8, #2
Lloh22:
	adrp	x9, _HDSP_AEBO@GOTPAGE
Lloh23:
	ldr	x9, [x9, _HDSP_AEBO@GOTPAGEOFF]
Lloh24:
	ldr	w9, [x9]
	tst	w9, w0
	cset	w9, eq
	lsl	w9, w9, #2
Lloh25:
	adrp	x10, l_.str.2@PAGE
Lloh26:
	add	x10, x10, l_.str.2@PAGEOFF
	str	x10, [x19, #8]
Lloh27:
	adrp	x10, _H9632_SS_CHANNELS@GOTPAGE
Lloh28:
	ldr	x10, [x10, _H9632_SS_CHANNELS@GOTPAGEOFF]
Lloh29:
	ldr	w10, [x10]
	add	w11, w10, w8
Lloh30:
	adrp	x12, _H9632_DS_CHANNELS@GOTPAGE
Lloh31:
	ldr	x12, [x12, _H9632_DS_CHANNELS@GOTPAGEOFF]
Lloh32:
	ldr	w12, [x12]
	add	w13, w12, w8
	add	w10, w9, w10
	stp	w10, w11, [x19, #24]
Lloh33:
	adrp	x10, _H9632_QS_CHANNELS@GOTPAGE
Lloh34:
	ldr	x10, [x10, _H9632_QS_CHANNELS@GOTPAGEOFF]
Lloh35:
	ldr	w10, [x10]
	add	w8, w10, w8
	add	w11, w12, w9
	stp	w11, w13, [x19, #16]
	add	w9, w10, w9
	stp	w9, w8, [x19, #32]
	b	LBB0_7
LBB0_5:
Lloh36:
	adrp	x8, l_.str@PAGE
Lloh37:
	add	x8, x8, l_.str@PAGEOFF
	str	x8, [x19, #8]
Lloh38:
	adrp	x8, _DIGIFACE_SS_CHANNELS@GOTPAGE
Lloh39:
	ldr	x8, [x8, _DIGIFACE_SS_CHANNELS@GOTPAGEOFF]
Lloh40:
	ldr	w8, [x8]
	stp	w8, w8, [x19, #24]
Lloh41:
	adrp	x8, _DIGIFACE_DS_CHANNELS@GOTPAGE
Lloh42:
	ldr	x8, [x8, _DIGIFACE_DS_CHANNELS@GOTPAGEOFF]
LBB0_6:
	ldr	w8, [x8]
	stp	w8, w8, [x19, #16]
LBB0_7:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpAdd	Lloh36, Lloh37
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_3-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"RME Hammerfall DSP + Digiface"

	.comm	_DIGIFACE_SS_CHANNELS,4,2       ; @DIGIFACE_SS_CHANNELS
	.comm	_DIGIFACE_DS_CHANNELS,4,2       ; @DIGIFACE_DS_CHANNELS
l_.str.1:                               ; @.str.1
	.asciz	"RME Hammerfall HDSP 9652"

	.comm	_H9652_SS_CHANNELS,4,2          ; @H9652_SS_CHANNELS
	.comm	_H9652_DS_CHANNELS,4,2          ; @H9652_DS_CHANNELS
	.comm	_HDSP_statusRegister,4,2        ; @HDSP_statusRegister
	.comm	_HDSP_AEBI,4,2                  ; @HDSP_AEBI
	.comm	_HDSP_AEBO,4,2                  ; @HDSP_AEBO
l_.str.2:                               ; @.str.2
	.asciz	"RME Hammerfall HDSP 9632"

	.comm	_H9632_SS_CHANNELS,4,2          ; @H9632_SS_CHANNELS
	.comm	_H9632_DS_CHANNELS,4,2          ; @H9632_DS_CHANNELS
	.comm	_H9632_QS_CHANNELS,4,2          ; @H9632_QS_CHANNELS
l_.str.3:                               ; @.str.3
	.asciz	"RME Hammerfall DSP + Multiface"

	.comm	_MULTIFACE_SS_CHANNELS,4,2      ; @MULTIFACE_SS_CHANNELS
	.comm	_MULTIFACE_DS_CHANNELS,4,2      ; @MULTIFACE_DS_CHANNELS
	.no_dead_strip	_snd_hdsp_initialize_channels
.subsections_via_symbols
