	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_snd_hda_codec_reset            ## -- Begin function snd_hda_codec_reset
	.p2align	4, 0x90
_snd_hda_codec_reset:                   ## @snd_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	%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	128(%rdi), %r14
	movq	8(%r14), %r15
	movq	%r14, %rdi
	callq	_snd_hda_lock_devices
	testq	%rax, %rax
	js	LBB0_1
## %bb.2:
	leaq	124(%r12), %rdi
	callq	_cancel_delayed_work_sync
	movq	%r12, %rdi
	callq	_snd_hda_ctls_clear
	movl	(%r12), %eax
	testl	%eax, %eax
	jle	LBB0_7
## %bb.3:
	xorl	%ebx, %ebx
	xorl	%r13d, %r13d
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	incq	%r13
	movslq	%eax, %rcx
	addq	$16, %rbx
	cmpq	%rcx, %r13
	jge	LBB0_7
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	40(%r12), %rcx
	movq	8(%rcx,%rbx), %rsi
	testq	%rsi, %rsi
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%r15, %rdi
	callq	_snd_device_free
	movq	40(%r12), %rax
	movl	(%rax,%rbx), %edi
	movl	(%r14), %esi
	callq	_clear_bit
	movl	(%r12), %eax
	jmp	LBB0_6
LBB0_7:
	leaq	88(%r12), %rbx
	movq	88(%r12), %rax
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movq	%r12, %rdi
	callq	*%rax
LBB0_9:
	xorl	%r15d, %r15d
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$8, %edx
	callq	_memset
	movq	%r12, %rdi
	callq	_snd_hda_jack_tbl_clear
	leaq	68(%r12), %rbx
	xorps	%xmm0, %xmm0
	movups	%xmm0, 72(%r12)
	movq	%rbx, %rdi
	callq	_free_hda_cache
	leaq	64(%r12), %r13
	movq	%r13, %rdi
	callq	_free_hda_cache
	movq	%rbx, %rdi
	movl	$4, %esi
	callq	_init_hda_cache
	movq	%r13, %rdi
	movl	$4, %esi
	callq	_init_hda_cache
	leaq	60(%r12), %rdi
	callq	_snd_array_free
	leaq	56(%r12), %rdi
	callq	_snd_array_free
	leaq	52(%r12), %rdi
	callq	_snd_array_free
	leaq	48(%r12), %rdi
	callq	_snd_array_free
	movl	$0, (%r12)
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%r12)
	movups	%xmm0, 32(%r12)
	movq	8(%r12), %rdi
	callq	_module_put
	movq	$0, 8(%r12)
	movq	%r14, %rdi
	callq	_snd_hda_unlock_devices
	jmp	LBB0_10
LBB0_1:
	movq	_EBUSY@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
LBB0_10:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_jiffies,4,2                    ## @jiffies
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_snd_hda_codec_reset            ; -- Begin function snd_hda_codec_reset
	.p2align	2
_snd_hda_codec_reset:                   ; @snd_hda_codec_reset
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x0
	ldr	x19, [x0, #128]
	ldr	x21, [x19, #8]
	mov	x0, x19
	bl	_snd_hda_lock_devices
	tbnz	x0, #63, LBB0_9
; %bb.1:
	add	x0, x20, #124
	bl	_cancel_delayed_work_sync
	mov	x0, x20
	bl	_snd_hda_ctls_clear
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_6
; %bb.2:
	mov	x22, #0
	mov	x23, #0
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x23, x23, #1
	add	x22, x22, #16
	cmp	x23, w8, sxtw
	b.ge	LBB0_6
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x20, #40]
	add	x9, x9, x22
	ldr	x1, [x9, #8]
	cbz	x1, LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x21
	bl	_snd_device_free
	ldr	x8, [x20, #40]
	ldr	w0, [x8, x22]
	ldr	w1, [x19]
	bl	_clear_bit
	ldr	w8, [x20]
	b	LBB0_3
LBB0_6:
	mov	x21, x20
	ldr	x8, [x21, #88]!
	cbz	x8, LBB0_8
; %bb.7:
	mov	x0, x20
	blr	x8
LBB0_8:
	mov	x0, x21
	mov	w1, #0
	mov	w2, #8
	bl	_memset
	mov	x0, x20
	bl	_snd_hda_jack_tbl_clear
	add	x21, x20, #68
	stp	xzr, xzr, [x20, #72]
	mov	x0, x21
	bl	_free_hda_cache
	add	x22, x20, #64
	mov	x0, x22
	bl	_free_hda_cache
	mov	x0, x21
	mov	w1, #4
	bl	_init_hda_cache
	mov	x0, x22
	mov	w1, #4
	bl	_init_hda_cache
	add	x0, x20, #60
	bl	_snd_array_free
	add	x0, x20, #56
	bl	_snd_array_free
	add	x0, x20, #52
	bl	_snd_array_free
	add	x0, x20, #48
	bl	_snd_array_free
	str	wzr, [x20]
	movi.2d	v0, #0000000000000000
	stp	q0, q0, [x20, #16]
	ldr	x0, [x20, #8]
	bl	_module_put
	str	xzr, [x20, #8]
	mov	x0, x19
	bl	_snd_hda_unlock_devices
	mov	w0, #0
	b	LBB0_10
LBB0_9:
Lloh0:
	adrp	x8, _EBUSY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_10:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_jiffies,4,2                    ; @jiffies
.subsections_via_symbols
