	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function Read16
_Read16:                                ## @Read16
	.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
	subq	$48, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdx, %r14
	movl	%esi, %eax
	movq	___stack_chk_guard@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movq	%rdx, -24(%rbp)
	movl	4(%rdi), %esi
	movzbl	%al, %edx
	movl	%edx, -48(%rbp)
	movl	%eax, %edx
	movzbl	%ah, %ebx
	shrl	$16, %eax
	movzbl	%al, %eax
	movl	%eax, -44(%rbp)
	shrl	$24, %edx
	orl	%ecx, %edx
	movl	%edx, -40(%rbp)
	movl	%ebx, -36(%rbp)
	movl	(%rdi), %edi
	leaq	-48(%rbp), %rdx
	leaq	-56(%rbp), %r8
	movl	$4, %ecx
	movl	$2, %r9d
	callq	_i2c_read
	testq	%rax, %rax
	js	LBB0_1
## %bb.2:
	movl	-52(%rbp), %eax
	shll	$8, %eax
	orl	-56(%rbp), %eax
	testq	%r14, %r14
	je	LBB0_4
## %bb.3:
	movl	%eax, (%r14)
	jmp	LBB0_4
LBB0_1:
	movl	$-1, %eax
LBB0_4:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-24(%rbp), %rcx
	jne	LBB0_6
## %bb.5:
	addq	$48, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_6:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_Read16
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function Read16
_Read16:                                ; @Read16
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x2
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	and	w8, w1, #0xff
	ubfx	w9, w1, #16, #8
	stp	w8, w9, [sp, #8]
	orr	w8, w3, w1, lsr #24
	ubfx	w9, w1, #8, #8
	stp	w8, w9, [sp, #16]
	ldp	w0, w1, [x0]
	add	x2, sp, #8
	mov	x4, sp
	mov	w3, #4
	mov	w5, #2
	bl	_i2c_read
	tbnz	x0, #63, LBB0_3
; %bb.1:
	ldp	w8, w9, [sp]
	orr	w0, w8, w9, lsl #8
	cbz	x19, LBB0_4
; %bb.2:
	str	w0, [x19]
	b	LBB0_4
LBB0_3:
	mov	w0, #-1
LBB0_4:
	ldr	x8, [sp, #24]
Lloh3:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh4:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_6
; %bb.5:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_6:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_Read16
.subsections_via_symbols
