	.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), %r15
	movq	_AUD_RDS_LINES@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movl	(%r13,%r15,4), %eax
	movl	4(%r13,%r15,4), %edi
	cltd
	idivl	%r14d
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	shrl	$2, %eax
	decl	%r14d
	imull	%eax, %r14d
	callq	_cx_read
	movq	%rax, %r12
	movl	%r12d, %ebx
	movq	%r13, -64(%rbp)                 ## 8-byte Spill
	subl	8(%r13,%r15,4), %ebx
	movq	_MO_AUD_INTSTAT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cx_read
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	movl	%r12d, %edx
	movl	%ebx, %ecx
	movl	%r14d, %r8d
	movq	%rax, %r9
	xorl	%eax, %eax
	callq	_dprintk
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r14d, %edi
	movl	$8, %esi
	callq	_kmalloc_array
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	%r14d, (%rcx)
	movl	%r14d, -52(%rbp)                ## 4-byte Spill
	testl	%r14d, %r14d
	movq	_AUD_RDS_LINES@GOTPCREL(%rip), %r12
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	je	LBB0_4
## %bb.2:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	leaq	(%rax,%r15,4), %r13
	addq	$8, %r13
	addl	-56(%rbp), %ebx                 ## 4-byte Folded Reload
	movl	-52(%rbp), %r14d                ## 4-byte Reload
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r12), %ecx
	imull	-56(%rbp), %ecx                 ## 4-byte Folded Reload
	movl	%ebx, %eax
	xorl	%edx, %edx
	divl	%ecx
	movl	(%r13), %edi
	movl	%edx, %ebx
	addl	%edx, %edi
	callq	_cx_read
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, (%rcx,%r15,8)
	addl	$4, %ebx
	incq	%r15
	cmpq	%r15, %r14
	jne	LBB0_3
LBB0_4:
	leaq	L_.str.1(%rip), %rsi
	movl	$2, %edi
	movl	-52(%rbp), %edx                 ## 4-byte Reload
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
                                        ## kill: def $ecx killed $ecx killed $rcx
	xorl	%eax, %eax
	callq	_dprintk
	movq	-48(%rbp), %rax                 ## 8-byte Reload
LBB0_5:
	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
L_.str.1:                               ## @.str.1
	.asciz	"RDS samples dump: %*ph\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, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x23, x9, x10, x8
Lloh6:
	adrp	x24, _AUD_RDS_LINES@GOTPAGE
Lloh7:
	ldr	x24, [x24, _AUD_RDS_LINES@GOTPAGEOFF]
	ldr	w8, [x24]
	ldp	w9, w0, [x23]
	sdiv	w25, w9, w8
	lsr	w9, w25, #2
	sub	w8, w8, #1
	mul	w19, w9, w8
	bl	_cx_read
	mov	x21, x0
	ldr	w8, [x23, #8]!
	sub	w22, w21, 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, x19
	stp	x8, x0, [sp]
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	mov	x2, x21
	mov	x3, x22
	bl	_dprintk
Lloh13:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh14:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh15:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #8
	bl	_kmalloc_array
	mov	x21, x0
	cbz	x0, LBB0_5
; %bb.1:
	str	w19, [x20]
	cbz	w19, LBB0_4
; %bb.2:
	add	w8, w22, w25
	mov	x20, x19
	mov	x22, x21
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w9, [x24]
	mul	w9, w9, w25
	udiv	w10, w8, w9
	msub	w26, w10, w9, w8
	ldr	w8, [x23]
	add	w0, w8, w26
	bl	_cx_read
	str	x0, [x22], #8
	add	w8, w26, #4
	subs	x20, x20, #1
	b.ne	LBB0_3
LBB0_4:
Lloh16:
	adrp	x1, l_.str.1@PAGE
Lloh17:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #2
	mov	x2, x19
	mov	x3, x21
	bl	_dprintk
LBB0_5:
	mov	x0, x21
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	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 AdrpAdd	Lloh16, Lloh17
	.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
l_.str.1:                               ; @.str.1
	.asciz	"RDS samples dump: %*ph\n"

	.no_dead_strip	_read_rds_samples
.subsections_via_symbols
