	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vf_cpu_reset
_vf_cpu_reset:                          ## @vf_cpu_reset
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	xorl	%eax, %eax
	callq	_src_swreset
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	leaq	L_.str(%rip), %rdi
	callq	_OF_finddevice
	cmpl	$-1, %eax
	je	LBB0_5
## %bb.2:
	leaq	L_.str.1(%rip), %rsi
	leaq	-16(%rbp), %rdx
	movl	%eax, %edi
	movl	$4, %ecx
	callq	_OF_getencprop
	testq	%rax, %rax
	jle	LBB0_5
## %bb.3:
	movq	_fdtbus_bs_tag@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	movl	-16(%rbp), %esi
	leaq	-12(%rbp), %r8
	movl	$16, %edx
	xorl	%ecx, %ecx
	callq	_bus_space_map
	testq	%rax, %rax
	jne	LBB0_5
## %bb.4:
	movl	(%rbx), %edi
	movl	-12(%rbp), %esi
	movq	_SW_RST@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%edx, %edx
	callq	_bus_space_write_4
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"src"

L_.str.1:                               ## @.str.1
	.asciz	"reg"

	.comm	_fdtbus_bs_tag,4,2              ## @fdtbus_bs_tag
	.comm	_SW_RST,4,2                     ## @SW_RST
	.no_dead_strip	_vf_cpu_reset
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vf_cpu_reset
_vf_cpu_reset:                          ; @vf_cpu_reset
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	bl	_src_swreset
	cbz	x0, LBB0_5
; %bb.1:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_OF_finddevice
	cmn	w0, #1
	b.eq	LBB0_5
; %bb.2:
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	add	x2, sp, #12
	mov	w3, #4
	bl	_OF_getencprop
	cmp	x0, #1
	b.lt	LBB0_5
; %bb.3:
Lloh4:
	adrp	x19, _fdtbus_bs_tag@GOTPAGE
Lloh5:
	ldr	x19, [x19, _fdtbus_bs_tag@GOTPAGEOFF]
	ldr	w0, [x19]
	ldr	w1, [sp, #12]
	add	x4, sp, #8
	mov	w2, #16
	mov	w3, #0
	bl	_bus_space_map
	cbnz	x0, LBB0_5
; %bb.4:
	ldr	w0, [x19]
	ldr	w1, [sp, #8]
Lloh6:
	adrp	x8, _SW_RST@GOTPAGE
Lloh7:
	ldr	x8, [x8, _SW_RST@GOTPAGEOFF]
Lloh8:
	ldr	w3, [x8]
	mov	w2, #0
	bl	_bus_space_write_4
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	b	LBB0_5
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"src"

l_.str.1:                               ; @.str.1
	.asciz	"reg"

	.comm	_fdtbus_bs_tag,4,2              ; @fdtbus_bs_tag
	.comm	_SW_RST,4,2                     ; @SW_RST
	.no_dead_strip	_vf_cpu_reset
.subsections_via_symbols
