	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function geni_i2c_rx_fsm_rst
_geni_i2c_rx_fsm_rst:                   ## @geni_i2c_rx_fsm_rst
	.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, %r14
	movq	_RST_TIMEOUT@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	_SE_DMA_RX_FSM_RST@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	8(%rdi), %rsi
	movl	$1, %edi
	callq	_writel_relaxed
	leaq	16(%r14), %r15
	movq	_SE_DMA_RX_IRQ_STAT@GOTPCREL(%rip), %r12
	movq	_RX_RESET_DONE@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_wait_for_completion_timeout
	movq	%rax, %rbx
	movq	(%r12), %rdi
	addq	8(%r14), %rdi
	callq	_readl_relaxed
	andl	(%r13), %eax
	jne	LBB0_3
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	testq	%rbx, %rbx
	jne	LBB0_1
LBB0_3:
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movl	(%r14), %edi
	leaq	L_.str(%rip), %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dev_err                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_RST_TIMEOUT,8,3                ## @RST_TIMEOUT
	.comm	_SE_DMA_RX_FSM_RST,8,3          ## @SE_DMA_RX_FSM_RST
	.comm	_SE_DMA_RX_IRQ_STAT,8,3         ## @SE_DMA_RX_IRQ_STAT
	.comm	_RX_RESET_DONE,4,2              ## @RX_RESET_DONE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Timeout resetting RX_FSM\n"

	.no_dead_strip	_geni_i2c_rx_fsm_rst
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function geni_i2c_rx_fsm_rst
_geni_i2c_rx_fsm_rst:                   ; @geni_i2c_rx_fsm_rst
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
Lloh0:
	adrp	x8, _RST_TIMEOUT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RST_TIMEOUT@GOTPAGEOFF]
Lloh2:
	ldr	x20, [x8]
	ldr	x8, [x0, #8]
Lloh3:
	adrp	x9, _SE_DMA_RX_FSM_RST@GOTPAGE
Lloh4:
	ldr	x9, [x9, _SE_DMA_RX_FSM_RST@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	add	x1, x9, x8
	mov	w0, #1
	bl	_writel_relaxed
	add	x21, x19, #16
Lloh6:
	adrp	x22, _SE_DMA_RX_IRQ_STAT@GOTPAGE
Lloh7:
	ldr	x22, [x22, _SE_DMA_RX_IRQ_STAT@GOTPAGEOFF]
Lloh8:
	adrp	x23, _RX_RESET_DONE@GOTPAGE
Lloh9:
	ldr	x23, [x23, _RX_RESET_DONE@GOTPAGEOFF]
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	mov	x1, x20
	bl	_wait_for_completion_timeout
	mov	x20, x0
	ldr	x8, [x19, #8]
	ldr	x9, [x22]
	add	x0, x9, x8
	bl	_readl_relaxed
	ldr	w8, [x23]
	and	w8, w8, w0
	cmp	w8, #0
	ccmp	x20, #0, #4, eq
	b.ne	LBB0_1
; %bb.2:
	cbz	w8, LBB0_4
; %bb.3:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_4:
	ldr	w0, [x19]
Lloh10:
	adrp	x1, l_.str@PAGE
Lloh11:
	add	x1, x1, l_.str@PAGEOFF
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_dev_err
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_RST_TIMEOUT,8,3                ; @RST_TIMEOUT
	.comm	_SE_DMA_RX_FSM_RST,8,3          ; @SE_DMA_RX_FSM_RST
	.comm	_SE_DMA_RX_IRQ_STAT,8,3         ; @SE_DMA_RX_IRQ_STAT
	.comm	_RX_RESET_DONE,4,2              ; @RX_RESET_DONE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Timeout resetting RX_FSM\n"

	.no_dead_strip	_geni_i2c_rx_fsm_rst
.subsections_via_symbols
