	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _resetdigitalprocedure1
__resetdigitalprocedure1:               ## @_resetdigitalprocedure1
	.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
	movl	%esi, %r12d
	movq	%rdi, %rbx
	callq	_rtl_priv
	movq	%rax, %r15
	movq	%rbx, %rdi
	callq	_rtl_priv
	movq	%rax, %rdi
	callq	_rtl_hal
	cmpl	$32, (%rax)
	movq	_REG_MCUFWDL@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	jg	LBB0_2
## %bb.1:
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_rtl_write_byte
	movq	_REG_SYS_FUNC_EN@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rsi
	movq	%r15, %rdi
	callq	_rtl_read_word
	movq	(%rbx), %rsi
	movq	_FEN_CPUEN@GOTPCREL(%rip), %r14
	movl	(%r14), %edx
	notl	%edx
	andl	%eax, %edx
	movq	%r15, %rdi
	callq	_rtl_write_word
	movq	(%rbx), %rsi
	movq	%r15, %rdi
	callq	_rtl_read_word
	andl	$4095, %eax                     ## imm = 0xFFF
	movq	(%rbx), %rsi
	movq	_FEN_HWPDN@GOTPCREL(%rip), %rcx
	movq	_FEN_ELDR@GOTPCREL(%rip), %rdx
	orl	(%rcx), %eax
	orl	(%rdx), %eax
	movq	%r15, %rdi
	movl	%eax, %edx
	callq	_rtl_write_word
	movq	(%rbx), %rsi
	movq	%r15, %rdi
	callq	_rtl_read_word
	movq	(%rbx), %rsi
	orl	(%r14), %eax
	movq	%r15, %rdi
	movl	%eax, %edx
	callq	_rtl_write_word
	testl	%r12d, %r12d
	je	LBB0_11
LBB0_12:
	movq	_REG_SYS_CLKR@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%r15, %rdi
	movl	$28835, %edx                    ## imm = 0x70A3
	callq	_rtl_write_word
	movq	_REG_AFE_PLL_CTRL@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%r15, %rdi
	movl	$128, %edx
	callq	_rtl_write_byte
	movq	_REG_AFE_XTAL_CTRL@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%r15, %rdi
	movl	$34831, %edx                    ## imm = 0x880F
	callq	_rtl_write_word
	movq	_REG_SYS_ISO_CTRL@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%r15, %rdi
	movl	$249, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_rtl_write_byte                 ## TAILCALL
LBB0_2:
	movl	%r12d, -44(%rbp)                ## 4-byte Spill
	movq	%r15, %rdi
	callq	_rtl_read_byte
	movl	%eax, %ebx
	movl	$1, %edi
	callq	_BIT
	testl	%ebx, %eax
	je	LBB0_9
## %bb.3:
	movq	_REG_MCUFWDL@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_rtl_write_byte
	movq	_REG_HMETFR@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	$3, %rsi
	movq	%r15, %rdi
	movl	$32, %edx
	callq	_rtl_write_byte
	movq	_FEN_CPUEN@GOTPCREL(%rip), %r14
	movl	(%r14), %r12d
	movq	_REG_SYS_FUNC_EN@GOTPCREL(%rip), %r13
	movq	(%r13), %rsi
	movq	%r15, %rdi
	callq	_rtl_read_word
	testl	%r12d, %eax
	je	LBB0_7
## %bb.4:
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movl	$50, %edi
	callq	_udelay
	cmpl	$99, %ebx
	je	LBB0_8
## %bb.5:                               ##   in Loop: Header=BB0_6 Depth=1
	movl	(%r14), %r12d
	movq	(%r13), %rsi
	movq	%r15, %rdi
	callq	_rtl_read_word
	incl	%ebx
	testl	%r12d, %eax
	jne	LBB0_6
LBB0_7:
	cmpl	$99, %ebx
	jb	LBB0_9
LBB0_8:
	leaq	L_.str(%rip), %rdi
	callq	_pr_err
	movq	(%r13), %rsi
	incq	%rsi
	movq	%r15, %rdi
	movl	$80, %edx
	callq	_rtl_write_byte
	movl	$100, %edi
	callq	_udelay
LBB0_9:
	movq	_REG_SYS_FUNC_EN@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	incq	%rsi
	movq	%r15, %rdi
	movl	$84, %edx
	callq	_rtl_write_byte
	movq	_REG_MCUFWDL@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%r15, %rdi
	xorl	%edx, %edx
	callq	_rtl_write_byte
	movl	-44(%rbp), %r12d                ## 4-byte Reload
	testl	%r12d, %r12d
	jne	LBB0_12
LBB0_11:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_REG_MCUFWDL,8,3                ## @REG_MCUFWDL
	.comm	_REG_SYS_FUNC_EN,8,3            ## @REG_SYS_FUNC_EN
	.comm	_FEN_CPUEN,4,2                  ## @FEN_CPUEN
	.comm	_FEN_HWPDN,4,2                  ## @FEN_HWPDN
	.comm	_FEN_ELDR,4,2                   ## @FEN_ELDR
	.comm	_REG_HMETFR,8,3                 ## @REG_HMETFR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"8051 reset failed!.........................\n"

	.comm	_REG_SYS_CLKR,8,3               ## @REG_SYS_CLKR
	.comm	_REG_AFE_PLL_CTRL,8,3           ## @REG_AFE_PLL_CTRL
	.comm	_REG_AFE_XTAL_CTRL,8,3          ## @REG_AFE_XTAL_CTRL
	.comm	_REG_SYS_ISO_CTRL,8,3           ## @REG_SYS_ISO_CTRL
	.no_dead_strip	__resetdigitalprocedure1
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function _resetdigitalprocedure1
__resetdigitalprocedure1:               ; @_resetdigitalprocedure1
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x1
	mov	x21, x0
	bl	_rtl_priv
	mov	x19, x0
	mov	x0, x21
	bl	_rtl_priv
	bl	_rtl_hal
	ldr	w8, [x0]
Lloh0:
	adrp	x22, _REG_MCUFWDL@GOTPAGE
Lloh1:
	ldr	x22, [x22, _REG_MCUFWDL@GOTPAGEOFF]
	ldr	x1, [x22]
	mov	x0, x19
	cmp	w8, #32
	b.gt	LBB0_3
; %bb.1:
	mov	w2, #0
	bl	_rtl_write_byte
Lloh2:
	adrp	x21, _REG_SYS_FUNC_EN@GOTPAGE
Lloh3:
	ldr	x21, [x21, _REG_SYS_FUNC_EN@GOTPAGEOFF]
	ldr	x1, [x21]
	mov	x0, x19
	bl	_rtl_read_word
	ldr	x1, [x21]
Lloh4:
	adrp	x22, _FEN_CPUEN@GOTPAGE
Lloh5:
	ldr	x22, [x22, _FEN_CPUEN@GOTPAGEOFF]
	ldr	w8, [x22]
	bic	w2, w0, w8
	mov	x0, x19
	bl	_rtl_write_word
	ldr	x1, [x21]
	mov	x0, x19
	bl	_rtl_read_word
	and	w8, w0, #0xfff
	ldr	x1, [x21]
Lloh6:
	adrp	x9, _FEN_HWPDN@GOTPAGE
Lloh7:
	ldr	x9, [x9, _FEN_HWPDN@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
Lloh9:
	adrp	x10, _FEN_ELDR@GOTPAGE
Lloh10:
	ldr	x10, [x10, _FEN_ELDR@GOTPAGEOFF]
Lloh11:
	ldr	w10, [x10]
	orr	w8, w9, w8
	orr	w2, w8, w10
	mov	x0, x19
	bl	_rtl_write_word
	ldr	x1, [x21]
	mov	x0, x19
	bl	_rtl_read_word
	ldr	x1, [x21]
	ldr	w8, [x22]
	orr	w2, w8, w0
	mov	x0, x19
	bl	_rtl_write_word
	cbz	w20, LBB0_12
LBB0_2:
Lloh12:
	adrp	x8, _REG_SYS_CLKR@GOTPAGE
Lloh13:
	ldr	x8, [x8, _REG_SYS_CLKR@GOTPAGEOFF]
Lloh14:
	ldr	x1, [x8]
	mov	x0, x19
	mov	w2, #28835
	bl	_rtl_write_word
Lloh15:
	adrp	x8, _REG_AFE_PLL_CTRL@GOTPAGE
Lloh16:
	ldr	x8, [x8, _REG_AFE_PLL_CTRL@GOTPAGEOFF]
Lloh17:
	ldr	x1, [x8]
	mov	x0, x19
	mov	w2, #128
	bl	_rtl_write_byte
Lloh18:
	adrp	x8, _REG_AFE_XTAL_CTRL@GOTPAGE
Lloh19:
	ldr	x8, [x8, _REG_AFE_XTAL_CTRL@GOTPAGEOFF]
Lloh20:
	ldr	x1, [x8]
	mov	x0, x19
	mov	w2, #34831
	bl	_rtl_write_word
Lloh21:
	adrp	x8, _REG_SYS_ISO_CTRL@GOTPAGE
Lloh22:
	ldr	x8, [x8, _REG_SYS_ISO_CTRL@GOTPAGEOFF]
Lloh23:
	ldr	x1, [x8]
	mov	x0, x19
	mov	w2, #249
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_rtl_write_byte
LBB0_3:
	bl	_rtl_read_byte
	mov	x21, x0
	mov	w0, #1
	bl	_BIT
Lloh24:
	adrp	x23, _REG_SYS_FUNC_EN@GOTPAGE
Lloh25:
	ldr	x23, [x23, _REG_SYS_FUNC_EN@GOTPAGEOFF]
	tst	w0, w21
	b.eq	LBB0_11
; %bb.4:
	ldr	x1, [x22]
	mov	x0, x19
	mov	w2, #0
	bl	_rtl_write_byte
Lloh26:
	adrp	x8, _REG_HMETFR@GOTPAGE
Lloh27:
	ldr	x8, [x8, _REG_HMETFR@GOTPAGEOFF]
Lloh28:
	ldr	x8, [x8]
	add	x1, x8, #3
	mov	x0, x19
	mov	w2, #32
	bl	_rtl_write_byte
Lloh29:
	adrp	x21, _FEN_CPUEN@GOTPAGE
Lloh30:
	ldr	x21, [x21, _FEN_CPUEN@GOTPAGEOFF]
	ldr	w24, [x21]
	ldr	x1, [x23]
	mov	x0, x19
	bl	_rtl_read_word
	tst	w0, w24
	b.eq	LBB0_8
; %bb.5:
	mov	w24, #0
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	mov	w0, #50
	bl	_udelay
	cmp	w24, #99
	b.eq	LBB0_10
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w25, [x21]
	ldr	x1, [x23]
	mov	x0, x19
	bl	_rtl_read_word
	add	w24, w24, #1
	tst	w0, w25
	b.ne	LBB0_6
	b	LBB0_9
LBB0_8:
	mov	w24, #0
LBB0_9:
	cmp	w24, #99
	b.lo	LBB0_11
LBB0_10:
Lloh31:
	adrp	x0, l_.str@PAGE
Lloh32:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_err
	ldr	x8, [x23]
	add	x1, x8, #1
	mov	x0, x19
	mov	w2, #80
	bl	_rtl_write_byte
	mov	w0, #100
	bl	_udelay
LBB0_11:
	ldr	x8, [x23]
	add	x1, x8, #1
	mov	x0, x19
	mov	w2, #84
	bl	_rtl_write_byte
	ldr	x1, [x22]
	mov	x0, x19
	mov	w2, #0
	bl	_rtl_write_byte
	cbnz	w20, LBB0_2
LBB0_12:
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpAdd	Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.comm	_REG_MCUFWDL,8,3                ; @REG_MCUFWDL
	.comm	_REG_SYS_FUNC_EN,8,3            ; @REG_SYS_FUNC_EN
	.comm	_FEN_CPUEN,4,2                  ; @FEN_CPUEN
	.comm	_FEN_HWPDN,4,2                  ; @FEN_HWPDN
	.comm	_FEN_ELDR,4,2                   ; @FEN_ELDR
	.comm	_REG_HMETFR,8,3                 ; @REG_HMETFR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"8051 reset failed!.........................\n"

	.comm	_REG_SYS_CLKR,8,3               ; @REG_SYS_CLKR
	.comm	_REG_AFE_PLL_CTRL,8,3           ; @REG_AFE_PLL_CTRL
	.comm	_REG_AFE_XTAL_CTRL,8,3          ; @REG_AFE_XTAL_CTRL
	.comm	_REG_SYS_ISO_CTRL,8,3           ; @REG_SYS_ISO_CTRL
	.no_dead_strip	__resetdigitalprocedure1
.subsections_via_symbols
