	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function i2c_stop
_i2c_stop:                              ## @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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	callq	_device_get_softc
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_mtx_lock
	movq	_I2C_CONTROL_REG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_I2CCR_MEN@GOTPCREL(%rip), %rax
	movq	_I2CCR_TXAK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movq	%rbx, %rdi
	callq	_i2c_write_reg
	movl	$1000, %edi                     ## imm = 0x3E8
	callq	_DELAY
	movq	%rbx, %rdi
	callq	_mtx_unlock
	movq	_IIC_NOERR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_I2C_CONTROL_REG,4,2            ## @I2C_CONTROL_REG
	.comm	_I2CCR_MEN,4,2                  ## @I2CCR_MEN
	.comm	_I2CCR_TXAK,4,2                 ## @I2CCR_TXAK
	.comm	_IIC_NOERR,4,2                  ## @IIC_NOERR
	.no_dead_strip	_i2c_stop
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function i2c_stop
_i2c_stop:                              ; @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
	bl	_device_get_softc
	mov	x19, x0
	bl	_mtx_lock
Lloh0:
	adrp	x8, _I2C_CONTROL_REG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _I2C_CONTROL_REG@GOTPAGEOFF]
Lloh2:
	adrp	x9, _I2CCR_MEN@GOTPAGE
Lloh3:
	ldr	x9, [x9, _I2CCR_MEN@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
Lloh5:
	ldr	w8, [x9]
Lloh6:
	adrp	x9, _I2CCR_TXAK@GOTPAGE
Lloh7:
	ldr	x9, [x9, _I2CCR_TXAK@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w2, w9, w8
	mov	x0, x19
	bl	_i2c_write_reg
	mov	w0, #1000
	bl	_DELAY
	mov	x0, x19
	bl	_mtx_unlock
Lloh9:
	adrp	x8, _IIC_NOERR@GOTPAGE
Lloh10:
	ldr	x8, [x8, _IIC_NOERR@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_I2C_CONTROL_REG,4,2            ; @I2C_CONTROL_REG
	.comm	_I2CCR_MEN,4,2                  ; @I2CCR_MEN
	.comm	_I2CCR_TXAK,4,2                 ; @I2CCR_TXAK
	.comm	_IIC_NOERR,4,2                  ; @IIC_NOERR
	.no_dead_strip	_i2c_stop
.subsections_via_symbols
