	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cx25840_read4                  ## -- Begin function cx25840_read4
	.p2align	4, 0x90
_cx25840_read4:                         ## @cx25840_read4
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	subq	$112, %rsp
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -8(%rbp)
	movzbl	%sil, %eax
	sarl	$8, %esi
	movl	%esi, -88(%rbp)
	movl	%eax, -84(%rbp)
	movl	4(%rdi), %eax
	movl	%eax, -56(%rbp)
	movq	$0, -64(%rbp)
	movl	$2, -80(%rbp)
	leaq	-88(%rbp), %rcx
	movq	%rcx, -72(%rbp)
	movl	%eax, -24(%rbp)
	movq	_I2C_M_RD@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	movl	$4, -48(%rbp)
	leaq	-112(%rbp), %rax
	movq	%rax, -40(%rbp)
	movl	(%rdi), %edi
	leaq	-80(%rbp), %rsi
	movl	$2, %edx
	callq	_i2c_transfer
	movl	%eax, %ecx
	xorl	%eax, %eax
	cmpl	$2, %ecx
	jl	LBB0_2
## %bb.1:
	movl	-100(%rbp), %ecx
	shll	$24, %ecx
	movl	-108(%rbp), %eax
	movl	-104(%rbp), %edx
	shll	$16, %edx
	orl	%ecx, %edx
	shll	$8, %eax
	orl	%edx, %eax
	orl	-112(%rbp), %eax
LBB0_2:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-8(%rbp), %rcx
	jne	LBB0_4
## %bb.3:
	addq	$112, %rsp
	popq	%rbp
	retq
LBB0_4:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_I2C_M_RD,8,3                   ## @I2C_M_RD
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cx25840_read4                  ; -- Begin function cx25840_read4
	.p2align	2
_cx25840_read4:                         ; @cx25840_read4
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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]
	asr	w8, w1, #8
	and	w9, w1, #0xff
	stp	w8, w9, [sp, #16]
	mov	w8, #2
	str	w8, [sp, #24]
	add	x8, sp, #16
	stp	x8, xzr, [sp, #32]
	ldp	w0, w8, [x0]
	str	w8, [sp, #80]
Lloh3:
	adrp	x9, _I2C_M_RD@GOTPAGE
Lloh4:
	ldr	x9, [x9, _I2C_M_RD@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	mov	w10, #4
	str	w8, [sp, #48]
	str	w10, [sp, #56]
	mov	x8, sp
	stp	x8, x9, [sp, #64]
	add	x1, sp, #24
	mov	w2, #2
	bl	_i2c_transfer
	cmp	w0, #2
	b.ge	LBB0_2
; %bb.1:
	mov	w0, #0
	b	LBB0_3
LBB0_2:
	ldp	w9, w8, [sp, #8]
	lsl	w9, w9, #16
	orr	w8, w9, w8, lsl #24
	ldp	w10, w9, [sp]
	orr	w8, w8, w9, lsl #8
	orr	w0, w8, w10
LBB0_3:
	ldur	x8, [x29, #-8]
Lloh6:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh7:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_5
; %bb.4:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_5:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_I2C_M_RD,8,3                   ; @I2C_M_RD
.subsections_via_symbols
