	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_rme9652_get_adat_sync
_snd_rme9652_get_adat_sync:             ## @snd_rme9652_get_adat_sync
	.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
	movslq	(%rbx), %rcx
	cmpq	$3, %rcx
	jae	LBB0_1
## %bb.2:
	leaq	l_switch.table.snd_rme9652_get_adat_sync(%rip), %rdx
	movq	(%rdx,%rcx,8), %rdx
	leaq	l_switch.table.snd_rme9652_get_adat_sync.1(%rip), %rsi
	movq	(%rsi,%rcx,8), %rcx
	movl	(%rcx), %r15d
	movl	(%rdx), %ebx
	movq	_RME9652_status_register@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	%rax, %rdi
	callq	_rme9652_read
	xorl	%ecx, %ecx
	testl	%ebx, %eax
	setne	%cl
	movq	(%r14), %rdx
	xorl	%esi, %esi
	testl	%r15d, %eax
	setne	%sil
	leal	(%rcx,%rsi,2), %eax
	movl	%eax, (%rdx)
	xorl	%eax, %eax
	jmp	LBB0_3
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RME9652_lock_0,4,2             ## @RME9652_lock_0
	.comm	_RME9652_sync_0,4,2             ## @RME9652_sync_0
	.comm	_RME9652_lock_1,4,2             ## @RME9652_lock_1
	.comm	_RME9652_sync_1,4,2             ## @RME9652_sync_1
	.comm	_RME9652_lock_2,4,2             ## @RME9652_lock_2
	.comm	_RME9652_sync_2,4,2             ## @RME9652_sync_2
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_RME9652_status_register,4,2    ## @RME9652_status_register
	.no_dead_strip	_snd_rme9652_get_adat_sync
	.section	__DATA,__const
	.p2align	3                               ## @switch.table.snd_rme9652_get_adat_sync
l_switch.table.snd_rme9652_get_adat_sync:
	.quad	_RME9652_lock_0
	.quad	_RME9652_lock_1
	.quad	_RME9652_lock_2

	.p2align	3                               ## @switch.table.snd_rme9652_get_adat_sync.1
l_switch.table.snd_rme9652_get_adat_sync.1:
	.quad	_RME9652_sync_0
	.quad	_RME9652_sync_1
	.quad	_RME9652_sync_2

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function snd_rme9652_get_adat_sync
_snd_rme9652_get_adat_sync:             ; @snd_rme9652_get_adat_sync
	.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, x1
	mov	x20, x0
	bl	_snd_kcontrol_chip
	ldrsw	x8, [x20]
	cmp	w8, #3
	b.hs	LBB0_2
; %bb.1:
	lsl	x8, x8, #3
Lloh0:
	adrp	x9, l_switch.table.snd_rme9652_get_adat_sync@PAGE
Lloh1:
	add	x9, x9, l_switch.table.snd_rme9652_get_adat_sync@PAGEOFF
	ldr	x9, [x9, x8]
Lloh2:
	adrp	x10, l_switch.table.snd_rme9652_get_adat_sync.1@PAGE
Lloh3:
	add	x10, x10, l_switch.table.snd_rme9652_get_adat_sync.1@PAGEOFF
	ldr	x8, [x10, x8]
	ldr	w20, [x8]
	ldr	w21, [x9]
Lloh4:
	adrp	x8, _RME9652_status_register@GOTPAGE
Lloh5:
	ldr	x8, [x8, _RME9652_status_register@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	bl	_rme9652_read
	mov	x8, x0
	mov	w0, #0
	tst	w8, w21
	cset	w9, ne
	ldr	x10, [x19]
	tst	w8, w20
	cset	w8, ne
	bfi	w9, w8, #1, #1
	str	w9, [x10]
	b	LBB0_3
LBB0_2:
Lloh7:
	adrp	x8, _EINVAL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_3:
	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	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_RME9652_lock_0,4,2             ; @RME9652_lock_0
	.comm	_RME9652_sync_0,4,2             ; @RME9652_sync_0
	.comm	_RME9652_lock_1,4,2             ; @RME9652_lock_1
	.comm	_RME9652_sync_1,4,2             ; @RME9652_sync_1
	.comm	_RME9652_lock_2,4,2             ; @RME9652_lock_2
	.comm	_RME9652_sync_2,4,2             ; @RME9652_sync_2
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_RME9652_status_register,4,2    ; @RME9652_status_register
	.no_dead_strip	_snd_rme9652_get_adat_sync
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.snd_rme9652_get_adat_sync
l_switch.table.snd_rme9652_get_adat_sync:
	.quad	_RME9652_lock_0
	.quad	_RME9652_lock_1
	.quad	_RME9652_lock_2

	.p2align	3                               ; @switch.table.snd_rme9652_get_adat_sync.1
l_switch.table.snd_rme9652_get_adat_sync.1:
	.quad	_RME9652_sync_0
	.quad	_RME9652_sync_1
	.quad	_RME9652_sync_2

.subsections_via_symbols
