	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function spi_mute_put
_spi_mute_put:                          ## @spi_mute_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	callq	_snd_kcontrol_chip
	movl	(%rbx), %edx
	movq	_SPI_REG_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	movq	_SPI_REG_MASK@GOTPCREL(%rip), %rsi
	movl	(%rsi), %ebx
	andl	%edx, %ebx
	shrq	%cl, %rdx
	movq	(%rax), %rdi
	movl	(%rdi,%rdx,4), %esi
	movq	(%r14), %rcx
	cmpq	$0, (%rcx)
	je	LBB0_4
## %bb.1:
	testl	%ebx, %esi
	je	LBB0_2
## %bb.3:
	notl	%ebx
	andl	%ebx, %esi
	jmp	LBB0_6
LBB0_4:
	xorl	%ecx, %ecx
	testl	%ebx, %esi
	jne	LBB0_7
## %bb.5:
	orl	%ebx, %esi
LBB0_6:
	movl	%esi, (%rdi,%rdx,4)
	movq	%rax, %rdi
	callq	_snd_ca0106_spi_write
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%edx, %edx
	subl	(%rcx), %edx
	testl	%eax, %eax
	movl	$1, %ecx
	cmovnel	%edx, %ecx
	jmp	LBB0_7
LBB0_2:
	xorl	%ecx, %ecx
LBB0_7:
	movl	%ecx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SPI_REG_SHIFT,4,2              ## @SPI_REG_SHIFT
	.comm	_SPI_REG_MASK,4,2               ## @SPI_REG_MASK
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_spi_mute_put
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function spi_mute_put
_spi_mute_put:                          ; @spi_mute_put
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	mov	x20, x0
	bl	_snd_kcontrol_chip
	ldr	w9, [x20]
Lloh0:
	adrp	x8, _SPI_REG_SHIFT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SPI_REG_SHIFT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	lsr	x8, x9, x8
Lloh3:
	adrp	x10, _SPI_REG_MASK@GOTPAGE
Lloh4:
	ldr	x10, [x10, _SPI_REG_MASK@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	and	w10, w10, w9
	ldr	x9, [x0]
	ldr	w11, [x9, x8, lsl #2]
	and	w12, w11, w10
	ldr	x13, [x19]
	ldr	x13, [x13]
	cbz	x13, LBB0_3
; %bb.1:
	cbz	w12, LBB0_4
; %bb.2:
	bic	w1, w11, w10
	b	LBB0_6
LBB0_3:
	cbz	w12, LBB0_5
LBB0_4:
	mov	w0, #0
	b	LBB0_7
LBB0_5:
	orr	w1, w11, w10
LBB0_6:
	str	w1, [x9, x8, lsl #2]
	bl	_snd_ca0106_spi_write
Lloh6:
	adrp	x8, _EINVAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cmp	w0, #0
	mov	w9, #1
	csneg	w0, w9, w8, eq
LBB0_7:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_SPI_REG_SHIFT,4,2              ; @SPI_REG_SHIFT
	.comm	_SPI_REG_MASK,4,2               ; @SPI_REG_MASK
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_spi_mute_put
.subsections_via_symbols
