	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_korg1212_control_put
_snd_korg1212_control_put:              ## @snd_korg1212_control_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, %r15
	callq	_snd_kcontrol_chip
	movq	%rax, %r14
	movq	%rax, %rbx
	addq	$16, %rbx
	movq	%rbx, %rdi
	callq	_spin_lock_irq
	movq	(%r15), %rax
	movq	(%rax), %rsi
	movq	_k1212MinADCSens@GOTPCREL(%rip), %r8
	movq	(%r8), %rdx
	movq	_k1212MaxADCSens@GOTPCREL(%rip), %rdi
	movq	(%rdi), %rcx
	movb	$1, %r15b
	cmpq	%rdx, %rsi
	jl	LBB0_4
## %bb.1:
	cmpq	%rcx, %rsi
	jg	LBB0_4
## %bb.2:
	cmpq	(%r14), %rsi
	je	LBB0_4
## %bb.3:
	movq	%rsi, (%r14)
	movq	(%r8), %rdx
	movq	(%rdi), %rcx
	xorl	%r15d, %r15d
LBB0_4:
	movq	8(%rax), %rax
	cmpq	%rdx, %rax
	jl	LBB0_8
## %bb.5:
	cmpq	%rcx, %rax
	jg	LBB0_8
## %bb.6:
	cmpq	8(%r14), %rax
	jne	LBB0_7
LBB0_8:
	movq	%rbx, %rdi
	callq	_spin_unlock_irq
	xorl	%eax, %eax
	testb	%r15b, %r15b
	je	LBB0_9
	jmp	LBB0_10
LBB0_7:
	movq	%rax, 8(%r14)
	movq	%rbx, %rdi
	callq	_spin_unlock_irq
LBB0_9:
	movq	%r14, %rdi
	callq	_snd_korg1212_WriteADCSensitivity
	movl	$1, %eax
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_k1212MinADCSens,8,3            ## @k1212MinADCSens
	.comm	_k1212MaxADCSens,8,3            ## @k1212MaxADCSens
	.no_dead_strip	_snd_korg1212_control_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_put
_snd_korg1212_control_put:              ; @snd_korg1212_control_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
	bl	_snd_kcontrol_chip
	mov	x19, x0
	add	x20, x0, #16
	mov	x0, x20
	bl	_spin_lock_irq
	ldr	x8, [x21]
	ldr	x11, [x8]
Lloh0:
	adrp	x12, _k1212MinADCSens@GOTPAGE
Lloh1:
	ldr	x12, [x12, _k1212MinADCSens@GOTPAGEOFF]
	ldr	x9, [x12]
Lloh2:
	adrp	x13, _k1212MaxADCSens@GOTPAGE
Lloh3:
	ldr	x13, [x13, _k1212MaxADCSens@GOTPAGEOFF]
	ldr	x10, [x13]
	cmp	x11, x9
	ccmp	x11, x10, #0, ge
	b.gt	LBB0_2
; %bb.1:
	ldr	x14, [x19]
	cmp	x11, x14
	b.ne	LBB0_3
LBB0_2:
	mov	w21, #1
	b	LBB0_4
LBB0_3:
	mov	w21, #0
	str	x11, [x19]
	ldr	x9, [x12]
	ldr	x10, [x13]
LBB0_4:
	ldr	x8, [x8, #8]
	cmp	x8, x9
	ccmp	x8, x10, #0, ge
	b.gt	LBB0_6
; %bb.5:
	ldr	x9, [x19, #8]
	cmp	x8, x9
	b.ne	LBB0_8
LBB0_6:
	mov	x0, x20
	bl	_spin_unlock_irq
	tbz	w21, #0, LBB0_9
; %bb.7:
	mov	w0, #0
	b	LBB0_10
LBB0_8:
	str	x8, [x19, #8]
	mov	x0, x20
	bl	_spin_unlock_irq
LBB0_9:
	mov	x0, x19
	bl	_snd_korg1212_WriteADCSensitivity
	mov	w0, #1
LBB0_10:
	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 AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_k1212MinADCSens,8,3            ; @k1212MinADCSens
	.comm	_k1212MaxADCSens,8,3            ; @k1212MaxADCSens
	.no_dead_strip	_snd_korg1212_control_put
.subsections_via_symbols
