	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_korg1212_control_sync_put
_snd_korg1212_control_sync_put:         ## @snd_korg1212_control_sync_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
	callq	_snd_kcontrol_chip
	movq	%rax, %r15
	movq	(%r14), %rax
	movslq	(%rax), %rbx
	imulq	$1431655766, %rbx, %rax         ## imm = 0x55555556
	movq	%rax, %rcx
	shrq	$63, %rcx
	shrq	$32, %rax
	addl	%ecx, %eax
	leal	(%rax,%rax,2), %eax
	subl	%eax, %ebx
	leaq	4(%r15), %r14
	movq	%r14, %rdi
	callq	_spin_lock_irq
	xorl	%r12d, %r12d
	cmpl	(%r15), %ebx
	setne	%r12b
	movq	%r15, %rdi
	movl	%ebx, %esi
	callq	_snd_korg1212_SetClockSource
	movq	%r14, %rdi
	callq	_spin_unlock_irq
	movl	%r12d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_snd_korg1212_control_sync_put
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function snd_korg1212_control_sync_put
_snd_korg1212_control_sync_put:         ; @snd_korg1212_control_sync_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
	bl	_snd_kcontrol_chip
	mov	x20, x0
	ldr	x8, [x19]
	ldrsw	x8, [x8]
	mov	w9, #21846
	movk	w9, #21845, lsl #16
	mul	x9, x8, x9
	lsr	x10, x9, #63
	lsr	x9, x9, #32
	add	w9, w9, w10
	add	w9, w9, w9, lsl #1
	sub	w19, w8, w9
	add	x21, x0, #4
	mov	x0, x21
	bl	_spin_lock_irq
	ldr	w8, [x20]
	cmp	w19, w8
	cset	w22, ne
	mov	x0, x20
	mov	x1, x19
	bl	_snd_korg1212_SetClockSource
	mov	x0, x21
	bl	_spin_unlock_irq
	mov	x0, x22
	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	_snd_korg1212_control_sync_put
.subsections_via_symbols
