	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function write_all_blocks
LCPI0_0:
	.space	16
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_write_all_blocks:                      ## @write_all_blocks
	.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
	movl	%edx, -52(%rbp)                 ## 4-byte Spill
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	movl	(%rdi), %ecx
	testl	%ecx, %ecx
	jle	LBB0_1
## %bb.2:
	movq	%rdi, %r12
	movl	4(%rdi), %eax
	xorl	%edx, %edx
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	xorl	%ebx, %ebx
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	incl	%edx
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	cmpl	%ecx, %edx
	jge	LBB0_10
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_5 Depth 2
	testl	%eax, %eax
	jle	LBB0_9
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	xorl	%r14d, %r14d
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_5:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	imull	-48(%rbp), %eax                 ## 4-byte Folded Reload
	cltq
	leaq	(%rax,%rax,2), %r13
	shlq	$3, %r13
	addq	8(%r12), %r13
	leaq	(%r14,%r13), %rdi
	movslq	%ebx, %rax
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	leaq	(%rcx,%rax,4), %rsi
	movl	-52(%rbp), %edx                 ## 4-byte Reload
	subl	%eax, %edx
	callq	_write_block
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%r14,%r13)
	movq	$0, 16(%r14,%r13)
	testl	%eax, %eax
	js	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=2
	addl	%eax, %ebx
	incq	%r15
	movslq	4(%r12), %rax
	addq	$24, %r14
	cmpq	%rax, %r15
	jl	LBB0_5
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	(%r12), %ecx
	jmp	LBB0_9
LBB0_6:
	movl	%eax, %ebx
	jmp	LBB0_10
LBB0_1:
	xorl	%ebx, %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
	.no_dead_strip	_write_all_blocks
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function write_all_blocks
_write_all_blocks:                      ; @write_all_blocks
	.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
	ldr	w9, [x0]
	cmp	w9, #1
	b.lt	LBB0_9
; %bb.1:
	mov	x19, x2
	mov	x21, x1
	mov	x22, x0
	mov	w24, #0
	mov	w20, #0
	ldr	w8, [x0, #4]
	mov	w25, #24
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	w24, w24, #1
	cmp	w24, w9
	b.ge	LBB0_10
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_5 Depth 2
	cmp	w8, #1
	b.lt	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x26, #0
	mov	x27, #0
LBB0_5:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x9, [x22, #8]
	mul	w8, w24, w8
	smaddl	x8, w8, w25, x9
	add	x23, x8, x26
	add	x1, x21, w20, sxtw #2
	sub	w2, w19, w20
	mov	x0, x23
	bl	_write_block
	stp	xzr, xzr, [x23, #8]
	str	xzr, [x23]
	tbnz	w0, #31, LBB0_8
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=2
	add	w20, w0, w20
	add	x27, x27, #1
	ldrsw	x8, [x22, #4]
	add	x26, x26, #24
	cmp	x27, x8
	b.lt	LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w9, [x22]
	b	LBB0_2
LBB0_8:
	mov	x20, x0
	b	LBB0_10
LBB0_9:
	mov	w20, #0
LBB0_10:
	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
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_write_all_blocks
.subsections_via_symbols
