	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_korg1212_control_phase_put
_snd_korg1212_control_phase_put:        ## @snd_korg1212_control_phase_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, %r15
	movq	%rdi, %r12
	callq	_snd_kcontrol_chip
	movq	%rax, %rbx
	leaq	8(%rax), %r14
	movq	%r14, %rdi
	callq	_spin_lock_irq
	movslq	(%r12), %rsi
	movq	(%r15), %r8
	movq	(%r8), %rdi
	xorl	%ecx, %ecx
	testq	%rdi, %rdi
	setne	%cl
	movq	(%rbx), %r9
	movl	%ecx, (%r9,%rsi,4)
	movq	16(%rbx), %rax
	movq	(%rax), %rax
	movslq	(%r12), %rbx
	movl	(%rax,%rbx,4), %edx
	movl	%edx, %ebx
	shrl	$31, %ebx
	xorl	%r15d, %r15d
	cmpl	%ecx, %ebx
	je	LBB0_2
## %bb.1:
	movl	%edx, %ecx
	negl	%ecx
	cmovsl	%edx, %ecx
	movl	%ecx, %edx
	negl	%edx
	testq	%rdi, %rdi
	cmovel	%ecx, %edx
	movl	%edx, (%rax,%rsi,4)
	movl	$1, %r15d
LBB0_2:
	cmpl	$8, %esi
	jl	LBB0_5
## %bb.3:
	movl	%esi, %esi
	movq	8(%r8), %rcx
	xorl	%edi, %edi
	testq	%rcx, %rcx
	setne	%dil
	movl	%edi, 4(%r9,%rsi,4)
	movslq	(%r12), %rdx
	movl	4(%rax,%rdx,4), %ebx
	movl	%ebx, %edx
	shrl	$31, %edx
	cmpl	%edi, %edx
	je	LBB0_5
## %bb.4:
	movl	%ebx, %edx
	negl	%edx
	cmovsl	%ebx, %edx
	movl	%edx, %edi
	negl	%edi
	testq	%rcx, %rcx
	cmovel	%edx, %edi
	movl	%edi, 4(%rax,%rsi,4)
	movl	$1, %r15d
LBB0_5:
	movq	%r14, %rdi
	callq	_spin_unlock_irq
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_snd_korg1212_control_phase_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_phase_put
_snd_korg1212_control_phase_put:        ; @snd_korg1212_control_phase_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	x21, x1
	mov	x20, x0
	bl	_snd_kcontrol_chip
	mov	x22, x0
	add	x19, x0, #8
	mov	x0, x19
	bl	_spin_lock_irq
	ldrsw	x11, [x20]
	ldr	x9, [x21]
	ldr	x12, [x9]
	cmp	x12, #0
	cset	w14, ne
	ldr	x10, [x22]
	str	w14, [x10, x11, lsl #2]
	ldr	x8, [x22, #16]
	ldr	x8, [x8]
	ldrsw	x13, [x20]
	ldr	w13, [x8, x13, lsl #2]
	cmp	w14, w13, lsr #31
	b.ne	LBB0_2
; %bb.1:
	mov	w21, #0
	cmp	w11, #8
	b.ge	LBB0_3
	b	LBB0_5
LBB0_2:
	cmp	w13, #0
	cneg	w13, w13, mi
	cmp	x12, #0
	cneg	w12, w13, ne
	str	w12, [x8, x11, lsl #2]
	mov	w21, #1
	cmp	w11, #8
	b.lt	LBB0_5
LBB0_3:
	and	x11, x11, #0xffffffff
	ldr	x9, [x9, #8]
	cmp	x9, #0
	cset	w12, ne
	add	x11, x11, #1
	str	w12, [x10, x11, lsl #2]
	ldrsw	x10, [x20]
	add	x10, x8, x10, lsl #2
	ldr	w10, [x10, #4]
	cmp	w12, w10, lsr #31
	b.eq	LBB0_5
; %bb.4:
	cmp	w10, #0
	cneg	w10, w10, mi
	cmp	x9, #0
	cneg	w9, w10, ne
	str	w9, [x8, x11, lsl #2]
	mov	w21, #1
LBB0_5:
	mov	x0, x19
	bl	_spin_unlock_irq
	mov	x0, x21
	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_phase_put
.subsections_via_symbols
