	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_rme96_capture_getrate
_snd_rme96_capture_getrate:             ## @snd_rme96_capture_getrate
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	$0, (%rsi)
	movl	(%rdi), %eax
	movq	_RME96_AR_ANALOG@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_3
## %bb.1:
	movq	_RME96_AR_BITPOS_F0@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	xorl	%edx, %edx
	btl	%ecx, %eax
	setb	%dl
	movq	_RME96_AR_BITPOS_F1@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	movl	%eax, %esi
	shrl	%cl, %esi
	andl	$1, %esi
	leal	(%rdx,%rsi,2), %ecx
	decl	%ecx
	movl	$-1, %edx
	cmpl	$2, %ecx
	ja	LBB0_14
## %bb.2:
	movslq	%ecx, %rcx
	leaq	l_switch.table.snd_rme96_capture_getrate(%rip), %rdx
	movl	(%rdx,%rcx,4), %edx
	movq	_RME96_AR_BITPOS_F2@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	setne	%cl
	shll	%cl, %edx
	jmp	LBB0_14
LBB0_3:
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	_RME96_IO_CONTROL_REGISTER@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	8(%rbx), %rdi
	callq	_readl
	movl	%eax, 4(%rbx)
	movq	_RME96_RCR_LOCK@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_5
## %bb.4:
	movl	$1, (%r14)
	movq	_RME96_RCR_T_OUT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 4(%rbx)
	movl	$44100, %eax                    ## imm = 0xAC44
	movl	$48000, %edx                    ## imm = 0xBB80
	cmovel	%eax, %edx
	jmp	LBB0_14
LBB0_5:
	movq	_RME96_RCR_VERF@GOTPCREL(%rip), %rcx
	movl	$-1, %edx
	testl	%eax, (%rcx)
	je	LBB0_6
LBB0_14:
	movl	%edx, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_6:
	movq	_RME96_RCR_BITPOS_F0@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	xorl	%edx, %edx
	btl	%ecx, %eax
	setb	%dl
	movq	_RME96_RCR_BITPOS_F1@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	movl	%eax, %esi
	shrl	%cl, %esi
	andl	$1, %esi
	movq	_RME96_RCR_BITPOS_F2@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	movl	%eax, %edi
	shrl	%cl, %edi
	leal	(%rdx,%rsi,2), %ecx
	andl	$1, %edi
	leal	(%rcx,%rdi,4), %ecx
	cmpl	$7, %ecx
	ja	LBB0_13
## %bb.7:
	movl	$96000, %edx                    ## imm = 0x17700
	leaq	LJTI0_0(%rip), %rsi
	movslq	(%rsi,%rcx,4), %rcx
	addq	%rsi, %rcx
	jmpq	*%rcx
LBB0_8:
	movq	_RME96_RCR_T_OUT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	%eax, %ecx
	xorl	%edx, %edx
	cmpl	$1, %ecx
	sbbl	%edx, %edx
	orl	$64000, %edx                    ## imm = 0xFA00
	jmp	LBB0_14
LBB0_13:
	movl	$-1, %edx
	jmp	LBB0_14
LBB0_9:
	movl	$88200, %edx                    ## imm = 0x15888
	jmp	LBB0_14
LBB0_10:
	movl	$48000, %edx                    ## imm = 0xBB80
	jmp	LBB0_14
LBB0_11:
	movl	$44100, %edx                    ## imm = 0xAC44
	jmp	LBB0_14
LBB0_12:
	movl	$32000, %edx                    ## imm = 0x7D00
	jmp	LBB0_14
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_13, LBB0_13-LJTI0_0
.set L0_0_set_14, LBB0_14-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
LJTI0_0:
	.long	L0_0_set_8
	.long	L0_0_set_13
	.long	L0_0_set_13
	.long	L0_0_set_14
	.long	L0_0_set_9
	.long	L0_0_set_10
	.long	L0_0_set_11
	.long	L0_0_set_12
	.end_data_region
                                        ## -- End function
	.comm	_RME96_AR_ANALOG,4,2            ## @RME96_AR_ANALOG
	.comm	_RME96_AR_BITPOS_F0,4,2         ## @RME96_AR_BITPOS_F0
	.comm	_RME96_AR_BITPOS_F1,4,2         ## @RME96_AR_BITPOS_F1
	.comm	_RME96_AR_BITPOS_F2,4,2         ## @RME96_AR_BITPOS_F2
	.comm	_RME96_IO_CONTROL_REGISTER,8,3  ## @RME96_IO_CONTROL_REGISTER
	.comm	_RME96_RCR_LOCK,4,2             ## @RME96_RCR_LOCK
	.comm	_RME96_RCR_T_OUT,4,2            ## @RME96_RCR_T_OUT
	.comm	_RME96_RCR_VERF,4,2             ## @RME96_RCR_VERF
	.comm	_RME96_RCR_BITPOS_F0,4,2        ## @RME96_RCR_BITPOS_F0
	.comm	_RME96_RCR_BITPOS_F1,4,2        ## @RME96_RCR_BITPOS_F1
	.comm	_RME96_RCR_BITPOS_F2,4,2        ## @RME96_RCR_BITPOS_F2
	.no_dead_strip	_snd_rme96_capture_getrate
	.section	__TEXT,__const
	.p2align	2                               ## @switch.table.snd_rme96_capture_getrate
l_switch.table.snd_rme96_capture_getrate:
	.long	32000                           ## 0x7d00
	.long	44100                           ## 0xac44
	.long	48000                           ## 0xbb80

.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_getrate
_snd_rme96_capture_getrate:             ; @snd_rme96_capture_getrate
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	str	wzr, [x1]
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _RME96_AR_ANALOG@GOTPAGE
Lloh1:
	ldr	x9, [x9, _RME96_AR_ANALOG@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_3
; %bb.1:
Lloh3:
	adrp	x9, _RME96_AR_BITPOS_F0@GOTPAGE
Lloh4:
	ldr	x9, [x9, _RME96_AR_BITPOS_F0@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	lsr	w9, w8, w9
Lloh6:
	adrp	x10, _RME96_AR_BITPOS_F1@GOTPAGE
Lloh7:
	ldr	x10, [x10, _RME96_AR_BITPOS_F1@GOTPAGEOFF]
	and	w9, w9, #0x1
Lloh8:
	ldr	w10, [x10]
	lsr	w10, w8, w10
	bfi	w9, w10, #1, #1
	sub	x9, x9, #1
	cmp	w9, #2
	b.hi	LBB0_6
; %bb.2:
Lloh9:
	adrp	x10, l_switch.table.snd_rme96_capture_getrate@PAGE
Lloh10:
	add	x10, x10, l_switch.table.snd_rme96_capture_getrate@PAGEOFF
	ldr	w9, [x10, x9, lsl #2]
Lloh11:
	adrp	x10, _RME96_AR_BITPOS_F2@GOTPAGE
Lloh12:
	ldr	x10, [x10, _RME96_AR_BITPOS_F2@GOTPAGEOFF]
Lloh13:
	ldr	w10, [x10]
	tst	w10, w8
	cset	w8, ne
	lsl	w0, w9, w8
	b	LBB0_7
LBB0_3:
	mov	x20, x1
	mov	x19, x0
	ldr	x8, [x0, #8]
Lloh14:
	adrp	x9, _RME96_IO_CONTROL_REGISTER@GOTPAGE
Lloh15:
	ldr	x9, [x9, _RME96_IO_CONTROL_REGISTER@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_readl
	str	w0, [x19, #4]
Lloh17:
	adrp	x9, _RME96_RCR_LOCK@GOTPAGE
Lloh18:
	ldr	x9, [x9, _RME96_RCR_LOCK@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	tst	w9, w0
	b.eq	LBB0_5
; %bb.4:
	mov	w8, #1
	str	w8, [x20]
Lloh20:
	adrp	x8, _RME96_RCR_T_OUT@GOTPAGE
Lloh21:
	ldr	x8, [x8, _RME96_RCR_T_OUT@GOTPAGEOFF]
	ldr	w9, [x19, #4]
Lloh22:
	ldr	w8, [x8]
	tst	w8, w9
	mov	w8, #48000
	mov	w9, #44100
	csel	w0, w9, w8, eq
	b	LBB0_7
LBB0_5:
	mov	x8, x0
Lloh23:
	adrp	x9, _RME96_RCR_VERF@GOTPAGE
Lloh24:
	ldr	x9, [x9, _RME96_RCR_VERF@GOTPAGEOFF]
Lloh25:
	ldr	w9, [x9]
	tst	w9, w0
	b.eq	LBB0_8
LBB0_6:
	mov	w0, #-1
LBB0_7:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_8:
Lloh26:
	adrp	x9, _RME96_RCR_BITPOS_F0@GOTPAGE
Lloh27:
	ldr	x9, [x9, _RME96_RCR_BITPOS_F0@GOTPAGEOFF]
Lloh28:
	ldr	w9, [x9]
	lsr	w9, w8, w9
	and	w9, w9, #0x1
Lloh29:
	adrp	x10, _RME96_RCR_BITPOS_F1@GOTPAGE
Lloh30:
	ldr	x10, [x10, _RME96_RCR_BITPOS_F1@GOTPAGEOFF]
Lloh31:
	ldr	w10, [x10]
	lsr	w10, w8, w10
	bfi	w9, w10, #1, #1
Lloh32:
	adrp	x10, _RME96_RCR_BITPOS_F2@GOTPAGE
Lloh33:
	ldr	x10, [x10, _RME96_RCR_BITPOS_F2@GOTPAGEOFF]
Lloh34:
	ldr	w10, [x10]
	lsr	w10, w8, w10
	bfi	w9, w10, #2, #1
	cmp	w9, #7
	b.hi	LBB0_6
; %bb.9:
	mov	w0, #30464
	movk	w0, #1, lsl #16
Lloh35:
	adrp	x10, lJTI0_0@PAGE
Lloh36:
	add	x10, x10, lJTI0_0@PAGEOFF
	adr	x11, LBB0_6
	ldrb	w12, [x10, x9]
	add	x11, x11, x12, lsl #2
	br	x11
LBB0_10:
Lloh37:
	adrp	x9, _RME96_RCR_T_OUT@GOTPAGE
Lloh38:
	ldr	x9, [x9, _RME96_RCR_T_OUT@GOTPAGEOFF]
Lloh39:
	ldr	w9, [x9]
	tst	w9, w8
	mov	w8, #64000
	csinv	w0, w8, wzr, ne
	b	LBB0_7
LBB0_11:
	mov	w0, #22664
	movk	w0, #1, lsl #16
	b	LBB0_7
LBB0_12:
	mov	w0, #48000
	b	LBB0_7
LBB0_13:
	mov	w0, #44100
	b	LBB0_7
LBB0_14:
	mov	w0, #32000
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpAdd	Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_10-LBB0_6)>>2
	.byte	(LBB0_6-LBB0_6)>>2
	.byte	(LBB0_6-LBB0_6)>>2
	.byte	(LBB0_7-LBB0_6)>>2
	.byte	(LBB0_11-LBB0_6)>>2
	.byte	(LBB0_12-LBB0_6)>>2
	.byte	(LBB0_13-LBB0_6)>>2
	.byte	(LBB0_14-LBB0_6)>>2
                                        ; -- End function
	.comm	_RME96_AR_ANALOG,4,2            ; @RME96_AR_ANALOG
	.comm	_RME96_AR_BITPOS_F0,4,2         ; @RME96_AR_BITPOS_F0
	.comm	_RME96_AR_BITPOS_F1,4,2         ; @RME96_AR_BITPOS_F1
	.comm	_RME96_AR_BITPOS_F2,4,2         ; @RME96_AR_BITPOS_F2
	.comm	_RME96_IO_CONTROL_REGISTER,8,3  ; @RME96_IO_CONTROL_REGISTER
	.comm	_RME96_RCR_LOCK,4,2             ; @RME96_RCR_LOCK
	.comm	_RME96_RCR_T_OUT,4,2            ; @RME96_RCR_T_OUT
	.comm	_RME96_RCR_VERF,4,2             ; @RME96_RCR_VERF
	.comm	_RME96_RCR_BITPOS_F0,4,2        ; @RME96_RCR_BITPOS_F0
	.comm	_RME96_RCR_BITPOS_F1,4,2        ; @RME96_RCR_BITPOS_F1
	.comm	_RME96_RCR_BITPOS_F2,4,2        ; @RME96_RCR_BITPOS_F2
	.no_dead_strip	_snd_rme96_capture_getrate
	.p2align	2                               ; @switch.table.snd_rme96_capture_getrate
l_switch.table.snd_rme96_capture_getrate:
	.long	32000                           ; 0x7d00
	.long	44100                           ; 0xac44
	.long	48000                           ; 0xbb80

.subsections_via_symbols
