	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hda_codec_reset
_hda_codec_reset:                       ## @hda_codec_reset
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	callq	_assert
	movq	32(%r15), %r14
	movq	%r14, %rdi
	callq	_assert
	movq	24(%r15), %rbx
	movq	%rbx, %rdi
	callq	_assert
	movq	_HDA_CODEC_STREAMS_COUNT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	jle	LBB0_3
## %bb.1:
	movq	16(%rbx), %rcx
	shlq	$5, %rax
	xorl	%edx, %edx
	movq	_HDA_CODEC_AMP_NUMSTEPS@GOTPCREL(%rip), %rsi
	movq	_HDA_CODEC_SET_AMP_GAIN_MUTE_MUTE@GOTPCREL(%rip), %rdi
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rsi), %rbx
	movq	%rbx, 24(%rcx,%rdx)
	movq	(%rsi), %rbx
	movq	%rbx, 16(%rcx,%rdx)
	movq	(%rdi), %rbx
	movq	%rbx, 8(%rcx,%rdx)
	movq	(%rdi), %rbx
	movq	%rbx, (%rcx,%rdx)
	addq	$32, %rdx
	cmpq	%rdx, %rax
	jne	LBB0_2
LBB0_3:
	movl	8(%r15), %esi
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_DPRINTF
	movq	(%r14), %rax
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%r15, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmpq	*%rax                           ## TAILCALL
LBB0_4:
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_DPRINTF
	movl	$-1, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HDA_CODEC_STREAMS_COUNT,4,2    ## @HDA_CODEC_STREAMS_COUNT
	.comm	_HDA_CODEC_AMP_NUMSTEPS,8,3     ## @HDA_CODEC_AMP_NUMSTEPS
	.comm	_HDA_CODEC_SET_AMP_GAIN_MUTE_MUTE,8,3 ## @HDA_CODEC_SET_AMP_GAIN_MUTE_MUTE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cad: 0x%x\n"

L_.str.1:                               ## @.str.1
	.asciz	"The controller ops does not implement \t\t\t the signal function\n"

	.no_dead_strip	_hda_codec_reset
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hda_codec_reset
_hda_codec_reset:                       ; @hda_codec_reset
	.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
	bl	_assert
	ldr	x20, [x19, #32]
	mov	x0, x20
	bl	_assert
	ldr	x21, [x19, #24]
	mov	x0, x21
	bl	_assert
Lloh0:
	adrp	x8, _HDA_CODEC_STREAMS_COUNT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HDA_CODEC_STREAMS_COUNT@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x8]
	cmp	w10, #1
	b.lt	LBB0_10
; %bb.1:
	ldr	x11, [x21, #16]
Lloh3:
	adrp	x8, _HDA_CODEC_AMP_NUMSTEPS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _HDA_CODEC_AMP_NUMSTEPS@GOTPAGEOFF]
Lloh5:
	adrp	x9, _HDA_CODEC_SET_AMP_GAIN_MUTE_MUTE@GOTPAGE
Lloh6:
	ldr	x9, [x9, _HDA_CODEC_SET_AMP_GAIN_MUTE_MUTE@GOTPAGEOFF]
	cmp	w10, #1
	b.ne	LBB0_3
; %bb.2:
	mov	x12, #0
	b	LBB0_8
LBB0_3:
	mov	x12, #0
	add	x14, x11, x10, lsl #5
	add	x15, x8, #8
	add	x13, x9, #8
	cmp	x11, x13
	ccmp	x14, x9, #0, lo
	cset	w13, hi
	cmp	x14, x8
	ccmp	x11, x15, #2, hi
	b.lo	LBB0_8
; %bb.4:
	tbnz	w13, #0, LBB0_8
; %bb.5:
	and	x12, x10, #0xfffffffe
	mov	x13, x12
	mov	x14, x11
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ld1r.2d	{ v2 }, [x8]
	ld1r.2d	{ v0 }, [x9]
	mov.16b	v1, v0
	mov.16b	v3, v2
	st4.2d	{ v0, v1, v2, v3 }, [x14], #64
	subs	x13, x13, #2
	b.ne	LBB0_6
; %bb.7:
	cmp	x12, x10
	b.eq	LBB0_10
LBB0_8:
	add	x11, x11, x12, lsl #5
	add	x11, x11, #16
	sub	x10, x10, x12
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x12, [x8]
	str	x12, [x11, #8]
	ldr	x12, [x8]
	str	x12, [x11]
	ldr	x12, [x9]
	stur	x12, [x11, #-8]
	ldr	x12, [x9]
	stur	x12, [x11, #-16]
	add	x11, x11, #32
	subs	x10, x10, #1
	b.ne	LBB0_9
LBB0_10:
	ldr	w8, [x19, #8]
	str	x8, [sp]
Lloh7:
	adrp	x0, l_.str@PAGE
Lloh8:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DPRINTF
	ldr	x1, [x20]
	cbz	x1, LBB0_12
; %bb.11:
	mov	x0, x19
	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
	br	x1
LBB0_12:
Lloh9:
	adrp	x0, l_.str.1@PAGE
Lloh10:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_DPRINTF
	mov	w0, #-1
	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 AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_HDA_CODEC_STREAMS_COUNT,4,2    ; @HDA_CODEC_STREAMS_COUNT
	.comm	_HDA_CODEC_AMP_NUMSTEPS,8,3     ; @HDA_CODEC_AMP_NUMSTEPS
	.comm	_HDA_CODEC_SET_AMP_GAIN_MUTE_MUTE,8,3 ; @HDA_CODEC_SET_AMP_GAIN_MUTE_MUTE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cad: 0x%x\n"

l_.str.1:                               ; @.str.1
	.asciz	"The controller ops does not implement \t\t\t the signal function\n"

	.no_dead_strip	_hda_codec_reset
.subsections_via_symbols
