	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function exynos_srom_configure_bank
_exynos_srom_configure_bank:            ## @exynos_srom_configure_bank
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	leaq	L_.str(%rip), %rsi
	leaq	-84(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_of_property_read_u32
	testq	%rax, %rax
	jne	LBB0_1
## %bb.2:
	leaq	L_.str.1(%rip), %rsi
	leaq	-88(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_of_property_read_u32
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movl	$1, -88(%rbp)
LBB0_4:
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdi
	callq	_of_property_read_bool
	movq	%rax, %r15
	movq	_EXYNOS_SROM_BCX__PMC__SHIFT@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	leaq	-80(%rbp), %r13
	movq	%r13, %rdi
	callq	_ARRAY_SIZE
	leaq	L_.str.3(%rip), %rsi
	movq	%rbx, %rdi
	movq	%r13, %rdx
	movl	%eax, %ecx
	callq	_of_property_read_u32_array
	testq	%rax, %rax
	je	LBB0_5
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_6:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_8
## %bb.7:
	movl	%ebx, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movl	$1, %r13d
	movl	%r12d, %ecx
	shll	%cl, %r13d
	xorl	%ebx, %ebx
	testq	%r15, %r15
	cmovel	%ebx, %r13d
	shll	$2, -84(%rbp)
	movl	$1, %r15d
	movq	_EXYNOS_SROM_BW__DATAWIDTH__SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %r15d
	movq	_EXYNOS_SROM_BW__BYTEENABLE__SHIFT@GOTPCREL(%rip), %rax
	cmpl	$2, -88(%rbp)
	movb	(%rax), %al
	cmovnel	%ebx, %r15d
	btsl	%eax, %r15d
	movq	_EXYNOS_SROM_BW@GOTPCREL(%rip), %r12
	movq	(%r12), %rdi
	addq	(%r14), %rdi
	callq	_readl_relaxed
	movq	_EXYNOS_SROM_BW__CS_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movb	-84(%rbp), %cl
	shll	%cl, %edx
	notl	%edx
	andl	%eax, %edx
	shll	%cl, %r15d
	orl	%edx, %r15d
	movq	(%r12), %rsi
	addq	(%r14), %rsi
	movl	%r15d, %edi
	callq	_writel_relaxed
	movq	_EXYNOS_SROM_BCX__TACP__SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	movl	-80(%rbp), %edx
	movl	-76(%rbp), %esi
	shll	%cl, %edx
	movq	_EXYNOS_SROM_BCX__TCAH__SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %esi
	movl	-72(%rbp), %eax
	movq	_EXYNOS_SROM_BCX__TCOH__SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %eax
	movq	_EXYNOS_SROM_BCX__TACC__SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	movl	-68(%rbp), %edi
	shll	%cl, %edi
	orl	%edx, %esi
	orl	%esi, %eax
	movq	_EXYNOS_SROM_BCX__TCOS__SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	movl	-64(%rbp), %edx
	shll	%cl, %edx
	orl	%r13d, %eax
	orl	%edi, %edx
	movl	-60(%rbp), %edi
	movq	_EXYNOS_SROM_BCX__TACS__SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %edi
	orl	%edx, %edi
	orl	%eax, %edi
	movq	_EXYNOS_SROM_BC0@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	addq	(%r14), %rax
	movslq	-84(%rbp), %rsi
	addq	%rax, %rsi
	callq	_writel_relaxed
	jmp	LBB0_6
LBB0_8:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"reg"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"reg-io-width"

L_.str.2:                               ## @.str.2
	.asciz	"samsung,srom-page-mode"

	.comm	_EXYNOS_SROM_BCX__PMC__SHIFT,4,2 ## @EXYNOS_SROM_BCX__PMC__SHIFT
L_.str.3:                               ## @.str.3
	.asciz	"samsung,srom-timing"

	.comm	_EXYNOS_SROM_BW__BYTEENABLE__SHIFT,4,2 ## @EXYNOS_SROM_BW__BYTEENABLE__SHIFT
	.comm	_EXYNOS_SROM_BW__DATAWIDTH__SHIFT,4,2 ## @EXYNOS_SROM_BW__DATAWIDTH__SHIFT
	.comm	_EXYNOS_SROM_BW,8,3             ## @EXYNOS_SROM_BW
	.comm	_EXYNOS_SROM_BW__CS_MASK,4,2    ## @EXYNOS_SROM_BW__CS_MASK
	.comm	_EXYNOS_SROM_BCX__TACP__SHIFT,4,2 ## @EXYNOS_SROM_BCX__TACP__SHIFT
	.comm	_EXYNOS_SROM_BCX__TCAH__SHIFT,4,2 ## @EXYNOS_SROM_BCX__TCAH__SHIFT
	.comm	_EXYNOS_SROM_BCX__TCOH__SHIFT,4,2 ## @EXYNOS_SROM_BCX__TCOH__SHIFT
	.comm	_EXYNOS_SROM_BCX__TACC__SHIFT,4,2 ## @EXYNOS_SROM_BCX__TACC__SHIFT
	.comm	_EXYNOS_SROM_BCX__TCOS__SHIFT,4,2 ## @EXYNOS_SROM_BCX__TCOS__SHIFT
	.comm	_EXYNOS_SROM_BCX__TACS__SHIFT,4,2 ## @EXYNOS_SROM_BCX__TACS__SHIFT
	.comm	_EXYNOS_SROM_BC0,8,3            ## @EXYNOS_SROM_BC0
	.no_dead_strip	_exynos_srom_configure_bank
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function exynos_srom_configure_bank
_exynos_srom_configure_bank:            ; @exynos_srom_configure_bank
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #40]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	add	x2, sp, #12
	mov	x0, x20
	bl	_of_property_read_u32
	cbnz	x0, LBB0_4
; %bb.1:
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	add	x2, sp, #8
	mov	x0, x20
	bl	_of_property_read_u32
	cbz	x0, LBB0_3
; %bb.2:
	mov	w8, #1
	str	w8, [sp, #8]
LBB0_3:
Lloh7:
	adrp	x1, l_.str.2@PAGE
Lloh8:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_of_property_read_bool
	mov	x21, x0
Lloh9:
	adrp	x8, _EXYNOS_SROM_BCX__PMC__SHIFT@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EXYNOS_SROM_BCX__PMC__SHIFT@GOTPAGEOFF]
Lloh11:
	ldr	w22, [x8]
	add	x0, sp, #16
	bl	_ARRAY_SIZE
	mov	x3, x0
Lloh12:
	adrp	x1, l_.str.3@PAGE
Lloh13:
	add	x1, x1, l_.str.3@PAGEOFF
	add	x2, sp, #16
	mov	x0, x20
	bl	_of_property_read_u32_array
	cbz	x0, LBB0_7
LBB0_4:
Lloh14:
	adrp	x8, _EINVAL@GOTPAGE
Lloh15:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_5:
	ldr	x8, [sp, #40]
Lloh17:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh18:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_8
; %bb.6:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_7:
	mov	w8, #1
	lsl	w9, w8, w22
	cmp	x21, #0
	csel	w20, wzr, w9, eq
	ldp	w10, w9, [sp, #8]
	lsl	w9, w9, #2
	str	w9, [sp, #12]
Lloh20:
	adrp	x9, _EXYNOS_SROM_BW__BYTEENABLE__SHIFT@GOTPAGE
Lloh21:
	ldr	x9, [x9, _EXYNOS_SROM_BW__BYTEENABLE__SHIFT@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	lsl	w9, w8, w9
Lloh23:
	adrp	x11, _EXYNOS_SROM_BW__DATAWIDTH__SHIFT@GOTPAGE
Lloh24:
	ldr	x11, [x11, _EXYNOS_SROM_BW__DATAWIDTH__SHIFT@GOTPAGEOFF]
Lloh25:
	ldr	w11, [x11]
	lsl	w8, w8, w11
	cmp	w10, #2
	csel	w8, w8, wzr, eq
	orr	w21, w8, w9
	ldr	x8, [x19]
Lloh26:
	adrp	x22, _EXYNOS_SROM_BW@GOTPAGE
Lloh27:
	ldr	x22, [x22, _EXYNOS_SROM_BW@GOTPAGEOFF]
	ldr	x9, [x22]
	add	x0, x9, x8
	bl	_readl_relaxed
Lloh28:
	adrp	x8, _EXYNOS_SROM_BW__CS_MASK@GOTPAGE
Lloh29:
	ldr	x8, [x8, _EXYNOS_SROM_BW__CS_MASK@GOTPAGEOFF]
Lloh30:
	ldr	w8, [x8]
	ldr	w9, [sp, #12]
	lsl	w8, w8, w9
	bic	w8, w0, w8
	lsl	w9, w21, w9
	orr	w0, w8, w9
	ldr	x8, [x19]
	ldr	x9, [x22]
	add	x1, x9, x8
	bl	_writel_relaxed
Lloh31:
	adrp	x8, _EXYNOS_SROM_BCX__TACP__SHIFT@GOTPAGE
Lloh32:
	ldr	x8, [x8, _EXYNOS_SROM_BCX__TACP__SHIFT@GOTPAGEOFF]
Lloh33:
	ldr	w8, [x8]
	ldp	w9, w10, [sp, #16]
	lsl	w8, w9, w8
	orr	w8, w8, w20
Lloh34:
	adrp	x9, _EXYNOS_SROM_BCX__TCAH__SHIFT@GOTPAGE
Lloh35:
	ldr	x9, [x9, _EXYNOS_SROM_BCX__TCAH__SHIFT@GOTPAGEOFF]
Lloh36:
	ldr	w9, [x9]
	lsl	w9, w10, w9
Lloh37:
	adrp	x10, _EXYNOS_SROM_BCX__TCOH__SHIFT@GOTPAGE
Lloh38:
	ldr	x10, [x10, _EXYNOS_SROM_BCX__TCOH__SHIFT@GOTPAGEOFF]
	orr	w8, w8, w9
Lloh39:
	ldr	w9, [x10]
	ldp	w10, w11, [sp, #24]
	lsl	w9, w10, w9
	orr	w8, w8, w9
Lloh40:
	adrp	x9, _EXYNOS_SROM_BCX__TACC__SHIFT@GOTPAGE
Lloh41:
	ldr	x9, [x9, _EXYNOS_SROM_BCX__TACC__SHIFT@GOTPAGEOFF]
Lloh42:
	ldr	w9, [x9]
	lsl	w9, w11, w9
Lloh43:
	adrp	x10, _EXYNOS_SROM_BCX__TCOS__SHIFT@GOTPAGE
Lloh44:
	ldr	x10, [x10, _EXYNOS_SROM_BCX__TCOS__SHIFT@GOTPAGEOFF]
	orr	w8, w8, w9
Lloh45:
	ldr	w9, [x10]
	ldp	w10, w11, [sp, #32]
	lsl	w9, w10, w9
	orr	w8, w8, w9
Lloh46:
	adrp	x9, _EXYNOS_SROM_BCX__TACS__SHIFT@GOTPAGE
Lloh47:
	ldr	x9, [x9, _EXYNOS_SROM_BCX__TACS__SHIFT@GOTPAGEOFF]
Lloh48:
	ldr	w9, [x9]
	lsl	w9, w11, w9
	orr	w0, w8, w9
	ldr	x8, [x19]
Lloh49:
	adrp	x9, _EXYNOS_SROM_BC0@GOTPAGE
Lloh50:
	ldr	x9, [x9, _EXYNOS_SROM_BC0@GOTPAGEOFF]
Lloh51:
	ldr	x9, [x9]
	ldrsw	x10, [sp, #12]
	add	x8, x9, x8
	add	x1, x8, x10
	bl	_writel_relaxed
	mov	w0, #0
	b	LBB0_5
LBB0_8:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh49, Lloh50, Lloh51
	.loh AdrpLdrGotLdr	Lloh46, Lloh47, Lloh48
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"reg"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"reg-io-width"

l_.str.2:                               ; @.str.2
	.asciz	"samsung,srom-page-mode"

	.comm	_EXYNOS_SROM_BCX__PMC__SHIFT,4,2 ; @EXYNOS_SROM_BCX__PMC__SHIFT
l_.str.3:                               ; @.str.3
	.asciz	"samsung,srom-timing"

	.comm	_EXYNOS_SROM_BW__BYTEENABLE__SHIFT,4,2 ; @EXYNOS_SROM_BW__BYTEENABLE__SHIFT
	.comm	_EXYNOS_SROM_BW__DATAWIDTH__SHIFT,4,2 ; @EXYNOS_SROM_BW__DATAWIDTH__SHIFT
	.comm	_EXYNOS_SROM_BW,8,3             ; @EXYNOS_SROM_BW
	.comm	_EXYNOS_SROM_BW__CS_MASK,4,2    ; @EXYNOS_SROM_BW__CS_MASK
	.comm	_EXYNOS_SROM_BCX__TACP__SHIFT,4,2 ; @EXYNOS_SROM_BCX__TACP__SHIFT
	.comm	_EXYNOS_SROM_BCX__TCAH__SHIFT,4,2 ; @EXYNOS_SROM_BCX__TCAH__SHIFT
	.comm	_EXYNOS_SROM_BCX__TCOH__SHIFT,4,2 ; @EXYNOS_SROM_BCX__TCOH__SHIFT
	.comm	_EXYNOS_SROM_BCX__TACC__SHIFT,4,2 ; @EXYNOS_SROM_BCX__TACC__SHIFT
	.comm	_EXYNOS_SROM_BCX__TCOS__SHIFT,4,2 ; @EXYNOS_SROM_BCX__TCOS__SHIFT
	.comm	_EXYNOS_SROM_BCX__TACS__SHIFT,4,2 ; @EXYNOS_SROM_BCX__TACS__SHIFT
	.comm	_EXYNOS_SROM_BC0,8,3            ; @EXYNOS_SROM_BC0
	.no_dead_strip	_exynos_srom_configure_bank
.subsections_via_symbols
