	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function read_rds_samples
_read_rds_samples:                      ## @read_rds_samples
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movq	_cx88_sram_channels@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
	movq	_SRAM_CH27@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	leaq	(%rax,%rax,2), %r12
	movq	_AUD_RDS_LINES@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movl	(%r13,%r12,4), %eax
	movl	4(%r13,%r12,4), %edi
	cltd
	idivl	%r14d
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	shrl	$2, %eax
	decl	%r14d
	imull	%eax, %r14d
	callq	_cx_read
	movq	%rax, %r15
	movl	%r15d, %ebx
	movq	%r13, -64(%rbp)                 ## 8-byte Spill
	subl	8(%r13,%r12,4), %ebx
	movq	_MO_AUD_INTSTAT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cx_read
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	movl	%r15d, %edx
	movl	%ebx, %ecx
	movl	%r14d, %r8d
	movq	%rax, %r9
	xorl	%eax, %eax
	callq	_dprintk
	leal	(,%r14,8), %edi
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_kmalloc
	movq	%rax, %r15
	testq	%rax, %rax
	je	LBB0_10
## %bb.1:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	%r14d, (%rax)
	testl	%r14d, %r14d
	je	LBB0_7
## %bb.2:
	movl	-52(%rbp), %r13d                ## 4-byte Reload
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rax,%r12,4), %r15
	addq	$8, %r15
	addl	%r13d, %ebx
	movl	%r14d, %r12d
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	_AUD_RDS_LINES@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	imull	%r13d, %ecx
	movl	%ebx, %eax
	xorl	%edx, %edx
	divl	%ecx
	movl	(%r15), %edi
	movl	%edx, %ebx
	addl	%edx, %edi
	callq	_cx_read
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, (%rcx,%r14,8)
	addl	$4, %ebx
	incq	%r14
	cmpq	%r14, %r12
	jne	LBB0_3
## %bb.4:
	movq	_dsp_debug@GOTPCREL(%rip), %rax
	cmpl	$1, (%rax)
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	jle	LBB0_10
## %bb.5:
	leaq	L_.str.1(%rip), %rsi
	movl	$2, %edi
	xorl	%eax, %eax
	callq	_dprintk
	leaq	L_.str.2(%rip), %r14
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r15,%rbx,8), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_printk
	incq	%rbx
	cmpq	%rbx, %r12
	jne	LBB0_6
	jmp	LBB0_9
LBB0_7:
	movq	_dsp_debug@GOTPCREL(%rip), %rax
	cmpl	$2, (%rax)
	jl	LBB0_10
## %bb.8:
	leaq	L_.str.1(%rip), %rsi
	movl	$2, %edi
	xorl	%eax, %eax
	callq	_dprintk
LBB0_9:
	leaq	L_.str.3(%rip), %rdi
	xorl	%eax, %eax
	callq	_printk
LBB0_10:
	movq	%r15, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_cx88_sram_channels,8,3         ## @cx88_sram_channels
	.comm	_SRAM_CH27,8,3                  ## @SRAM_CH27
	.comm	_AUD_RDS_LINES,4,2              ## @AUD_RDS_LINES
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"read RDS samples: current_address=%08x (offset=%08x), sample_count=%d, aud_intstat=%08x\n"

	.comm	_MO_AUD_INTSTAT,4,2             ## @MO_AUD_INTSTAT
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_dsp_debug,4,2                  ## @dsp_debug
L_.str.1:                               ## @.str.1
	.asciz	"RDS samples dump: "

L_.str.2:                               ## @.str.2
	.asciz	"%hd "

L_.str.3:                               ## @.str.3
	.asciz	".\n"

	.no_dead_strip	_read_rds_samples
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function read_rds_samples
_read_rds_samples:                      ; @read_rds_samples
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x1
Lloh0:
	adrp	x8, _cx88_sram_channels@GOTPAGE
Lloh1:
	ldr	x8, [x8, _cx88_sram_channels@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _SRAM_CH27@GOTPAGE
Lloh4:
	ldr	x9, [x9, _SRAM_CH27@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	mov	w10, #12
	madd	x22, x9, x10, x8
Lloh6:
	adrp	x23, _AUD_RDS_LINES@GOTPAGE
Lloh7:
	ldr	x23, [x23, _AUD_RDS_LINES@GOTPAGEOFF]
	ldr	w8, [x23]
	ldp	w9, w0, [x22]
	sdiv	w24, w9, w8
	lsr	w9, w24, #2
	sub	w8, w8, #1
	mul	w21, w9, w8
	bl	_cx_read
	mov	x19, x0
	ldr	w8, [x22, #8]!
	sub	w25, w19, w8
Lloh8:
	adrp	x8, _MO_AUD_INTSTAT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MO_AUD_INTSTAT@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	bl	_cx_read
	mov	x8, x21
	stp	x8, x0, [sp, #16]
	stp	x19, x25, [sp]
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	bl	_dprintk
	lsl	w0, w21, #3
Lloh13:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh14:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	bl	_kmalloc
	mov	x19, x0
	cbz	x0, LBB0_10
; %bb.1:
	str	w21, [x20]
	cbz	w21, LBB0_7
; %bb.2:
	add	w8, w25, w24
	mov	x20, x21
	mov	x25, x19
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w9, [x23]
	mul	w9, w9, w24
	udiv	w10, w8, w9
	msub	w26, w10, w9, w8
	ldr	w8, [x22]
	add	w0, w8, w26
	bl	_cx_read
	str	x0, [x25], #8
	add	w8, w26, #4
	subs	x20, x20, #1
	b.ne	LBB0_3
; %bb.4:
Lloh16:
	adrp	x8, _dsp_debug@GOTPAGE
Lloh17:
	ldr	x8, [x8, _dsp_debug@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
	cmp	w8, #1
	b.le	LBB0_10
; %bb.5:
Lloh19:
	adrp	x1, l_.str.1@PAGE
Lloh20:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #2
	bl	_dprintk
Lloh21:
	adrp	x20, l_.str.2@PAGE
Lloh22:
	add	x20, x20, l_.str.2@PAGEOFF
	mov	x22, x19
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x22], #8
	str	x8, [sp]
	mov	x0, x20
	bl	_printk
	subs	x21, x21, #1
	b.ne	LBB0_6
	b	LBB0_9
LBB0_7:
Lloh23:
	adrp	x8, _dsp_debug@GOTPAGE
Lloh24:
	ldr	x8, [x8, _dsp_debug@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	cmp	w8, #2
	b.lt	LBB0_10
; %bb.8:
Lloh26:
	adrp	x1, l_.str.1@PAGE
Lloh27:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #2
	bl	_dprintk
LBB0_9:
Lloh28:
	adrp	x0, l_.str.3@PAGE
Lloh29:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_printk
LBB0_10:
	mov	x0, x19
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh28, Lloh29
	.cfi_endproc
                                        ; -- End function
	.comm	_cx88_sram_channels,8,3         ; @cx88_sram_channels
	.comm	_SRAM_CH27,8,3                  ; @SRAM_CH27
	.comm	_AUD_RDS_LINES,4,2              ; @AUD_RDS_LINES
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"read RDS samples: current_address=%08x (offset=%08x), sample_count=%d, aud_intstat=%08x\n"

	.comm	_MO_AUD_INTSTAT,4,2             ; @MO_AUD_INTSTAT
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_dsp_debug,4,2                  ; @dsp_debug
l_.str.1:                               ; @.str.1
	.asciz	"RDS samples dump: "

l_.str.2:                               ; @.str.2
	.asciz	"%hd "

l_.str.3:                               ; @.str.3
	.asciz	".\n"

	.no_dead_strip	_read_rds_samples
.subsections_via_symbols
