	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sd_get_streamparm
_sd_get_streamparm:                     ## @sd_get_streamparm
	.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
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movl	$1, (%rsi)
	callq	_get_fr_idx
                                        ## kill: def $eax killed $eax def $rax
	testb	$-128, %al
	jne	LBB0_1
## %bb.4:
	movq	_rates@GOTPCREL(%rip), %rcx
	jmp	LBB0_5
LBB0_1:
	movq	(%rbx), %rcx
	movq	_BRIDGE_TP6800@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_3
## %bb.2:
	movq	_rates@GOTPCREL(%rip), %rcx
	andl	$7, %eax
LBB0_5:
	movl	$6, %edx
	subl	%eax, %edx
	movslq	%edx, %rax
	jmp	LBB0_6
LBB0_3:
	movq	_rates_6810@GOTPCREL(%rip), %rcx
	notl	%eax
	andl	$7, %eax
LBB0_6:
	shlq	$2, %rax
	addq	(%rcx), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%r14)
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BRIDGE_TP6800,8,3              ## @BRIDGE_TP6800
	.comm	_rates,8,3                      ## @rates
	.comm	_rates_6810,8,3                 ## @rates_6810
	.no_dead_strip	_sd_get_streamparm
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sd_get_streamparm
_sd_get_streamparm:                     ; @sd_get_streamparm
	.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
	mov	x19, x1
	mov	x20, x0
	mov	w8, #1
	str	w8, [x1]
	bl	_get_fr_idx
                                        ; kill: def $w0 killed $w0 def $x0
	tbnz	w0, #7, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _rates@GOTPAGE
Lloh1:
	ldr	x8, [x8, _rates@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	mov	w9, #6
	sub	x9, x9, w0, sxtw
	b	LBB0_4
LBB0_2:
	ldr	x8, [x20]
Lloh3:
	adrp	x9, _BRIDGE_TP6800@GOTPAGE
Lloh4:
	ldr	x9, [x9, _BRIDGE_TP6800@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.3:
Lloh6:
	adrp	x8, _rates@GOTPAGE
Lloh7:
	ldr	x8, [x8, _rates@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	and	x9, x0, #0x7
	mov	w10, #6
	sub	x9, x10, x9
LBB0_4:
	add	x8, x8, x9, lsl #2
	b	LBB0_6
LBB0_5:
Lloh9:
	adrp	x8, _rates_6810@GOTPAGE
Lloh10:
	ldr	x8, [x8, _rates_6810@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	mvn	w9, w0
	and	w9, w9, #0x7
	add	x8, x8, w9, uxtw #2
LBB0_6:
	ldr	w8, [x8]
	str	w8, [x19, #4]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_BRIDGE_TP6800,8,3              ; @BRIDGE_TP6800
	.comm	_rates,8,3                      ; @rates
	.comm	_rates_6810,8,3                 ; @rates_6810
	.no_dead_strip	_sd_get_streamparm
.subsections_via_symbols
