	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function stfsm_fetch_platform_configs
_stfsm_fetch_platform_configs:          ## @stfsm_fetch_platform_configs
	.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	%r12
	pushq	%rbx
	subq	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	callq	_platform_get_drvdata
	movq	%rax, %r14
	movq	(%r12), %rbx
	movl	$1, (%rax)
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_syscon_regmap_lookup_by_phandle
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	jne	LBB0_6
## %bb.1:
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	callq	_of_property_read_bool
	movq	%rax, 16(%r14)
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdi
	callq	_of_property_read_bool
	movq	%rax, 8(%r14)
	leaq	L_.str.3(%rip), %rsi
	leaq	-56(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_of_property_read_u32
	testl	%eax, %eax
	jne	LBB0_6
## %bb.2:
	leaq	L_.str.4(%rip), %rsi
	leaq	-48(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_of_property_read_u32
	testl	%eax, %eax
	jne	LBB0_6
## %bb.3:
	movq	-56(%rbp), %rsi
	leaq	-40(%rbp), %rdx
	movq	%r15, %rdi
	callq	_regmap_read
	testl	%eax, %eax
	je	LBB0_4
LBB0_6:
	leaq	L_.str.5(%rip), %rsi
	movq	%r12, %rdi
	callq	_dev_warn
LBB0_7:
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	movq	-40(%rbp), %rax
	cmpq	-48(%rbp), %rax
	je	LBB0_7
## %bb.5:
	movl	$0, (%r14)
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"st,syscfg"

L_.str.1:                               ## @.str.1
	.asciz	"st,reset-signal"

L_.str.2:                               ## @.str.2
	.asciz	"st,reset-por"

L_.str.3:                               ## @.str.3
	.asciz	"st,boot-device-reg"

L_.str.4:                               ## @.str.4
	.asciz	"st,boot-device-spi"

L_.str.5:                               ## @.str.5
	.asciz	"failed to fetch boot device, assuming boot from SPI\n"

	.no_dead_strip	_stfsm_fetch_platform_configs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function stfsm_fetch_platform_configs
_stfsm_fetch_platform_configs:          ; @stfsm_fetch_platform_configs
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x20, x0
	bl	_platform_get_drvdata
	mov	x19, x0
	ldr	x22, [x20]
	mov	w8, #1
	str	w8, [x0]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x22
	bl	_syscon_regmap_lookup_by_phandle
	mov	x21, x0
	bl	_IS_ERR
	cbnz	x0, LBB0_4
; %bb.1:
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x22
	bl	_of_property_read_bool
	str	x0, [x19, #16]
Lloh4:
	adrp	x1, l_.str.2@PAGE
Lloh5:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x22
	bl	_of_property_read_bool
	str	x0, [x19, #8]
Lloh6:
	adrp	x1, l_.str.3@PAGE
Lloh7:
	add	x1, x1, l_.str.3@PAGEOFF
	add	x2, sp, #24
	mov	x0, x22
	bl	_of_property_read_u32
	cbnz	w0, LBB0_4
; %bb.2:
Lloh8:
	adrp	x1, l_.str.4@PAGE
Lloh9:
	add	x1, x1, l_.str.4@PAGEOFF
	add	x2, sp, #16
	mov	x0, x22
	bl	_of_property_read_u32
	cbnz	w0, LBB0_4
; %bb.3:
	ldr	x1, [sp, #24]
	add	x2, sp, #8
	mov	x0, x21
	bl	_regmap_read
	cbz	w0, LBB0_6
LBB0_4:
Lloh10:
	adrp	x1, l_.str.5@PAGE
Lloh11:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x20
	bl	_dev_warn
LBB0_5:
	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
	add	sp, sp, #80
	ret
LBB0_6:
	ldp	x8, x9, [sp, #8]
	cmp	x8, x9
	b.eq	LBB0_5
; %bb.7:
	str	wzr, [x19]
	b	LBB0_5
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"st,syscfg"

l_.str.1:                               ; @.str.1
	.asciz	"st,reset-signal"

l_.str.2:                               ; @.str.2
	.asciz	"st,reset-por"

l_.str.3:                               ; @.str.3
	.asciz	"st,boot-device-reg"

l_.str.4:                               ; @.str.4
	.asciz	"st,boot-device-spi"

l_.str.5:                               ; @.str.5
	.asciz	"failed to fetch boot device, assuming boot from SPI\n"

	.no_dead_strip	_stfsm_fetch_platform_configs
.subsections_via_symbols
