	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cx88_sram_channel_setup        ## -- Begin function cx88_sram_channel_setup
	.p2align	4, 0x90
_cx88_sram_channel_setup:               ## @cx88_sram_channel_setup
	.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, %rbx
	addl	$7, %edx
	movl	%edx, -56(%rbp)                 ## 4-byte Spill
	movl	%edx, %esi
	andl	$-8, %esi
	movl	(%rbx), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	4(%rbx), %eax
	xorl	%edx, %edx
	movl	%esi, -48(%rbp)                 ## 4-byte Spill
	divl	%esi
	xorl	%r12d, %r12d
	cmpl	$6, %eax
	movl	$6, %r15d
	cmovbl	%eax, %r15d
	movl	%ecx, -52(%rbp)                 ## 4-byte Spill
	xorl	%edi, %edi
	cmpl	$2, %r15d
	setb	%dil
	callq	_WARN_ON
	testl	%r15d, %r15d
	je	LBB0_3
## %bb.1:
	movl	-44(%rbp), %r13d                ## 4-byte Reload
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	8(%rbx), %esi
	addl	%r12d, %esi
	movl	%r13d, %edi
	callq	_cx_write
	incl	%r14d
	addl	$16, %r13d
	addl	-48(%rbp), %r12d                ## 4-byte Folded Reload
	cmpl	%r15d, %r14d
	jne	LBB0_2
LBB0_3:
	movl	12(%rbx), %edi
	movl	-52(%rbp), %esi                 ## 4-byte Reload
	callq	_cx_write
	movl	12(%rbx), %edi
	addl	$4, %edi
	movl	-44(%rbp), %r14d                ## 4-byte Reload
	movl	%r14d, %esi
	callq	_cx_write
	movl	12(%rbx), %edi
	addl	$8, %edi
	leal	(%r15,%r15), %r13d
	movl	%r13d, %esi
	callq	_cx_write
	movl	12(%rbx), %edi
	movl	16(%rbx), %esi
	addl	$12, %edi
	callq	_cx_write
	movl	12(%rbx), %edi
	addl	$16, %edi
	movl	$16, %esi
	callq	_cx_write
	movl	12(%rbx), %edi
	addl	$20, %edi
	xorl	%esi, %esi
	callq	_cx_write
	movl	12(%rbx), %edi
	addl	$24, %edi
	xorl	%esi, %esi
	callq	_cx_write
	movl	12(%rbx), %edi
	addl	$28, %edi
	xorl	%esi, %esi
	callq	_cx_write
	movl	12(%rbx), %edi
	addl	$32, %edi
	xorl	%esi, %esi
	callq	_cx_write
	movl	12(%rbx), %edi
	addl	$36, %edi
	xorl	%esi, %esi
	callq	_cx_write
	movl	12(%rbx), %edi
	addl	$40, %edi
	xorl	%esi, %esi
	callq	_cx_write
	movl	12(%rbx), %edi
	addl	$44, %edi
	xorl	%esi, %esi
	callq	_cx_write
	movl	12(%rbx), %edi
	addl	$48, %edi
	xorl	%esi, %esi
	callq	_cx_write
	movl	12(%rbx), %edi
	addl	$52, %edi
	xorl	%esi, %esi
	callq	_cx_write
	movl	12(%rbx), %edi
	addl	$56, %edi
	xorl	%esi, %esi
	callq	_cx_write
	movl	12(%rbx), %edi
	addl	$60, %edi
	xorl	%esi, %esi
	callq	_cx_write
	movl	8(%rbx), %esi
	movl	20(%rbx), %edi
	callq	_cx_write
	movl	24(%rbx), %edi
	movl	%r14d, %esi
	callq	_cx_write
	movl	28(%rbx), %edi
	movl	-56(%rbp), %esi                 ## 4-byte Reload
	shrl	$3, %esi
	decl	%esi
	callq	_cx_write
	movl	32(%rbx), %edi
	movl	%r13d, %esi
	callq	_cx_write
	movl	36(%rbx), %edx
	leaq	L_.str(%rip), %rsi
	movl	$2, %edi
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	movl	%r15d, %r8d
	callq	_dprintk
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"sram setup %s: bpl=%d lines=%d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cx88_sram_channel_setup        ; -- Begin function cx88_sram_channel_setup
	.p2align	2
_cx88_sram_channel_setup:               ; @cx88_sram_channel_setup
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x23, x3
	mov	x20, x1
	add	w24, w2, #7
	and	w19, w24, #0xfffffff8
	ldp	w22, w8, [x1]
	udiv	w8, w8, w19
	mov	w9, #6
	cmp	w8, #6
	csel	w21, w8, w9, lo
	cmp	w21, #2
	cset	w0, lo
	bl	_WARN_ON
	cbz	w21, LBB0_7
; %bb.1:
	ldr	w1, [x20, #8]
	mov	x0, x22
	bl	_cx_write
	cmp	w21, #1
	b.eq	LBB0_7
; %bb.2:
	add	w0, w22, #16
	ldr	w8, [x20, #8]
	add	w1, w8, w19
	bl	_cx_write
	cmp	w21, #2
	b.eq	LBB0_7
; %bb.3:
	add	w0, w22, #32
	ldr	w8, [x20, #8]
	add	w1, w8, w19, lsl #1
	bl	_cx_write
	cmp	w21, #3
	b.eq	LBB0_7
; %bb.4:
	add	w0, w22, #48
	ldr	w8, [x20, #8]
	add	w9, w19, w19, lsl #1
	add	w1, w8, w9
	bl	_cx_write
	cmp	w21, #4
	b.eq	LBB0_7
; %bb.5:
	add	w0, w22, #64
	ldr	w8, [x20, #8]
	add	w1, w8, w19, lsl #2
	bl	_cx_write
	cmp	w21, #5
	b.eq	LBB0_7
; %bb.6:
	add	w0, w22, #80
	ldr	w8, [x20, #8]
	add	w9, w19, w19, lsl #2
	add	w1, w8, w9
	bl	_cx_write
LBB0_7:
	ldr	w0, [x20, #12]
	mov	x1, x23
	bl	_cx_write
	ldr	w8, [x20, #12]
	add	w0, w8, #4
	mov	x1, x22
	bl	_cx_write
	ldr	w8, [x20, #12]
	add	w0, w8, #8
	lsl	w23, w21, #1
	mov	x1, x23
	bl	_cx_write
	ldp	w8, w1, [x20, #12]
	add	w0, w8, #12
	bl	_cx_write
	ldr	w8, [x20, #12]
	add	w0, w8, #16
	mov	w1, #16
	bl	_cx_write
	ldr	w8, [x20, #12]
	add	w0, w8, #20
	mov	w1, #0
	bl	_cx_write
	ldr	w8, [x20, #12]
	add	w0, w8, #24
	mov	w1, #0
	bl	_cx_write
	ldr	w8, [x20, #12]
	add	w0, w8, #28
	mov	w1, #0
	bl	_cx_write
	ldr	w8, [x20, #12]
	add	w0, w8, #32
	mov	w1, #0
	bl	_cx_write
	ldr	w8, [x20, #12]
	add	w0, w8, #36
	mov	w1, #0
	bl	_cx_write
	ldr	w8, [x20, #12]
	add	w0, w8, #40
	mov	w1, #0
	bl	_cx_write
	ldr	w8, [x20, #12]
	add	w0, w8, #44
	mov	w1, #0
	bl	_cx_write
	ldr	w8, [x20, #12]
	add	w0, w8, #48
	mov	w1, #0
	bl	_cx_write
	ldr	w8, [x20, #12]
	add	w0, w8, #52
	mov	w1, #0
	bl	_cx_write
	ldr	w8, [x20, #12]
	add	w0, w8, #56
	mov	w1, #0
	bl	_cx_write
	ldr	w8, [x20, #12]
	add	w0, w8, #60
	mov	w1, #0
	bl	_cx_write
	ldr	w0, [x20, #20]
	ldr	w1, [x20, #8]
	bl	_cx_write
	ldr	w0, [x20, #24]
	mov	x1, x22
	bl	_cx_write
	ldr	w0, [x20, #28]
	lsr	w8, w24, #3
	sub	w1, w8, #1
	bl	_cx_write
	ldr	w0, [x20, #32]
	mov	x1, x23
	bl	_cx_write
	ldr	w2, [x20, #36]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #2
	mov	x3, x19
	mov	x4, x21
	bl	_dprintk
	mov	w0, #0
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"sram setup %s: bpl=%d lines=%d\n"

.subsections_via_symbols
