	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tsunami_flash_copy_to
_tsunami_flash_copy_to:                 ## @tsunami_flash_copy_to
	.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
	testq	%rcx, %rcx
	je	LBB0_5
## %bb.1:
	movq	%rsi, %r15
	movq	_MAX_TIG_FLASH_SIZE@GOTPCREL(%rip), %rax
	cmpq	%rsi, (%rax)
	jbe	LBB0_5
## %bb.2:
	movq	%rcx, %r13
	movq	%rdx, %r14
	decq	%r13
	leaq	1(%r15), %rbx
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	leaq	(%r15,%r12), %rsi
	movzbl	(%r14,%r12), %edi
	callq	_tsunami_tig_writeb
	cmpq	%r12, %r13
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	leaq	(%rbx,%r12), %rax
	incq	%r12
	movq	_MAX_TIG_FLASH_SIZE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jb	LBB0_3
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_TIG_FLASH_SIZE,8,3         ## @MAX_TIG_FLASH_SIZE
	.no_dead_strip	_tsunami_flash_copy_to
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tsunami_flash_copy_to
_tsunami_flash_copy_to:                 ; @tsunami_flash_copy_to
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	cbz	x3, LBB0_5
; %bb.1:
	mov	x20, x1
Lloh0:
	adrp	x21, _MAX_TIG_FLASH_SIZE@GOTPAGE
Lloh1:
	ldr	x21, [x21, _MAX_TIG_FLASH_SIZE@GOTPAGEOFF]
	ldr	x8, [x21]
	cmp	x8, x1
	b.ls	LBB0_5
; %bb.2:
	mov	x19, x2
	sub	x22, x3, #1
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w0, [x19], #1
	mov	x1, x20
	bl	_tsunami_tig_writeb
	subs	x22, x22, #1
	b.lo	LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x20, x20, #1
	ldr	x8, [x21]
	cmp	x20, x8
	b.lo	LBB0_3
LBB0_5:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_TIG_FLASH_SIZE,8,3         ; @MAX_TIG_FLASH_SIZE
	.no_dead_strip	_tsunami_flash_copy_to
.subsections_via_symbols
