	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_exit_cx18_i2c                  ## -- Begin function exit_cx18_i2c
	.p2align	4, 0x90
_exit_cx18_i2c:                         ## @exit_cx18_i2c
	.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
	leaq	L_.str(%rip), %rdi
	callq	_CX18_DEBUG_I2C
	movq	_CX18_REG_I2C_1_WR@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_cx18_read_reg
	orl	$4, %eax
	movl	(%r14), %edx
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_cx18_write_reg
	movq	_CX18_REG_I2C_2_WR@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_cx18_read_reg
	orl	$4, %eax
	movl	(%r14), %edx
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_cx18_write_reg
	movq	(%rbx), %rdi
	callq	_i2c_del_adapter
	movq	(%rbx), %rdi
	addq	$4, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_i2c_del_adapter                ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"i2c exit\n"

	.comm	_CX18_REG_I2C_1_WR,4,2          ## @CX18_REG_I2C_1_WR
	.comm	_CX18_REG_I2C_2_WR,4,2          ## @CX18_REG_I2C_2_WR
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_exit_cx18_i2c                  ; -- Begin function exit_cx18_i2c
	.p2align	2
_exit_cx18_i2c:                         ; @exit_cx18_i2c
	.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
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_CX18_DEBUG_I2C
Lloh2:
	adrp	x20, _CX18_REG_I2C_1_WR@GOTPAGE
Lloh3:
	ldr	x20, [x20, _CX18_REG_I2C_1_WR@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	x0, x19
	bl	_cx18_read_reg
	orr	w1, w0, #0x4
	ldr	w2, [x20]
	mov	x0, x19
	bl	_cx18_write_reg
Lloh4:
	adrp	x20, _CX18_REG_I2C_2_WR@GOTPAGE
Lloh5:
	ldr	x20, [x20, _CX18_REG_I2C_2_WR@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	x0, x19
	bl	_cx18_read_reg
	orr	w1, w0, #0x4
	ldr	w2, [x20]
	mov	x0, x19
	bl	_cx18_write_reg
	ldr	x0, [x19]
	bl	_i2c_del_adapter
	ldr	x8, [x19]
	add	x0, x8, #4
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_i2c_del_adapter
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"i2c exit\n"

	.comm	_CX18_REG_I2C_1_WR,4,2          ; @CX18_REG_I2C_1_WR
	.comm	_CX18_REG_I2C_2_WR,4,2          ; @CX18_REG_I2C_2_WR
.subsections_via_symbols
