	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xc_load_i2c_sequence
_xc_load_i2c_sequence:                  ## @xc_load_i2c_sequence
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	(%rdi), %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	_XC_MAX_I2C_WRITE_LENGTH@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %rbx
	xorl	%r14d, %r14d
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_1 Depth=1
	addl	$2, %r14d
LBB0_1:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_12 Depth 2
                                        ##       Child Loop BB0_19 Depth 3
                                        ##       Child Loop BB0_26 Depth 3
                                        ##       Child Loop BB0_28 Depth 3
	movl	%r14d, %eax
	movl	(%r15,%rax,4), %r12d
	leal	1(%r14), %eax
	cmpl	$255, %r12d
	jne	LBB0_6
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	cmpl	$255, (%r15,%rax,4)
	je	LBB0_3
LBB0_6:                                 ##   in Loop: Header=BB0_1 Depth=1
	shll	$8, %r12d
	addl	(%r15,%rax,4), %r12d
	je	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_1 Depth=1
	testl	$32768, %r12d                   ## imm = 0x8000
	jne	LBB0_9
## %bb.10:                              ##   in Loop: Header=BB0_1 Depth=1
	leal	2(%r14), %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	(%r15,%rax,4), %eax
	movl	%eax, (%rbx)
	movq	%r14, %rax
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	leal	3(%r14), %eax
	movl	(%r15,%rax,4), %eax
	movl	%eax, 4(%rbx)
	cmpl	$3, %r12d
	jb	LBB0_31
## %bb.11:                              ##   in Loop: Header=BB0_1 Depth=1
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	addl	$10, %eax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movl	$2, %r14d
	.p2align	4, 0x90
LBB0_12:                                ##   Parent Loop BB0_1 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_19 Depth 3
                                        ##       Child Loop BB0_26 Depth 3
                                        ##       Child Loop BB0_28 Depth 3
	movl	%r12d, %eax
	subl	%r14d, %eax
	movq	_XC_MAX_I2C_WRITE_LENGTH@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	leal	-2(%rcx), %edx
	leal	2(%rax), %r13d
	cmpl	%edx, %eax
	cmoval	%ecx, %r13d
	cmpl	$3, %r13d
	jl	LBB0_29
## %bb.13:                              ##   in Loop: Header=BB0_12 Depth=2
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	leal	(%r14,%rax), %r11d
	movl	%r13d, %r10d
	leaq	-2(%r10), %r8
	movl	$2, %edx
	cmpq	$8, %r8
	jb	LBB0_24
## %bb.14:                              ##   in Loop: Header=BB0_12 Depth=2
	leaq	-3(%r10), %rcx
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	leal	(%rax,%r14), %esi
	movl	%ecx, %edi
	addl	%esi, %edi
	jb	LBB0_24
## %bb.15:                              ##   in Loop: Header=BB0_12 Depth=2
	shrq	$32, %rcx
	jne	LBB0_24
## %bb.16:                              ##   in Loop: Header=BB0_12 Depth=2
	movq	%r8, %rdx
	andq	$-8, %rdx
	leaq	-8(%rdx), %rcx
	movq	%rcx, %r9
	shrq	$3, %r9
	incq	%r9
	testq	%rcx, %rcx
	je	LBB0_17
## %bb.18:                              ##   in Loop: Header=BB0_12 Depth=2
	movq	%r9, %rdi
	andq	$-2, %rdi
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	leal	(%rax,%r14), %ecx
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_19:                                ##   Parent Loop BB0_1 Depth=1
                                        ##     Parent Loop BB0_12 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	leal	-8(%rcx), %eax
	movups	(%r15,%rax,4), %xmm0
	movups	16(%r15,%rax,4), %xmm1
	movups	%xmm0, 8(%rbx,%rsi,4)
	movups	%xmm1, 24(%rbx,%rsi,4)
	movl	%ecx, %eax
	movups	(%r15,%rax,4), %xmm0
	movups	16(%r15,%rax,4), %xmm1
	movups	%xmm0, 40(%rbx,%rsi,4)
	movups	%xmm1, 56(%rbx,%rsi,4)
	addq	$16, %rsi
	addl	$16, %ecx
	addq	$-2, %rdi
	jne	LBB0_19
## %bb.20:                              ##   in Loop: Header=BB0_12 Depth=2
	testb	$1, %r9b
	je	LBB0_22
LBB0_21:                                ##   in Loop: Header=BB0_12 Depth=2
	movl	%esi, %eax
	orl	$2, %eax
	shlq	$2, %rsi
	addl	%r11d, %eax
	movups	(%r15,%rax,4), %xmm0
	movups	16(%r15,%rax,4), %xmm1
	orq	$8, %rsi
	movups	%xmm0, (%rbx,%rsi)
	movups	%xmm1, 16(%rbx,%rsi)
LBB0_22:                                ##   in Loop: Header=BB0_12 Depth=2
	cmpq	%rdx, %r8
	je	LBB0_29
## %bb.23:                              ##   in Loop: Header=BB0_12 Depth=2
	orq	$2, %rdx
	.p2align	4, 0x90
LBB0_24:                                ##   in Loop: Header=BB0_12 Depth=2
	movl	%r10d, %edi
	subl	%edx, %edi
	movq	%rdx, %rsi
	notq	%rsi
	addq	%r10, %rsi
	andq	$3, %rdi
	je	LBB0_27
## %bb.25:                              ##   in Loop: Header=BB0_12 Depth=2
	shlq	$2, %rdi
	.p2align	4, 0x90
LBB0_26:                                ##   Parent Loop BB0_1 Depth=1
                                        ##     Parent Loop BB0_12 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	leal	(%r11,%rdx), %eax
	movl	(%r15,%rax,4), %eax
	movl	%eax, (%rbx,%rdx,4)
	incq	%rdx
	addq	$-4, %rdi
	jne	LBB0_26
LBB0_27:                                ##   in Loop: Header=BB0_12 Depth=2
	cmpq	$3, %rsi
	jb	LBB0_29
	.p2align	4, 0x90
LBB0_28:                                ##   Parent Loop BB0_1 Depth=1
                                        ##     Parent Loop BB0_12 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	leaq	(%r11,%rdx), %rax
	movl	%eax, %ecx
	movl	(%r15,%rcx,4), %ecx
	movl	%ecx, (%rbx,%rdx,4)
	leal	1(%rax), %ecx
	movl	(%r15,%rcx,4), %ecx
	movl	%ecx, 4(%rbx,%rdx,4)
	leal	2(%rax), %ecx
	movl	(%r15,%rcx,4), %ecx
	movl	%ecx, 8(%rbx,%rdx,4)
	addl	$3, %eax
	movl	(%r15,%rax,4), %eax
	movl	%eax, 12(%rbx,%rdx,4)
	addq	$4, %rdx
	cmpq	%rdx, %r10
	jne	LBB0_28
LBB0_29:                                ##   in Loop: Header=BB0_12 Depth=2
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rsi
	movl	%r13d, %edx
	callq	_xc_send_i2c_data
	testl	%eax, %eax
	jne	LBB0_4
## %bb.30:                              ##   in Loop: Header=BB0_12 Depth=2
	addl	%r13d, %r14d
	addl	$-2, %r14d
	cmpl	%r14d, %r12d
	ja	LBB0_12
	jmp	LBB0_31
LBB0_17:                                ##   in Loop: Header=BB0_12 Depth=2
	xorl	%esi, %esi
	testb	$1, %r9b
	jne	LBB0_21
	jmp	LBB0_22
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_1 Depth=1
	andl	$32767, %r12d                   ## imm = 0x7FFF
	movl	%r12d, %edi
	callq	_msleep
	addl	$2, %r14d
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_31:                                ##   in Loop: Header=BB0_1 Depth=1
	addl	-56(%rbp), %r12d                ## 4-byte Folded Reload
	movl	%r12d, %r14d
	jmp	LBB0_1
LBB0_3:
	xorl	%eax, %eax
LBB0_4:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_5
## %bb.32:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_XC_MAX_I2C_WRITE_LENGTH,4,2    ## @XC_MAX_I2C_WRITE_LENGTH
	.no_dead_strip	_xc_load_i2c_sequence
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xc_load_i2c_sequence
_xc_load_i2c_sequence:                  ; @xc_load_i2c_sequence
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	sub	sp, sp, #16
	mov	x19, x1
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
	ldr	x20, [x0]
Lloh3:
	adrp	x23, _XC_MAX_I2C_WRITE_LENGTH@GOTPAGE
Lloh4:
	ldr	x23, [x23, _XC_MAX_I2C_WRITE_LENGTH@GOTPAGEOFF]
	ldr	w8, [x23]
	lsl	x8, x8, #2
	mov	x9, x8
Lloh5:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh6:
	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
	mov	w24, #0
	add	x25, x21, #40
	b	LBB0_2
LBB0_1:                                 ;   in Loop: Header=BB0_2 Depth=1
	add	w24, w24, #2
LBB0_2:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_8 Depth 2
                                        ;       Child Loop BB0_13 Depth 3
                                        ;       Child Loop BB0_17 Depth 3
	ldr	w8, [x19, w24, uxtw #2]
	add	w9, w24, #1
	cmp	w8, #255
	b.ne	LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w10, [x19, x9, lsl #2]
	cmp	w10, #255
	b.eq	LBB0_22
LBB0_4:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	w9, [x19, x9, lsl #2]
	adds	w26, w9, w8, lsl #8
	b.eq	LBB0_1
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=1
	tbnz	w26, #15, LBB0_21
; %bb.6:                                ;   in Loop: Header=BB0_2 Depth=1
	add	w27, w24, #2
	ldr	w8, [x19, w27, uxtw #2]
	add	w9, w24, #3
	ldr	w9, [x19, w9, uxtw #2]
	stp	w8, w9, [x21]
	cmp	w26, #3
	b.lo	LBB0_20
; %bb.7:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	w28, #2
LBB0_8:                                 ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Loop Header: Depth=2
                                        ;       Child Loop BB0_13 Depth 3
                                        ;       Child Loop BB0_17 Depth 3
	ldr	w8, [x23]
	sub	w9, w8, #2
	sub	w10, w26, w28
	cmp	w10, w9
	add	w9, w10, #2
	csel	w22, w8, w9, hi
	cmp	w22, #3
	b.lt	LBB0_18
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=2
	sub	x9, x22, #2
	cmp	x9, #16
	b.lo	LBB0_15
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=2
	sub	x8, x22, #3
	add	w10, w27, w28
	cmn	w10, w8
	b.hs	LBB0_15
; %bb.11:                               ;   in Loop: Header=BB0_8 Depth=2
	lsr	x11, x8, #32
	mov	w8, #2
	cbnz	x11, LBB0_16
; %bb.12:                               ;   in Loop: Header=BB0_8 Depth=2
	and	x11, x9, #0xfffffffffffffff0
	orr	x8, x11, #0x2
	mov	x12, x11
	mov	x13, x25
LBB0_13:                                ;   Parent Loop BB0_2 Depth=1
                                        ;     Parent Loop BB0_8 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	add	x14, x19, w10, uxtw #2
	ldp	q0, q1, [x14]
	ldp	q2, q3, [x14, #32]
	stp	q0, q1, [x13, #-32]
	stp	q2, q3, [x13], #64
	add	w10, w10, #16
	subs	x12, x12, #16
	b.ne	LBB0_13
; %bb.14:                               ;   in Loop: Header=BB0_8 Depth=2
	cmp	x9, x11
	b.ne	LBB0_16
	b	LBB0_18
LBB0_15:                                ;   in Loop: Header=BB0_8 Depth=2
	mov	w8, #2
LBB0_16:                                ;   in Loop: Header=BB0_8 Depth=2
	add	w9, w24, w28
	add	w9, w9, w8
	sub	x10, x8, x22
	add	x8, x21, x8, lsl #2
LBB0_17:                                ;   Parent Loop BB0_2 Depth=1
                                        ;     Parent Loop BB0_8 Depth=2
                                        ; =>    This Inner Loop Header: Depth=3
	ldr	w11, [x19, w9, uxtw #2]
	str	w11, [x8], #4
	add	w9, w9, #1
	adds	x10, x10, #1
	b.lo	LBB0_17
LBB0_18:                                ;   in Loop: Header=BB0_8 Depth=2
	mov	x0, x20
	mov	x1, x21
	mov	x2, x22
	bl	_xc_send_i2c_data
	cbnz	w0, LBB0_23
; %bb.19:                               ;   in Loop: Header=BB0_8 Depth=2
	add	w8, w28, w22
	sub	w28, w8, #2
	cmp	w26, w28
	b.hi	LBB0_8
LBB0_20:                                ;   in Loop: Header=BB0_2 Depth=1
	add	w24, w26, w27
	b	LBB0_2
LBB0_21:                                ;   in Loop: Header=BB0_2 Depth=1
	and	w0, w26, #0x7fff
	bl	_msleep
	add	w24, w24, #2
	b	LBB0_2
LBB0_22:
	mov	w0, #0
LBB0_23:
	ldur	x8, [x29, #-88]
Lloh7:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh8:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_25
; %bb.24:
	sub	sp, x29, #80
	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
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_25:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_XC_MAX_I2C_WRITE_LENGTH,4,2    ; @XC_MAX_I2C_WRITE_LENGTH
	.no_dead_strip	_xc_load_i2c_sequence
.subsections_via_symbols
