	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hda_codec_init
_hda_codec_init:                        ## @hda_codec_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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	$-1, %r15d
	movq	%rsi, %rax
	orq	%rdx, %rax
	je	LBB0_15
## %bb.1:
	movq	%rdx, %r12
	movq	%rsi, %r13
	movq	%rdi, %r14
	movl	8(%rdi), %esi
	leaq	L_.str(%rip), %rdi
	movq	%rcx, %rdx
	xorl	%eax, %eax
	callq	_DPRINTF
	movl	$1, %edi
	movl	$48, %esi
	callq	_calloc
	testq	%rax, %rax
	je	LBB0_15
## %bb.2:
	movq	%rax, %rbx
	testq	%r13, %r13
	je	LBB0_3
## %bb.4:
	movq	_hda_codec_output_parameters@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_3:
	movq	_hda_codec_input_parameters@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %eax
	movl	%eax, %ecx
	testq	%r12, %r12
	je	LBB0_7
## %bb.6:
	movq	_hda_codec_duplex_parameters@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
LBB0_7:
	testq	%r13, %r13
	cmovnel	%ecx, %eax
	movl	%eax, 40(%rbx)
	movq	_HDA_CODEC_SUBSYSTEM_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 36(%rbx)
	movq	_HDA_CODEC_NODES_COUNT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%esi, 16(%rbx)
	movq	_hda_codec_conn_list@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%rbx)
	movq	_hda_codec_conf_default@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 28(%rbx)
	movq	_hda_codec_pin_ctrl_default@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%rbx)
	movq	_hda_codec_verb_handlers@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%rbx)
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_DPRINTF
	testq	%r13, %r13
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	je	LBB0_11
## %bb.8:
	movq	8(%rbx), %rcx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	_HDA_CODEC_STREAM_OUTPUT@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	shlq	$4, %r14
	leaq	(%rcx,%r14), %rdi
	addq	$8, %rdi
	movq	_hda_codec_audio_output_do_transfer@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_hda_codec_audio_output_do_setup@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %r8
	callq	_hda_audio_ctxt_init
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_assert
	movq	%r13, %rdi
	movl	$1, %esi
	callq	_audio_init
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, (%rcx,%r14)
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	testq	%rax, %rax
	je	LBB0_9
LBB0_11:
	testq	%r12, %r12
	je	LBB0_14
## %bb.12:
	movq	8(%rbx), %r13
	movq	_HDA_CODEC_STREAM_INPUT@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	shlq	$4, %r14
	leaq	(%r14,%r13), %rdi
	addq	$8, %rdi
	movq	_hda_codec_audio_input_do_transfer@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_hda_codec_audio_input_do_setup@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	L_.str.4(%rip), %rsi
	movq	%rbx, %r8
	callq	_hda_audio_ctxt_init
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_assert
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_audio_init
	movq	%rax, (%r13,%r14)
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	testq	%rax, %rax
	je	LBB0_13
LBB0_14:
	movq	%r14, (%rbx)
	movq	%rbx, (%r14)
	xorl	%r15d, %r15d
	jmp	LBB0_15
LBB0_9:
	leaq	L_.str.3(%rip), %rdi
	jmp	LBB0_10
LBB0_13:
	leaq	L_.str.5(%rip), %rdi
LBB0_10:
	xorl	%eax, %eax
	callq	_DPRINTF
LBB0_15:
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cad: 0x%x opts: %s\n"

	.comm	_hda_codec_duplex_parameters,4,2 ## @hda_codec_duplex_parameters
	.comm	_hda_codec_output_parameters,4,2 ## @hda_codec_output_parameters
	.comm	_hda_codec_input_parameters,4,2 ## @hda_codec_input_parameters
	.comm	_HDA_CODEC_SUBSYSTEM_ID,4,2     ## @HDA_CODEC_SUBSYSTEM_ID
	.comm	_HDA_CODEC_NODES_COUNT,4,2      ## @HDA_CODEC_NODES_COUNT
	.comm	_hda_codec_conn_list,4,2        ## @hda_codec_conn_list
	.comm	_hda_codec_conf_default,4,2     ## @hda_codec_conf_default
	.comm	_hda_codec_pin_ctrl_default,4,2 ## @hda_codec_pin_ctrl_default
	.comm	_hda_codec_verb_handlers,4,2    ## @hda_codec_verb_handlers
L_.str.1:                               ## @.str.1
	.asciz	"HDA Codec nodes: %d\n"

	.comm	_HDA_CODEC_STREAM_OUTPUT,8,3    ## @HDA_CODEC_STREAM_OUTPUT
L_.str.2:                               ## @.str.2
	.asciz	"hda-audio-output"

	.comm	_hda_codec_audio_output_do_transfer,4,2 ## @hda_codec_audio_output_do_transfer
	.comm	_hda_codec_audio_output_do_setup,4,2 ## @hda_codec_audio_output_do_setup
L_.str.3:                               ## @.str.3
	.asciz	"Fail to init the output audio player\n"

	.comm	_HDA_CODEC_STREAM_INPUT,8,3     ## @HDA_CODEC_STREAM_INPUT
L_.str.4:                               ## @.str.4
	.asciz	"hda-audio-input"

	.comm	_hda_codec_audio_input_do_transfer,4,2 ## @hda_codec_audio_input_do_transfer
	.comm	_hda_codec_audio_input_do_setup,4,2 ## @hda_codec_audio_input_do_setup
L_.str.5:                               ## @.str.5
	.asciz	"Fail to init the input audio player\n"

	.no_dead_strip	_hda_codec_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hda_codec_init
_hda_codec_init:                        ; @hda_codec_init
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	orr	x8, x1, x2
	cbz	x8, LBB0_10
; %bb.1:
	mov	x20, x2
	mov	x22, x1
	mov	x19, x0
	ldr	w8, [x0, #8]
	stp	x8, x3, [sp]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DPRINTF
	mov	w0, #1
	mov	w1, #48
	bl	_calloc
	cbz	x0, LBB0_10
; %bb.2:
	mov	x21, x0
Lloh2:
	adrp	x8, _hda_codec_output_parameters@GOTPAGE
Lloh3:
	ldr	x8, [x8, _hda_codec_output_parameters@GOTPAGEOFF]
Lloh4:
	adrp	x9, _hda_codec_input_parameters@GOTPAGE
Lloh5:
	ldr	x9, [x9, _hda_codec_input_parameters@GOTPAGEOFF]
Lloh6:
	adrp	x10, _hda_codec_duplex_parameters@GOTPAGE
Lloh7:
	ldr	x10, [x10, _hda_codec_duplex_parameters@GOTPAGEOFF]
	cmp	x22, #0
	csel	x8, x8, x9, ne
	cmp	x20, #0
	ccmp	x22, #0, #4, ne
	csel	x8, x10, x8, ne
	ldr	w8, [x8]
	str	w8, [x0, #40]
Lloh8:
	adrp	x8, _HDA_CODEC_SUBSYSTEM_ID@GOTPAGE
Lloh9:
	ldr	x8, [x8, _HDA_CODEC_SUBSYSTEM_ID@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
Lloh11:
	adrp	x9, _HDA_CODEC_NODES_COUNT@GOTPAGE
Lloh12:
	ldr	x9, [x9, _HDA_CODEC_NODES_COUNT@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
Lloh14:
	adrp	x10, _hda_codec_conn_list@GOTPAGE
Lloh15:
	ldr	x10, [x10, _hda_codec_conn_list@GOTPAGEOFF]
Lloh16:
	ldr	w10, [x10]
Lloh17:
	adrp	x11, _hda_codec_conf_default@GOTPAGE
Lloh18:
	ldr	x11, [x11, _hda_codec_conf_default@GOTPAGEOFF]
	stp	w10, w8, [x0, #32]
Lloh19:
	ldr	w8, [x11]
Lloh20:
	adrp	x10, _hda_codec_pin_ctrl_default@GOTPAGE
Lloh21:
	ldr	x10, [x10, _hda_codec_pin_ctrl_default@GOTPAGEOFF]
Lloh22:
	ldr	w10, [x10]
	stp	w10, w8, [x0, #24]
Lloh23:
	adrp	x8, _hda_codec_verb_handlers@GOTPAGE
Lloh24:
	ldr	x8, [x8, _hda_codec_verb_handlers@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	stp	w9, w8, [x0, #16]
	str	x9, [sp]
Lloh26:
	adrp	x0, l_.str.1@PAGE
Lloh27:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_DPRINTF
	cbz	x22, LBB0_4
; %bb.3:
	ldr	x8, [x21, #8]
Lloh28:
	adrp	x9, _HDA_CODEC_STREAM_OUTPUT@GOTPAGE
Lloh29:
	ldr	x9, [x9, _HDA_CODEC_STREAM_OUTPUT@GOTPAGEOFF]
Lloh30:
	ldr	x9, [x9]
	add	x23, x8, x9, lsl #4
	add	x0, x23, #8
Lloh31:
	adrp	x8, _hda_codec_audio_output_do_transfer@GOTPAGE
Lloh32:
	ldr	x8, [x8, _hda_codec_audio_output_do_transfer@GOTPAGEOFF]
Lloh33:
	ldr	w2, [x8]
Lloh34:
	adrp	x8, _hda_codec_audio_output_do_setup@GOTPAGE
Lloh35:
	ldr	x8, [x8, _hda_codec_audio_output_do_setup@GOTPAGEOFF]
Lloh36:
	ldr	w3, [x8]
Lloh37:
	adrp	x1, l_.str.2@PAGE
Lloh38:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x4, x21
	bl	_hda_audio_ctxt_init
	cmp	w0, #0
	cset	w0, eq
	bl	_assert
	mov	x0, x22
	mov	w1, #1
	bl	_audio_init
	str	x0, [x23]
	cbz	x0, LBB0_7
LBB0_4:
	cbz	x20, LBB0_6
; %bb.5:
	ldr	x8, [x21, #8]
Lloh39:
	adrp	x9, _HDA_CODEC_STREAM_INPUT@GOTPAGE
Lloh40:
	ldr	x9, [x9, _HDA_CODEC_STREAM_INPUT@GOTPAGEOFF]
Lloh41:
	ldr	x9, [x9]
	add	x22, x8, x9, lsl #4
	add	x0, x22, #8
Lloh42:
	adrp	x8, _hda_codec_audio_input_do_transfer@GOTPAGE
Lloh43:
	ldr	x8, [x8, _hda_codec_audio_input_do_transfer@GOTPAGEOFF]
Lloh44:
	ldr	w2, [x8]
Lloh45:
	adrp	x8, _hda_codec_audio_input_do_setup@GOTPAGE
Lloh46:
	ldr	x8, [x8, _hda_codec_audio_input_do_setup@GOTPAGEOFF]
Lloh47:
	ldr	w3, [x8]
Lloh48:
	adrp	x1, l_.str.4@PAGE
Lloh49:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x4, x21
	bl	_hda_audio_ctxt_init
	cmp	w0, #0
	cset	w0, eq
	bl	_assert
	mov	x0, x20
	mov	w1, #0
	bl	_audio_init
	str	x0, [x22]
	cbz	x0, LBB0_8
LBB0_6:
	mov	w0, #0
	str	x19, [x21]
	str	x21, [x19]
	b	LBB0_11
LBB0_7:
Lloh50:
	adrp	x0, l_.str.3@PAGE
Lloh51:
	add	x0, x0, l_.str.3@PAGEOFF
	b	LBB0_9
LBB0_8:
Lloh52:
	adrp	x0, l_.str.5@PAGE
Lloh53:
	add	x0, x0, l_.str.5@PAGEOFF
LBB0_9:
	bl	_DPRINTF
LBB0_10:
	mov	w0, #-1
LBB0_11:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpAdd	Lloh48, Lloh49
	.loh AdrpLdrGotLdr	Lloh45, Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpAdd	Lloh50, Lloh51
	.loh AdrpAdd	Lloh52, Lloh53
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cad: 0x%x opts: %s\n"

	.comm	_hda_codec_duplex_parameters,4,2 ; @hda_codec_duplex_parameters
	.comm	_hda_codec_output_parameters,4,2 ; @hda_codec_output_parameters
	.comm	_hda_codec_input_parameters,4,2 ; @hda_codec_input_parameters
	.comm	_HDA_CODEC_SUBSYSTEM_ID,4,2     ; @HDA_CODEC_SUBSYSTEM_ID
	.comm	_HDA_CODEC_NODES_COUNT,4,2      ; @HDA_CODEC_NODES_COUNT
	.comm	_hda_codec_conn_list,4,2        ; @hda_codec_conn_list
	.comm	_hda_codec_conf_default,4,2     ; @hda_codec_conf_default
	.comm	_hda_codec_pin_ctrl_default,4,2 ; @hda_codec_pin_ctrl_default
	.comm	_hda_codec_verb_handlers,4,2    ; @hda_codec_verb_handlers
l_.str.1:                               ; @.str.1
	.asciz	"HDA Codec nodes: %d\n"

	.comm	_HDA_CODEC_STREAM_OUTPUT,8,3    ; @HDA_CODEC_STREAM_OUTPUT
l_.str.2:                               ; @.str.2
	.asciz	"hda-audio-output"

	.comm	_hda_codec_audio_output_do_transfer,4,2 ; @hda_codec_audio_output_do_transfer
	.comm	_hda_codec_audio_output_do_setup,4,2 ; @hda_codec_audio_output_do_setup
l_.str.3:                               ; @.str.3
	.asciz	"Fail to init the output audio player\n"

	.comm	_HDA_CODEC_STREAM_INPUT,8,3     ; @HDA_CODEC_STREAM_INPUT
l_.str.4:                               ; @.str.4
	.asciz	"hda-audio-input"

	.comm	_hda_codec_audio_input_do_transfer,4,2 ; @hda_codec_audio_input_do_transfer
	.comm	_hda_codec_audio_input_do_setup,4,2 ; @hda_codec_audio_input_do_setup
l_.str.5:                               ; @.str.5
	.asciz	"Fail to init the input audio player\n"

	.no_dead_strip	_hda_codec_init
.subsections_via_symbols
