	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cs4215_open
_cs4215_open:                           ## @cs4215_open
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	_D_MM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	16(%rbx), %edx
	movl	20(%rbx), %ecx
	leaq	L_.str(%rip), %rsi
	callq	_dprintk
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_cs4215_setdata
	movl	$125, %edi
	callq	_udelay
	movq	%rbx, %rdi
	callq	_spin_lock_irqsave
	movq	_REG0@GOTPCREL(%rip), %r15
	movq	(%r15), %rdi
	addq	8(%rbx), %rdi
	callq	_sbus_readl
	movq	_D_C@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	notl	%edi
	andl	%eax, %edi
	movq	(%r15), %rsi
	addq	8(%rbx), %rsi
	callq	_sbus_writel
	movq	_D_ENPIO@GOTPCREL(%rip), %rax
	movq	_D_PIO1@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	orl	(%rax), %edi
	movq	_D_PIO3@GOTPCREL(%rip), %rax
	orl	(%rax), %edi
	cmpq	$0, 32(%rbx)
	jne	LBB0_1
## %bb.2:
	movq	_D_PIO2@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_D_PIO0@GOTPCREL(%rip), %rax
LBB0_3:
	orl	(%rax), %edi
	movq	_REG2@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	8(%rbx), %rsi
	callq	_sbus_writel
	movq	_CHIslave@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$128, %edx
	callq	_reset_chi
	movl	20(%rbx), %r14d
	imull	16(%rbx), %r14d
	movq	24(%rbx), %r9
	movq	%rbx, %rdi
	movl	$4, %esi
	movl	$16, %edx
	movl	$16, %ecx
	movl	%r14d, %r8d
	callq	_link_time_slot
	movq	24(%rbx), %r9
	addq	$32, %r9
	movq	%rbx, %rdi
	movl	$20, %esi
	movl	$4, %edx
	movl	$16, %ecx
	movl	$32, %r8d
	callq	_link_time_slot
	movq	24(%rbx), %r9
	movq	%rbx, %rdi
	movl	$6, %esi
	movl	$16, %edx
	movl	$16, %ecx
	movl	%r14d, %r8d
	callq	_link_time_slot
	movq	24(%rbx), %r9
	addq	$40, %r9
	movq	%rbx, %rdi
	movl	$21, %esi
	movl	$6, %edx
	movl	$16, %ecx
	movl	$16, %r8d
	callq	_link_time_slot
	movq	(%r15), %rdi
	addq	8(%rbx), %rdi
	callq	_sbus_readl
	orl	(%r12), %eax
	movq	(%r15), %rsi
	addq	8(%rbx), %rsi
	movl	%eax, %edi
	callq	_sbus_writel
	movq	%rbx, %rdi
	callq	_spin_unlock_irqrestore
	movq	%rbx, %rdi
	xorl	%esi, %esi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_cs4215_setdata                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_D_MM,4,2                       ## @D_MM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cs4215_open: %d channels, %d bits\n"

	.comm	_REG0,8,3                       ## @REG0
	.comm	_D_C,4,2                        ## @D_C
	.comm	_D_ENPIO,4,2                    ## @D_ENPIO
	.comm	_D_PIO1,4,2                     ## @D_PIO1
	.comm	_D_PIO3,4,2                     ## @D_PIO3
	.comm	_D_PIO0,4,2                     ## @D_PIO0
	.comm	_D_PIO2,4,2                     ## @D_PIO2
	.comm	_REG2,8,3                       ## @REG2
	.comm	_CHIslave,4,2                   ## @CHIslave
	.no_dead_strip	_cs4215_open
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cs4215_open
_cs4215_open:                           ; @cs4215_open
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, _D_MM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _D_MM@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	ldp	w2, w3, [x19, #16]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dprintk
	mov	x0, x19
	mov	w1, #1
	bl	_cs4215_setdata
	mov	w0, #125
	bl	_udelay
	mov	x0, x19
	bl	_spin_lock_irqsave
	ldr	x8, [x19, #8]
Lloh5:
	adrp	x21, _REG0@GOTPAGE
Lloh6:
	ldr	x21, [x21, _REG0@GOTPAGEOFF]
	ldr	x9, [x21]
	add	x0, x9, x8
	bl	_sbus_readl
Lloh7:
	adrp	x22, _D_C@GOTPAGE
Lloh8:
	ldr	x22, [x22, _D_C@GOTPAGEOFF]
	ldr	w8, [x22]
	bic	w0, w0, w8
	ldr	x8, [x19, #8]
	ldr	x9, [x21]
	add	x1, x9, x8
	bl	_sbus_writel
Lloh9:
	adrp	x8, _D_ENPIO@GOTPAGE
Lloh10:
	ldr	x8, [x8, _D_ENPIO@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
Lloh12:
	adrp	x9, _D_PIO1@GOTPAGE
Lloh13:
	ldr	x9, [x9, _D_PIO1@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh15:
	adrp	x9, _D_PIO3@GOTPAGE
Lloh16:
	ldr	x9, [x9, _D_PIO3@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh18:
	adrp	x9, _D_PIO0@GOTPAGE
Lloh19:
	ldr	x9, [x9, _D_PIO0@GOTPAGEOFF]
	ldr	x10, [x19, #32]
Lloh20:
	adrp	x11, _D_PIO2@GOTPAGE
Lloh21:
	ldr	x11, [x11, _D_PIO2@GOTPAGEOFF]
	cmp	x10, #0
	csel	x9, x11, x9, eq
	ldr	w9, [x9]
	orr	w0, w8, w9
	ldr	x8, [x19, #8]
Lloh22:
	adrp	x9, _REG2@GOTPAGE
Lloh23:
	ldr	x9, [x9, _REG2@GOTPAGEOFF]
Lloh24:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_sbus_writel
Lloh25:
	adrp	x8, _CHIslave@GOTPAGE
Lloh26:
	ldr	x8, [x8, _CHIslave@GOTPAGEOFF]
Lloh27:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #128
	bl	_reset_chi
	ldp	w8, w9, [x19, #16]
	mul	w20, w9, w8
	ldr	x5, [x19, #24]
	mov	x0, x19
	mov	w1, #4
	mov	w2, #16
	mov	w3, #16
	mov	x4, x20
	bl	_link_time_slot
	ldr	x8, [x19, #24]
	add	x5, x8, #32
	mov	x0, x19
	mov	w1, #20
	mov	w2, #4
	mov	w3, #16
	mov	w4, #32
	bl	_link_time_slot
	ldr	x5, [x19, #24]
	mov	x0, x19
	mov	w1, #6
	mov	w2, #16
	mov	w3, #16
	mov	x4, x20
	bl	_link_time_slot
	ldr	x8, [x19, #24]
	add	x5, x8, #40
	mov	x0, x19
	mov	w1, #21
	mov	w2, #6
	mov	w3, #16
	mov	w4, #16
	bl	_link_time_slot
	ldr	x8, [x19, #8]
	ldr	x9, [x21]
	add	x0, x9, x8
	bl	_sbus_readl
	ldr	w8, [x22]
	orr	w0, w8, w0
	ldr	x8, [x19, #8]
	ldr	x9, [x21]
	add	x1, x9, x8
	bl	_sbus_writel
	mov	x0, x19
	bl	_spin_unlock_irqrestore
	mov	x0, x19
	mov	w1, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_cs4215_setdata
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_D_MM,4,2                       ; @D_MM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cs4215_open: %d channels, %d bits\n"

	.comm	_REG0,8,3                       ; @REG0
	.comm	_D_C,4,2                        ; @D_C
	.comm	_D_ENPIO,4,2                    ; @D_ENPIO
	.comm	_D_PIO1,4,2                     ; @D_PIO1
	.comm	_D_PIO3,4,2                     ; @D_PIO3
	.comm	_D_PIO0,4,2                     ; @D_PIO0
	.comm	_D_PIO2,4,2                     ; @D_PIO2
	.comm	_REG2,8,3                       ; @REG2
	.comm	_CHIslave,4,2                   ; @CHIslave
	.no_dead_strip	_cs4215_open
.subsections_via_symbols
