	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rk3x_i2c_stop
_rk3x_i2c_stop:                         ## @rk3x_i2c_stop
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	xorps	%xmm0, %xmm0
	movups	%xmm0, 24(%rdi)
	movl	%esi, (%rdi)
	cmpq	$0, 16(%rdi)
	je	LBB0_2
## %bb.1:
	movq	_REG_INT_STOP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_REG_IEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_i2c_writel
	movq	_STATE_STOP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%rbx)
	movq	_REG_CON@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_i2c_readl
	movq	_REG_CON_STOP@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	(%r14), %edx
	movq	%rbx, %rdi
	movl	%eax, %esi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_i2c_writel                     ## TAILCALL
LBB0_2:
	movl	$0, 4(%rbx)
	movq	_STATE_IDLE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%rbx)
	movq	_REG_CON@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_i2c_readl
	movq	_REG_CON_TUNING_MASK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	movl	(%r14), %edx
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_i2c_writel
	addq	$8, %rbx
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_wake_up                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_REG_INT_STOP,4,2               ## @REG_INT_STOP
	.comm	_REG_IEN,4,2                    ## @REG_IEN
	.comm	_STATE_STOP,4,2                 ## @STATE_STOP
	.comm	_REG_CON,4,2                    ## @REG_CON
	.comm	_REG_CON_STOP,4,2               ## @REG_CON_STOP
	.comm	_STATE_IDLE,4,2                 ## @STATE_IDLE
	.comm	_REG_CON_TUNING_MASK,4,2        ## @REG_CON_TUNING_MASK
	.no_dead_strip	_rk3x_i2c_stop
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rk3x_i2c_stop
_rk3x_i2c_stop:                         ; @rk3x_i2c_stop
	.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
	stp	xzr, xzr, [x0, #24]
	str	w1, [x0]
	ldr	x8, [x0, #16]
	cbz	x8, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _REG_INT_STOP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _REG_INT_STOP@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x8, _REG_IEN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _REG_IEN@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_i2c_writel
Lloh6:
	adrp	x8, _STATE_STOP@GOTPAGE
Lloh7:
	ldr	x8, [x8, _STATE_STOP@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	str	w8, [x19, #12]
Lloh9:
	adrp	x20, _REG_CON@GOTPAGE
Lloh10:
	ldr	x20, [x20, _REG_CON@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	x0, x19
	bl	_i2c_readl
Lloh11:
	adrp	x8, _REG_CON_STOP@GOTPAGE
Lloh12:
	ldr	x8, [x8, _REG_CON_STOP@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	orr	w1, w8, w0
	ldr	w2, [x20]
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_i2c_writel
LBB0_2:
Lloh14:
	adrp	x8, _STATE_IDLE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _STATE_IDLE@GOTPAGEOFF]
	str	wzr, [x19, #4]
Lloh16:
	ldr	w8, [x8]
	str	w8, [x19, #12]
Lloh17:
	adrp	x20, _REG_CON@GOTPAGE
Lloh18:
	ldr	x20, [x20, _REG_CON@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	x0, x19
	bl	_i2c_readl
Lloh19:
	adrp	x8, _REG_CON_TUNING_MASK@GOTPAGE
Lloh20:
	ldr	x8, [x8, _REG_CON_TUNING_MASK@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	and	w1, w8, w0
	ldr	w2, [x20]
	mov	x0, x19
	bl	_i2c_writel
	add	x0, x19, #8
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_wake_up
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_REG_INT_STOP,4,2               ; @REG_INT_STOP
	.comm	_REG_IEN,4,2                    ; @REG_IEN
	.comm	_STATE_STOP,4,2                 ; @STATE_STOP
	.comm	_REG_CON,4,2                    ; @REG_CON
	.comm	_REG_CON_STOP,4,2               ; @REG_CON_STOP
	.comm	_STATE_IDLE,4,2                 ; @STATE_IDLE
	.comm	_REG_CON_TUNING_MASK,4,2        ; @REG_CON_TUNING_MASK
	.no_dead_strip	_rk3x_i2c_stop
.subsections_via_symbols
