	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	leaq	L_.str(%rip), %rsi
	movl	$2, %edi
	callq	_dprintk
	movq	_RDC_8820_INT@GOTPCREL(%rip), %r15
	movl	(%r15), %edx
	movq	_NO_DELAY@GOTPCREL(%rip), %r12
	movl	(%r12), %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	(%r15), %ecx
	movl	(%r12), %r8d
	movq	%rbx, %rdi
	movl	%ecx, %esi
	movl	%ecx, %edx
	callq	_dst_gpio_outb
	testq	%rax, %rax
	jns	LBB0_5
## %bb.3:
	leaq	L_.str.1(%rip), %rdi
	callq	_pr_err
	movl	$10, %edi
	callq	_msleep
	jmp	LBB0_4
LBB0_1:
	leaq	L_.str.1(%rip), %rdi
	callq	_pr_err
LBB0_4:
	movl	$-1, %r14d
LBB0_5:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Resetting state machine\n"

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

.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	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #2
	bl	_dprintk
Lloh2:
	adrp	x20, _RDC_8820_INT@GOTPAGE
Lloh3:
	ldr	x20, [x20, _RDC_8820_INT@GOTPAGEOFF]
	ldr	w1, [x20]
Lloh4:
	adrp	x21, _NO_DELAY@GOTPAGE
Lloh5:
	ldr	x21, [x21, _NO_DELAY@GOTPAGEOFF]
	ldr	w4, [x21]
	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, [x20]
	ldr	w4, [x21]
	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:
Lloh6:
	adrp	x0, l_.str.1@PAGE
Lloh7:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_pr_err
	b	LBB0_5
LBB0_4:
Lloh8:
	adrp	x0, l_.str.1@PAGE
Lloh9:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_pr_err
	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	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Resetting state machine\n"

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

.subsections_via_symbols
