	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_korg1212_control_route_put
_snd_korg1212_control_route_put:        ## @snd_korg1212_control_route_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	%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
	movq	%rax, %rdi
	callq	_spin_lock_irq
	movslq	(%rbx), %rax
	movq	(%r14), %rcx
	movq	(%rcx), %rsi
	movq	_kAudioChannels@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	xorl	%r14d, %r14d
	cmpq	%rdx, %rsi
	jge	LBB0_3
## %bb.1:
	movq	8(%r15), %rdi
	movq	8(%rdi), %rbx
	movl	(%rbx,%rax,8), %ebx
	cmpq	%rbx, %rsi
	je	LBB0_3
## %bb.2:
	movq	(%rdi), %rdi
	movl	%esi, (%rdi,%rax,4)
	movl	$1, %r14d
LBB0_3:
	cmpl	$8, %eax
	jl	LBB0_7
## %bb.4:
	movq	8(%rcx), %rcx
	cmpq	%rdx, %rcx
	jge	LBB0_7
## %bb.5:
	movl	%eax, %eax
	movq	8(%r15), %rdx
	movq	8(%rdx), %rsi
	movl	8(%rsi,%rax,8), %esi
	cmpq	%rsi, %rcx
	je	LBB0_7
## %bb.6:
	movq	(%rdx), %rdx
	movl	%ecx, 4(%rdx,%rax,4)
	movl	$1, %r14d
LBB0_7:
	movq	%r15, %rdi
	callq	_spin_unlock_irq
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_kAudioChannels,8,3             ## @kAudioChannels
	.no_dead_strip	_snd_korg1212_control_route_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_route_put
_snd_korg1212_control_route_put:        ; @snd_korg1212_control_route_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	x20, x1
	mov	x21, x0
	bl	_snd_kcontrol_chip
	mov	x19, x0
	bl	_spin_lock_irq
	ldrsw	x8, [x21]
	ldr	x9, [x20]
	ldr	x11, [x9]
Lloh0:
	adrp	x10, _kAudioChannels@GOTPAGE
Lloh1:
	ldr	x10, [x10, _kAudioChannels@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x10]
	cmp	x11, x10
	b.ge	LBB0_2
; %bb.1:
	ldr	x12, [x19, #8]
	ldr	x13, [x12, #8]
	lsl	x14, x8, #3
	ldr	w13, [x13, x14]
	cmp	x11, x13
	b.ne	LBB0_3
LBB0_2:
	mov	w20, #0
	cmp	w8, #8
	b.ge	LBB0_4
	b	LBB0_7
LBB0_3:
	ldr	x12, [x12]
	str	w11, [x12, x8, lsl #2]
	mov	w20, #1
	cmp	w8, #8
	b.lt	LBB0_7
LBB0_4:
	ldr	x9, [x9, #8]
	cmp	x9, x10
	b.ge	LBB0_7
; %bb.5:
	and	x10, x8, #0xffffffff
	ldr	x8, [x19, #8]
	ldr	x11, [x8, #8]
	add	x10, x10, #1
	lsl	x12, x10, #3
	ldr	w11, [x11, x12]
	cmp	x9, x11
	b.eq	LBB0_7
; %bb.6:
	ldr	x8, [x8]
	str	w9, [x8, x10, lsl #2]
	mov	w20, #1
LBB0_7:
	mov	x0, x19
	bl	_spin_unlock_irq
	mov	x0, x20
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_kAudioChannels,8,3             ; @kAudioChannels
	.no_dead_strip	_snd_korg1212_control_route_put
.subsections_via_symbols
