	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cpu_reset_deassert
_cpu_reset_deassert:                    ## @cpu_reset_deassert
	.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	_fdtbus_bs_tag@GOTPCREL(%rip), %r13
	movl	(%r13), %edi
	movq	_MV_CPU_RESET_BASE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MV_CPU_RESET_REGS_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-44(%rbp), %r8
	xorl	%ecx, %ecx
	callq	_bus_space_map
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	movl	(%r13), %r14d
	movl	-44(%rbp), %r15d
	movl	$1, %edi
	callq	_CPU_RESET_OFFSET
	movl	%r14d, %edi
	movl	%r15d, %esi
	movl	%eax, %edx
	callq	_bus_space_read_4
	movq	_CPU_RESET_ASSERT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ebx
	notl	%ebx
	andl	%eax, %ebx
	movl	(%r13), %r14d
	movl	-44(%rbp), %r15d
	movl	$1, %edi
	callq	_CPU_RESET_OFFSET
	movl	%r14d, %edi
	movl	%r15d, %esi
	movl	%eax, %edx
	movl	%ebx, %ecx
	callq	_bus_space_write_4
	movl	(%r13), %edi
	movl	-44(%rbp), %esi
	movq	_MV_CPU_RESET_REGS_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_bus_space_unmap
LBB0_2:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_fdtbus_bs_tag,4,2              ## @fdtbus_bs_tag
	.comm	_MV_CPU_RESET_BASE,8,3          ## @MV_CPU_RESET_BASE
	.comm	_MV_CPU_RESET_REGS_LEN,4,2      ## @MV_CPU_RESET_REGS_LEN
	.comm	_CPU_RESET_ASSERT,4,2           ## @CPU_RESET_ASSERT
	.no_dead_strip	_cpu_reset_deassert
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cpu_reset_deassert
_cpu_reset_deassert:                    ; @cpu_reset_deassert
	.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
Lloh0:
	adrp	x23, _fdtbus_bs_tag@GOTPAGE
Lloh1:
	ldr	x23, [x23, _fdtbus_bs_tag@GOTPAGEOFF]
	ldr	w0, [x23]
Lloh2:
	adrp	x8, _MV_CPU_RESET_BASE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MV_CPU_RESET_BASE@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
Lloh5:
	adrp	x24, _MV_CPU_RESET_REGS_LEN@GOTPAGE
Lloh6:
	ldr	x24, [x24, _MV_CPU_RESET_REGS_LEN@GOTPAGEOFF]
	ldr	w2, [x24]
	add	x4, sp, #12
	mov	w3, #0
	bl	_bus_space_map
	mov	x19, x0
	cbnz	w0, LBB0_2
; %bb.1:
	ldr	w20, [x23]
	ldr	w21, [sp, #12]
	mov	w0, #1
	bl	_CPU_RESET_OFFSET
	mov	x2, x0
	mov	x0, x20
	mov	x1, x21
	bl	_bus_space_read_4
Lloh7:
	adrp	x8, _CPU_RESET_ASSERT@GOTPAGE
Lloh8:
	ldr	x8, [x8, _CPU_RESET_ASSERT@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	bic	w20, w0, w8
	ldr	w21, [x23]
	ldr	w22, [sp, #12]
	mov	w0, #1
	bl	_CPU_RESET_OFFSET
	mov	x2, x0
	mov	x0, x21
	mov	x1, x22
	mov	x3, x20
	bl	_bus_space_write_4
	ldr	w0, [x23]
	ldr	w1, [sp, #12]
	ldr	w2, [x24]
	bl	_bus_space_unmap
LBB0_2:
	mov	x0, x19
	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
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_fdtbus_bs_tag,4,2              ; @fdtbus_bs_tag
	.comm	_MV_CPU_RESET_BASE,8,3          ; @MV_CPU_RESET_BASE
	.comm	_MV_CPU_RESET_REGS_LEN,4,2      ; @MV_CPU_RESET_REGS_LEN
	.comm	_CPU_RESET_ASSERT,4,2           ; @CPU_RESET_ASSERT
	.no_dead_strip	_cpu_reset_deassert
.subsections_via_symbols
