	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_USB_write2422_block            ## -- Begin function USB_write2422_block
	.p2align	4, 0x90
_USB_write2422_block:                   ## @USB_write2422_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_i2c0_buf@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	movq	_DC_USB_WRITE2422_BLOCK_BEGIN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_DBGC
	leaq	2(%r15), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	_USB2422_shadow@GOTPCREL(%rip), %rbx
	movq	_SERCOM0@GOTPCREL(%rip), %r12
	movl	$256, %r13d                     ## imm = 0x100
	addq	_USB2422_shadow@GOTPCREL(%rip), %r13
	movq	_DC_USB_WRITE2422_BLOCK_SYNC_SYSOP@GOTPCREL(%rip), %r14
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_1 Depth=1
	movl	$100, %edi
	callq	_wait_us
	addq	$32, %rbx
	cmpq	%r13, %rbx
	jae	LBB0_5
LBB0_1:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_2 Depth 2
	movl	%ebx, %eax
	subb	_USB2422_shadow@GOTPCREL(%rip), %al
	movb	%al, (%r15)
	movb	$32, 1(%r15)
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rsi
	movl	$32, %edx
	callq	_memcpy
	movq	_USB2422_ADDR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r15, %rsi
	movl	$34, %edx
	movl	$50000, %ecx                    ## imm = 0xC350
	callq	_i2c0_transmit
	movq	(%r12), %rax
	movl	$3, 8(%rax)
	cmpq	$0, (%rax)
	je	LBB0_4
	.p2align	4, 0x90
LBB0_2:                                 ##   Parent Loop BB0_1 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%r14), %edi
	callq	_DBGC
	movq	(%r12), %rax
	cmpq	$0, (%rax)
	jne	LBB0_2
	jmp	LBB0_4
LBB0_5:
	movq	_DC_USB_WRITE2422_BLOCK_COMPLETE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_DBGC                           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_i2c0_buf,8,3                   ## @i2c0_buf
	.comm	_USB2422_shadow,4,2             ## @USB2422_shadow
	.comm	_DC_USB_WRITE2422_BLOCK_BEGIN,4,2 ## @DC_USB_WRITE2422_BLOCK_BEGIN
	.comm	_USB2422_ADDR,4,2               ## @USB2422_ADDR
	.comm	_SERCOM0,8,3                    ## @SERCOM0
	.comm	_DC_USB_WRITE2422_BLOCK_SYNC_SYSOP,4,2 ## @DC_USB_WRITE2422_BLOCK_SYNC_SYSOP
	.comm	_DC_USB_WRITE2422_BLOCK_COMPLETE,4,2 ## @DC_USB_WRITE2422_BLOCK_COMPLETE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_USB_write2422_block            ; -- Begin function USB_write2422_block
	.p2align	2
_USB_write2422_block:                   ; @USB_write2422_block
	.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
Lloh0:
	adrp	x8, _i2c0_buf@GOTPAGE
Lloh1:
	ldr	x8, [x8, _i2c0_buf@GOTPAGEOFF]
Lloh2:
	ldr	x19, [x8]
Lloh3:
	adrp	x8, _DC_USB_WRITE2422_BLOCK_BEGIN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DC_USB_WRITE2422_BLOCK_BEGIN@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_DBGC
	add	x20, x19, #2
Lloh6:
	adrp	x22, _USB2422_shadow@GOTPAGE
Lloh7:
	ldr	x22, [x22, _USB2422_shadow@GOTPAGEOFF]
	mov	w23, #32
Lloh8:
	adrp	x24, _USB2422_ADDR@GOTPAGE
Lloh9:
	ldr	x24, [x24, _USB2422_ADDR@GOTPAGEOFF]
Lloh10:
	adrp	x25, _SERCOM0@GOTPAGE
Lloh11:
	ldr	x25, [x25, _SERCOM0@GOTPAGEOFF]
	mov	w26, #3
Lloh12:
	adrp	x27, _DC_USB_WRITE2422_BLOCK_SYNC_SYSOP@GOTPAGE
Lloh13:
	ldr	x27, [x27, _DC_USB_WRITE2422_BLOCK_SYNC_SYSOP@GOTPAGEOFF]
	mov	x21, x22
	b	LBB0_2
LBB0_1:                                 ;   in Loop: Header=BB0_2 Depth=1
	mov	w0, #100
	bl	_wait_us
	add	x21, x21, #32
	add	x8, x22, #256
	cmp	x21, x8
	b.hs	LBB0_4
LBB0_2:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_3 Depth 2
	sub	w8, w21, w22
	strb	w8, [x19]
	strb	w23, [x19, #1]
	mov	x0, x20
	mov	x1, x21
	mov	w2, #32
	bl	_memcpy
	ldr	w0, [x24]
	mov	x1, x19
	mov	w2, #34
	mov	w3, #50000
	bl	_i2c0_transmit
	ldr	x8, [x25]
	str	w26, [x8, #8]
	ldr	x8, [x8]
	cbz	x8, LBB0_1
LBB0_3:                                 ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w0, [x27]
	bl	_DBGC
	ldr	x8, [x25]
	ldr	x8, [x8]
	cbnz	x8, LBB0_3
	b	LBB0_1
LBB0_4:
Lloh14:
	adrp	x8, _DC_USB_WRITE2422_BLOCK_COMPLETE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _DC_USB_WRITE2422_BLOCK_COMPLETE@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
	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
	b	_DBGC
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_i2c0_buf,8,3                   ; @i2c0_buf
	.comm	_USB2422_shadow,4,2             ; @USB2422_shadow
	.comm	_DC_USB_WRITE2422_BLOCK_BEGIN,4,2 ; @DC_USB_WRITE2422_BLOCK_BEGIN
	.comm	_USB2422_ADDR,4,2               ; @USB2422_ADDR
	.comm	_SERCOM0,8,3                    ; @SERCOM0
	.comm	_DC_USB_WRITE2422_BLOCK_SYNC_SYSOP,4,2 ; @DC_USB_WRITE2422_BLOCK_SYNC_SYSOP
	.comm	_DC_USB_WRITE2422_BLOCK_COMPLETE,4,2 ; @DC_USB_WRITE2422_BLOCK_COMPLETE
.subsections_via_symbols
