	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lidar_smbus_xfer
_lidar_smbus_xfer:                      ## @lidar_smbus_xfer
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	testl	%ecx, %ecx
	je	LBB0_8
## %bb.1:
	movq	(%rdi), %r12
	movl	%ecx, %r13d
	movl	%esi, %r15d
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	leal	(%r15,%r14), %esi
	movq	%r12, %rdi
	callq	_i2c_smbus_write_byte
	testl	%eax, %eax
	js	LBB0_3
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r12, %rdi
	callq	_i2c_smbus_read_byte
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	%ebx, (%rax,%r14,4)
	incq	%r14
	cmpl	%r14d, %r13d
	jne	LBB0_2
LBB0_8:
	xorl	%ebx, %ebx
	jmp	LBB0_9
LBB0_3:
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_4
LBB0_6:
	leaq	L_.str.1(%rip), %rsi
LBB0_4:
	movq	%r12, %rdi
	callq	_dev_err
LBB0_9:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"cannot write addr value"

L_.str.1:                               ## @.str.1
	.asciz	"cannot read data value"

	.no_dead_strip	_lidar_smbus_xfer
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lidar_smbus_xfer
_lidar_smbus_xfer:                      ; @lidar_smbus_xfer
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	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
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	cbz	w3, LBB0_5
; %bb.1:
	mov	x21, x3
	mov	x22, x2
	mov	x23, x1
	ldr	x19, [x0]
Lloh0:
	adrp	x20, l_.str@PAGE
Lloh1:
	add	x20, x20, l_.str@PAGEOFF
Lloh2:
	adrp	x25, l_.str.1@PAGE
Lloh3:
	add	x25, x25, l_.str.1@PAGEOFF
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	x1, x23
	bl	_i2c_smbus_write_byte
	tbnz	w0, #31, LBB0_6
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x19
	bl	_i2c_smbus_read_byte
	mov	x24, x0
	tbnz	w0, #31, LBB0_7
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	str	w24, [x22], #4
	add	w23, w23, #1
	sub	w21, w21, #1
	cbnz	w21, LBB0_2
LBB0_5:
	mov	w24, #0
	b	LBB0_9
LBB0_6:
	mov	x24, x0
	b	LBB0_8
LBB0_7:
	mov	x20, x25
LBB0_8:
	mov	x0, x19
	mov	x1, x20
	bl	_dev_err
LBB0_9:
	mov	x0, x24
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"cannot write addr value"

l_.str.1:                               ; @.str.1
	.asciz	"cannot read data value"

	.no_dead_strip	_lidar_smbus_xfer
.subsections_via_symbols
