	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function stac_capture_pcm_hook
_stac_capture_pcm_hook:                 ## @stac_capture_pcm_hook
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rsi), %r12
	cmpl	$0, 24(%r12)
	je	LBB0_10
## %bb.1:
	movq	%rsi, %r14
	movq	%rdi, %r15
	movl	8(%r12), %eax
	testl	%eax, %eax
	jle	LBB0_5
## %bb.2:
	movq	16(%r12), %rdx
	movq	(%r15), %rsi
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%rsi, (%rdx,%rbx,8)
	je	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	incq	%rbx
	cmpq	%rbx, %rax
	jne	LBB0_3
LBB0_5:
	xorl	%ebx, %ebx
LBB0_6:
	cmpl	$129, %ecx
	je	LBB0_9
## %bb.7:
	cmpl	$128, %ecx
	jne	LBB0_10
## %bb.8:
	movl	$40, %edi
	callq	_msleep
	movq	(%r15), %rsi
	movq	_AC_VERB_SET_POWER_STATE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_AC_PWRST_D0@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_snd_hda_codec_write
	movl	$1, %eax
	movl	%ebx, %ecx
	shll	%cl, %eax
	orl	%eax, (%r12)
	jmp	LBB0_10
LBB0_9:
	movq	(%r15), %rsi
	movq	_AC_VERB_SET_POWER_STATE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_AC_PWRST_D3@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%r14, %rdi
	xorl	%edx, %edx
	callq	_snd_hda_codec_write
	movl	$-2, %eax
	movl	%ebx, %ecx
	roll	%cl, %eax
	andl	%eax, (%r12)
LBB0_10:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AC_VERB_SET_POWER_STATE,4,2    ## @AC_VERB_SET_POWER_STATE
	.comm	_AC_PWRST_D0,4,2                ## @AC_PWRST_D0
	.comm	_AC_PWRST_D3,4,2                ## @AC_PWRST_D3
	.no_dead_strip	_stac_capture_pcm_hook
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function stac_capture_pcm_hook
_stac_capture_pcm_hook:                 ; @stac_capture_pcm_hook
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	ldr	x21, [x1]
	ldr	w8, [x21, #24]
	cbz	w8, LBB0_11
; %bb.1:
	mov	x19, x1
	mov	x20, x0
	ldr	w8, [x21, #8]
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.2:
	mov	x22, #0
	ldr	x9, [x21, #16]
	ldr	x10, [x20]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x9, x22, lsl #3]
	cmp	x11, x10
	b.eq	LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x22, x22, #1
	cmp	x8, x22
	b.ne	LBB0_3
LBB0_5:
	mov	w22, #0
LBB0_6:
	cmp	w3, #129
	b.eq	LBB0_9
; %bb.7:
	cmp	w3, #128
	b.ne	LBB0_11
; %bb.8:
	mov	w0, #40
	bl	_msleep
	ldr	x1, [x20]
Lloh0:
	adrp	x8, _AC_VERB_SET_POWER_STATE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AC_VERB_SET_POWER_STATE@GOTPAGEOFF]
Lloh2:
	ldr	w3, [x8]
Lloh3:
	adrp	x8, _AC_PWRST_D0@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AC_PWRST_D0@GOTPAGEOFF]
Lloh5:
	ldr	w4, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_snd_hda_codec_write
	mov	w8, #1
	lsl	w8, w8, w22
	ldr	w9, [x21]
	orr	w8, w9, w8
	b	LBB0_10
LBB0_9:
	ldr	x1, [x20]
Lloh6:
	adrp	x8, _AC_VERB_SET_POWER_STATE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _AC_VERB_SET_POWER_STATE@GOTPAGEOFF]
Lloh8:
	ldr	w3, [x8]
Lloh9:
	adrp	x8, _AC_PWRST_D3@GOTPAGE
Lloh10:
	ldr	x8, [x8, _AC_PWRST_D3@GOTPAGEOFF]
Lloh11:
	ldr	w4, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_snd_hda_codec_write
	mov	w8, #1
	lsl	w8, w8, w22
	ldr	w9, [x21]
	bic	w8, w9, w8
LBB0_10:
	str	w8, [x21]
LBB0_11:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_AC_VERB_SET_POWER_STATE,4,2    ; @AC_VERB_SET_POWER_STATE
	.comm	_AC_PWRST_D0,4,2                ; @AC_PWRST_D0
	.comm	_AC_PWRST_D3,4,2                ; @AC_PWRST_D3
	.no_dead_strip	_stac_capture_pcm_hook
.subsections_via_symbols
