	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cqspi_controller_init
_cqspi_controller_init:                 ## @cqspi_controller_init
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	xorl	%esi, %esi
	callq	_cqspi_controller_enable
	movq	_CQSPI_REG_REMAP@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	16(%rbx), %rsi
	xorl	%edi, %edi
	callq	_writel
	movq	_CQSPI_REG_IRQMASK@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	16(%rbx), %rsi
	xorl	%edi, %edi
	callq	_writel
	movl	(%rbx), %eax
	movl	%eax, %edi
	shrl	$31, %edi
	addl	%eax, %edi
	sarl	%edi
	movq	_CQSPI_REG_SRAMPARTITION@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	16(%rbx), %rsi
	callq	_writel
	movl	4(%rbx), %edi
	movq	_CQSPI_REG_INDIRECTTRIGGER@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	16(%rbx), %rsi
	callq	_writel
	movl	8(%rbx), %eax
	imull	(%rbx), %eax
	movl	%eax, %edi
	shrl	$31, %edi
	addl	%eax, %edi
	sarl	%edi
	movq	_CQSPI_REG_INDIRECTRDWATERMARK@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	16(%rbx), %rsi
	callq	_writel
	movl	8(%rbx), %eax
	imull	(%rbx), %eax
	leal	7(%rax), %edi
	testl	%eax, %eax
	cmovnsl	%eax, %edi
	sarl	$3, %edi
	movq	_CQSPI_REG_INDIRECTWRWATERMARK@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	16(%rbx), %rsi
	callq	_writel
	movq	_CQSPI_REG_CONFIG@GOTPCREL(%rip), %r14
	movq	(%r14), %rdi
	addq	16(%rbx), %rdi
	callq	_readl
	movq	_CQSPI_REG_CONFIG_ENB_DIR_ACC_CTRL@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	(%r14), %rsi
	addq	16(%rbx), %rsi
	movl	%eax, %edi
	callq	_writel
	movq	%rbx, %rdi
	movl	$1, %esi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_cqspi_controller_enable        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_CQSPI_REG_REMAP,8,3            ## @CQSPI_REG_REMAP
	.comm	_CQSPI_REG_IRQMASK,8,3          ## @CQSPI_REG_IRQMASK
	.comm	_CQSPI_REG_SRAMPARTITION,8,3    ## @CQSPI_REG_SRAMPARTITION
	.comm	_CQSPI_REG_INDIRECTTRIGGER,8,3  ## @CQSPI_REG_INDIRECTTRIGGER
	.comm	_CQSPI_REG_INDIRECTRDWATERMARK,8,3 ## @CQSPI_REG_INDIRECTRDWATERMARK
	.comm	_CQSPI_REG_INDIRECTWRWATERMARK,8,3 ## @CQSPI_REG_INDIRECTWRWATERMARK
	.comm	_CQSPI_REG_CONFIG,8,3           ## @CQSPI_REG_CONFIG
	.comm	_CQSPI_REG_CONFIG_ENB_DIR_ACC_CTRL,4,2 ## @CQSPI_REG_CONFIG_ENB_DIR_ACC_CTRL
	.no_dead_strip	_cqspi_controller_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cqspi_controller_init
_cqspi_controller_init:                 ; @cqspi_controller_init
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	mov	w1, #0
	bl	_cqspi_controller_enable
	ldr	x8, [x19, #16]
Lloh0:
	adrp	x9, _CQSPI_REG_REMAP@GOTPAGE
Lloh1:
	ldr	x9, [x9, _CQSPI_REG_REMAP@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	w0, #0
	bl	_writel
	ldr	x8, [x19, #16]
Lloh3:
	adrp	x9, _CQSPI_REG_IRQMASK@GOTPAGE
Lloh4:
	ldr	x9, [x9, _CQSPI_REG_IRQMASK@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	w0, #0
	bl	_writel
	ldr	w8, [x19]
	cmp	w8, #0
	cinc	w8, w8, lt
	asr	w0, w8, #1
	ldr	x8, [x19, #16]
Lloh6:
	adrp	x9, _CQSPI_REG_SRAMPARTITION@GOTPAGE
Lloh7:
	ldr	x9, [x9, _CQSPI_REG_SRAMPARTITION@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel
	ldr	w0, [x19, #4]
	ldr	x8, [x19, #16]
Lloh9:
	adrp	x9, _CQSPI_REG_INDIRECTTRIGGER@GOTPAGE
Lloh10:
	ldr	x9, [x9, _CQSPI_REG_INDIRECTTRIGGER@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel
	ldr	w8, [x19]
	ldr	w9, [x19, #8]
	mul	w8, w9, w8
	cmp	w8, #0
	cinc	w8, w8, lt
	asr	w0, w8, #1
	ldr	x8, [x19, #16]
Lloh12:
	adrp	x9, _CQSPI_REG_INDIRECTRDWATERMARK@GOTPAGE
Lloh13:
	ldr	x9, [x9, _CQSPI_REG_INDIRECTRDWATERMARK@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel
	ldr	w8, [x19]
	ldr	w9, [x19, #8]
	mul	w8, w9, w8
	add	w9, w8, #7
	cmp	w8, #0
	csel	w8, w9, w8, lt
	asr	w0, w8, #3
	ldr	x8, [x19, #16]
Lloh15:
	adrp	x9, _CQSPI_REG_INDIRECTWRWATERMARK@GOTPAGE
Lloh16:
	ldr	x9, [x9, _CQSPI_REG_INDIRECTWRWATERMARK@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel
	ldr	x8, [x19, #16]
Lloh18:
	adrp	x20, _CQSPI_REG_CONFIG@GOTPAGE
Lloh19:
	ldr	x20, [x20, _CQSPI_REG_CONFIG@GOTPAGEOFF]
	ldr	x9, [x20]
	add	x0, x9, x8
	bl	_readl
Lloh20:
	adrp	x8, _CQSPI_REG_CONFIG_ENB_DIR_ACC_CTRL@GOTPAGE
Lloh21:
	ldr	x8, [x8, _CQSPI_REG_CONFIG_ENB_DIR_ACC_CTRL@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	orr	w0, w8, w0
	ldr	x8, [x19, #16]
	ldr	x9, [x20]
	add	x1, x9, x8
	bl	_writel
	mov	x0, x19
	mov	w1, #1
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_cqspi_controller_enable
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_CQSPI_REG_REMAP,8,3            ; @CQSPI_REG_REMAP
	.comm	_CQSPI_REG_IRQMASK,8,3          ; @CQSPI_REG_IRQMASK
	.comm	_CQSPI_REG_SRAMPARTITION,8,3    ; @CQSPI_REG_SRAMPARTITION
	.comm	_CQSPI_REG_INDIRECTTRIGGER,8,3  ; @CQSPI_REG_INDIRECTTRIGGER
	.comm	_CQSPI_REG_INDIRECTRDWATERMARK,8,3 ; @CQSPI_REG_INDIRECTRDWATERMARK
	.comm	_CQSPI_REG_INDIRECTWRWATERMARK,8,3 ; @CQSPI_REG_INDIRECTWRWATERMARK
	.comm	_CQSPI_REG_CONFIG,8,3           ; @CQSPI_REG_CONFIG
	.comm	_CQSPI_REG_CONFIG_ENB_DIR_ACC_CTRL,4,2 ; @CQSPI_REG_CONFIG_ENB_DIR_ACC_CTRL
	.no_dead_strip	_cqspi_controller_init
.subsections_via_symbols
