	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cobalt_alsa_init               ## -- Begin function cobalt_alsa_init
	.p2align	4, 0x90
_cobalt_alsa_init:                      ## @cobalt_alsa_init
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	movq	8(%rdi), %rax
	movq	$0, -32(%rbp)
	movq	(%rax), %rdi
	movq	_SNDRV_DEFAULT_IDX1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SNDRV_DEFAULT_STR1@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_THIS_MODULE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-32(%rbp), %r9
	xorl	%r8d, %r8d
	callq	_snd_card_new
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_cobalt_err
	jmp	LBB0_12
LBB0_2:
	movq	-32(%rbp), %rsi
	leaq	-24(%rbp), %rdx
	movq	%r14, %rdi
	callq	_snd_cobalt_card_create
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rdi
	jmp	LBB0_9
LBB0_4:
	movq	-24(%rbp), %rdi
	callq	_snd_cobalt_card_set_names
	movq	-24(%rbp), %rdi
	callq	_snd_cobalt_pcm_create
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	movl	%eax, %ebx
	leaq	L_.str.2(%rip), %rdi
	jmp	LBB0_9
LBB0_6:
	movq	-24(%rbp), %rax
	movq	%rax, (%r14)
	movq	-32(%rbp), %rdi
	callq	_snd_card_register
	testl	%eax, %eax
	je	LBB0_7
## %bb.8:
	movl	%eax, %ebx
	movq	$0, (%r14)
	leaq	L_.str.3(%rip), %rdi
LBB0_9:
	movl	%ebx, %esi
	callq	_cobalt_err
	movq	-32(%rbp), %rdi
	testq	%rdi, %rdi
	je	LBB0_11
## %bb.10:
	callq	_snd_card_free
LBB0_11:
	movq	-24(%rbp), %rdi
	callq	_kfree
LBB0_12:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_7:
	xorl	%ebx, %ebx
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_SNDRV_DEFAULT_IDX1,4,2         ## @SNDRV_DEFAULT_IDX1
	.comm	_SNDRV_DEFAULT_STR1,4,2         ## @SNDRV_DEFAULT_STR1
	.comm	_THIS_MODULE,4,2                ## @THIS_MODULE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"snd_card_new() failed with err %d\n"

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

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

L_.str.3:                               ## @.str.3
	.asciz	"snd_card_register() failed with err %d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cobalt_alsa_init               ; -- Begin function cobalt_alsa_init
	.p2align	2
_cobalt_alsa_init:                      ; @cobalt_alsa_init
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x20, x0
	ldr	x8, [x0, #8]
	str	xzr, [sp, #8]
	ldr	x0, [x8]
Lloh0:
	adrp	x8, _SNDRV_DEFAULT_IDX1@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SNDRV_DEFAULT_IDX1@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _SNDRV_DEFAULT_STR1@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SNDRV_DEFAULT_STR1@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
Lloh6:
	adrp	x8, _THIS_MODULE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _THIS_MODULE@GOTPAGEOFF]
Lloh8:
	ldr	w3, [x8]
	add	x5, sp, #8
	mov	w4, #0
	bl	_snd_card_new
	cbz	w0, LBB0_2
; %bb.1:
	mov	x19, x0
Lloh9:
	adrp	x0, l_.str@PAGE
Lloh10:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	bl	_cobalt_err
	b	LBB0_11
LBB0_2:
	ldr	x1, [sp, #8]
	mov	x2, sp
	mov	x0, x20
	bl	_snd_cobalt_card_create
	cbz	w0, LBB0_4
; %bb.3:
	mov	x19, x0
Lloh11:
	adrp	x0, l_.str.1@PAGE
Lloh12:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_8
LBB0_4:
	ldr	x0, [sp]
	bl	_snd_cobalt_card_set_names
	ldr	x0, [sp]
	bl	_snd_cobalt_pcm_create
	cbz	w0, LBB0_6
; %bb.5:
	mov	x19, x0
Lloh13:
	adrp	x0, l_.str.2@PAGE
Lloh14:
	add	x0, x0, l_.str.2@PAGEOFF
	b	LBB0_8
LBB0_6:
	ldp	x8, x0, [sp]
	str	x8, [x20]
	bl	_snd_card_register
	mov	x19, x0
	cbz	w0, LBB0_11
; %bb.7:
	str	xzr, [x20]
Lloh15:
	adrp	x0, l_.str.3@PAGE
Lloh16:
	add	x0, x0, l_.str.3@PAGEOFF
LBB0_8:
	mov	x1, x19
	bl	_cobalt_err
	ldr	x0, [sp, #8]
	cbz	x0, LBB0_10
; %bb.9:
	bl	_snd_card_free
LBB0_10:
	ldr	x0, [sp]
	bl	_kfree
LBB0_11:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_SNDRV_DEFAULT_IDX1,4,2         ; @SNDRV_DEFAULT_IDX1
	.comm	_SNDRV_DEFAULT_STR1,4,2         ; @SNDRV_DEFAULT_STR1
	.comm	_THIS_MODULE,4,2                ; @THIS_MODULE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"snd_card_new() failed with err %d\n"

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

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

l_.str.3:                               ; @.str.3
	.asciz	"snd_card_register() failed with err %d\n"

.subsections_via_symbols
