	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_rme96_playback_adat_open
_snd_rme96_playback_adat_open:          ## @snd_rme96_playback_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, %rbx
	callq	_snd_pcm_substream_chip
	movq	%rax, %r15
	movq	(%rbx), %r14
	leaq	4(%rax), %r12
	movq	%r12, %rdi
	callq	_spin_lock_irq
	cmpq	$0, 8(%r15)
	je	LBB0_2
## %bb.1:
	movq	%r12, %rdi
	callq	_spin_unlock_irq
	movq	_EBUSY@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_7
LBB0_2:
	movq	_RME96_WCR_ADAT@GOTPCREL(%rip), %rax
	movl	(%r15), %edi
	orl	(%rax), %edi
	movl	%edi, (%r15)
	movq	_RME96_IO_CONTROL_REGISTER@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	16(%r15), %rsi
	callq	_writel
	movq	%rbx, 8(%r15)
	movq	%r12, %rdi
	callq	_spin_unlock_irq
	movq	_snd_rme96_playback_adat_info@GOTPCREL(%rip), %rax
	movl	8(%rax), %ecx
	movl	%ecx, 8(%r14)
	movq	(%rax), %rax
	movq	%rax, (%r14)
	movq	_RME96_WCR_MASTER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r15)
	jne	LBB0_6
## %bb.3:
	movq	%r15, %rdi
	callq	_snd_rme96_getinputtype
	movq	_RME96_INPUT_ANALOG@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_6
## %bb.4:
	leaq	-36(%rbp), %rsi
	movq	%r15, %rdi
	callq	_snd_rme96_capture_getrate
	testl	%eax, %eax
	jle	LBB0_6
## %bb.5:
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_snd_pcm_rate_to_rate_bit
	movl	%eax, 8(%r14)
	movl	%ebx, (%r14)
	movl	%ebx, 4(%r14)
LBB0_6:
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_rme96_set_buffer_size_constraint
	xorl	%eax, %eax
LBB0_7:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_RME96_WCR_ADAT,4,2             ## @RME96_WCR_ADAT
	.comm	_RME96_IO_CONTROL_REGISTER,8,3  ## @RME96_IO_CONTROL_REGISTER
	.comm	_snd_rme96_playback_adat_info,12,2 ## @snd_rme96_playback_adat_info
	.comm	_RME96_WCR_MASTER,4,2           ## @RME96_WCR_MASTER
	.comm	_RME96_INPUT_ANALOG,8,3         ## @RME96_INPUT_ANALOG
	.no_dead_strip	_snd_rme96_playback_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_playback_adat_open
_snd_rme96_playback_adat_open:          ; @snd_rme96_playback_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]
	add	x22, x0, #4
	mov	x0, x22
	bl	_spin_lock_irq
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_2
; %bb.1:
	mov	x0, x22
	bl	_spin_unlock_irq
Lloh0:
	adrp	x8, _EBUSY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_7
LBB0_2:
Lloh3:
	adrp	x8, _RME96_WCR_ADAT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _RME96_WCR_ADAT@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	ldr	w9, [x19]
	orr	w0, w9, w8
	str	w0, [x19]
	ldr	x8, [x19, #16]
Lloh6:
	adrp	x9, _RME96_IO_CONTROL_REGISTER@GOTPAGE
Lloh7:
	ldr	x9, [x9, _RME96_IO_CONTROL_REGISTER@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel
	str	x21, [x19, #8]
	mov	x0, x22
	bl	_spin_unlock_irq
Lloh9:
	adrp	x8, _snd_rme96_playback_adat_info@GOTPAGE
Lloh10:
	ldr	x8, [x8, _snd_rme96_playback_adat_info@GOTPAGEOFF]
	ldr	x9, [x8]
	ldr	w8, [x8, #8]
	str	w8, [x20, #8]
	str	x9, [x20]
	ldr	w8, [x19]
Lloh11:
	adrp	x9, _RME96_WCR_MASTER@GOTPAGE
Lloh12:
	ldr	x9, [x9, _RME96_WCR_MASTER@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_6
; %bb.3:
	mov	x0, x19
	bl	_snd_rme96_getinputtype
Lloh14:
	adrp	x8, _RME96_INPUT_ANALOG@GOTPAGE
Lloh15:
	ldr	x8, [x8, _RME96_INPUT_ANALOG@GOTPAGEOFF]
Lloh16:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_6
; %bb.4:
	add	x1, sp, #12
	mov	x0, x19
	bl	_snd_rme96_capture_getrate
	cmp	w0, #1
	b.lt	LBB0_6
; %bb.5:
	mov	x21, x0
	bl	_snd_pcm_rate_to_rate_bit
	stp	w21, w0, [x20, #4]
	str	w21, [x20]
LBB0_6:
	mov	x0, x19
	mov	x1, x20
	bl	_rme96_set_buffer_size_constraint
	mov	w0, #0
LBB0_7:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_RME96_WCR_ADAT,4,2             ; @RME96_WCR_ADAT
	.comm	_RME96_IO_CONTROL_REGISTER,8,3  ; @RME96_IO_CONTROL_REGISTER
	.comm	_snd_rme96_playback_adat_info,12,2 ; @snd_rme96_playback_adat_info
	.comm	_RME96_WCR_MASTER,4,2           ; @RME96_WCR_MASTER
	.comm	_RME96_INPUT_ANALOG,8,3         ; @RME96_INPUT_ANALOG
	.no_dead_strip	_snd_rme96_playback_adat_open
.subsections_via_symbols
