	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cmi9880_build_pcms
_cmi9880_build_pcms:                    ## @cmi9880_build_pcms
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	16(%rdi), %r10
	movq	16(%r10), %rcx
	movl	$1, (%rdi)
	movq	%rcx, 8(%rdi)
	leaq	L_.str(%rip), %rdx
	movq	%rdx, (%rcx)
	movq	8(%rcx), %rdx
	movq	_SNDRV_PCM_STREAM_PLAYBACK@GOTPCREL(%rip), %r9
	movq	(%r9), %rsi
	movq	_cmi9880_pcm_analog_playback@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%rdx,%rsi,8)
	movq	_SNDRV_PCM_STREAM_CAPTURE@GOTPCREL(%rip), %r8
	movq	(%r8), %rax
	movq	_cmi9880_pcm_analog_capture@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rsi
	movq	%rsi, (%rdx,%rax,8)
	cmpq	$0, 8(%r10)
	je	LBB0_1
## %bb.3:
	movl	$2, (%rdi)
	leaq	L_.str.1(%rip), %rax
	movq	%rax, 24(%rcx)
	movq	_HDA_PCM_TYPE_SPDIF@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 40(%rcx)
	movq	32(%rcx), %rax
	movq	(%r9), %rdx
	movq	_cmi9880_pcm_digital_playback@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rsi
	movq	%rsi, (%rax,%rdx,8)
	movq	8(%r10), %rdx
	movq	(%r9), %rsi
	movq	%rdx, (%rax,%rsi,8)
	cmpq	$0, (%r10)
	jne	LBB0_4
	jmp	LBB0_5
LBB0_1:
	cmpq	$0, (%r10)
	je	LBB0_5
## %bb.2:
	movl	$2, (%rdi)
	leaq	L_.str.1(%rip), %rax
	movq	%rax, 24(%rcx)
	movq	_HDA_PCM_TYPE_SPDIF@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 40(%rcx)
LBB0_4:
	movq	32(%rcx), %rax
	movq	(%r8), %rcx
	movq	_cmi9880_pcm_digital_capture@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movq	%rdx, (%rax,%rcx,8)
	movq	(%r10), %rcx
	movq	(%r8), %rdx
	movq	%rcx, (%rax,%rdx,8)
LBB0_5:
	xorl	%eax, %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"CMI9880"

	.comm	_SNDRV_PCM_STREAM_PLAYBACK,8,3  ## @SNDRV_PCM_STREAM_PLAYBACK
	.comm	_cmi9880_pcm_analog_playback,8,3 ## @cmi9880_pcm_analog_playback
	.comm	_SNDRV_PCM_STREAM_CAPTURE,8,3   ## @SNDRV_PCM_STREAM_CAPTURE
	.comm	_cmi9880_pcm_analog_capture,8,3 ## @cmi9880_pcm_analog_capture
L_.str.1:                               ## @.str.1
	.asciz	"CMI9880 Digital"

	.comm	_HDA_PCM_TYPE_SPDIF,4,2         ## @HDA_PCM_TYPE_SPDIF
	.comm	_cmi9880_pcm_digital_playback,8,3 ## @cmi9880_pcm_digital_playback
	.comm	_cmi9880_pcm_digital_capture,8,3 ## @cmi9880_pcm_digital_capture
	.no_dead_strip	_cmi9880_build_pcms
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cmi9880_build_pcms
_cmi9880_build_pcms:                    ; @cmi9880_build_pcms
	.cfi_startproc
; %bb.0:
	ldr	x8, [x0, #16]
	ldr	x9, [x8, #16]
	mov	w10, #1
	str	w10, [x0]
	str	x9, [x0, #8]
Lloh0:
	adrp	x10, l_.str@PAGE
Lloh1:
	add	x10, x10, l_.str@PAGEOFF
	str	x10, [x9]
	ldr	x12, [x9, #8]
Lloh2:
	adrp	x11, _SNDRV_PCM_STREAM_PLAYBACK@GOTPAGE
Lloh3:
	ldr	x11, [x11, _SNDRV_PCM_STREAM_PLAYBACK@GOTPAGEOFF]
	ldr	x10, [x11]
Lloh4:
	adrp	x13, _cmi9880_pcm_analog_playback@GOTPAGE
Lloh5:
	ldr	x13, [x13, _cmi9880_pcm_analog_playback@GOTPAGEOFF]
Lloh6:
	ldr	x13, [x13]
	str	x13, [x12, x10, lsl #3]
Lloh7:
	adrp	x10, _SNDRV_PCM_STREAM_CAPTURE@GOTPAGE
Lloh8:
	ldr	x10, [x10, _SNDRV_PCM_STREAM_CAPTURE@GOTPAGEOFF]
	ldr	x13, [x10]
Lloh9:
	adrp	x14, _cmi9880_pcm_analog_capture@GOTPAGE
Lloh10:
	ldr	x14, [x14, _cmi9880_pcm_analog_capture@GOTPAGEOFF]
Lloh11:
	ldr	x14, [x14]
	str	x14, [x12, x13, lsl #3]
	ldr	x12, [x8, #8]
	cbz	x12, LBB0_3
; %bb.1:
	mov	w12, #2
Lloh12:
	adrp	x13, l_.str.1@PAGE
Lloh13:
	add	x13, x13, l_.str.1@PAGEOFF
	str	w12, [x0]
	str	x13, [x9, #24]
	ldr	x12, [x9, #32]
	ldr	x13, [x11]
Lloh14:
	adrp	x14, _cmi9880_pcm_digital_playback@GOTPAGE
Lloh15:
	ldr	x14, [x14, _cmi9880_pcm_digital_playback@GOTPAGEOFF]
Lloh16:
	ldr	x14, [x14]
	str	x14, [x12, x13, lsl #3]
Lloh17:
	adrp	x13, _HDA_PCM_TYPE_SPDIF@GOTPAGE
Lloh18:
	ldr	x13, [x13, _HDA_PCM_TYPE_SPDIF@GOTPAGEOFF]
Lloh19:
	ldr	w13, [x13]
	str	w13, [x9, #40]
	ldr	x11, [x11]
	ldp	x14, x13, [x8]
	str	x13, [x12, x11, lsl #3]
	cbnz	x14, LBB0_5
LBB0_2:
	mov	w0, #0
	ret
LBB0_3:
	ldr	x11, [x8]
	cbz	x11, LBB0_2
; %bb.4:
	mov	w11, #2
Lloh20:
	adrp	x12, l_.str.1@PAGE
Lloh21:
	add	x12, x12, l_.str.1@PAGEOFF
	str	w11, [x0]
	str	x12, [x9, #24]
Lloh22:
	adrp	x11, _HDA_PCM_TYPE_SPDIF@GOTPAGE
Lloh23:
	ldr	x11, [x11, _HDA_PCM_TYPE_SPDIF@GOTPAGEOFF]
Lloh24:
	ldr	w11, [x11]
	str	w11, [x9, #40]
LBB0_5:
	ldr	x9, [x9, #32]
	ldr	x11, [x10]
Lloh25:
	adrp	x12, _cmi9880_pcm_digital_capture@GOTPAGE
Lloh26:
	ldr	x12, [x12, _cmi9880_pcm_digital_capture@GOTPAGEOFF]
Lloh27:
	ldr	x12, [x12]
	str	x12, [x9, x11, lsl #3]
	ldr	x8, [x8]
	ldr	x10, [x10]
	str	x8, [x9, x10, lsl #3]
	mov	w0, #0
	ret
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"CMI9880"

	.comm	_SNDRV_PCM_STREAM_PLAYBACK,8,3  ; @SNDRV_PCM_STREAM_PLAYBACK
	.comm	_cmi9880_pcm_analog_playback,8,3 ; @cmi9880_pcm_analog_playback
	.comm	_SNDRV_PCM_STREAM_CAPTURE,8,3   ; @SNDRV_PCM_STREAM_CAPTURE
	.comm	_cmi9880_pcm_analog_capture,8,3 ; @cmi9880_pcm_analog_capture
l_.str.1:                               ; @.str.1
	.asciz	"CMI9880 Digital"

	.comm	_HDA_PCM_TYPE_SPDIF,4,2         ; @HDA_PCM_TYPE_SPDIF
	.comm	_cmi9880_pcm_digital_playback,8,3 ; @cmi9880_pcm_digital_playback
	.comm	_cmi9880_pcm_digital_capture,8,3 ; @cmi9880_pcm_digital_capture
	.no_dead_strip	_cmi9880_build_pcms
.subsections_via_symbols
