	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hda_init
_hda_init:                              ## @hda_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	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$152, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	leaq	L_.str(%rip), %rdi
	movq	%rbx, %rsi
	xorl	%eax, %eax
	callq	_DPRINTF
	movl	$1, %edi
	movl	$4, %esi
	callq	_calloc
	movq	%rax, %r14
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movq	%r14, %rdi
	callq	_hda_reset_regs
	leaq	L_.str.1(%rip), %rdi
	callq	_hda_find_codec_class
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	movq	%rax, %r15
	leaq	L_.str.2(%rip), %rsi
	leaq	-112(%rbp), %r12
	movq	%rbx, %rdi
	movq	%r12, %rdx
	callq	_hda_parse_config
	movl	%eax, -180(%rbp)                ## 4-byte Spill
	leaq	L_.str.3(%rip), %rsi
	leaq	-176(%rbp), %r13
	movq	%rbx, %rdi
	movq	%r13, %rdx
	callq	_hda_parse_config
	movl	%eax, %ebx
	leaq	L_.str.4(%rip), %rdi
	movq	%r12, %rsi
	movq	%r13, %rdx
	xorl	%eax, %eax
	callq	_DPRINTF
	movl	-180(%rbp), %ecx                ## 4-byte Reload
	movl	%ebx, %eax
	orl	%ecx, %eax
	je	LBB0_4
## %bb.3:
	xorl	%eax, %eax
	testl	%ecx, %ecx
	cmoveq	%rax, %r12
	testl	%ebx, %ebx
	cmoveq	%rax, %r13
	movq	%r14, %rdi
	movq	%r15, %rsi
	movq	%r12, %rdx
	movq	%r13, %rcx
	xorl	%r8d, %r8d
	callq	_hda_codec_constructor
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_assert
LBB0_4:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_6
## %bb.5:
	movq	%r14, %rax
	addq	$152, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"opts: %s\n"

L_.str.1:                               ## @.str.1
	.asciz	"hda_codec"

L_.str.2:                               ## @.str.2
	.asciz	"play="

L_.str.3:                               ## @.str.3
	.asciz	"rec="

L_.str.4:                               ## @.str.4
	.asciz	"play: %s rec: %s\n"

	.comm	_dbg,4,2                        ## @dbg
	.no_dead_strip	_hda_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hda_init
_hda_init:                              ; @hda_init
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #208
	.cfi_def_cfa_offset 208
	stp	x24, x23, [sp, #144]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #160]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #176]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #192]            ; 16-byte Folded Spill
	add	x29, sp, #192
	.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	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
	bl	_DPRINTF
	mov	w0, #1
	mov	w1, #4
	bl	_calloc
	mov	x19, x0
	cbz	x0, LBB0_4
; %bb.1:
	mov	x0, x19
	bl	_hda_reset_regs
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_hda_find_codec_class
	cbz	x0, LBB0_4
; %bb.2:
	mov	x21, x0
Lloh7:
	adrp	x1, l_.str.2@PAGE
Lloh8:
	add	x1, x1, l_.str.2@PAGEOFF
	add	x23, sp, #72
	add	x2, sp, #72
	mov	x0, x20
	bl	_hda_parse_config
	mov	x22, x0
Lloh9:
	adrp	x1, l_.str.3@PAGE
Lloh10:
	add	x1, x1, l_.str.3@PAGEOFF
	add	x24, sp, #8
	add	x2, sp, #8
	mov	x0, x20
	bl	_hda_parse_config
	mov	x20, x0
	str	x24, [sp]
Lloh11:
	adrp	x0, l_.str.4@PAGE
Lloh12:
	add	x0, x0, l_.str.4@PAGEOFF
	add	x1, sp, #72
	bl	_DPRINTF
	orr	w8, w20, w22
	cbz	w8, LBB0_4
; %bb.3:
	cmp	w22, #0
	csel	x2, xzr, x23, eq
	cmp	w20, #0
	csel	x3, xzr, x24, eq
	mov	x0, x19
	mov	x1, x21
	mov	x4, #0
	bl	_hda_codec_constructor
	cmp	w0, #0
	cset	w0, eq
	bl	_assert
LBB0_4:
	ldur	x8, [x29, #-56]
Lloh13:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh14:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_6
; %bb.5:
	mov	x0, x19
	ldp	x29, x30, [sp, #192]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #176]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #160]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #144]            ; 16-byte Folded Reload
	add	sp, sp, #208
	ret
LBB0_6:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"opts: %s\n"

l_.str.1:                               ; @.str.1
	.asciz	"hda_codec"

l_.str.2:                               ; @.str.2
	.asciz	"play="

l_.str.3:                               ; @.str.3
	.asciz	"rec="

l_.str.4:                               ; @.str.4
	.asciz	"play: %s rec: %s\n"

	.comm	_dbg,4,2                        ; @dbg
	.no_dead_strip	_hda_init
.subsections_via_symbols
