	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cx231xx_read_i2c_data          ## -- Begin function cx231xx_read_i2c_data
	.p2align	4, 0x90
_cx231xx_read_i2c_data:                 ## @cx231xx_read_i2c_data
	.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	$64, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%r9d, %ebx
	movq	%r8, %r14
	movq	%rdi, %rax
	movq	___stack_chk_guard@GOTPCREL(%rip), %rdi
	movq	(%rdi), %rdi
	movq	%rdi, -24(%rbp)
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -48(%rbp)
	movl	%ecx, %edi
	testl	%ecx, %ecx
	je	LBB0_4
## %bb.1:
	cmpl	$1, %ecx
	jne	LBB0_3
## %bb.2:
	movzbl	%dl, %edi
	jmp	LBB0_4
LBB0_3:
	movl	%edx, %edi
LBB0_4:
	sarl	%esi
	movl	%esi, -80(%rbp)
	movq	_I2C_M_RD@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	movl	%edx, -56(%rbp)
	movl	%ecx, -76(%rbp)
	movl	%edi, -72(%rbp)
	movl	%ebx, -68(%rbp)
	leaq	-48(%rbp), %rcx
	movq	%rcx, -64(%rbp)
	movq	8(%rax), %rdi
	leaq	-80(%rbp), %rsi
	callq	*(%rax)
	testl	%eax, %eax
	js	LBB0_8
## %bb.5:
	movl	-48(%rbp), %ecx
	cmpl	$1, %ebx
	je	LBB0_7
## %bb.6:
	movl	-44(%rbp), %edx
	movl	-40(%rbp), %esi
	shll	$8, %edx
	orl	%ecx, %edx
	shll	$16, %esi
	movl	-36(%rbp), %ecx
	shll	$24, %ecx
	orl	%esi, %ecx
	orl	%edx, %ecx
LBB0_7:
	movl	%ecx, (%r14)
LBB0_8:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-24(%rbp), %rcx
	jne	LBB0_10
## %bb.9:
	addq	$64, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_10:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_I2C_M_RD,4,2                   ## @I2C_M_RD
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cx231xx_read_i2c_data          ; -- Begin function cx231xx_read_i2c_data
	.p2align	2
_cx231xx_read_i2c_data:                 ; @cx231xx_read_i2c_data
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x5
	mov	x19, x4
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-24]
	stp	xzr, xzr, [sp, #40]
	and	w8, w2, #0xff
	cmp	w3, #1
	csel	w8, w2, w8, ne
Lloh3:
	adrp	x9, _I2C_M_RD@GOTPAGE
Lloh4:
	ldr	x9, [x9, _I2C_M_RD@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	w3, #0
	csel	w8, w3, w8, eq
	asr	w10, w1, #1
	str	w9, [sp, #32]
	stp	w10, w3, [sp, #8]
	stp	w8, w5, [sp, #16]
	add	x8, sp, #40
	str	x8, [sp, #24]
	ldp	x8, x0, [x0]
	add	x1, sp, #8
	blr	x8
	tbnz	w0, #31, LBB0_4
; %bb.1:
	ldr	w8, [sp, #40]
	cmp	w20, #1
	b.eq	LBB0_3
; %bb.2:
	ldp	w9, w10, [sp, #44]
	orr	w8, w8, w9, lsl #8
	orr	w8, w8, w10, lsl #16
	ldr	w9, [sp, #52]
	orr	w8, w8, w9, lsl #24
LBB0_3:
	str	w8, [x19]
LBB0_4:
	ldur	x8, [x29, #-24]
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_6
; %bb.5:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_6:
	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,4,2                   ; @I2C_M_RD
.subsections_via_symbols
