	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function WriteTable
_WriteTable:                            ## @WriteTable
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rsi, %rsi
	je	LBB0_1
## %bb.2:
	movq	%rsi, %rbx
	movq	%rdi, %r15
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	4(%rbx), %eax
	movl	8(%rbx), %ecx
	shll	$8, %eax
	orl	(%rbx), %eax
	shll	$16, %ecx
	movl	12(%rbx), %esi
	shll	$24, %esi
	orl	%ecx, %esi
	orl	%eax, %esi
	cmpl	$-1, %esi
	je	LBB0_7
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	20(%rbx), %eax
	shll	$8, %eax
	orl	16(%rbx), %eax
	je	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movslq	%eax, %r12
	leaq	32(%rbx), %rcx
	leaq	(%r12,%r12), %rdx
	movq	%r15, %rdi
                                        ## kill: def $edx killed $edx killed $rdx
	xorl	%r8d, %r8d
	callq	_WriteBlock
	leaq	(%rbx,%r12,8), %rbx
	addq	$32, %rbx
	testl	%eax, %eax
	je	LBB0_3
## %bb.6:
	movl	%eax, %r14d
	jmp	LBB0_7
LBB0_1:
	xorl	%r14d, %r14d
LBB0_7:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_WriteTable
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function WriteTable
_WriteTable:                            ; @WriteTable
	.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	x1, LBB0_5
; %bb.1:
	mov	x19, x0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldp	w8, w9, [x1]
	orr	w8, w8, w9, lsl #8
	ldp	w9, w10, [x1, #8]
	orr	w8, w8, w9, lsl #16
	orr	w8, w8, w10, lsl #24
	cmn	w8, #1
	b.eq	LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldp	w9, w10, [x1, #16]
	orr	w9, w9, w10, lsl #8
	cbz	w9, LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x20, x1, #32
	lsl	w21, w9, #1
	mov	x0, x19
	mov	x1, x8
	mov	x2, x21
	mov	x3, x20
	mov	w4, #0
	bl	_WriteBlock
	add	x1, x20, w21, sxtw #2
	cbz	w0, LBB0_2
	b	LBB0_6
LBB0_5:
	mov	w0, #0
LBB0_6:
	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
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_WriteTable
.subsections_via_symbols
