	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	leaq	L_.str(%rip), %rsi
	movl	$3, %edi
	callq	_dprintk
	movq	_RDC_8820_RESET@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	movq	_NO_DELAY@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	xorl	%r14d, %r14d
	movq	%rbx, %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	(%r15), %ecx
	movq	_DELAY@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%rbx, %rdi
	movl	%ecx, %esi
	movl	%ecx, %edx
	callq	_dst_gpio_outb
	testq	%rax, %rax
	jns	LBB0_3
LBB0_2:
	leaq	L_.str.1(%rip), %rdi
	callq	_pr_err
	movl	$-1, %r14d
LBB0_3:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Resetting DST\n"

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

	.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	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #3
	bl	_dprintk
Lloh2:
	adrp	x20, _RDC_8820_RESET@GOTPAGE
Lloh3:
	ldr	x20, [x20, _RDC_8820_RESET@GOTPAGEOFF]
	ldr	w1, [x20]
Lloh4:
	adrp	x8, _NO_DELAY@GOTPAGE
Lloh5:
	ldr	x8, [x8, _NO_DELAY@GOTPAGEOFF]
Lloh6:
	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, [x20]
Lloh7:
	adrp	x8, _DELAY@GOTPAGE
Lloh8:
	ldr	x8, [x8, _DELAY@GOTPAGEOFF]
Lloh9:
	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:
Lloh10:
	adrp	x0, l_.str.1@PAGE
Lloh11:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_pr_err
	mov	w0, #-1
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Resetting DST\n"

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

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