	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function stm32_fmc2_parse_child
_stm32_fmc2_parse_child:                ## @stm32_fmc2_parse_child
	.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	%rsi, %r14
	movq	%rdi, %r15
	leaq	8(%rdi), %rbx
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movq	%rbx, %rdx
	callq	_of_get_property
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movl	(%rbx), %eax
	movl	%eax, %ecx
	sarl	$2, %ecx
	movl	%ecx, (%rbx)
	cmpl	$4, %eax
	jae	LBB0_3
## %bb.16:
	movl	4(%r15), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	callq	_dev_err
LBB0_10:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %r12d
	jmp	LBB0_15
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	jmp	LBB0_15
LBB0_3:
	jl	LBB0_14
## %bb.4:
	xorl	%ebx, %ebx
	leaq	-44(%rbp), %r13
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edx
	movq	%r13, %rcx
	callq	_of_property_read_u32_index
	testl	%eax, %eax
	jne	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	-44(%rbp), %edx
	movq	_FMC2_MAX_CE@GOTPCREL(%rip), %rax
	cmpl	(%rax), %edx
	jg	LBB0_8
## %bb.11:                              ##   in Loop: Header=BB0_5 Depth=1
	movl	(%r15), %r12d
	movl	%edx, %edi
	callq	_BIT
	testl	%r12d, %eax
	jne	LBB0_12
## %bb.13:                              ##   in Loop: Header=BB0_5 Depth=1
	movl	-44(%rbp), %edi
	callq	_BIT
	orl	%eax, (%r15)
	movl	-44(%rbp), %eax
	movq	16(%r15), %rcx
	movl	%eax, (%rcx,%rbx,4)
	incq	%rbx
	movslq	8(%r15), %rax
	cmpq	%rax, %rbx
	jl	LBB0_5
LBB0_14:
	addq	$24, %r15
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_nand_set_flash_node
	xorl	%r12d, %r12d
LBB0_15:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movl	%eax, %r12d
	movl	4(%r15), %edi
	leaq	L_.str.2(%rip), %rsi
	movl	%eax, %edx
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_15
LBB0_8:
	movl	4(%r15), %edi
	leaq	L_.str.3(%rip), %rsi
	jmp	LBB0_9
LBB0_12:
	movl	4(%r15), %edi
	movl	-44(%rbp), %edx
	leaq	L_.str.4(%rip), %rsi
LBB0_9:
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_10
	.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	"invalid reg property size\n"

L_.str.2:                               ## @.str.2
	.asciz	"could not retrieve reg property: %d\n"

	.comm	_FMC2_MAX_CE,4,2                ## @FMC2_MAX_CE
L_.str.3:                               ## @.str.3
	.asciz	"invalid reg value: %d\n"

L_.str.4:                               ## @.str.4
	.asciz	"cs already assigned: %d\n"

	.no_dead_strip	_stm32_fmc2_parse_child
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function stm32_fmc2_parse_child
_stm32_fmc2_parse_child:                ; @stm32_fmc2_parse_child
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x20, x1
	mov	x19, x0
	add	x21, x0, #8
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	mov	x2, x21
	bl	_of_get_property
	cbz	w0, LBB0_4
; %bb.1:
	ldr	w8, [x21]
	asr	w9, w8, #2
	str	w9, [x21]
	cmp	w8, #4
	b.hs	LBB0_5
; %bb.2:
	ldr	w0, [x19, #4]
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_3:
	bl	_dev_err
LBB0_4:
Lloh4:
	adrp	x8, _EINVAL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w23, w8
	b	LBB0_12
LBB0_5:
	b.lt	LBB0_11
; %bb.6:
	mov	x21, #0
Lloh7:
	adrp	x22, l_.str@PAGE
Lloh8:
	add	x22, x22, l_.str@PAGEOFF
Lloh9:
	adrp	x24, _FMC2_MAX_CE@GOTPAGE
Lloh10:
	ldr	x24, [x24, _FMC2_MAX_CE@GOTPAGEOFF]
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	add	x3, sp, #12
	mov	x0, x20
	mov	x1, x22
	mov	x2, x21
	bl	_of_property_read_u32_index
	cbnz	w0, LBB0_13
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	w0, [sp, #12]
	ldr	w8, [x24]
	cmp	w0, w8
	b.gt	LBB0_14
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	w23, [x19]
                                        ; kill: def $w0 killed $w0 killed $x0
	bl	_BIT
	tst	w0, w23
	b.ne	LBB0_15
; %bb.10:                               ;   in Loop: Header=BB0_7 Depth=1
	ldr	w0, [sp, #12]
	bl	_BIT
	ldr	w8, [x19]
	orr	w8, w8, w0
	str	w8, [x19]
	ldr	w8, [sp, #12]
	ldr	x9, [x19, #16]
	str	w8, [x9, x21, lsl #2]
	add	x21, x21, #1
	ldrsw	x8, [x19, #8]
	cmp	x21, x8
	b.lt	LBB0_7
LBB0_11:
	add	x0, x19, #24
	mov	x1, x20
	bl	_nand_set_flash_node
	mov	w23, #0
LBB0_12:
	mov	x0, x23
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_13:
	mov	x23, x0
	ldr	w0, [x19, #4]
	str	x23, [sp]
Lloh11:
	adrp	x1, l_.str.2@PAGE
Lloh12:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_dev_err
	b	LBB0_12
LBB0_14:
	ldr	w8, [x19, #4]
	str	x0, [sp]
Lloh13:
	adrp	x1, l_.str.3@PAGE
Lloh14:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x8
	b	LBB0_3
LBB0_15:
	ldr	w0, [x19, #4]
	ldr	w8, [sp, #12]
	str	x8, [sp]
Lloh15:
	adrp	x1, l_.str.4@PAGE
Lloh16:
	add	x1, x1, l_.str.4@PAGEOFF
	b	LBB0_3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.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	"invalid reg property size\n"

l_.str.2:                               ; @.str.2
	.asciz	"could not retrieve reg property: %d\n"

	.comm	_FMC2_MAX_CE,4,2                ; @FMC2_MAX_CE
l_.str.3:                               ; @.str.3
	.asciz	"invalid reg value: %d\n"

l_.str.4:                               ; @.str.4
	.asciz	"cs already assigned: %d\n"

	.no_dead_strip	_stm32_fmc2_parse_child
.subsections_via_symbols
