	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rdc_reset_state                ## -- Begin function rdc_reset_state
	.p2align	4, 0x90
_rdc_reset_state:                       ## @rdc_reset_state
	.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	%rdi, %rbx
	movq	_verbose@GOTPCREL(%rip), %r15
	movl	(%r15), %edi
	movq	_DST_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rcx
	movl	$1, %edx
	callq	_dprintk
	movq	_RDC_8820_INT@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	movq	_NO_DELAY@GOTPCREL(%rip), %r13
	movl	(%r13), %r8d
	xorl	%r14d, %r14d
	movq	%rbx, %rdi
	movl	%edx, %esi
	xorl	%ecx, %ecx
	callq	_dst_gpio_outb
	testq	%rax, %rax
	js	LBB0_1
## %bb.2:
	movl	$10, %edi
	callq	_msleep
	movl	(%r12), %ecx
	movl	(%r13), %r8d
	movq	%rbx, %rdi
	movl	%ecx, %esi
	movl	%ecx, %edx
	callq	_dst_gpio_outb
	testq	%rax, %rax
	jns	LBB0_5
## %bb.3:
	movl	(%r15), %edi
	movq	_DST_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rcx
	movl	$1, %edx
	callq	_dprintk
	movl	$10, %edi
	callq	_msleep
	jmp	LBB0_4
LBB0_1:
	movl	(%r15), %edi
	movq	_DST_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rcx
	movl	$1, %edx
	callq	_dprintk
LBB0_4:
	movl	$-1, %r14d
LBB0_5:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_verbose,4,2                    ## @verbose
	.comm	_DST_INFO,4,2                   ## @DST_INFO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Resetting state machine"

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

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rdc_reset_state                ; -- Begin function rdc_reset_state
	.p2align	2
_rdc_reset_state:                       ; @rdc_reset_state
	.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_INFO@GOTPAGE
Lloh3:
	ldr	x8, [x8, _DST_INFO@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_INT@GOTPAGE
Lloh8:
	ldr	x21, [x21, _RDC_8820_INT@GOTPAGEOFF]
	ldr	w1, [x21]
Lloh9:
	adrp	x22, _NO_DELAY@GOTPAGE
Lloh10:
	ldr	x22, [x22, _NO_DELAY@GOTPAGEOFF]
	ldr	w4, [x22]
	mov	x0, x19
	mov	x2, x1
	mov	w3, #0
	bl	_dst_gpio_outb
	tbnz	x0, #63, LBB0_3
; %bb.1:
	mov	w0, #10
	bl	_msleep
	ldr	w1, [x21]
	ldr	w4, [x22]
	mov	x0, x19
	mov	x2, x1
	mov	x3, x1
	bl	_dst_gpio_outb
	tbnz	x0, #63, LBB0_4
; %bb.2:
	mov	w0, #0
	b	LBB0_6
LBB0_3:
	ldr	w0, [x20]
Lloh11:
	adrp	x8, _DST_ERROR@GOTPAGE
Lloh12:
	ldr	x8, [x8, _DST_ERROR@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
Lloh14:
	adrp	x3, l_.str.1@PAGE
Lloh15:
	add	x3, x3, l_.str.1@PAGEOFF
	mov	w2, #1
	bl	_dprintk
	b	LBB0_5
LBB0_4:
	ldr	w0, [x20]
Lloh16:
	adrp	x8, _DST_ERROR@GOTPAGE
Lloh17:
	ldr	x8, [x8, _DST_ERROR@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
Lloh19:
	adrp	x3, l_.str.1@PAGE
Lloh20:
	add	x3, x3, l_.str.1@PAGEOFF
	mov	w2, #1
	bl	_dprintk
	mov	w0, #10
	bl	_msleep
LBB0_5:
	mov	w0, #-1
LBB0_6:
	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 AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_verbose,4,2                    ; @verbose
	.comm	_DST_INFO,4,2                   ; @DST_INFO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Resetting state machine"

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

.subsections_via_symbols
