	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_korg1212_capture_open
_snd_korg1212_capture_open:             ## @snd_korg1212_capture_open
	.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	%rdi, %r15
	callq	_snd_pcm_substream_chip
	movq	%rax, %rbx
	movq	(%r15), %r14
	movq	_stateName@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rbx), %rcx
	movl	(%rax,%rcx,4), %esi
	leaq	L_.str(%rip), %rdi
	callq	_K1212_DEBUG_PRINTK
	movq	%rbx, %rdi
	callq	_snd_korg1212_OpenCard
	movq	_snd_korg1212_capture_info@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r14)
	leaq	32(%rbx), %rsi
	movq	%r15, %rdi
	callq	_snd_pcm_set_runtime_buffer
	leaq	8(%rbx), %r12
	movq	%r12, %rdi
	callq	_spin_lock_irqsave
	movq	%r15, 24(%rbx)
	movq	_current@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%rbx)
	movq	_K1212_PERIODS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rbx)
	movq	_K1212_CHANNELS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%rbx)
	movq	%r12, %rdi
	callq	_spin_unlock_irqrestore
	movq	_SNDRV_PCM_HW_PARAM_PERIOD_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_kPlayBufferFrames@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r14, %rdi
	movl	%ecx, %edx
	callq	_snd_pcm_hw_constraint_minmax
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"K1212_DEBUG: snd_korg1212_capture_open [%s]\n"

	.comm	_stateName,8,3                  ## @stateName
	.comm	_snd_korg1212_capture_info,4,2  ## @snd_korg1212_capture_info
	.comm	_current,8,3                    ## @current
	.comm	_K1212_PERIODS,4,2              ## @K1212_PERIODS
	.comm	_K1212_CHANNELS,4,2             ## @K1212_CHANNELS
	.comm	_SNDRV_PCM_HW_PARAM_PERIOD_SIZE,4,2 ## @SNDRV_PCM_HW_PARAM_PERIOD_SIZE
	.comm	_kPlayBufferFrames,4,2          ## @kPlayBufferFrames
	.no_dead_strip	_snd_korg1212_capture_open
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function snd_korg1212_capture_open
_snd_korg1212_capture_open:             ; @snd_korg1212_capture_open
	.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, x0
	bl	_snd_pcm_substream_chip
	mov	x20, x0
	ldr	x21, [x19]
Lloh0:
	adrp	x8, _stateName@GOTPAGE
Lloh1:
	ldr	x8, [x8, _stateName@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	x9, [x0]
	ldr	w1, [x8, x9, lsl #2]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_K1212_DEBUG_PRINTK
	mov	x0, x20
	bl	_snd_korg1212_OpenCard
Lloh5:
	adrp	x8, _snd_korg1212_capture_info@GOTPAGE
Lloh6:
	ldr	x8, [x8, _snd_korg1212_capture_info@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	str	w8, [x21]
	add	x1, x20, #32
	mov	x0, x19
	bl	_snd_pcm_set_runtime_buffer
	add	x22, x20, #8
	mov	x0, x22
	bl	_spin_lock_irqsave
Lloh8:
	adrp	x8, _current@GOTPAGE
Lloh9:
	ldr	x8, [x8, _current@GOTPAGEOFF]
	str	x19, [x20, #24]
Lloh10:
	ldr	x8, [x8]
	ldr	w8, [x8]
	str	w8, [x20, #20]
Lloh11:
	adrp	x8, _K1212_PERIODS@GOTPAGE
Lloh12:
	ldr	x8, [x8, _K1212_PERIODS@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
Lloh14:
	adrp	x9, _K1212_CHANNELS@GOTPAGE
Lloh15:
	ldr	x9, [x9, _K1212_CHANNELS@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	stp	w9, w8, [x20, #12]
	mov	x0, x22
	bl	_spin_unlock_irqrestore
Lloh17:
	adrp	x8, _SNDRV_PCM_HW_PARAM_PERIOD_SIZE@GOTPAGE
Lloh18:
	ldr	x8, [x8, _SNDRV_PCM_HW_PARAM_PERIOD_SIZE@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
Lloh20:
	adrp	x8, _kPlayBufferFrames@GOTPAGE
Lloh21:
	ldr	x8, [x8, _kPlayBufferFrames@GOTPAGEOFF]
Lloh22:
	ldr	w2, [x8]
	mov	x0, x21
	mov	x3, x2
	bl	_snd_pcm_hw_constraint_minmax
	mov	w0, #0
	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	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"K1212_DEBUG: snd_korg1212_capture_open [%s]\n"

	.comm	_stateName,8,3                  ; @stateName
	.comm	_snd_korg1212_capture_info,4,2  ; @snd_korg1212_capture_info
	.comm	_current,8,3                    ; @current
	.comm	_K1212_PERIODS,4,2              ; @K1212_PERIODS
	.comm	_K1212_CHANNELS,4,2             ; @K1212_CHANNELS
	.comm	_SNDRV_PCM_HW_PARAM_PERIOD_SIZE,4,2 ; @SNDRV_PCM_HW_PARAM_PERIOD_SIZE
	.comm	_kPlayBufferFrames,4,2          ; @kPlayBufferFrames
	.no_dead_strip	_snd_korg1212_capture_open
.subsections_via_symbols
