	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_rme96_playback_getrate
_snd_rme96_playback_getrate:            ## @snd_rme96_playback_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	_RME96_WCR_MASTER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rdi)
	jne	LBB0_3
## %bb.1:
	movq	%rbx, %rdi
	callq	_snd_rme96_getinputtype
	movq	_RME96_INPUT_ANALOG@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_3
## %bb.2:
	leaq	-12(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_snd_rme96_capture_getrate
	testl	%eax, %eax
	jg	LBB0_5
LBB0_3:
	movl	(%rbx), %edx
	movq	_RME96_WCR_BITPOS_FREQ_0@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%esi, %esi
	btl	%eax, %edx
	setb	%sil
	movq	_RME96_WCR_BITPOS_FREQ_1@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	movl	%edx, %eax
	shrl	%cl, %eax
	andl	$1, %eax
	leal	(%rsi,%rax,2), %ecx
	decl	%ecx
	movl	$-1, %eax
	cmpl	$2, %ecx
	ja	LBB0_5
## %bb.4:
	movslq	%ecx, %rax
	leaq	l_switch.table.snd_rme96_playback_getrate(%rip), %rcx
	movl	(%rcx,%rax,4), %eax
	movq	_RME96_WCR_DS@GOTPCREL(%rip), %rcx
	testl	%edx, (%rcx)
	setne	%cl
	shll	%cl, %eax
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RME96_WCR_MASTER,4,2           ## @RME96_WCR_MASTER
	.comm	_RME96_INPUT_ANALOG,8,3         ## @RME96_INPUT_ANALOG
	.comm	_RME96_WCR_BITPOS_FREQ_0,4,2    ## @RME96_WCR_BITPOS_FREQ_0
	.comm	_RME96_WCR_BITPOS_FREQ_1,4,2    ## @RME96_WCR_BITPOS_FREQ_1
	.comm	_RME96_WCR_DS,4,2               ## @RME96_WCR_DS
	.no_dead_strip	_snd_rme96_playback_getrate
	.section	__TEXT,__const
	.p2align	2                               ## @switch.table.snd_rme96_playback_getrate
l_switch.table.snd_rme96_playback_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_playback_getrate
_snd_rme96_playback_getrate:            ; @snd_rme96_playback_getrate
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	mov	x19, x0
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _RME96_WCR_MASTER@GOTPAGE
Lloh1:
	ldr	x9, [x9, _RME96_WCR_MASTER@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_3
; %bb.1:
	mov	x0, x19
	bl	_snd_rme96_getinputtype
Lloh3:
	adrp	x8, _RME96_INPUT_ANALOG@GOTPAGE
Lloh4:
	ldr	x8, [x8, _RME96_INPUT_ANALOG@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_3
; %bb.2:
	add	x1, sp, #12
	mov	x0, x19
	bl	_snd_rme96_capture_getrate
	cmp	w0, #0
	b.gt	LBB0_6
LBB0_3:
	ldr	w8, [x19]
Lloh6:
	adrp	x9, _RME96_WCR_BITPOS_FREQ_0@GOTPAGE
Lloh7:
	ldr	x9, [x9, _RME96_WCR_BITPOS_FREQ_0@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	lsr	w9, w8, w9
Lloh9:
	adrp	x10, _RME96_WCR_BITPOS_FREQ_1@GOTPAGE
Lloh10:
	ldr	x10, [x10, _RME96_WCR_BITPOS_FREQ_1@GOTPAGEOFF]
	and	w9, w9, #0x1
Lloh11:
	ldr	w10, [x10]
	lsr	w10, w8, w10
	bfi	w9, w10, #1, #1
	sub	x9, x9, #1
	cmp	w9, #2
	b.hi	LBB0_5
; %bb.4:
Lloh12:
	adrp	x10, l_switch.table.snd_rme96_playback_getrate@PAGE
Lloh13:
	add	x10, x10, l_switch.table.snd_rme96_playback_getrate@PAGEOFF
	ldr	w9, [x10, x9, lsl #2]
Lloh14:
	adrp	x10, _RME96_WCR_DS@GOTPAGE
Lloh15:
	ldr	x10, [x10, _RME96_WCR_DS@GOTPAGEOFF]
Lloh16:
	ldr	w10, [x10]
	tst	w10, w8
	cset	w8, ne
	lsl	w0, w9, w8
	b	LBB0_6
LBB0_5:
	mov	w0, #-1
LBB0_6:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_RME96_WCR_MASTER,4,2           ; @RME96_WCR_MASTER
	.comm	_RME96_INPUT_ANALOG,8,3         ; @RME96_INPUT_ANALOG
	.comm	_RME96_WCR_BITPOS_FREQ_0,4,2    ; @RME96_WCR_BITPOS_FREQ_0
	.comm	_RME96_WCR_BITPOS_FREQ_1,4,2    ; @RME96_WCR_BITPOS_FREQ_1
	.comm	_RME96_WCR_DS,4,2               ; @RME96_WCR_DS
	.no_dead_strip	_snd_rme96_playback_getrate
	.section	__TEXT,__const
	.p2align	2                               ; @switch.table.snd_rme96_playback_getrate
l_switch.table.snd_rme96_playback_getrate:
	.long	32000                           ; 0x7d00
	.long	44100                           ; 0xac44
	.long	48000                           ; 0xbb80

.subsections_via_symbols
