	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_snd_cobalt_pcm_create          ## -- Begin function snd_cobalt_pcm_create
	.p2align	4, 0x90
_snd_cobalt_pcm_create:                 ## @snd_cobalt_pcm_create
	.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
	movq	%rdi, %r12
	movq	(%rdi), %rbx
	movq	8(%rdi), %r15
	movq	16(%rbx), %r13
	movq	___GFP_ZERO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 8(%rbx)
	cmpl	$0, 4(%rbx)
	je	LBB0_1
## %bb.5:
	movq	_COBALT_SYS_CTRL_AUDIO_OPP_RESETN_BIT@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	xorl	%r14d, %r14d
	movq	%r13, %rdi
	xorl	%edx, %edx
	callq	_cobalt_s_bit_sysctrl
	movl	$2, %edi
	callq	_mdelay
	movl	(%rbx), %esi
	movq	%r13, %rdi
	movl	$1, %edx
	callq	_cobalt_s_bit_sysctrl
	movl	$1, %edi
	callq	_mdelay
	leaq	L_.str.3(%rip), %rsi
	leaq	-48(%rbp), %r9
	movq	%r15, %rdi
	xorl	%edx, %edx
	movl	$1, %ecx
	xorl	%r8d, %r8d
	callq	_snd_pcm_new
	testl	%eax, %eax
	je	LBB0_7
## %bb.6:
	movl	%eax, %ebx
	leaq	L_.str.4(%rip), %rdi
	jmp	LBB0_3
LBB0_1:
	movl	(%rbx), %edi
	callq	_COBALT_SYS_CTRL_AUDIO_IPP_RESETN_BIT
	xorl	%r14d, %r14d
	movq	%r13, %rdi
	movl	%eax, %esi
	xorl	%edx, %edx
	callq	_cobalt_s_bit_sysctrl
	movl	$2, %edi
	callq	_mdelay
	movl	(%rbx), %edi
	callq	_COBALT_SYS_CTRL_AUDIO_IPP_RESETN_BIT
	movq	%r13, %rdi
	movl	%eax, %esi
	movl	$1, %edx
	callq	_cobalt_s_bit_sysctrl
	movl	$1, %edi
	callq	_mdelay
	leaq	L_.str(%rip), %rsi
	leaq	-48(%rbp), %r9
	movq	%r15, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	movl	$1, %r8d
	callq	_snd_pcm_new
	testl	%eax, %eax
	je	LBB0_4
## %bb.2:
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rdi
LBB0_3:
	movl	%ebx, %esi
	callq	_cobalt_err
	movl	%ebx, %r14d
	jmp	LBB0_9
LBB0_7:
	movq	-48(%rbp), %rdi
	movq	_SNDRV_PCM_STREAM_PLAYBACK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_snd_cobalt_pcm_playback_ops@GOTPCREL(%rip), %rdx
	jmp	LBB0_8
LBB0_4:
	movq	-48(%rbp), %rdi
	movq	_SNDRV_PCM_STREAM_CAPTURE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_snd_cobalt_pcm_capture_ops@GOTPCREL(%rip), %rdx
LBB0_8:
	callq	_snd_pcm_set_ops
	movq	-48(%rbp), %rax
	movq	$0, 16(%rax)
	movq	%r12, 8(%rax)
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	movl	$4, %edx
	callq	_strscpy
LBB0_9:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	___GFP_ZERO,4,2                 ## @__GFP_ZERO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Cobalt PCM-In HDMI"

L_.str.1:                               ## @.str.1
	.asciz	"snd_cobalt_pcm_create() failed for input with err %d\n"

	.comm	_SNDRV_PCM_STREAM_CAPTURE,4,2   ## @SNDRV_PCM_STREAM_CAPTURE
	.comm	_snd_cobalt_pcm_capture_ops,4,2 ## @snd_cobalt_pcm_capture_ops
L_.str.2:                               ## @.str.2
	.asciz	"cobalt"

	.comm	_COBALT_SYS_CTRL_AUDIO_OPP_RESETN_BIT,4,2 ## @COBALT_SYS_CTRL_AUDIO_OPP_RESETN_BIT
L_.str.3:                               ## @.str.3
	.asciz	"Cobalt PCM-Out HDMI"

L_.str.4:                               ## @.str.4
	.asciz	"snd_cobalt_pcm_create() failed for output with err %d\n"

	.comm	_SNDRV_PCM_STREAM_PLAYBACK,4,2  ## @SNDRV_PCM_STREAM_PLAYBACK
	.comm	_snd_cobalt_pcm_playback_ops,4,2 ## @snd_cobalt_pcm_playback_ops
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_snd_cobalt_pcm_create          ; -- Begin function snd_cobalt_pcm_create
	.p2align	2
_snd_cobalt_pcm_create:                 ; @snd_cobalt_pcm_create
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x0
	ldp	x22, x20, [x0]
Lloh0:
	adrp	x8, ___GFP_ZERO@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___GFP_ZERO@GOTPAGEOFF]
	ldr	x21, [x22, #16]
Lloh2:
	ldr	w8, [x8]
	ldp	w10, w9, [x22, #4]
	orr	w8, w9, w8
	str	w8, [x22, #8]
	cbz	w10, LBB0_3
; %bb.1:
Lloh3:
	adrp	x22, _COBALT_SYS_CTRL_AUDIO_OPP_RESETN_BIT@GOTPAGE
Lloh4:
	ldr	x22, [x22, _COBALT_SYS_CTRL_AUDIO_OPP_RESETN_BIT@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x21
	mov	w2, #0
	bl	_cobalt_s_bit_sysctrl
	mov	w0, #2
	bl	_mdelay
	ldr	w1, [x22]
	mov	x0, x21
	mov	w2, #1
	bl	_cobalt_s_bit_sysctrl
	mov	w0, #1
	bl	_mdelay
Lloh5:
	adrp	x1, l_.str.3@PAGE
Lloh6:
	add	x1, x1, l_.str.3@PAGEOFF
	add	x5, sp, #8
	mov	x0, x20
	mov	w2, #0
	mov	w3, #1
	mov	w4, #0
	bl	_snd_pcm_new
	mov	x20, x0
	cbz	w0, LBB0_6
; %bb.2:
Lloh7:
	adrp	x0, l_.str.4@PAGE
Lloh8:
	add	x0, x0, l_.str.4@PAGEOFF
	b	LBB0_5
LBB0_3:
	ldr	w0, [x22]
	bl	_COBALT_SYS_CTRL_AUDIO_IPP_RESETN_BIT
	mov	x1, x0
	mov	x0, x21
	mov	w2, #0
	bl	_cobalt_s_bit_sysctrl
	mov	w0, #2
	bl	_mdelay
	ldr	w0, [x22]
	bl	_COBALT_SYS_CTRL_AUDIO_IPP_RESETN_BIT
	mov	x1, x0
	mov	x0, x21
	mov	w2, #1
	bl	_cobalt_s_bit_sysctrl
	mov	w0, #1
	bl	_mdelay
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	add	x5, sp, #8
	mov	x0, x20
	mov	w2, #0
	mov	w3, #0
	mov	w4, #1
	bl	_snd_pcm_new
	mov	x20, x0
	cbz	w0, LBB0_7
; %bb.4:
Lloh11:
	adrp	x0, l_.str.1@PAGE
Lloh12:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_5:
	mov	x1, x20
	bl	_cobalt_err
	b	LBB0_9
LBB0_6:
	ldr	x0, [sp, #8]
Lloh13:
	adrp	x8, _SNDRV_PCM_STREAM_PLAYBACK@GOTPAGE
Lloh14:
	ldr	x8, [x8, _SNDRV_PCM_STREAM_PLAYBACK@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
Lloh16:
	adrp	x2, _snd_cobalt_pcm_playback_ops@GOTPAGE
Lloh17:
	ldr	x2, [x2, _snd_cobalt_pcm_playback_ops@GOTPAGEOFF]
	b	LBB0_8
LBB0_7:
	ldr	x0, [sp, #8]
Lloh18:
	adrp	x8, _SNDRV_PCM_STREAM_CAPTURE@GOTPAGE
Lloh19:
	ldr	x8, [x8, _SNDRV_PCM_STREAM_CAPTURE@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
Lloh21:
	adrp	x2, _snd_cobalt_pcm_capture_ops@GOTPAGE
Lloh22:
	ldr	x2, [x2, _snd_cobalt_pcm_capture_ops@GOTPAGEOFF]
LBB0_8:
	bl	_snd_pcm_set_ops
	ldr	x8, [sp, #8]
	stp	x19, xzr, [x8, #8]
	ldr	w0, [x8]
Lloh23:
	adrp	x1, l_.str.2@PAGE
Lloh24:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	w2, #4
	bl	_strscpy
LBB0_9:
	mov	x0, x20
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	___GFP_ZERO,4,2                 ; @__GFP_ZERO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Cobalt PCM-In HDMI"

l_.str.1:                               ; @.str.1
	.asciz	"snd_cobalt_pcm_create() failed for input with err %d\n"

	.comm	_SNDRV_PCM_STREAM_CAPTURE,4,2   ; @SNDRV_PCM_STREAM_CAPTURE
	.comm	_snd_cobalt_pcm_capture_ops,4,2 ; @snd_cobalt_pcm_capture_ops
l_.str.2:                               ; @.str.2
	.asciz	"cobalt"

	.comm	_COBALT_SYS_CTRL_AUDIO_OPP_RESETN_BIT,4,2 ; @COBALT_SYS_CTRL_AUDIO_OPP_RESETN_BIT
l_.str.3:                               ; @.str.3
	.asciz	"Cobalt PCM-Out HDMI"

l_.str.4:                               ; @.str.4
	.asciz	"snd_cobalt_pcm_create() failed for output with err %d\n"

	.comm	_SNDRV_PCM_STREAM_PLAYBACK,4,2  ; @SNDRV_PCM_STREAM_PLAYBACK
	.comm	_snd_cobalt_pcm_playback_ops,4,2 ; @snd_cobalt_pcm_playback_ops
.subsections_via_symbols
