	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function cx231xx_reg_mask_write
LCPI0_0:
	.long	0                               ## 0x0
	.long	4294967295                      ## 0xffffffff
	.long	4294967294                      ## 0xfffffffe
	.long	4294967293                      ## 0xfffffffd
LCPI0_1:
	.long	4294967291                      ## 0xfffffffb
	.long	4294967291                      ## 0xfffffffb
	.long	4294967291                      ## 0xfffffffb
	.long	4294967291                      ## 0xfffffffb
LCPI0_2:
	.long	1065353216                      ## 0x3f800000
	.long	1065353216                      ## 0x3f800000
	.long	1065353216                      ## 0x3f800000
	.long	1065353216                      ## 0x3f800000
LCPI0_3:
	.long	4294967287                      ## 0xfffffff7
	.long	4294967287                      ## 0xfffffff7
	.long	4294967287                      ## 0xfffffff7
	.long	4294967287                      ## 0xfffffff7
LCPI0_4:
	.long	4294967283                      ## 0xfffffff3
	.long	4294967283                      ## 0xfffffff3
	.long	4294967283                      ## 0xfffffff3
	.long	4294967283                      ## 0xfffffff3
LCPI0_5:
	.long	4294967280                      ## 0xfffffff0
	.long	4294967280                      ## 0xfffffff0
	.long	4294967280                      ## 0xfffffff0
	.long	4294967280                      ## 0xfffffff0
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_cx231xx_reg_mask_write
	.p2align	4, 0x90
_cx231xx_reg_mask_write:                ## @cx231xx_reg_mask_write
	.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
	movl	$-1, %eax
	cmpl	%r8d, %edx
	jle	LBB0_20
## %bb.1:
	movl	%r9d, %r14d
	movl	%edx, %r13d
	cmpl	%r9d, %edx
	jle	LBB0_20
## %bb.2:
	movl	%r8d, %ebx
	movl	%esi, %r15d
	movq	%rdi, %r12
	xorl	%eax, %eax
	cmpl	$8, %r13d
	setne	%al
	leal	1(%rax,%rax,2), %r9d
	leaq	-44(%rbp), %r8
	movl	%ecx, -48(%rbp)                 ## 4-byte Spill
	movl	%ecx, %edx
	movl	$2, %ecx
	callq	_cx231xx_read_i2c_data
	testl	%eax, %eax
	js	LBB0_20
## %bb.3:
	movl	16(%rbp), %eax
	movl	$1, %r8d
	movl	%r14d, %ecx
	shll	%cl, %r8d
	cmpl	%ebx, %r14d
	jle	LBB0_16
## %bb.4:
	testl	%r14d, %r14d
	jle	LBB0_16
## %bb.5:
	leal	-1(%r14), %edx
	movl	%edx, %ecx
	subl	%ebx, %ecx
	cmpl	%edx, %ecx
	cmovael	%edx, %ecx
	incl	%ecx
	cmpl	$8, %ecx
	jb	LBB0_14
## %bb.6:
	movl	%ecx, %edx
	andl	$-8, %edx
	movd	%r14d, %xmm0
	pshufd	$0, %xmm0, %xmm6                ## xmm6 = xmm0[0,0,0,0]
	paddd	LCPI0_0(%rip), %xmm6
	movd	%r8d, %xmm1
	leal	-8(%rdx), %edi
	movl	%edi, %esi
	shrl	$3, %esi
	incl	%esi
	testl	%edi, %edi
	je	LBB0_7
## %bb.8:
	movl	%esi, %edi
	andl	$-2, %edi
	pxor	%xmm2, %xmm2
	pcmpeqd	%xmm8, %xmm8
	movdqa	LCPI0_1(%rip), %xmm9            ## xmm9 = [4294967291,4294967291,4294967291,4294967291]
	movdqa	LCPI0_2(%rip), %xmm5            ## xmm5 = [1065353216,1065353216,1065353216,1065353216]
	movdqa	LCPI0_3(%rip), %xmm10           ## xmm10 = [4294967287,4294967287,4294967287,4294967287]
	movdqa	LCPI0_4(%rip), %xmm7            ## xmm7 = [4294967283,4294967283,4294967283,4294967283]
	movdqa	LCPI0_5(%rip), %xmm3            ## xmm3 = [4294967280,4294967280,4294967280,4294967280]
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movdqa	%xmm6, %xmm0
	paddd	%xmm8, %xmm0
	movdqa	%xmm6, %xmm4
	paddd	%xmm9, %xmm4
	pslld	$23, %xmm0
	paddd	%xmm5, %xmm0
	cvttps2dq	%xmm0, %xmm0
	paddd	%xmm1, %xmm0
	pslld	$23, %xmm4
	paddd	%xmm5, %xmm4
	cvttps2dq	%xmm4, %xmm4
	paddd	%xmm2, %xmm4
	movdqa	%xmm6, %xmm1
	paddd	%xmm10, %xmm1
	movdqa	%xmm6, %xmm2
	paddd	%xmm7, %xmm2
	pslld	$23, %xmm1
	paddd	%xmm5, %xmm1
	cvttps2dq	%xmm1, %xmm1
	paddd	%xmm0, %xmm1
	pslld	$23, %xmm2
	paddd	%xmm5, %xmm2
	cvttps2dq	%xmm2, %xmm2
	paddd	%xmm4, %xmm2
	paddd	%xmm3, %xmm6
	addl	$-2, %edi
	jne	LBB0_9
## %bb.10:
	testb	$1, %sil
	je	LBB0_12
LBB0_11:
	pcmpeqd	%xmm0, %xmm0
	paddd	%xmm6, %xmm0
	paddd	LCPI0_1(%rip), %xmm6
	pslld	$23, %xmm0
	movdqa	LCPI0_2(%rip), %xmm3            ## xmm3 = [1065353216,1065353216,1065353216,1065353216]
	paddd	%xmm3, %xmm0
	cvttps2dq	%xmm0, %xmm0
	paddd	%xmm0, %xmm1
	pslld	$23, %xmm6
	paddd	%xmm3, %xmm6
	cvttps2dq	%xmm6, %xmm0
	paddd	%xmm0, %xmm2
LBB0_12:
	paddd	%xmm2, %xmm1
	pshufd	$238, %xmm1, %xmm0              ## xmm0 = xmm1[2,3,2,3]
	paddd	%xmm1, %xmm0
	pshufd	$85, %xmm0, %xmm1               ## xmm1 = xmm0[1,1,1,1]
	paddd	%xmm0, %xmm1
	movd	%xmm1, %r8d
	cmpl	%edx, %ecx
	je	LBB0_16
## %bb.13:
	subl	%edx, %r14d
	.p2align	4, 0x90
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movl	%r8d, %edx
	leal	-1(%r14), %ecx
	movl	$1, %r8d
	shll	%cl, %r8d
	addl	%edx, %r8d
	cmpl	%ebx, %ecx
	jle	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_14 Depth=1
	cmpl	$1, %r14d
	movl	%ecx, %r14d
	ja	LBB0_14
LBB0_16:
	movl	%ebx, %ecx
	shll	%cl, %eax
	notl	%r8d
	andl	-44(%rbp), %r8d
	orl	%eax, %r8d
	cmpl	$8, %r13d
	jne	LBB0_18
## %bb.17:
	movzbl	%r8b, %r8d
	movl	%r8d, -44(%rbp)
	movq	%r12, %rdi
	movl	%r15d, %esi
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	movl	$2, %ecx
	movl	$1, %r9d
	jmp	LBB0_19
LBB0_18:
	movl	%r8d, -44(%rbp)
	movq	%r12, %rdi
	movl	%r15d, %esi
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	movl	$2, %ecx
	movl	$4, %r9d
LBB0_19:
	callq	_cx231xx_write_i2c_data
LBB0_20:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	pxor	%xmm2, %xmm2
	testb	$1, %sil
	jne	LBB0_11
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ; -- Begin function cx231xx_reg_mask_write
lCPI0_0:
	.long	0                               ; 0x0
	.long	4294967295                      ; 0xffffffff
	.long	4294967294                      ; 0xfffffffe
	.long	4294967293                      ; 0xfffffffd
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_cx231xx_reg_mask_write
	.p2align	2
_cx231xx_reg_mask_write:                ; @cx231xx_reg_mask_write
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x21, x0
	mov	w0, #-1
	cmp	w2, w4
	b.le	LBB0_16
; %bb.1:
	mov	x25, x5
	mov	x22, x2
	cmp	w2, w5
	b.le	LBB0_16
; %bb.2:
	mov	x23, x6
	mov	x24, x4
	mov	x19, x3
	mov	x20, x1
	cmp	w22, #8
	mov	w8, #4
	csinc	w5, w8, wzr, ne
	add	x4, sp, #12
	mov	x0, x21
	mov	x2, x3
	mov	w3, #2
	bl	_cx231xx_read_i2c_data
	tbnz	w0, #31, LBB0_16
; %bb.3:
	mov	w8, #1
	lsl	w8, w8, w25
	cmp	w25, w24
	b.le	LBB0_12
; %bb.4:
	subs	w9, w25, #1
	b.lt	LBB0_12
; %bb.5:
	sub	w10, w9, w24
	cmp	w10, w9
	csel	w9, w10, w9, lo
	add	w9, w9, #1
	cmp	w9, #16
	b.lo	LBB0_9
; %bb.6:
	dup.4s	v0, w25
Lloh0:
	adrp	x10, lCPI0_0@PAGE
Lloh1:
	ldr	q1, [x10, lCPI0_0@PAGEOFF]
	add.4s	v0, v0, v1
	movi.2d	v1, #0000000000000000
	mov.s	v1[0], w8
	movi.2d	v2, #0000000000000000
	and	w10, w9, #0xfffffff0
	movi.2d	v3, #0xffffffffffffffff
	sub	w25, w25, w10
	mvni.4s	v4, #4
	mvni.4s	v5, #8
	mvni.4s	v6, #12
	movi.4s	v7, #1
	mvni.4s	v16, #15
	mov	x8, x10
	movi.2d	v17, #0000000000000000
	movi.2d	v18, #0000000000000000
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	add.4s	v19, v0, v3
	add.4s	v20, v0, v4
	add.4s	v21, v0, v5
	add.4s	v22, v0, v6
	ushl.4s	v19, v7, v19
	ushl.4s	v20, v7, v20
	ushl.4s	v21, v7, v21
	ushl.4s	v22, v7, v22
	add.4s	v1, v19, v1
	add.4s	v2, v20, v2
	add.4s	v17, v21, v17
	add.4s	v18, v22, v18
	add.4s	v0, v0, v16
	subs	w8, w8, #16
	b.ne	LBB0_7
; %bb.8:
	add.4s	v0, v2, v1
	add.4s	v0, v17, v0
	add.4s	v0, v18, v0
	addv.4s	s0, v0
	fmov	w8, s0
	cmp	w9, w10
	b.eq	LBB0_12
LBB0_9:
	mov	w9, #1
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	sub	w10, w25, #1
	lsl	w11, w9, w10
	add	w8, w11, w8
	cmp	w10, w24
	b.le	LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	cmp	w25, #1
	mov	x25, x10
	b.hi	LBB0_10
LBB0_12:
	lsl	w9, w23, w24
	ldr	w10, [sp, #12]
	bic	w8, w10, w8
	orr	w4, w8, w9
	cmp	w22, #8
	b.ne	LBB0_14
; %bb.13:
	and	w4, w4, #0xff
	str	w4, [sp, #12]
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	mov	w3, #2
	mov	w5, #1
	b	LBB0_15
LBB0_14:
	str	w4, [sp, #12]
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	mov	w3, #2
	mov	w5, #4
LBB0_15:
	bl	_cx231xx_write_i2c_data
LBB0_16:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdr	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
