	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function usb_exchange
_usb_exchange:                          ## @usb_exchange
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	addq	$8, %rbx
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_1 Depth=1
	movl	-8(%rbx), %ecx
	movl	(%rbx), %edx
	shll	$8, %ecx
	orl	-4(%rbx), %ecx
	movq	%r14, %rdi
	movl	$160, %esi
	callq	_reg_w
	addq	$16, %rbx
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	4(%rbx), %eax
	cmpl	$203, %eax
	jg	LBB0_5
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	cmpl	$170, %eax
	je	LBB0_9
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	cmpl	$187, %eax
	jne	LBB0_7
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	-8(%rbx), %esi
	leaq	-4(%rbx), %rdx
	movq	%r14, %rdi
	movl	$2, %ecx
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_1 Depth=1
	cmpl	$204, %eax
	je	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_1 Depth=1
	cmpl	$221, %eax
	jne	LBB0_7
## %bb.11:                              ##   in Loop: Header=BB0_1 Depth=1
	movl	-4(%rbx), %eax
	movl	(%rbx), %ecx
	shll	$8, %eax
	leal	(%rcx,%rax), %edi
	addl	$10, %edi
	callq	_msleep
	addq	$16, %rbx
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_1 Depth=1
	movl	-4(%rbx), %esi
	movq	%r14, %rdi
	movq	%rbx, %rdx
	movl	$1, %ecx
LBB0_10:                                ##   in Loop: Header=BB0_1 Depth=1
	callq	_i2c_write
	addq	$16, %rbx
	jmp	LBB0_1
LBB0_7:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_usb_exchange
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function usb_exchange
_usb_exchange:                          ; @usb_exchange
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	add	x20, x1, #8
	b	LBB0_2
LBB0_1:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldur	w1, [x20, #-4]
	mov	x0, x19
	mov	x2, x20
	mov	w3, #1
	bl	_i2c_write
	add	x20, x20, #16
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x20, #4]
	cmp	w8, #203
	b.gt	LBB0_6
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	cmp	w8, #170
	b.eq	LBB0_1
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	cmp	w8, #187
	b.ne	LBB0_10
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=1
	ldur	w1, [x20, #-8]
	sub	x2, x20, #4
	mov	x0, x19
	mov	w3, #2
	bl	_i2c_write
	add	x20, x20, #16
	b	LBB0_2
LBB0_6:                                 ;   in Loop: Header=BB0_2 Depth=1
	cmp	w8, #204
	b.eq	LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_2 Depth=1
	cmp	w8, #221
	b.ne	LBB0_10
; %bb.8:                                ;   in Loop: Header=BB0_2 Depth=1
	ldp	w8, w9, [x20, #-4]
	add	w8, w9, w8, lsl #8
	add	w0, w8, #10
	bl	_msleep
	add	x20, x20, #16
	b	LBB0_2
LBB0_9:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldp	w9, w2, [x20, #-4]
	ldur	w8, [x20, #-8]
	orr	w3, w9, w8, lsl #8
	mov	x0, x19
	mov	w1, #160
	bl	_reg_w
	add	x20, x20, #16
	b	LBB0_2
LBB0_10:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_usb_exchange
.subsections_via_symbols
