	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sendbytes
_sendbytes:                             ## @sendbytes
	.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
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movl	8(%rsi), %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	testl	%eax, %eax
	jle	LBB0_1
## %bb.2:
	movq	_I2C_M_IGNORE_NAK@GOTPCREL(%rip), %rax
	movzwl	(%rax), %r12d
	andw	12(%rsi), %r12w
	movq	(%rsi), %r13
	xorl	%r14d, %r14d
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	incq	%r14
	cmpl	%r14d, -56(%rbp)                ## 4-byte Folded Reload
	je	LBB0_6
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	testw	%r12w, %r12w
	setne	%r15b
	movzbl	(%r13,%r14), %esi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_i2c_outb
	movl	%eax, %ebx
	testl	%eax, %eax
	sete	%al
	jg	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	andb	%al, %r15b
	jne	LBB0_5
## %bb.7:
	testl	%ebx, %ebx
	je	LBB0_8
## %bb.9:
	leaq	L_.str.1(%rip), %rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_10
LBB0_1:
	xorl	%ebx, %ebx
	jmp	LBB0_10
LBB0_6:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	%eax, %ebx
	jmp	LBB0_10
LBB0_8:
	leaq	L_.str(%rip), %rsi
	xorl	%ebx, %ebx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	xorl	%eax, %eax
	callq	_dev_err
	movq	_EIO@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
LBB0_10:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_I2C_M_IGNORE_NAK,2,1           ## @I2C_M_IGNORE_NAK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"sendbytes: NAK bailout.\n"

	.comm	_EIO,4,2                        ## @EIO
L_.str.1:                               ## @.str.1
	.asciz	"sendbytes: error %d\n"

	.no_dead_strip	_sendbytes
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sendbytes
_sendbytes:                             ; @sendbytes
	.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
	ldr	w21, [x1, #8]
	cmp	w21, #1
	b.lt	LBB0_5
; %bb.1:
	mov	x19, x0
	mov	x22, #0
Lloh0:
	adrp	x8, _I2C_M_IGNORE_NAK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _I2C_M_IGNORE_NAK@GOTPAGEOFF]
	ldrh	w8, [x8]
	ldrh	w9, [x1, #12]
	and	w23, w8, w9
	ldr	x24, [x1]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	cmp	w23, #0
	cset	w25, ne
	ldrb	w1, [x24, x22]
	mov	x0, x19
	bl	_i2c_outb
	cmp	w0, #0
	cset	w8, eq
	and	w8, w25, w8
	ccmp	w8, #0, #0, le
	b.eq	LBB0_6
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x22, x22, #1
	cmp	w21, w22
	b.ne	LBB0_2
; %bb.4:
	mov	x20, x21
	b	LBB0_9
LBB0_5:
	mov	w20, #0
	b	LBB0_9
LBB0_6:
	mov	x20, x0
	cbz	w0, LBB0_8
; %bb.7:
	str	x20, [sp]
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dev_err
	b	LBB0_9
LBB0_8:
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_dev_err
Lloh6:
	adrp	x8, _EIO@GOTPAGE
Lloh7:
	ldr	x8, [x8, _EIO@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_9:
	mov	x0, x20
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_I2C_M_IGNORE_NAK,2,1           ; @I2C_M_IGNORE_NAK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"sendbytes: NAK bailout.\n"

	.comm	_EIO,4,2                        ; @EIO
l_.str.1:                               ; @.str.1
	.asciz	"sendbytes: error %d\n"

	.no_dead_strip	_sendbytes
.subsections_via_symbols
