	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mxs_i2c_remove
_mxs_i2c_remove:                        ## @mxs_i2c_remove
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	callq	_platform_get_drvdata
	movq	%rax, %rbx
	leaq	16(%rax), %rdi
	callq	_i2c_del_adapter
	movq	8(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.1:
	callq	_dma_release_channel
LBB0_2:
	movq	_MXS_I2C_CTRL0_SFTRST@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_MXS_I2C_CTRL0_SET@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	addq	(%rbx), %rsi
	callq	_writel
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MXS_I2C_CTRL0_SFTRST,4,2       ## @MXS_I2C_CTRL0_SFTRST
	.comm	_MXS_I2C_CTRL0_SET,8,3          ## @MXS_I2C_CTRL0_SET
	.no_dead_strip	_mxs_i2c_remove
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mxs_i2c_remove
_mxs_i2c_remove:                        ; @mxs_i2c_remove
	.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
	bl	_platform_get_drvdata
	mov	x19, x0
	add	x0, x0, #16
	bl	_i2c_del_adapter
	ldr	x0, [x19, #8]
	cbz	x0, LBB0_2
; %bb.1:
	bl	_dma_release_channel
LBB0_2:
Lloh0:
	adrp	x8, _MXS_I2C_CTRL0_SFTRST@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MXS_I2C_CTRL0_SFTRST@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	ldr	x8, [x19]
Lloh3:
	adrp	x9, _MXS_I2C_CTRL0_SET@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MXS_I2C_CTRL0_SET@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	add	x1, x9, x8
	bl	_writel
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_MXS_I2C_CTRL0_SFTRST,4,2       ; @MXS_I2C_CTRL0_SFTRST
	.comm	_MXS_I2C_CTRL0_SET,8,3          ; @MXS_I2C_CTRL0_SET
	.no_dead_strip	_mxs_i2c_remove
.subsections_via_symbols
