	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_slot_reg
_get_slot_reg:                          ## @get_slot_reg
	.cfi_startproc
## %bb.0:
                                        ## kill: def $edx killed $edx def $rdx
	leal	-12(%rdx), %r8d
	movb	$-1, %al
	cmpw	$-9, %r8w
	jb	LBB0_8
## %bb.1:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	cmpq	$0, 16(%rdi)
	je	LBB0_3
## %bb.2:
	movq	_AC97_SPDIF@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_3:
	movl	%edx, %eax
	movq	(%rdi), %r8
	movq	_SNDRV_PCM_STREAM_PLAYBACK@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %r8
	jne	LBB0_4
## %bb.5:
	movq	_rate_reg_tables@GOTPCREL(%rip), %rdx
	movq	(%rdx), %r8
	movslq	%ecx, %rdx
	movq	8(%rdi), %rcx
	movq	(%rcx,%rdx,8), %rcx
	movzwl	%si, %esi
	movq	(%rcx,%rsi,8), %rcx
	shlq	$3, %rcx
	addq	(%r8,%rdx,8), %rcx
	jmp	LBB0_6
LBB0_4:
	movq	_rate_cregs@GOTPCREL(%rip), %rcx
LBB0_6:
	addl	$-3, %eax
	addq	(%rcx), %rax
LBB0_7:
	movb	(%rax), %al
	popq	%rbp
LBB0_8:
	movzbl	%al, %eax
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AC97_SPDIF,1,0                 ## @AC97_SPDIF
	.comm	_SNDRV_PCM_STREAM_PLAYBACK,8,3  ## @SNDRV_PCM_STREAM_PLAYBACK
	.comm	_rate_reg_tables,8,3            ## @rate_reg_tables
	.comm	_rate_cregs,8,3                 ## @rate_cregs
	.no_dead_strip	_get_slot_reg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_slot_reg
_get_slot_reg:                          ; @get_slot_reg
	.cfi_startproc
; %bb.0:
                                        ; kill: def $w3 killed $w3 def $x3
	sub	w8, w2, #12
	cmn	w8, #9
	b.hs	LBB0_2
; %bb.1:
	mov	w0, #255
	ret
LBB0_2:
	ldr	x8, [x0, #16]
	cbz	x8, LBB0_4
; %bb.3:
Lloh0:
	adrp	x8, _AC97_SPDIF@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AC97_SPDIF@GOTPAGEOFF]
	ldrb	w0, [x8]
	ret
LBB0_4:
	mov	w8, w2
	ldr	x9, [x0]
Lloh2:
	adrp	x10, _SNDRV_PCM_STREAM_PLAYBACK@GOTPAGE
Lloh3:
	ldr	x10, [x10, _SNDRV_PCM_STREAM_PLAYBACK@GOTPAGEOFF]
Lloh4:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_6
; %bb.5:
Lloh5:
	adrp	x9, _rate_reg_tables@GOTPAGE
Lloh6:
	ldr	x9, [x9, _rate_reg_tables@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	sbfiz	x10, x3, #3, #32
	ldr	x9, [x9, x10]
	ldr	x11, [x0, #8]
	ldr	x10, [x11, x10]
	ldr	x10, [x10, w1, uxtw #3]
	add	x9, x9, x10, lsl #3
	b	LBB0_7
LBB0_6:
Lloh8:
	adrp	x9, _rate_cregs@GOTPAGE
Lloh9:
	ldr	x9, [x9, _rate_cregs@GOTPAGEOFF]
LBB0_7:
	ldr	x9, [x9]
	sub	w8, w8, #3
	add	x8, x9, x8
	ldrb	w0, [x8]
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_AC97_SPDIF,1,0                 ; @AC97_SPDIF
	.comm	_SNDRV_PCM_STREAM_PLAYBACK,8,3  ; @SNDRV_PCM_STREAM_PLAYBACK
	.comm	_rate_reg_tables,8,3            ; @rate_reg_tables
	.comm	_rate_cregs,8,3                 ; @rate_cregs
	.no_dead_strip	_get_slot_reg
.subsections_via_symbols
