	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function hdcs_reg_write_seq
LCPI0_0:
	.long	0                               ## 0x0
	.long	2                               ## 0x2
	.space	4
	.space	4
LCPI0_1:
	.long	4                               ## 0x4
	.long	4                               ## 0x4
	.space	4
	.space	4
LCPI0_2:
	.long	8                               ## 0x8
	.long	8                               ## 0x8
	.space	4
	.space	4
LCPI0_3:
	.long	12                              ## 0xc
	.long	12                              ## 0xc
	.space	4
	.space	4
LCPI0_4:
	.long	16                              ## 0x10
	.long	16                              ## 0x10
	.space	4
	.space	4
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_hdcs_reg_write_seq:                    ## @hdcs_reg_write_seq
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r15d
	movq	%rdx, %r12
	movl	%esi, %ebx
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_I2C_MAX_BYTES@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	leal	(%r14,%r14), %eax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r13
	testl	%r15d, %r15d
	setle	%al
	cmpl	%r15d, %r14d
	setle	%cl
	leal	(%r15,%rbx), %edx
	cmpl	$256, %edx                      ## imm = 0x100
	setge	%dl
	orb	%al, %dl
	orb	%cl, %dl
	movzbl	%dl, %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_1
## %bb.16:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_14
LBB0_1:
	testl	%r15d, %r15d
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	jle	LBB0_13
## %bb.2:
	movl	%r15d, %eax
	cmpl	$4, %r15d
	jae	LBB0_4
## %bb.3:
	xorl	%ecx, %ecx
	jmp	LBB0_12
LBB0_4:
	movl	%eax, %ecx
	andl	$-4, %ecx
	movd	%ebx, %xmm0
	pshufd	$80, %xmm0, %xmm0               ## xmm0 = xmm0[0,0,1,1]
	paddd	LCPI0_0(%rip), %xmm0
	leaq	-4(%rcx), %rdx
	movq	%rdx, %r8
	shrq	$2, %r8
	incq	%r8
	testq	%rdx, %rdx
	je	LBB0_5
## %bb.6:
	movq	%r8, %rsi
	andq	$-2, %rsi
	xorl	%edx, %edx
	movdqa	LCPI0_1(%rip), %xmm1            ## xmm1 = <4,4,u,u>
	movdqa	LCPI0_2(%rip), %xmm2            ## xmm2 = <8,8,u,u>
	movdqa	LCPI0_3(%rip), %xmm3            ## xmm3 = <12,12,u,u>
	movdqa	LCPI0_4(%rip), %xmm4            ## xmm4 = <16,16,u,u>
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movdqa	%xmm0, %xmm5
	paddd	%xmm1, %xmm5
	movq	(%r12,%rdx,4), %xmm6            ## xmm6 = mem[0],zero
	movq	8(%r12,%rdx,4), %xmm7           ## xmm7 = mem[0],zero
	punpckldq	%xmm7, %xmm5            ## xmm5 = xmm5[0],xmm7[0],xmm5[1],xmm7[1]
	movdqa	%xmm0, %xmm7
	punpckldq	%xmm6, %xmm7            ## xmm7 = xmm7[0],xmm6[0],xmm7[1],xmm6[1]
	movdqa	%xmm7, (%r13,%rdx,8)
	movdqa	%xmm5, 16(%r13,%rdx,8)
	movdqa	%xmm0, %xmm5
	paddd	%xmm2, %xmm5
	movdqa	%xmm0, %xmm6
	paddd	%xmm3, %xmm6
	movq	16(%r12,%rdx,4), %xmm7          ## xmm7 = mem[0],zero
	punpckldq	%xmm7, %xmm5            ## xmm5 = xmm5[0],xmm7[0],xmm5[1],xmm7[1]
	movq	24(%r12,%rdx,4), %xmm7          ## xmm7 = mem[0],zero
	punpckldq	%xmm7, %xmm6            ## xmm6 = xmm6[0],xmm7[0],xmm6[1],xmm7[1]
	movdqa	%xmm5, 32(%r13,%rdx,8)
	movdqa	%xmm6, 48(%r13,%rdx,8)
	addq	$8, %rdx
	paddd	%xmm4, %xmm0
	addq	$-2, %rsi
	jne	LBB0_7
## %bb.8:
	testb	$1, %r8b
	je	LBB0_10
LBB0_9:
	movdqa	LCPI0_1(%rip), %xmm1            ## xmm1 = <4,4,u,u>
	paddd	%xmm0, %xmm1
	movq	(%r12,%rdx,4), %xmm2            ## xmm2 = mem[0],zero
	movq	8(%r12,%rdx,4), %xmm3           ## xmm3 = mem[0],zero
	punpckldq	%xmm3, %xmm1            ## xmm1 = xmm1[0],xmm3[0],xmm1[1],xmm3[1]
	leaq	(,%rdx,8), %rsi
	orq	$20, %rsi
	punpckldq	%xmm2, %xmm0            ## xmm0 = xmm0[0],xmm2[0],xmm0[1],xmm2[1]
	movdqa	%xmm0, (%r13,%rdx,8)
	movdqa	%xmm1, -4(%r13,%rsi)
LBB0_10:
	cmpq	%rax, %rcx
	je	LBB0_13
## %bb.11:
	leal	(%rbx,%rcx,2), %ebx
	.p2align	4, 0x90
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movl	%ebx, (%r13,%rcx,8)
	movl	(%r12,%rcx,4), %edx
	movl	%edx, 4(%r13,%rcx,8)
	addl	$2, %ebx
	incq	%rcx
	cmpq	%rcx, %rax
	jne	LBB0_12
LBB0_13:
	movq	%r13, %rsi
	movl	%r15d, %edx
	callq	_stv06xx_write_sensor_bytes
LBB0_14:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_17
## %bb.15:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	xorl	%edx, %edx
	testb	$1, %r8b
	jne	LBB0_9
	jmp	LBB0_10
LBB0_17:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_I2C_MAX_BYTES,4,2              ## @I2C_MAX_BYTES
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_hdcs_reg_write_seq
.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 hdcs_reg_write_seq
lCPI0_0:
	.long	0                               ; 0x0
	.long	2                               ; 0x2
	.long	4                               ; 0x4
	.long	6                               ; 0x6
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_hdcs_reg_write_seq:                    ; @hdcs_reg_write_seq
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	sub	sp, sp, #16
	mov	x19, x3
	mov	x22, x2
	mov	x23, x1
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
Lloh3:
	adrp	x8, _I2C_MAX_BYTES@GOTPAGE
Lloh4:
	ldr	x8, [x8, _I2C_MAX_BYTES@GOTPAGEOFF]
Lloh5:
	ldr	w12, [x8]
	lsl	w8, w12, #1
	lsl	x8, x8, #2
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x21, x9, x8
	mov	sp, x21
	cmp	w3, #1
	ccmp	w12, w3, #4, ge
	add	w8, w3, w1
	mov	w9, #255
	ccmp	w8, w9, #0, gt
	cset	w0, gt
	bl	_unlikely
	cbz	x0, LBB0_2
; %bb.1:
Lloh8:
	adrp	x8, _EINVAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_11
LBB0_2:
	cmp	w19, #1
	b.lt	LBB0_10
; %bb.3:
	mov	w9, w19
	cmp	w19, #16
	b.hs	LBB0_5
; %bb.4:
	mov	x10, #0
	mov	x8, x23
	b	LBB0_8
LBB0_5:
	and	x10, x9, #0xfffffff0
	add	w8, w23, w10, lsl #1
	dup.4s	v0, w23
Lloh11:
	adrp	x11, lCPI0_0@PAGE
Lloh12:
	ldr	q1, [x11, lCPI0_0@PAGEOFF]
	add.4s	v0, v0, v1
	add	x11, x22, #32
	add	x12, x21, #64
	movi.4s	v2, #8
	movi.4s	v3, #16
	movi.4s	v4, #24
	movi.4s	v5, #32
	mov	x13, x10
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	add.4s	v6, v0, v2
	ldp	q1, q7, [x11, #-32]
	add.4s	v16, v0, v3
	add.4s	v18, v0, v4
	sub	x14, x12, #64
	st2.4s	{ v0, v1 }, [x14]
	ldp	q17, q19, [x11], #64
	sub	x14, x12, #32
	st2.4s	{ v6, v7 }, [x14]
	add	x14, x12, #128
	st2.4s	{ v16, v17 }, [x12], #32
	st2.4s	{ v18, v19 }, [x12]
	add.4s	v0, v0, v5
	mov	x12, x14
	subs	x13, x13, #16
	b.ne	LBB0_6
; %bb.7:
	cmp	x10, x9
	b.eq	LBB0_10
LBB0_8:
	add	x11, x21, x10, lsl #3
	add	x11, x11, #4
	add	x12, x22, x10, lsl #2
	sub	x9, x9, x10
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w10, [x12], #4
	stp	w8, w10, [x11, #-4]
	add	w8, w8, #2
	add	x11, x11, #8
	subs	x9, x9, #1
	b.ne	LBB0_9
LBB0_10:
	mov	x0, x20
	mov	x1, x21
	mov	x2, x19
	bl	_stv06xx_write_sensor_bytes
LBB0_11:
	ldur	x8, [x29, #-56]
Lloh13:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh14:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_13
; %bb.12:
	sub	sp, x29, #48
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_13:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdr	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_I2C_MAX_BYTES,4,2              ; @I2C_MAX_BYTES
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_hdcs_reg_write_seq
.subsections_via_symbols
