	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function s5p_mfc_init_memctrl
_s5p_mfc_init_memctrl:                  ## @s5p_mfc_init_memctrl
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	callq	_IS_MFCV6_PLUS
	movq	(%rbx), %rcx
	movq	_BANK_L_CTX@GOTPCREL(%rip), %r14
	movq	(%r14), %rdx
	movl	(%rcx,%rdx,4), %esi
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_S5P_FIMV_RISC_BASE_ADDRESS_V6@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_mfc_write
	movq	(%r14), %rdx
	shlq	$2, %rdx
	addq	(%rbx), %rdx
	leaq	L_.str(%rip), %rsi
	movl	$2, %edi
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mfc_debug                      ## TAILCALL
LBB0_2:
	movq	_S5P_FIMV_MC_DRAMBASE_ADR_A@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_mfc_write
	movq	(%rbx), %rax
	movq	_BANK_R_CTX@GOTPCREL(%rip), %r15
	movq	(%r15), %rcx
	movl	(%rax,%rcx,4), %esi
	movq	_S5P_FIMV_MC_DRAMBASE_ADR_B@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_mfc_write
	movq	(%rbx), %rax
	movq	(%r14), %rcx
	leaq	(%rax,%rcx,4), %rdx
	movq	(%r15), %rcx
	leaq	(%rax,%rcx,4), %rcx
	leaq	L_.str.1(%rip), %rsi
	movl	$2, %edi
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mfc_debug                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_BANK_L_CTX,8,3                 ## @BANK_L_CTX
	.comm	_S5P_FIMV_RISC_BASE_ADDRESS_V6,4,2 ## @S5P_FIMV_RISC_BASE_ADDRESS_V6
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Base Address : %pad\n"

	.comm	_S5P_FIMV_MC_DRAMBASE_ADR_A,4,2 ## @S5P_FIMV_MC_DRAMBASE_ADR_A
	.comm	_BANK_R_CTX,8,3                 ## @BANK_R_CTX
	.comm	_S5P_FIMV_MC_DRAMBASE_ADR_B,4,2 ## @S5P_FIMV_MC_DRAMBASE_ADR_B
L_.str.1:                               ## @.str.1
	.asciz	"Bank1: %pad, Bank2: %pad\n"

	.no_dead_strip	_s5p_mfc_init_memctrl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function s5p_mfc_init_memctrl
_s5p_mfc_init_memctrl:                  ; @s5p_mfc_init_memctrl
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x0
	bl	_IS_MFCV6_PLUS
	ldr	x8, [x19]
Lloh0:
	adrp	x20, _BANK_L_CTX@GOTPAGE
Lloh1:
	ldr	x20, [x20, _BANK_L_CTX@GOTPAGEOFF]
	ldr	x9, [x20]
	ldr	w1, [x8, x9, lsl #2]
	cbz	x0, LBB0_2
; %bb.1:
Lloh2:
	adrp	x8, _S5P_FIMV_RISC_BASE_ADDRESS_V6@GOTPAGE
Lloh3:
	ldr	x8, [x8, _S5P_FIMV_RISC_BASE_ADDRESS_V6@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_mfc_write
	ldr	x8, [x19]
	ldr	x9, [x20]
	add	x2, x8, x9, lsl #2
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #2
	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
	add	sp, sp, #64
	b	_mfc_debug
LBB0_2:
Lloh7:
	adrp	x8, _S5P_FIMV_MC_DRAMBASE_ADR_A@GOTPAGE
Lloh8:
	ldr	x8, [x8, _S5P_FIMV_MC_DRAMBASE_ADR_A@GOTPAGEOFF]
Lloh9:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_mfc_write
	ldr	x8, [x19]
Lloh10:
	adrp	x21, _BANK_R_CTX@GOTPAGE
Lloh11:
	ldr	x21, [x21, _BANK_R_CTX@GOTPAGEOFF]
	ldr	x9, [x21]
	ldr	w1, [x8, x9, lsl #2]
Lloh12:
	adrp	x8, _S5P_FIMV_MC_DRAMBASE_ADR_B@GOTPAGE
Lloh13:
	ldr	x8, [x8, _S5P_FIMV_MC_DRAMBASE_ADR_B@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_mfc_write
	ldr	x8, [x19]
	ldr	x9, [x20]
	add	x2, x8, x9, lsl #2
	ldr	x9, [x21]
	add	x8, x8, x9, lsl #2
	str	x8, [sp]
Lloh15:
	adrp	x1, l_.str.1@PAGE
Lloh16:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	w0, #2
	bl	_mfc_debug
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_BANK_L_CTX,8,3                 ; @BANK_L_CTX
	.comm	_S5P_FIMV_RISC_BASE_ADDRESS_V6,4,2 ; @S5P_FIMV_RISC_BASE_ADDRESS_V6
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Base Address : %pad\n"

	.comm	_S5P_FIMV_MC_DRAMBASE_ADR_A,4,2 ; @S5P_FIMV_MC_DRAMBASE_ADR_A
	.comm	_BANK_R_CTX,8,3                 ; @BANK_R_CTX
	.comm	_S5P_FIMV_MC_DRAMBASE_ADR_B,4,2 ; @S5P_FIMV_MC_DRAMBASE_ADR_B
l_.str.1:                               ; @.str.1
	.asciz	"Bank1: %pad, Bank2: %pad\n"

	.no_dead_strip	_s5p_mfc_init_memctrl
.subsections_via_symbols
