	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pt1_i2c_read_msg
_pt1_i2c_read_msg:                      ## @pt1_i2c_read_msg
	.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
	movq	%rcx, %r15
	movq	%rdx, %r14
	movq	%rdi, %r13
	movl	%esi, -44(%rbp)
	leaq	-44(%rbp), %r12
	movq	%r12, %rdx
	callq	_pt1_i2c_prepare
	movl	-44(%rbp), %esi
	movl	(%r15), %eax
	leal	(%rax,%rax), %ecx
	incl	%ecx
	movq	%r13, %rdi
	movq	%r12, %rdx
	callq	_pt1_i2c_write_byte
	movl	4(%r15), %eax
	testl	%eax, %eax
	jle	LBB0_3
## %bb.1:
	xorl	%ebx, %ebx
	leaq	-44(%rbp), %r12
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	-44(%rbp), %esi
	decl	%eax
	xorl	%ecx, %ecx
	cmpl	%eax, %ebx
	sete	%cl
	movq	%r13, %rdi
	movq	%r12, %rdx
	callq	_pt1_i2c_read_byte
	incl	%ebx
	movl	4(%r15), %eax
	cmpl	%eax, %ebx
	jl	LBB0_2
LBB0_3:
	movl	-44(%rbp), %eax
	movl	%eax, (%r14)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_pt1_i2c_read_msg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pt1_i2c_read_msg
_pt1_i2c_read_msg:                      ; @pt1_i2c_read_msg
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x20, x3
	mov	x19, x2
	mov	x21, x0
	str	w1, [sp, #12]
	add	x2, sp, #12
	bl	_pt1_i2c_prepare
	ldr	w1, [sp, #12]
	ldr	w8, [x20]
	mov	w3, #1
	bfi	w3, w8, #1, #31
	add	x2, sp, #12
	mov	x0, x21
	bl	_pt1_i2c_write_byte
	ldr	w8, [x20, #4]
	cmp	w8, #1
	b.lt	LBB0_3
; %bb.1:
	mov	w22, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [sp, #12]
	sub	w8, w8, #1
	cmp	w22, w8
	cset	w3, eq
	add	x2, sp, #12
	mov	x0, x21
	bl	_pt1_i2c_read_byte
	add	w22, w22, #1
	ldr	w8, [x20, #4]
	cmp	w22, w8
	b.lt	LBB0_2
LBB0_3:
	ldr	w8, [sp, #12]
	str	w8, [x19]
	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
	add	sp, sp, #64
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_pt1_i2c_read_msg
.subsections_via_symbols
