	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function of_aemif_parse_abus_config
_of_aemif_parse_abus_config:            ## @of_aemif_parse_abus_config
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r15
	callq	_platform_get_drvdata
	movq	%rax, %rbx
	leaq	L_.str(%rip), %rsi
	leaq	-56(%rbp), %rdx
	movq	%r14, %rdi
	callq	_of_property_read_u32
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	leaq	L_.str.1(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	xorl	%eax, %eax
	callq	_dev_dbg
	jmp	LBB0_6
LBB0_2:
	movq	-56(%rbp), %rdx
	movq	%rdx, %rcx
	subq	(%rbx), %rcx
	jl	LBB0_4
## %bb.3:
	movq	_NUM_CS@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	%rax, %rcx
	jge	LBB0_4
## %bb.7:
	movq	8(%rbx), %rsi
	cmpq	%rax, %rsi
	jge	LBB0_8
## %bb.9:
	movq	16(%rbx), %r12
	imulq	$88, %rsi, %r13
	movq	%rdx, 80(%r12,%r13)
	leaq	1(%rsi), %rax
	movq	%rax, 8(%rbx)
	movq	%r15, %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_aemif_get_hw_params
	leaq	L_.str.4(%rip), %rsi
	leaq	-48(%rbp), %rdx
	movq	%r14, %rdi
	callq	_of_property_read_u32
	testq	%rax, %rax
	jne	LBB0_11
## %bb.10:
	movq	-48(%rbp), %rax
	movq	%rax, 72(%r12,%r13)
LBB0_11:
	leaq	L_.str.5(%rip), %rsi
	leaq	-48(%rbp), %rdx
	movq	%r14, %rdi
	callq	_of_property_read_u32
	testq	%rax, %rax
	jne	LBB0_13
## %bb.12:
	movq	-48(%rbp), %rax
	movq	%rax, 64(%r12,%r13)
LBB0_13:
	leaq	L_.str.6(%rip), %rsi
	leaq	-48(%rbp), %rdx
	movq	%r14, %rdi
	callq	_of_property_read_u32
	testq	%rax, %rax
	jne	LBB0_15
## %bb.14:
	movq	-48(%rbp), %rax
	movq	%rax, 56(%r12,%r13)
LBB0_15:
	leaq	L_.str.7(%rip), %rsi
	leaq	-48(%rbp), %rdx
	movq	%r14, %rdi
	callq	_of_property_read_u32
	testq	%rax, %rax
	jne	LBB0_17
## %bb.16:
	movq	-48(%rbp), %rax
	movq	%rax, 48(%r12,%r13)
LBB0_17:
	leaq	L_.str.8(%rip), %rsi
	leaq	-48(%rbp), %rdx
	movq	%r14, %rdi
	callq	_of_property_read_u32
	testq	%rax, %rax
	jne	LBB0_19
## %bb.18:
	movq	-48(%rbp), %rax
	movq	%rax, 40(%r12,%r13)
LBB0_19:
	leaq	L_.str.9(%rip), %rsi
	leaq	-48(%rbp), %rdx
	movq	%r14, %rdi
	callq	_of_property_read_u32
	testq	%rax, %rax
	jne	LBB0_21
## %bb.20:
	movq	-48(%rbp), %rax
	movq	%rax, 32(%r12,%r13)
LBB0_21:
	leaq	L_.str.10(%rip), %rsi
	leaq	-48(%rbp), %rdx
	movq	%r14, %rdi
	callq	_of_property_read_u32
	testq	%rax, %rax
	jne	LBB0_23
## %bb.22:
	movq	-48(%rbp), %rax
	movq	%rax, 24(%r12,%r13)
LBB0_23:
	leaq	L_.str.11(%rip), %rsi
	leaq	-48(%rbp), %rdx
	movq	%r14, %rdi
	callq	_of_property_read_u32
	testq	%rax, %rax
	jne	LBB0_26
## %bb.24:
	cmpq	$16, -48(%rbp)
	jne	LBB0_26
## %bb.25:
	movl	$1, (%r12,%r13)
LBB0_26:
	leaq	L_.str.12(%rip), %rsi
	movq	%r14, %rdi
	callq	_of_property_read_bool
	movq	%rax, 16(%r12,%r13)
	leaq	L_.str.13(%rip), %rsi
	movq	%r14, %rdi
	callq	_of_property_read_bool
	movq	%rax, 8(%r12,%r13)
	xorl	%ebx, %ebx
	jmp	LBB0_27
LBB0_4:
	leaq	L_.str.2(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	jmp	LBB0_5
LBB0_8:
	leaq	L_.str.3(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	movq	%rax, %rdx
LBB0_5:
	xorl	%eax, %eax
	callq	_dev_dbg
LBB0_6:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
LBB0_27:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ti,cs-chipselect"

L_.str.1:                               ## @.str.1
	.asciz	"cs property is required"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_NUM_CS,8,3                     ## @NUM_CS
L_.str.2:                               ## @.str.2
	.asciz	"cs number is incorrect %d"

L_.str.3:                               ## @.str.3
	.asciz	"cs count is more than %d"

L_.str.4:                               ## @.str.4
	.asciz	"ti,cs-min-turnaround-ns"

L_.str.5:                               ## @.str.5
	.asciz	"ti,cs-read-hold-ns"

L_.str.6:                               ## @.str.6
	.asciz	"ti,cs-read-strobe-ns"

L_.str.7:                               ## @.str.7
	.asciz	"ti,cs-read-setup-ns"

L_.str.8:                               ## @.str.8
	.asciz	"ti,cs-write-hold-ns"

L_.str.9:                               ## @.str.9
	.asciz	"ti,cs-write-strobe-ns"

L_.str.10:                              ## @.str.10
	.asciz	"ti,cs-write-setup-ns"

L_.str.11:                              ## @.str.11
	.asciz	"ti,cs-bus-width"

L_.str.12:                              ## @.str.12
	.asciz	"ti,cs-extended-wait-mode"

L_.str.13:                              ## @.str.13
	.asciz	"ti,cs-select-strobe-mode"

	.no_dead_strip	_of_aemif_parse_abus_config
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function of_aemif_parse_abus_config
_of_aemif_parse_abus_config:            ; @of_aemif_parse_abus_config
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x1
	mov	x21, x0
	bl	_platform_get_drvdata
	mov	x22, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	add	x2, sp, #24
	mov	x0, x19
	bl	_of_property_read_u32
	cbz	x0, LBB0_2
; %bb.1:
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_24
LBB0_2:
	ldr	x8, [sp, #24]
	ldr	x9, [x22]
	subs	x10, x8, x9
Lloh4:
	adrp	x9, _NUM_CS@GOTPAGE
Lloh5:
	ldr	x9, [x9, _NUM_CS@GOTPAGEOFF]
Lloh6:
	ldr	x9, [x9]
	ccmp	x10, x9, #0, ge
	b.lt	LBB0_4
; %bb.3:
	str	x8, [sp]
Lloh7:
	adrp	x1, l_.str.2@PAGE
Lloh8:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_24
LBB0_4:
	ldr	x20, [x22, #8]
	cmp	x20, x9
	b.ge	LBB0_23
; %bb.5:
	ldr	x23, [x22, #16]
	mov	w9, #88
	madd	x9, x20, x9, x23
	str	x8, [x9, #80]
	add	x8, x20, #1
	str	x8, [x22, #8]
	mov	x0, x21
	mov	x1, x20
	bl	_aemif_get_hw_params
Lloh9:
	adrp	x1, l_.str.4@PAGE
Lloh10:
	add	x1, x1, l_.str.4@PAGEOFF
	add	x2, sp, #16
	mov	x0, x19
	bl	_of_property_read_u32
	cbnz	x0, LBB0_7
; %bb.6:
	ldr	x8, [sp, #16]
	mov	w9, #88
	madd	x9, x20, x9, x23
	str	x8, [x9, #72]
LBB0_7:
Lloh11:
	adrp	x1, l_.str.5@PAGE
Lloh12:
	add	x1, x1, l_.str.5@PAGEOFF
	add	x2, sp, #16
	mov	x0, x19
	bl	_of_property_read_u32
	cbnz	x0, LBB0_9
; %bb.8:
	ldr	x8, [sp, #16]
	mov	w9, #88
	madd	x9, x20, x9, x23
	str	x8, [x9, #64]
LBB0_9:
Lloh13:
	adrp	x1, l_.str.6@PAGE
Lloh14:
	add	x1, x1, l_.str.6@PAGEOFF
	add	x2, sp, #16
	mov	x0, x19
	bl	_of_property_read_u32
	cbnz	x0, LBB0_11
; %bb.10:
	ldr	x8, [sp, #16]
	mov	w9, #88
	madd	x9, x20, x9, x23
	str	x8, [x9, #56]
LBB0_11:
Lloh15:
	adrp	x1, l_.str.7@PAGE
Lloh16:
	add	x1, x1, l_.str.7@PAGEOFF
	add	x2, sp, #16
	mov	x0, x19
	bl	_of_property_read_u32
	cbnz	x0, LBB0_13
; %bb.12:
	ldr	x8, [sp, #16]
	mov	w9, #88
	madd	x9, x20, x9, x23
	str	x8, [x9, #48]
LBB0_13:
Lloh17:
	adrp	x1, l_.str.8@PAGE
Lloh18:
	add	x1, x1, l_.str.8@PAGEOFF
	add	x2, sp, #16
	mov	x0, x19
	bl	_of_property_read_u32
	cbnz	x0, LBB0_15
; %bb.14:
	ldr	x8, [sp, #16]
	mov	w9, #88
	madd	x9, x20, x9, x23
	str	x8, [x9, #40]
LBB0_15:
Lloh19:
	adrp	x1, l_.str.9@PAGE
Lloh20:
	add	x1, x1, l_.str.9@PAGEOFF
	add	x2, sp, #16
	mov	x0, x19
	bl	_of_property_read_u32
	cbnz	x0, LBB0_17
; %bb.16:
	ldr	x8, [sp, #16]
	mov	w9, #88
	madd	x9, x20, x9, x23
	str	x8, [x9, #32]
LBB0_17:
Lloh21:
	adrp	x1, l_.str.10@PAGE
Lloh22:
	add	x1, x1, l_.str.10@PAGEOFF
	add	x2, sp, #16
	mov	x0, x19
	bl	_of_property_read_u32
	cbnz	x0, LBB0_19
; %bb.18:
	ldr	x8, [sp, #16]
	mov	w9, #88
	madd	x9, x20, x9, x23
	str	x8, [x9, #24]
LBB0_19:
Lloh23:
	adrp	x1, l_.str.11@PAGE
Lloh24:
	add	x1, x1, l_.str.11@PAGEOFF
	add	x2, sp, #16
	mov	x0, x19
	bl	_of_property_read_u32
	cbnz	x0, LBB0_22
; %bb.20:
	ldr	x8, [sp, #16]
	cmp	x8, #16
	b.ne	LBB0_22
; %bb.21:
	mov	w8, #88
	mul	x8, x20, x8
	mov	w9, #1
	str	w9, [x23, x8]
LBB0_22:
Lloh25:
	adrp	x1, l_.str.12@PAGE
Lloh26:
	add	x1, x1, l_.str.12@PAGEOFF
	mov	x0, x19
	bl	_of_property_read_bool
	mov	w8, #88
	madd	x20, x20, x8, x23
	str	x0, [x20, #16]
Lloh27:
	adrp	x1, l_.str.13@PAGE
Lloh28:
	add	x1, x1, l_.str.13@PAGEOFF
	mov	x0, x19
	bl	_of_property_read_bool
	mov	x8, x0
	mov	w0, #0
	str	x8, [x20, #8]
	b	LBB0_25
LBB0_23:
	str	x9, [sp]
Lloh29:
	adrp	x1, l_.str.3@PAGE
Lloh30:
	add	x1, x1, l_.str.3@PAGEOFF
LBB0_24:
	mov	x0, x21
	bl	_dev_dbg
Lloh31:
	adrp	x8, _EINVAL@GOTPAGE
Lloh32:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh33:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_25:
	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
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ti,cs-chipselect"

l_.str.1:                               ; @.str.1
	.asciz	"cs property is required"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_NUM_CS,8,3                     ; @NUM_CS
l_.str.2:                               ; @.str.2
	.asciz	"cs number is incorrect %d"

l_.str.3:                               ; @.str.3
	.asciz	"cs count is more than %d"

l_.str.4:                               ; @.str.4
	.asciz	"ti,cs-min-turnaround-ns"

l_.str.5:                               ; @.str.5
	.asciz	"ti,cs-read-hold-ns"

l_.str.6:                               ; @.str.6
	.asciz	"ti,cs-read-strobe-ns"

l_.str.7:                               ; @.str.7
	.asciz	"ti,cs-read-setup-ns"

l_.str.8:                               ; @.str.8
	.asciz	"ti,cs-write-hold-ns"

l_.str.9:                               ; @.str.9
	.asciz	"ti,cs-write-strobe-ns"

l_.str.10:                              ; @.str.10
	.asciz	"ti,cs-write-setup-ns"

l_.str.11:                              ; @.str.11
	.asciz	"ti,cs-bus-width"

l_.str.12:                              ; @.str.12
	.asciz	"ti,cs-extended-wait-mode"

l_.str.13:                              ; @.str.13
	.asciz	"ti,cs-select-strobe-mode"

	.no_dead_strip	_of_aemif_parse_abus_config
.subsections_via_symbols
