	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_rme96_capture_adat_open
_snd_rme96_capture_adat_open:           ## @snd_rme96_capture_adat_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
	subq	$16, %rsp
	.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	_snd_rme96_capture_adat_info@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	%rcx, (%r14)
	movl	8(%rax), %eax
	movl	%eax, 8(%r14)
	movq	%rbx, %rdi
	callq	_snd_rme96_getinputtype
	movq	_RME96_INPUT_ANALOG@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_3
LBB0_1:
	movq	_EIO@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
LBB0_3:
	leaq	-36(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_snd_rme96_capture_getrate
	testl	%eax, %eax
	jle	LBB0_6
## %bb.4:
	cmpl	$0, -36(%rbp)
	je	LBB0_1
## %bb.5:
	movl	%eax, %r12d
	movl	%eax, %edi
	callq	_snd_pcm_rate_to_rate_bit
	movl	%eax, 8(%r14)
	movl	%r12d, (%r14)
	movl	%r12d, 4(%r14)
LBB0_6:
	movq	%rbx, %rdi
	callq	_spin_lock_irq
	cmpq	$0, 8(%rbx)
	je	LBB0_8
## %bb.7:
	movq	%rbx, %rdi
	callq	_spin_unlock_irq
	movq	_EBUSY@GOTPCREL(%rip), %rcx
LBB0_2:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_9:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	%r15, 8(%rbx)
	movq	%rbx, %rdi
	callq	_spin_unlock_irq
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_rme96_set_buffer_size_constraint
	xorl	%eax, %eax
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_snd_rme96_capture_adat_info,12,2 ## @snd_rme96_capture_adat_info
	.comm	_RME96_INPUT_ANALOG,8,3         ## @RME96_INPUT_ANALOG
	.comm	_EIO,4,2                        ## @EIO
	.comm	_EBUSY,4,2                      ## @EBUSY
	.no_dead_strip	_snd_rme96_capture_adat_open
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function snd_rme96_capture_adat_open
_snd_rme96_capture_adat_open:           ; @snd_rme96_capture_adat_open
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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, x0
	bl	_snd_pcm_substream_chip
	mov	x19, x0
	ldr	x20, [x21]
Lloh0:
	adrp	x8, _snd_rme96_capture_adat_info@GOTPAGE
Lloh1:
	ldr	x8, [x8, _snd_rme96_capture_adat_info@GOTPAGEOFF]
	ldr	w9, [x8, #8]
	ldr	x8, [x8]
	str	x8, [x20]
	str	w9, [x20, #8]
	bl	_snd_rme96_getinputtype
Lloh2:
	adrp	x8, _RME96_INPUT_ANALOG@GOTPAGE
Lloh3:
	ldr	x8, [x8, _RME96_INPUT_ANALOG@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_2
LBB0_1:
Lloh5:
	adrp	x8, _EIO@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
	b	LBB0_7
LBB0_2:
	add	x1, sp, #12
	mov	x0, x19
	bl	_snd_rme96_capture_getrate
	cmp	w0, #1
	b.lt	LBB0_5
; %bb.3:
	ldr	w8, [sp, #12]
	cbz	w8, LBB0_1
; %bb.4:
	mov	x22, x0
	bl	_snd_pcm_rate_to_rate_bit
	stp	w22, w0, [x20, #4]
	str	w22, [x20]
LBB0_5:
	mov	x0, x19
	bl	_spin_lock_irq
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_9
; %bb.6:
	mov	x0, x19
	bl	_spin_unlock_irq
Lloh7:
	adrp	x8, _EBUSY@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
LBB0_7:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_8:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_9:
	str	x21, [x19, #8]
	mov	x0, x19
	bl	_spin_unlock_irq
	mov	x0, x19
	mov	x1, x20
	bl	_rme96_set_buffer_size_constraint
	mov	w0, #0
	b	LBB0_8
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_snd_rme96_capture_adat_info,12,2 ; @snd_rme96_capture_adat_info
	.comm	_RME96_INPUT_ANALOG,8,3         ; @RME96_INPUT_ANALOG
	.comm	_EIO,4,2                        ; @EIO
	.comm	_EBUSY,4,2                      ; @EBUSY
	.no_dead_strip	_snd_rme96_capture_adat_open
.subsections_via_symbols
