	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tumbler_put_mute_switch
_tumbler_put_mute_switch:               ## @tumbler_put_mute_switch
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	callq	_snd_kcontrol_chip
	movq	(%rax), %r15
	testq	%r15, %r15
	je	LBB0_1
## %bb.3:
	movl	(%rbx), %eax
	cmpl	$128, %eax
	je	LBB0_9
## %bb.4:
	cmpl	$130, %eax
	je	LBB0_8
## %bb.5:
	cmpl	$129, %eax
	jne	LBB0_7
## %bb.6:
	addq	$8, %r15
	jmp	LBB0_9
LBB0_1:
	movq	_ENODEV@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
LBB0_8:
	addq	$4, %r15
LBB0_9:
	movq	%r15, %rdi
	callq	_check_audio_gpio
	xorl	%edx, %edx
	testl	%eax, %eax
	sete	%dl
	movq	(%r14), %rax
	movl	(%rax), %ecx
	xorl	%eax, %eax
	cmpl	%edx, %ecx
	je	LBB0_11
## %bb.10:
	xorl	%esi, %esi
	testl	%ecx, %ecx
	sete	%sil
	movq	%r15, %rdi
	callq	_write_audio_gpio
	movl	$1, %eax
	jmp	LBB0_11
LBB0_7:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
LBB0_2:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_tumbler_put_mute_switch
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tumbler_put_mute_switch
_tumbler_put_mute_switch:               ; @tumbler_put_mute_switch
	.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
	mov	x20, x1
	mov	x21, x0
	bl	_snd_kcontrol_chip
	ldr	x19, [x0]
	cbz	x19, LBB0_5
; %bb.1:
	ldr	w8, [x21]
	cmp	w8, #128
	b.eq	LBB0_7
; %bb.2:
	cmp	w8, #130
	b.eq	LBB0_6
; %bb.3:
	cmp	w8, #129
	b.ne	LBB0_10
; %bb.4:
	add	x19, x19, #8
	b	LBB0_7
LBB0_5:
Lloh0:
	adrp	x8, _ENODEV@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_11
LBB0_6:
	add	x19, x19, #4
LBB0_7:
	mov	x0, x19
	bl	_check_audio_gpio
	cmp	w0, #0
	cset	w9, eq
	ldr	x8, [x20]
	ldr	w8, [x8]
	cmp	w8, w9
	b.ne	LBB0_9
; %bb.8:
	mov	w0, #0
	b	LBB0_12
LBB0_9:
	cmp	w8, #0
	cset	w1, eq
	mov	x0, x19
	bl	_write_audio_gpio
	mov	w0, #1
	b	LBB0_12
LBB0_10:
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_11:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_12:
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_tumbler_put_mute_switch
.subsections_via_symbols
