	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function maya_gpio_sw_put
_maya_gpio_sw_put:                      ## @maya_gpio_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	callq	_snd_kcontrol_chip
	movq	%rax, %r15
	movl	(%rbx), %edi
	callq	_GET_GPIO_VAL_SHIFT
	movl	%eax, %r12d
	movq	%r15, %rdi
	callq	_mutex_lock
	movq	(%r14), %rax
	movl	(%rax), %r14d
	movl	(%rbx), %edi
	callq	_GET_GPIO_VAL_INV
	xorl	%edx, %edx
	testl	%r14d, %r14d
	sete	%dl
	testq	%rax, %rax
	cmovel	%r14d, %edx
	movl	$1, %esi
	movl	%r12d, %ecx
	shll	%cl, %esi
	testl	%edx, %edx
	cmovnel	%esi, %edx
	movl	4(%r15), %edi
	callq	_maya_set_gpio_bits
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_mutex_unlock
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_maya_gpio_sw_put
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function maya_gpio_sw_put
_maya_gpio_sw_put:                      ; @maya_gpio_sw_put
	.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	x19, x1
	mov	x20, x0
	bl	_snd_kcontrol_chip
	mov	x21, x0
	ldr	w0, [x20]
	bl	_GET_GPIO_VAL_SHIFT
	mov	x22, x0
	mov	x0, x21
	bl	_mutex_lock
	ldr	x8, [x19]
	ldr	w19, [x8]
	ldr	w0, [x20]
	bl	_GET_GPIO_VAL_INV
	cmp	w19, #0
	cset	w8, eq
	cmp	x0, #0
	csel	w8, w19, w8, eq
	mov	w9, #1
	lsl	w1, w9, w22
	cmp	w8, #0
	csel	w2, wzr, w1, eq
	ldr	w0, [x21, #4]
	bl	_maya_set_gpio_bits
	mov	x19, x0
	mov	x0, x21
	bl	_mutex_unlock
	mov	x0, x19
	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
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_maya_gpio_sw_put
.subsections_via_symbols
