	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function stac9460_mic_sw_put
_stac9460_mic_sw_put:                   ## @stac9460_mic_sw_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r12
	movq	%rdi, %rbx
	callq	_snd_kcontrol_chip
	movq	%rax, %r14
	leaq	8(%r12), %rsi
	movq	%rbx, %rdi
	callq	_snd_ctl_get_ioffidx
	movl	%eax, %r15d
	movq	_STAC946X_GENERAL_PURPOSE@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	%r14, %rdi
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	callq	_stac9460_2_get
	jmp	LBB0_3
LBB0_1:
	callq	_stac9460_get
LBB0_3:
	movq	(%r12), %rcx
	movl	(%rcx), %ecx
	notl	%ecx
	shll	$7, %ecx
	movzbl	%al, %ebx
	movl	%ebx, %eax
	andl	$127, %eax
	orl	%ecx, %eax
	movzbl	%al, %r12d
	cmpl	%ebx, %r12d
	je	LBB0_7
## %bb.4:
	movl	(%r13), %esi
	movq	%r14, %rdi
	movl	%r12d, %edx
	testl	%r15d, %r15d
	je	LBB0_5
## %bb.6:
	callq	_stac9460_2_put
	jmp	LBB0_7
LBB0_5:
	callq	_stac9460_put
LBB0_7:
	xorl	%eax, %eax
	cmpl	%ebx, %r12d
	setne	%al
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_STAC946X_GENERAL_PURPOSE,4,2   ## @STAC946X_GENERAL_PURPOSE
	.no_dead_strip	_stac9460_mic_sw_put
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function stac9460_mic_sw_put
_stac9460_mic_sw_put:                   ; @stac9460_mic_sw_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	x20, x0
	bl	_snd_kcontrol_chip
	mov	x19, x0
	add	x1, x21, #8
	mov	x0, x20
	bl	_snd_ctl_get_ioffidx
	mov	x22, x0
Lloh0:
	adrp	x23, _STAC946X_GENERAL_PURPOSE@GOTPAGE
Lloh1:
	ldr	x23, [x23, _STAC946X_GENERAL_PURPOSE@GOTPAGEOFF]
	ldr	w1, [x23]
	cbz	w0, LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_stac9460_2_get
	b	LBB0_3
LBB0_2:
	mov	x0, x19
	bl	_stac9460_get
LBB0_3:
	mov	x20, x0
	ldr	x8, [x21]
	ldr	w8, [x8]
	mvn	w9, w8
	mov	x8, x0
	bfi	w8, w9, #7, #25
	and	w21, w8, #0xff
	cmp	w21, w0
	b.eq	LBB0_7
; %bb.4:
	ldr	w1, [x23]
	and	w2, w8, #0xff
	mov	x0, x19
	cbz	w22, LBB0_6
; %bb.5:
	bl	_stac9460_2_put
	b	LBB0_7
LBB0_6:
	bl	_stac9460_put
LBB0_7:
	cmp	w21, w20
	cset	w0, ne
	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 AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_STAC946X_GENERAL_PURPOSE,4,2   ; @STAC946X_GENERAL_PURPOSE
	.no_dead_strip	_stac9460_mic_sw_put
.subsections_via_symbols
