	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lidar_i2c_xfer
_lidar_i2c_xfer:                        ## @lidar_i2c_xfer
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	subq	$80, %rsp
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -8(%rbp)
	movl	%esi, -68(%rbp)
	movq	(%rdi), %rax
	movl	8(%rax), %r8d
	movl	%r8d, -48(%rbp)
	movl	(%rax), %edi
	movq	_I2C_M_STOP@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	orl	%edi, %esi
	movl	%esi, -64(%rbp)
	movl	$1, -60(%rbp)
	leaq	-68(%rbp), %rsi
	movq	%rsi, -56(%rbp)
	movl	%r8d, -24(%rbp)
	movq	_I2C_M_RD@GOTPCREL(%rip), %rsi
	orl	(%rsi), %edi
	movl	%edi, -40(%rbp)
	movl	%ecx, -36(%rbp)
	movq	%rdx, -32(%rbp)
	movl	4(%rax), %edi
	leaq	-64(%rbp), %rsi
	movl	$2, %edx
	callq	_i2c_transfer
	movl	%eax, %ecx
	movq	_EIO@GOTPCREL(%rip), %rdx
	xorl	%eax, %eax
	subl	(%rdx), %eax
	xorl	%edx, %edx
	cmpl	$2, %ecx
	cmovel	%edx, %eax
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-8(%rbp), %rcx
	jne	LBB0_2
## %bb.1:
	addq	$80, %rsp
	popq	%rbp
	retq
LBB0_2:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_I2C_M_STOP,4,2                 ## @I2C_M_STOP
	.comm	_I2C_M_RD,4,2                   ## @I2C_M_RD
	.comm	_EIO,4,2                        ## @EIO
	.no_dead_strip	_lidar_i2c_xfer
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lidar_i2c_xfer
_lidar_i2c_xfer:                        ; @lidar_i2c_xfer
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-8]
	str	w1, [sp, #4]
	ldr	x8, [x0]
	ldr	w9, [x8, #8]
	str	w9, [sp, #24]
	ldr	w10, [x8]
Lloh3:
	adrp	x11, _I2C_M_STOP@GOTPAGE
Lloh4:
	ldr	x11, [x11, _I2C_M_STOP@GOTPAGEOFF]
Lloh5:
	ldr	w11, [x11]
	orr	w11, w11, w10
	mov	w12, #1
	stp	w11, w12, [sp, #8]
	add	x11, sp, #4
	str	x11, [sp, #16]
	str	w9, [sp, #48]
Lloh6:
	adrp	x9, _I2C_M_RD@GOTPAGE
Lloh7:
	ldr	x9, [x9, _I2C_M_RD@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w9, w9, w10
	stp	w9, w3, [sp, #32]
	str	x2, [sp, #40]
	ldr	w0, [x8, #4]
	add	x1, sp, #8
	mov	w2, #2
	bl	_i2c_transfer
Lloh9:
	adrp	x8, _EIO@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	cmp	w0, #2
	csneg	w0, wzr, w8, eq
	ldur	x8, [x29, #-8]
Lloh12:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh13:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_2
; %bb.1:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_2:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_I2C_M_STOP,4,2                 ; @I2C_M_STOP
	.comm	_I2C_M_RD,4,2                   ; @I2C_M_RD
	.comm	_EIO,4,2                        ; @EIO
	.no_dead_strip	_lidar_i2c_xfer
.subsections_via_symbols
