	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cafe_ctlr_init
_cafe_ctlr_init:                        ## @cafe_ctlr_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	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	callq	_spin_lock_irqsave
	movq	%rbx, %rdi
	movl	$12344, %esi                    ## imm = 0x3038
	movl	$8, %edx
	callq	_mcam_reg_write
	movq	%rbx, %rdi
	movl	$12636, %esi                    ## imm = 0x315C
	movl	$524296, %edx                   ## imm = 0x80008
	callq	_mcam_reg_write
	movq	_REG_GL_CSR@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	_GCSR_SRS@GOTPCREL(%rip), %rax
	movq	_GCSR_MRS@GOTPCREL(%rip), %r13
	movl	(%r13), %edx
	orl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_mcam_reg_write
	movl	(%r14), %esi
	movq	_GCSR_SRC@GOTPCREL(%rip), %r12
	movq	_GCSR_MRC@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	orl	(%r12), %edx
	movq	%rbx, %rdi
	callq	_mcam_reg_write
	movl	(%r14), %esi
	movl	(%r13), %edx
	orl	(%r12), %edx
	movq	%rbx, %rdi
	callq	_mcam_reg_write
	movq	%rbx, %rdi
	callq	_spin_unlock_irqrestore
	movl	$5, %edi
	callq	_msleep
	movq	%rbx, %rdi
	callq	_spin_lock_irqsave
	movl	(%r14), %esi
	movq	_GCSR_CCIC_EN@GOTPCREL(%rip), %rax
	movl	(%r12), %edx
	orl	(%rax), %edx
	orl	(%r15), %edx
	movq	%rbx, %rdi
	callq	_mcam_reg_write
	movq	_REG_GL_IMASK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_GIMSK_CCIC_EN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_mcam_reg_set_bit
	movq	_REG_IRQMASK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_mcam_reg_write
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock_irqrestore         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_REG_GL_CSR,4,2                 ## @REG_GL_CSR
	.comm	_GCSR_SRS,4,2                   ## @GCSR_SRS
	.comm	_GCSR_MRS,4,2                   ## @GCSR_MRS
	.comm	_GCSR_SRC,4,2                   ## @GCSR_SRC
	.comm	_GCSR_MRC,4,2                   ## @GCSR_MRC
	.comm	_GCSR_CCIC_EN,4,2               ## @GCSR_CCIC_EN
	.comm	_REG_GL_IMASK,4,2               ## @REG_GL_IMASK
	.comm	_GIMSK_CCIC_EN,4,2              ## @GIMSK_CCIC_EN
	.comm	_REG_IRQMASK,4,2                ## @REG_IRQMASK
	.no_dead_strip	_cafe_ctlr_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cafe_ctlr_init
_cafe_ctlr_init:                        ; @cafe_ctlr_init
	.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	x19, x0
	bl	_spin_lock_irqsave
	mov	x0, x19
	mov	w1, #12344
	mov	w2, #8
	bl	_mcam_reg_write
	mov	x0, x19
	mov	w1, #12636
	mov	w2, #524296
	bl	_mcam_reg_write
Lloh0:
	adrp	x20, _REG_GL_CSR@GOTPAGE
Lloh1:
	ldr	x20, [x20, _REG_GL_CSR@GOTPAGEOFF]
Lloh2:
	adrp	x8, _GCSR_SRS@GOTPAGE
Lloh3:
	ldr	x8, [x8, _GCSR_SRS@GOTPAGEOFF]
	ldr	w1, [x20]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x21, _GCSR_MRS@GOTPAGE
Lloh6:
	ldr	x21, [x21, _GCSR_MRS@GOTPAGEOFF]
	ldr	w9, [x21]
	orr	w2, w9, w8
	mov	x0, x19
	bl	_mcam_reg_write
Lloh7:
	adrp	x22, _GCSR_SRC@GOTPAGE
Lloh8:
	ldr	x22, [x22, _GCSR_SRC@GOTPAGEOFF]
	ldr	w1, [x20]
	ldr	w8, [x22]
Lloh9:
	adrp	x23, _GCSR_MRC@GOTPAGE
Lloh10:
	ldr	x23, [x23, _GCSR_MRC@GOTPAGEOFF]
	ldr	w9, [x23]
	orr	w2, w9, w8
	mov	x0, x19
	bl	_mcam_reg_write
	ldr	w1, [x20]
	ldr	w8, [x22]
	ldr	w9, [x21]
	orr	w2, w9, w8
	mov	x0, x19
	bl	_mcam_reg_write
	mov	x0, x19
	bl	_spin_unlock_irqrestore
	mov	w0, #5
	bl	_msleep
	mov	x0, x19
	bl	_spin_lock_irqsave
Lloh11:
	adrp	x8, _GCSR_CCIC_EN@GOTPAGE
Lloh12:
	ldr	x8, [x8, _GCSR_CCIC_EN@GOTPAGEOFF]
	ldr	w1, [x20]
Lloh13:
	ldr	w8, [x8]
	ldr	w9, [x22]
	orr	w8, w9, w8
	ldr	w9, [x23]
	orr	w2, w8, w9
	mov	x0, x19
	bl	_mcam_reg_write
Lloh14:
	adrp	x8, _REG_GL_IMASK@GOTPAGE
Lloh15:
	ldr	x8, [x8, _REG_GL_IMASK@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
Lloh17:
	adrp	x8, _GIMSK_CCIC_EN@GOTPAGE
Lloh18:
	ldr	x8, [x8, _GIMSK_CCIC_EN@GOTPAGEOFF]
Lloh19:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_mcam_reg_set_bit
Lloh20:
	adrp	x8, _REG_IRQMASK@GOTPAGE
Lloh21:
	ldr	x8, [x8, _REG_IRQMASK@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	bl	_mcam_reg_write
	mov	x0, x19
	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
	b	_spin_unlock_irqrestore
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_REG_GL_CSR,4,2                 ; @REG_GL_CSR
	.comm	_GCSR_SRS,4,2                   ; @GCSR_SRS
	.comm	_GCSR_MRS,4,2                   ; @GCSR_MRS
	.comm	_GCSR_SRC,4,2                   ; @GCSR_SRC
	.comm	_GCSR_MRC,4,2                   ; @GCSR_MRC
	.comm	_GCSR_CCIC_EN,4,2               ; @GCSR_CCIC_EN
	.comm	_REG_GL_IMASK,4,2               ; @REG_GL_IMASK
	.comm	_GIMSK_CCIC_EN,4,2              ; @GIMSK_CCIC_EN
	.comm	_REG_IRQMASK,4,2                ; @REG_IRQMASK
	.no_dead_strip	_cafe_ctlr_init
.subsections_via_symbols
