	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rdc_8820_reset
_rdc_8820_reset:                        ## @rdc_8820_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_verbose@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	movq	_DST_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rcx
	movl	$1, %edx
	callq	_dprintk
	movq	_RDC_8820_RESET@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	movq	_NO_DELAY@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	movl	%edx, %esi
	xorl	%ecx, %ecx
	callq	_dst_gpio_outb
	testq	%rax, %rax
	js	LBB0_2
## %bb.1:
	movl	$1000, %edi                     ## imm = 0x3E8
	callq	_udelay
	movl	(%r12), %ecx
	movq	_DELAY@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%r14, %rdi
	movl	%ecx, %esi
	movl	%ecx, %edx
	callq	_dst_gpio_outb
	testq	%rax, %rax
	jns	LBB0_3
LBB0_2:
	movl	(%r15), %edi
	movq	_DST_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rcx
	movl	$1, %edx
	callq	_dprintk
	movl	$-1, %ebx
LBB0_3:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_verbose,4,2                    ## @verbose
	.comm	_DST_DEBUG,4,2                  ## @DST_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Resetting DST"

	.comm	_RDC_8820_RESET,4,2             ## @RDC_8820_RESET
	.comm	_NO_DELAY,4,2                   ## @NO_DELAY
	.comm	_DST_ERROR,4,2                  ## @DST_ERROR
L_.str.1:                               ## @.str.1
	.asciz	"dst_gpio_outb ERROR !"

	.comm	_DELAY,4,2                      ## @DELAY
	.no_dead_strip	_rdc_8820_reset
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rdc_8820_reset
_rdc_8820_reset:                        ; @rdc_8820_reset
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x0
Lloh0:
	adrp	x20, _verbose@GOTPAGE
Lloh1:
	ldr	x20, [x20, _verbose@GOTPAGEOFF]
	ldr	w0, [x20]
Lloh2:
	adrp	x8, _DST_DEBUG@GOTPAGE
Lloh3:
	ldr	x8, [x8, _DST_DEBUG@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
Lloh5:
	adrp	x3, l_.str@PAGE
Lloh6:
	add	x3, x3, l_.str@PAGEOFF
	mov	w2, #1
	bl	_dprintk
Lloh7:
	adrp	x21, _RDC_8820_RESET@GOTPAGE
Lloh8:
	ldr	x21, [x21, _RDC_8820_RESET@GOTPAGEOFF]
	ldr	w1, [x21]
Lloh9:
	adrp	x8, _NO_DELAY@GOTPAGE
Lloh10:
	ldr	x8, [x8, _NO_DELAY@GOTPAGEOFF]
Lloh11:
	ldr	w4, [x8]
	mov	x0, x19
	mov	x2, x1
	mov	w3, #0
	bl	_dst_gpio_outb
	tbnz	x0, #63, LBB0_3
; %bb.1:
	mov	w0, #1000
	bl	_udelay
	ldr	w1, [x21]
Lloh12:
	adrp	x8, _DELAY@GOTPAGE
Lloh13:
	ldr	x8, [x8, _DELAY@GOTPAGEOFF]
Lloh14:
	ldr	w4, [x8]
	mov	x0, x19
	mov	x2, x1
	mov	x3, x1
	bl	_dst_gpio_outb
	tbnz	x0, #63, LBB0_3
; %bb.2:
	mov	w0, #0
	b	LBB0_4
LBB0_3:
	ldr	w0, [x20]
Lloh15:
	adrp	x8, _DST_ERROR@GOTPAGE
Lloh16:
	ldr	x8, [x8, _DST_ERROR@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
Lloh18:
	adrp	x3, l_.str.1@PAGE
Lloh19:
	add	x3, x3, l_.str.1@PAGEOFF
	mov	w2, #1
	bl	_dprintk
	mov	w0, #-1
LBB0_4:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_verbose,4,2                    ; @verbose
	.comm	_DST_DEBUG,4,2                  ; @DST_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Resetting DST"

	.comm	_RDC_8820_RESET,4,2             ; @RDC_8820_RESET
	.comm	_NO_DELAY,4,2                   ; @NO_DELAY
	.comm	_DST_ERROR,4,2                  ; @DST_ERROR
l_.str.1:                               ; @.str.1
	.asciz	"dst_gpio_outb ERROR !"

	.comm	_DELAY,4,2                      ; @DELAY
	.no_dead_strip	_rdc_8820_reset
.subsections_via_symbols
