	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function codec_exec_verb
_codec_exec_verb:                       ## @codec_exec_verb
	.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	%edx, -52(%rbp)                 ## 4-byte Spill
	cmpl	$-1, %esi
	je	LBB0_1
## %bb.2:
	movl	%esi, %r13d
	movq	%rdi, %r14
	movq	8(%rdi), %rbx
	testq	%rcx, %rcx
	je	LBB0_4
## %bb.3:
	movl	$-1, (%rcx)
LBB0_4:
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	leaq	48(%rbx), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	_EAGAIN@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_8 Depth 2
	movq	%r14, %rdi
	callq	_snd_hda_power_up
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_mutex_lock
	movl	-52(%rbp), %eax                 ## 4-byte Reload
	movq	_HDA_RW_NO_RESPONSE_FALLBACK@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	$1, (%rbx)
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	%r14, %rdi
	movl	%r13d, %esi
	callq	_trace_hda_send_cmd
	movq	%rbx, %rdi
	movl	%r13d, %esi
	callq	*16(%rbx)
	movl	%eax, %r12d
	addl	(%r15), %eax
	jne	LBB0_9
	.p2align	4, 0x90
LBB0_8:                                 ##   Parent Loop BB0_5 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	*24(%rbx)
	movq	%r14, %rdi
	movl	%r13d, %esi
	callq	_trace_hda_send_cmd
	movq	%rbx, %rdi
	movl	%r13d, %esi
	callq	*16(%rbx)
	movl	%eax, %r12d
	movl	(%r15), %eax
	addl	%r12d, %eax
	je	LBB0_8
LBB0_9:                                 ##   in Loop: Header=BB0_5 Depth=1
	cmpq	$0, -48(%rbp)                   ## 8-byte Folded Reload
	je	LBB0_12
## %bb.10:                              ##   in Loop: Header=BB0_5 Depth=1
	testl	%r12d, %r12d
	jne	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_5 Depth=1
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	*24(%rbx)
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_trace_hda_get_response
LBB0_12:                                ##   in Loop: Header=BB0_5 Depth=1
	movl	$0, (%rbx)
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_mutex_unlock
	movq	%r14, %rdi
	callq	_snd_hda_power_down
	movq	%r14, %rdi
	callq	_codec_in_pm
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	testq	%rcx, %rcx
	je	LBB0_18
## %bb.13:                              ##   in Loop: Header=BB0_5 Depth=1
	testq	%rax, %rax
	jne	LBB0_18
## %bb.14:                              ##   in Loop: Header=BB0_5 Depth=1
	cmpl	$-1, (%rcx)
	jne	LBB0_18
## %bb.15:                              ##   in Loop: Header=BB0_5 Depth=1
	cmpq	$0, 40(%rbx)
	je	LBB0_18
## %bb.16:                              ##   in Loop: Header=BB0_5 Depth=1
	cmpq	$0, 8(%rbx)
	je	LBB0_5
## %bb.17:                              ##   in Loop: Header=BB0_5 Depth=1
	leaq	L_.str(%rip), %rdi
	callq	_snd_printd
	movq	%rbx, %rdi
	callq	_trace_hda_bus_reset
	movq	%rbx, %rdi
	callq	*32(%rbx)
	jmp	LBB0_5
LBB0_18:
	testl	%r12d, %r12d
	je	LBB0_20
## %bb.19:
	movq	%r14, %rdi
	callq	_codec_in_pm
	testq	%rax, %rax
	je	LBB0_21
LBB0_20:
	movq	$0, 8(%rbx)
	jmp	LBB0_21
LBB0_1:
	movl	$-1, %r12d
LBB0_21:
	movl	%r12d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HDA_RW_NO_RESPONSE_FALLBACK,4,2 ## @HDA_RW_NO_RESPONSE_FALLBACK
	.comm	_EAGAIN,4,2                     ## @EAGAIN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"hda_codec: resetting BUS due to fatal communication error\n"

	.no_dead_strip	_codec_exec_verb
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function codec_exec_verb
_codec_exec_verb:                       ; @codec_exec_verb
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	cmn	w1, #1
	b.eq	LBB0_21
; %bb.1:
	mov	x21, x3
	mov	x22, x2
	mov	x23, x1
	mov	x20, x0
	ldr	x19, [x0, #8]
	cbz	x3, LBB0_3
; %bb.2:
	mov	w8, #-1
	str	w8, [x21]
LBB0_3:
Lloh0:
	adrp	x27, _HDA_RW_NO_RESPONSE_FALLBACK@GOTPAGE
Lloh1:
	ldr	x27, [x27, _HDA_RW_NO_RESPONSE_FALLBACK@GOTPAGEOFF]
	add	x24, x19, #48
Lloh2:
	adrp	x28, _EAGAIN@GOTPAGE
Lloh3:
	ldr	x28, [x28, _EAGAIN@GOTPAGEOFF]
	mov	w25, #1
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
	mov	x0, x20
	bl	_snd_hda_power_up
	mov	x0, x24
	bl	_mutex_lock
	ldr	w8, [x27]
	tst	w8, w22
	b.eq	LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	str	w25, [x19]
LBB0_6:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x20
	mov	x1, x23
	bl	_trace_hda_send_cmd
	ldr	x8, [x19, #16]
	mov	x0, x19
	mov	x1, x23
	blr	x8
	mov	x26, x0
	ldr	w8, [x28]
	cmn	w0, w8
	b.ne	LBB0_9
LBB0_7:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x19, #24]
	ldr	w1, [x20]
	mov	x0, x19
	blr	x8
	mov	x0, x20
	mov	x1, x23
	bl	_trace_hda_send_cmd
	ldr	x8, [x19, #16]
	mov	x0, x19
	mov	x1, x23
	blr	x8
	ldr	w8, [x28]
	cmn	w0, w8
	b.eq	LBB0_7
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x26, x0
LBB0_9:                                 ;   in Loop: Header=BB0_4 Depth=1
	cbz	x21, LBB0_12
; %bb.10:                               ;   in Loop: Header=BB0_4 Depth=1
	cbnz	w26, LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x19, #24]
	ldr	w1, [x20]
	mov	x0, x19
	blr	x8
	mov	x1, x0
	str	w0, [x21]
	mov	x0, x20
	bl	_trace_hda_get_response
LBB0_12:                                ;   in Loop: Header=BB0_4 Depth=1
	str	wzr, [x19]
	mov	x0, x24
	bl	_mutex_unlock
	mov	x0, x20
	bl	_snd_hda_power_down
	mov	x0, x20
	bl	_codec_in_pm
	cbz	x21, LBB0_18
; %bb.13:                               ;   in Loop: Header=BB0_4 Depth=1
	cbnz	x0, LBB0_18
; %bb.14:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x21]
	cmn	w8, #1
	b.ne	LBB0_18
; %bb.15:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x19, #40]
	cbz	x8, LBB0_18
; %bb.16:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_4
; %bb.17:                               ;   in Loop: Header=BB0_4 Depth=1
Lloh4:
	adrp	x0, l_.str@PAGE
Lloh5:
	add	x0, x0, l_.str@PAGEOFF
	bl	_snd_printd
	mov	x0, x19
	bl	_trace_hda_bus_reset
	ldr	x8, [x19, #32]
	mov	x0, x19
	blr	x8
	b	LBB0_4
LBB0_18:
	cbz	w26, LBB0_20
; %bb.19:
	mov	x0, x20
	bl	_codec_in_pm
	cbz	x0, LBB0_22
LBB0_20:
	str	xzr, [x19, #8]
	b	LBB0_22
LBB0_21:
	mov	w26, #-1
LBB0_22:
	mov	x0, x26
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_HDA_RW_NO_RESPONSE_FALLBACK,4,2 ; @HDA_RW_NO_RESPONSE_FALLBACK
	.comm	_EAGAIN,4,2                     ; @EAGAIN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"hda_codec: resetting BUS due to fatal communication error\n"

	.no_dead_strip	_codec_exec_verb
.subsections_via_symbols
