	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function send_data_block
_send_data_block:                       ## @send_data_block
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r13
	movl	%esi, -84(%rbp)                 ## 4-byte Spill
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	8(%rdx), %rax
	cmpq	%rax, %rdx
	jae	LBB0_17
## %bb.1:
	leaq	4(%r13), %rdx
	cmpq	%rdx, %rax
	movq	%rdx, %rbx
	cmovaq	%rax, %rbx
	movq	%r13, %rdi
	notq	%rdi
	addq	%rdi, %rbx
	xorl	%ecx, %ecx
	cmpq	$28, %rbx
	jae	LBB0_3
## %bb.2:
	movq	%r13, %rsi
	jmp	LBB0_16
LBB0_3:
	cmpq	%rdx, %rax
	movq	%rdx, %rsi
	cmovaq	%rax, %rsi
	addq	%rdi, %rsi
	cmpq	$3, %rsi
	ja	LBB0_4
## %bb.5:
	cmpq	%rdx, %rax
	cmovaq	%rax, %rdx
	leaq	4(%rax), %rsi
	cmpq	%r13, %rsi
	jbe	LBB0_7
## %bb.6:
	leaq	(%rdx,%rdi), %rsi
	andq	$-4, %rsi
	addq	%rdi, %rdx
	addq	$4, %rdx
	andq	$-4, %rdx
	addq	%r13, %rdx
	movq	%rax, %rdi
	subq	%rsi, %rdi
	movq	%r13, %rsi
	cmpq	%rdi, %rdx
	ja	LBB0_16
LBB0_7:
	shrq	$2, %rbx
	incq	%rbx
	movq	%rbx, %rcx
	andq	$-8, %rcx
	leaq	-8(%rcx), %rsi
	movq	%rsi, %rdx
	shrq	$3, %rdx
	incq	%rdx
	testq	%rsi, %rsi
	je	LBB0_8
## %bb.9:
	movq	%rdx, %rsi
	andq	$-2, %rsi
	movdqu	-28(%rax), %xmm0
	movdqu	-12(%rax), %xmm1
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	pshufd	$27, %xmm1, %xmm1               ## xmm1 = xmm1[3,2,1,0]
	pshufd	$27, %xmm0, %xmm0               ## xmm0 = xmm0[3,2,1,0]
	movdqu	(%r13,%rdi,4), %xmm2
	pxor	%xmm1, %xmm2
	movdqu	16(%r13,%rdi,4), %xmm1
	pxor	%xmm0, %xmm1
	movdqu	32(%r13,%rdi,4), %xmm0
	pxor	%xmm2, %xmm0
	movdqu	48(%r13,%rdi,4), %xmm2
	pxor	%xmm1, %xmm2
	pshufd	$27, %xmm0, %xmm1               ## xmm1 = xmm0[3,2,1,0]
	pshufd	$27, %xmm2, %xmm0               ## xmm0 = xmm2[3,2,1,0]
	addq	$16, %rdi
	addq	$-2, %rsi
	jne	LBB0_10
## %bb.11:
	movdqu	%xmm1, -12(%rax)
	movdqu	%xmm0, -28(%rax)
	testb	$1, %dl
	je	LBB0_14
LBB0_13:
	movdqu	(%r13,%rdi,4), %xmm0
	movdqu	16(%r13,%rdi,4), %xmm1
	movdqu	-28(%rax), %xmm2
	movdqu	-12(%rax), %xmm3
	pshufd	$27, %xmm0, %xmm0               ## xmm0 = xmm0[3,2,1,0]
	pxor	%xmm3, %xmm0
	movdqu	%xmm0, -12(%rax)
	pshufd	$27, %xmm1, %xmm0               ## xmm0 = xmm1[3,2,1,0]
	pxor	%xmm2, %xmm0
	movdqu	%xmm0, -28(%rax)
LBB0_14:
	cmpq	%rcx, %rbx
	je	LBB0_17
## %bb.15:
	leaq	(,%rcx,4), %rsi
	addq	%r13, %rsi
	jmp	LBB0_16
LBB0_4:
	movq	%r13, %rsi
	.p2align	4, 0x90
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	movl	(%rsi), %edx
	movl	%ecx, %edi
	andl	$1, %edi
	xorl	%edx, (%rax,%rdi,4)
	addq	$4, %rsi
	incl	%ecx
	cmpq	%rax, %rsi
	jb	LBB0_16
LBB0_17:
	movl	$1, -80(%rbp)
	movups	(%r13), %xmm0
	movups	%xmm0, -76(%rbp)
	movq	(%r15), %rdi
	leaq	L_.str(%rip), %rsi
	xorl	%r12d, %r12d
	leaq	-80(%rbp), %rbx
	movl	$5, %edx
	movq	%rbx, %rcx
	xorl	%eax, %eax
	callq	_dev_dbg
	movl	8(%r15), %edi
	movq	%rbx, %rsi
	movl	$5, %edx
	callq	_i2c_master_send
	movl	%eax, %ebx
	cmpl	$5, %eax
	jne	LBB0_27
## %bb.18:
	leaq	-76(%rbp), %r14
	movl	$5, -80(%rbp)
	movups	16(%r13), %xmm0
	movups	%xmm0, (%r14)
	movq	(%r15), %rdi
	leaq	L_.str(%rip), %rsi
	leaq	-80(%rbp), %rbx
	movl	$5, %edx
	movq	%rbx, %rcx
	xorl	%eax, %eax
	callq	_dev_dbg
	movl	8(%r15), %edi
	movq	%rbx, %rsi
	movl	$5, %edx
	callq	_i2c_master_send
	movl	%eax, %ebx
	cmpl	$5, %eax
	jne	LBB0_27
## %bb.19:
	movl	$9, -80(%rbp)
	movups	32(%r13), %xmm0
	movups	%xmm0, (%r14)
	movq	(%r15), %rdi
	leaq	L_.str(%rip), %rsi
	leaq	-80(%rbp), %rbx
	movl	$5, %edx
	movq	%rbx, %rcx
	xorl	%eax, %eax
	callq	_dev_dbg
	movl	8(%r15), %edi
	movq	%rbx, %rsi
	movl	$5, %edx
	callq	_i2c_master_send
	movl	%eax, %ebx
	cmpl	$5, %eax
	jne	LBB0_27
## %bb.20:
	movl	$13, -80(%rbp)
	movups	48(%r13), %xmm0
	movups	%xmm0, (%r14)
	movq	(%r15), %rdi
	leaq	L_.str(%rip), %rsi
	leaq	-80(%rbp), %rbx
	movl	$5, %edx
	movq	%rbx, %rcx
	xorl	%eax, %eax
	callq	_dev_dbg
	movl	8(%r15), %edi
	movq	%rbx, %rsi
	movl	$5, %edx
	callq	_i2c_master_send
	movl	%eax, %ebx
	cmpl	$5, %eax
	jne	LBB0_27
## %bb.21:
	movl	$0, -80(%rbp)
	movl	-84(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, -76(%rbp)
	movl	8(%r15), %edi
	leaq	-80(%rbp), %rsi
	movl	$2, %edx
	callq	_i2c_master_send
	cmpl	$2, %eax
	jne	LBB0_23
## %bb.22:
	movl	$2000, %edi                     ## imm = 0x7D0
	movl	$5000, %esi                     ## imm = 0x1388
	callq	_usleep_range
	movl	8(%r15), %edi
	leaq	-80(%rbp), %rsi
	movl	$1, %edx
	callq	_i2c_master_send
	xorl	%r12d, %r12d
	cmpl	$1, %eax
	je	LBB0_25
LBB0_23:
	movl	%eax, %ebx
	movq	(%r15), %rdi
	leaq	L_.str.1(%rip), %rsi
	movl	%eax, %edx
	callq	_dev_err
	movq	_EIO@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	jmp	LBB0_24
LBB0_27:
	movq	(%r15), %rdi
	leaq	L_.str.1(%rip), %rsi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_dev_dbg
	movq	_EIO@GOTPCREL(%rip), %rax
LBB0_24:
	subl	(%rax), %r12d
	testl	%ebx, %ebx
	cmovsl	%ebx, %r12d
LBB0_25:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_28
## %bb.26:
	movl	%r12d, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	xorl	%edi, %edi
	testb	$1, %dl
	jne	LBB0_13
	jmp	LBB0_14
LBB0_28:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%*ph"

L_.str.1:                               ## @.str.1
	.asciz	"i2c_master_send failed with %d\n"

	.comm	_EIO,4,2                        ## @EIO
	.no_dead_strip	_send_data_block
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function send_data_block
_send_data_block:                       ; @send_data_block
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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, x2
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #40]
	ldr	x8, [x2, #8]
	cmp	x2, x8
	b.hs	LBB0_7
; %bb.1:
	add	x10, x21, #4
	cmp	x8, x10
	csel	x9, x8, x10, hi
	mvn	x11, x21
	add	x9, x9, x11
	cmp	x9, #60
	b.lo	LBB0_5
; %bb.2:
	cmp	x8, x10
	csel	x10, x8, x10, hi
	add	x10, x10, x11
	cmp	x10, #3
	b.hi	LBB0_5
; %bb.3:
	add	x10, x21, #4
	cmp	x8, x10
	csel	x10, x8, x10, hi
	add	x11, x8, #4
	cmp	x11, x21
	b.ls	LBB0_17
; %bb.4:
	mvn	x11, x21
	add	x10, x10, x11
	and	x11, x10, #0xfffffffffffffffc
	add	x10, x10, #4
	and	x10, x10, #0xfffffffffffffffc
	add	x10, x21, x10
	sub	x11, x8, x11
	cmp	x10, x11
	b.ls	LBB0_17
LBB0_5:
	mov	w9, #0
	mov	x10, x21
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w11, [x10], #4
	and	w12, w9, #0x1
	lsl	x12, x12, #2
	ldr	w13, [x8, x12]
	eor	w11, w13, w11
	str	w11, [x8, x12]
	add	w9, w9, #1
	cmp	x10, x8
	b.lo	LBB0_6
LBB0_7:
	add	x24, sp, #20
	mov	w8, #1
	str	w8, [sp, #20]
	ldr	q0, [x21]
	stur	q0, [sp, #24]
	ldr	x0, [x19]
	str	x24, [sp]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	w25, #5
	mov	w2, #5
	bl	_dev_dbg
	ldr	w0, [x19, #8]
	add	x1, sp, #20
	mov	w2, #5
	bl	_i2c_master_send
	mov	x22, x0
	cmp	w0, #5
	b.ne	LBB0_14
; %bb.8:
	add	x23, x24, #4
	str	w25, [sp, #20]
	ldr	q0, [x21, #16]
	str	q0, [x23]
	ldr	x0, [x19]
	str	x24, [sp]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	w2, #5
	bl	_dev_dbg
	ldr	w0, [x19, #8]
	add	x1, sp, #20
	mov	w2, #5
	bl	_i2c_master_send
	mov	x22, x0
	cmp	w0, #5
	b.ne	LBB0_14
; %bb.9:
	mov	w8, #9
	str	w8, [sp, #20]
	ldr	q0, [x21, #32]
	str	q0, [x23]
	ldr	x0, [x19]
	add	x24, sp, #20
	str	x24, [sp]
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
	mov	w2, #5
	bl	_dev_dbg
	ldr	w0, [x19, #8]
	add	x1, sp, #20
	mov	w2, #5
	bl	_i2c_master_send
	mov	x22, x0
	cmp	w0, #5
	b.ne	LBB0_14
; %bb.10:
	mov	w8, #13
	str	w8, [sp, #20]
	ldr	q0, [x21, #48]
	str	q0, [x23]
	ldr	x0, [x19]
	str	x24, [sp]
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	w2, #5
	bl	_dev_dbg
	ldr	w0, [x19, #8]
	add	x1, sp, #20
	mov	w2, #5
	bl	_i2c_master_send
	mov	x22, x0
	cmp	w0, #5
	b.ne	LBB0_14
; %bb.11:
	stp	wzr, w20, [sp, #20]
	ldr	w0, [x19, #8]
	add	x1, sp, #20
	mov	w2, #2
	bl	_i2c_master_send
	cmp	w0, #2
	b.ne	LBB0_20
; %bb.12:
	mov	w0, #2000
	mov	w1, #5000
	bl	_usleep_range
	ldr	w0, [x19, #8]
	add	x1, sp, #20
	mov	w2, #1
	bl	_i2c_master_send
	cmp	w0, #1
	b.ne	LBB0_20
; %bb.13:
	mov	w0, #0
	b	LBB0_15
LBB0_14:
	ldr	x0, [x19]
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x22
	bl	_dev_dbg
Lloh13:
	adrp	x8, _EIO@GOTPAGE
Lloh14:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	cmp	w22, #0
	csneg	w0, w22, w8, lt
LBB0_15:
	ldr	x8, [sp, #40]
Lloh16:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh17:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_21
; %bb.16:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_17:
	lsr	x9, x9, #2
	add	x11, x9, #1
	and	x9, x11, #0x7ffffffffffffff0
	add	x10, x21, x9, lsl #2
	ldur	q3, [x8, #-12]
	ldur	q2, [x8, #-28]
	ldur	q1, [x8, #-44]
	ldur	q0, [x8, #-60]
	add	x12, x21, #32
	mov	x13, x9
LBB0_18:                                ; =>This Inner Loop Header: Depth=1
	ldp	q4, q5, [x12, #-32]
	ldp	q6, q7, [x12], #64
	rev64.4s	v4, v4
	ext.16b	v4, v4, v4, #8
	eor.16b	v3, v3, v4
	rev64.4s	v4, v5
	ext.16b	v4, v4, v4, #8
	eor.16b	v2, v2, v4
	rev64.4s	v4, v6
	ext.16b	v4, v4, v4, #8
	eor.16b	v1, v1, v4
	rev64.4s	v4, v7
	ext.16b	v4, v4, v4, #8
	eor.16b	v0, v0, v4
	subs	x13, x13, #16
	b.ne	LBB0_18
; %bb.19:
	stur	q3, [x8, #-12]
	stur	q2, [x8, #-28]
	stur	q1, [x8, #-44]
	stur	q0, [x8, #-60]
	cmp	x11, x9
	b.ne	LBB0_6
	b	LBB0_7
LBB0_20:
	mov	x20, x0
	ldr	x0, [x19]
Lloh19:
	adrp	x1, l_.str.1@PAGE
Lloh20:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x2, x20
	bl	_dev_err
Lloh21:
	adrp	x8, _EIO@GOTPAGE
Lloh22:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	cmp	w20, #0
	csneg	w0, w20, w8, lt
	b	LBB0_15
LBB0_21:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%*ph"

l_.str.1:                               ; @.str.1
	.asciz	"i2c_master_send failed with %d\n"

	.comm	_EIO,4,2                        ; @EIO
	.no_dead_strip	_send_data_block
.subsections_via_symbols
