	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function stac_aloopback_put
_stac_aloopback_put:                    ## @stac_aloopback_put
	.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
	movq	%rsi, %r13
	movq	%rdi, %r15
	callq	_snd_kcontrol_chip
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	8(%rax), %r12
	leaq	8(%r13), %rsi
	movq	%r15, %rdi
	callq	_snd_ctl_get_ioffidx
	movl	(%r12), %ebx
	movl	%eax, %ecx
	shll	%cl, %ebx
	movl	4(%r12), %edx
	movq	(%r13), %rax
	movl	%edx, %esi
	orl	%ebx, %esi
	movl	%ebx, %r14d
	notl	%r14d
	movl	%edx, %ecx
	andl	%r14d, %ecx
	cmpq	$0, (%rax)
	cmovnel	%esi, %ecx
	xorl	%eax, %eax
	cmpl	%ecx, %edx
	je	LBB0_5
## %bb.1:
	movl	%ecx, 4(%r12)
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %esi
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	movzwl	(%r15), %ecx
	movq	%rax, %r15
	movq	%rax, %rdi
	xorl	%edx, %edx
	xorl	%r8d, %r8d
	callq	_snd_hda_codec_read
	movl	%eax, %r13d
	movb	8(%r12), %cl
	shrl	%cl, %r13d
	testl	%ebx, 4(%r12)
	je	LBB0_3
## %bb.2:
	movq	%r15, %rdi
	callq	_snd_hda_power_up
	orl	%ebx, %r13d
	jmp	LBB0_4
LBB0_3:
	movq	%r15, %rdi
	callq	_snd_hda_power_down
	andl	%r14d, %r13d
LBB0_4:
	movl	(%r15), %esi
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movswl	2(%rax), %ecx
	movq	%r15, %rdi
	xorl	%edx, %edx
	movl	%r13d, %r8d
	callq	_snd_hda_codec_write_cache
	movl	$1, %eax
LBB0_5:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_stac_aloopback_put
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function stac_aloopback_put
_stac_aloopback_put:                    ; @stac_aloopback_put
	.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	x21, x1
	mov	x19, x0
	bl	_snd_kcontrol_chip
	mov	x20, x0
	ldr	x22, [x0, #8]
	add	x1, x21, #8
	mov	x0, x19
	bl	_snd_ctl_get_ioffidx
	ldp	w8, w9, [x22]
	lsl	w23, w8, w0
	ldr	x8, [x21]
	ldr	x8, [x8]
	orr	w10, w9, w23
	bic	w11, w9, w23
	cmp	x8, #0
	csel	w8, w11, w10, eq
	cmp	w9, w8
	b.ne	LBB0_2
; %bb.1:
	mov	w0, #0
	b	LBB0_6
LBB0_2:
	str	w8, [x22, #4]
	ldr	w1, [x20]
	ldrh	w3, [x19]
	mov	x0, x20
	mov	w2, #0
	mov	w4, #0
	bl	_snd_hda_codec_read
	ldp	w9, w8, [x22, #4]
	lsr	w21, w0, w8
	tst	w9, w23
	b.eq	LBB0_4
; %bb.3:
	mov	x0, x20
	bl	_snd_hda_power_up
	orr	w4, w21, w23
	b	LBB0_5
LBB0_4:
	mvn	w22, w23
	mov	x0, x20
	bl	_snd_hda_power_down
	and	w4, w21, w22
LBB0_5:
	ldr	w1, [x20]
	ldrsh	w3, [x19, #2]
	mov	x0, x20
	mov	w2, #0
	bl	_snd_hda_codec_write_cache
	mov	w0, #1
LBB0_6:
	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
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_stac_aloopback_put
.subsections_via_symbols
