	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_write_chunk                    ## -- Begin function write_chunk
	.p2align	4, 0x90
_write_chunk:                           ## @write_chunk
	.cfi_startproc
## %bb.0:
	testq	%rsi, %rsi
	je	LBB0_9
## %bb.1:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	subq	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	16(%rdi), %rax
	movq	%rax, -48(%rbp)
	movups	(%rdi), %xmm0
	movaps	%xmm0, -64(%rbp)
	cmpq	$2, %rsi
	jl	LBB0_8
## %bb.2:
	decq	%r15
	addq	$24, %rbx
	leaq	-64(%rbp), %r12
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	%r12, %rdi
	movl	$24, %esi
	movl	$1, %edx
	movq	%r14, %rcx
	callq	_fwrite
	movups	(%rbx), %xmm0
	movaps	%xmm0, -64(%rbp)
	movq	16(%rbx), %rax
	movq	%rax, -48(%rbp)
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	addq	$24, %rbx
	decq	%r15
	je	LBB0_8
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rbx), %rax
	cmpq	-64(%rbp), %rax
	jne	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	8(%rbx), %rax
	cmpq	-56(%rbp), %rax
	jne	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	16(%rbx), %rax
	addq	%rax, -48(%rbp)
	jmp	LBB0_7
LBB0_8:
	leaq	-64(%rbp), %rdi
	movl	$24, %esi
	movl	$1, %edx
	movq	%r14, %rcx
	callq	_fwrite
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
LBB0_9:
	xorl	%eax, %eax
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_write_chunk                    ; -- Begin function write_chunk
	.p2align	2
_write_chunk:                           ; @write_chunk
	.cfi_startproc
; %bb.0:
	cbz	x1, LBB0_9
; %bb.1:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x19, x2
	ldr	q0, [x0]
	str	q0, [sp]
	ldr	x8, [x0, #16]
	str	x8, [sp, #16]
	cmp	x1, #2
	b.lt	LBB0_8
; %bb.2:
	sub	x20, x1, #1
	add	x21, x0, #24
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, sp
	mov	w1, #24
	mov	w2, #1
	mov	x3, x19
	bl	_fwrite
	ldr	q0, [x21]
	str	q0, [sp]
	ldr	x8, [x21, #16]
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	str	x8, [sp, #16]
	add	x21, x21, #24
	subs	x20, x20, #1
	b.eq	LBB0_8
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21]
	ldr	x9, [sp]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x21, #8]
	ldr	x9, [sp, #8]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x21, #16]
	ldr	x9, [sp, #16]
	add	x8, x9, x8
	b	LBB0_4
LBB0_8:
	mov	x0, sp
	mov	w1, #24
	mov	w2, #1
	mov	x3, x19
	bl	_fwrite
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
LBB0_9:
	.cfi_def_cfa wsp, 0
	.cfi_same_value w30
	.cfi_same_value w29
	.cfi_same_value w19
	.cfi_same_value w20
	.cfi_same_value w21
	.cfi_same_value w22
	mov	w0, #0
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
