	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vsc7326_full_reset
_vsc7326_full_reset:                    ## @vsc7326_full_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	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movl	$65535, -32(%rbp)               ## imm = 0xFFFF
	movq	_A_ELMER0_GPO@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	leaq	-28(%rbp), %rdx
	callq	_t1_tpi_read
	movl	-28(%rbp), %edx
	andl	$-2, %edx
	movl	%edx, -28(%rbp)
	movl	(%rbx), %esi
	movq	%r14, %rdi
	callq	_t1_tpi_write
	movl	$2, %edi
	callq	_udelay
	movl	$2049, %edx                     ## imm = 0x801
	orl	-28(%rbp), %edx
	movl	%edx, -28(%rbp)
	movl	(%rbx), %esi
	movq	%r14, %rdi
	callq	_t1_tpi_write
	movl	$1, %edi
	callq	_mdelay
	movq	_REG_SW_RESET@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%r14, %rdi
	movl	$-2147483647, %edx              ## imm = 0x80000001
	callq	_vsc_write
	leaq	-32(%rbp), %rbx
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	$1, %edi
	callq	_mdelay
	movl	(%r15), %esi
	movq	%r14, %rdi
	movq	%rbx, %rdx
	callq	_vsc_read
	cmpl	$0, -32(%rbp)
	jne	LBB0_1
## %bb.2:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_A_ELMER0_GPO,4,2               ## @A_ELMER0_GPO
	.comm	_REG_SW_RESET,4,2               ## @REG_SW_RESET
	.no_dead_strip	_vsc7326_full_reset
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vsc7326_full_reset
_vsc7326_full_reset:                    ; @vsc7326_full_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
	mov	x19, x0
	mov	w8, #65535
	str	w8, [sp, #8]
Lloh0:
	adrp	x20, _A_ELMER0_GPO@GOTPAGE
Lloh1:
	ldr	x20, [x20, _A_ELMER0_GPO@GOTPAGEOFF]
	ldr	w1, [x20]
	add	x2, sp, #12
	bl	_t1_tpi_read
	ldr	w8, [sp, #12]
	and	w2, w8, #0xfffffffe
	str	w2, [sp, #12]
	ldr	w1, [x20]
	mov	x0, x19
	bl	_t1_tpi_write
	mov	w0, #2
	bl	_udelay
	ldr	w8, [sp, #12]
	mov	w9, #2049
	orr	w2, w8, w9
	str	w2, [sp, #12]
	ldr	w1, [x20]
	mov	x0, x19
	bl	_t1_tpi_write
	mov	w0, #1
	bl	_mdelay
Lloh2:
	adrp	x20, _REG_SW_RESET@GOTPAGE
Lloh3:
	ldr	x20, [x20, _REG_SW_RESET@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	x0, x19
	mov	w2, #-2147483647
	bl	_vsc_write
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	mov	w0, #1
	bl	_mdelay
	ldr	w1, [x20]
	add	x2, sp, #8
	mov	x0, x19
	bl	_vsc_read
	ldr	w8, [sp, #8]
	cbnz	w8, LBB0_1
; %bb.2:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_A_ELMER0_GPO,4,2               ; @A_ELMER0_GPO
	.comm	_REG_SW_RESET,4,2               ; @REG_SW_RESET
	.no_dead_strip	_vsc7326_full_reset
.subsections_via_symbols
