	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_DRV_read                       ## -- Begin function DRV_read
	.p2align	4, 0x90
_DRV_read:                              ## @DRV_read
	.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	_DRV2605L_tx_register@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%rdi, (%rsi)
	movq	_MSG_OK@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	_DRV2605L_BASE_ADDRESS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addl	%edi, %edi
	movq	_DRV2605L_read_buffer@GOTPCREL(%rip), %r14
	movq	(%r14), %rcx
	movl	$1, %edx
	movl	$1, %r8d
	callq	_i2c_transmit_receive
	cmpq	%rax, %rbx
	je	LBB0_2
## %bb.1:
	leaq	L_str(%rip), %rdi
	callq	_puts
LBB0_2:
	movq	(%r14), %rax
	movq	(%rax), %rax
	movq	_DRV2605L_read_register@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DRV2605L_tx_register,8,3       ## @DRV2605L_tx_register
	.comm	_MSG_OK,8,3                     ## @MSG_OK
	.comm	_DRV2605L_BASE_ADDRESS,4,2      ## @DRV2605L_BASE_ADDRESS
	.comm	_DRV2605L_read_buffer,8,3       ## @DRV2605L_read_buffer
	.comm	_DRV2605L_read_register,8,3     ## @DRV2605L_read_register
	.section	__TEXT,__cstring,cstring_literals
L_str:                                  ## @str
	.asciz	"err reading reg "

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_DRV_read                       ; -- Begin function DRV_read
	.p2align	2
_DRV_read:                              ; @DRV_read
	.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
Lloh0:
	adrp	x8, _DRV2605L_tx_register@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DRV2605L_tx_register@GOTPAGEOFF]
Lloh2:
	ldr	x1, [x8]
	str	x0, [x1]
Lloh3:
	adrp	x8, _MSG_OK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MSG_OK@GOTPAGEOFF]
Lloh5:
	adrp	x9, _DRV2605L_BASE_ADDRESS@GOTPAGE
Lloh6:
	ldr	x9, [x9, _DRV2605L_BASE_ADDRESS@GOTPAGEOFF]
Lloh7:
	ldr	x20, [x8]
Lloh8:
	ldr	w8, [x9]
	lsl	w0, w8, #1
Lloh9:
	adrp	x19, _DRV2605L_read_buffer@GOTPAGE
Lloh10:
	ldr	x19, [x19, _DRV2605L_read_buffer@GOTPAGEOFF]
	ldr	x3, [x19]
	mov	w2, #1
	mov	w4, #1
	bl	_i2c_transmit_receive
	cmp	x20, x0
	b.eq	LBB0_2
; %bb.1:
Lloh11:
	adrp	x0, l_str@PAGE
Lloh12:
	add	x0, x0, l_str@PAGEOFF
	bl	_puts
LBB0_2:
	ldr	x8, [x19]
	ldr	x0, [x8]
Lloh13:
	adrp	x8, _DRV2605L_read_register@GOTPAGE
Lloh14:
	ldr	x8, [x8, _DRV2605L_read_register@GOTPAGEOFF]
Lloh15:
	str	x0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotStr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_DRV2605L_tx_register,8,3       ; @DRV2605L_tx_register
	.comm	_MSG_OK,8,3                     ; @MSG_OK
	.comm	_DRV2605L_BASE_ADDRESS,4,2      ; @DRV2605L_BASE_ADDRESS
	.comm	_DRV2605L_read_buffer,8,3       ; @DRV2605L_read_buffer
	.comm	_DRV2605L_read_register,8,3     ; @DRV2605L_read_register
	.section	__TEXT,__cstring,cstring_literals
l_str:                                  ; @str
	.asciz	"err reading reg "

.subsections_via_symbols
