	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bwrite_mlist                   ## -- Begin function bwrite_mlist
	.p2align	4, 0x90
_bwrite_mlist:                          ## @bwrite_mlist
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, -80(%rbp)                  ## 8-byte Spill
	movl	%r8d, -52(%rbp)                 ## 4-byte Spill
	movl	%ecx, %r12d
	movq	%rdx, %r15
	movq	%rdi, %r13
	xorl	%edi, %edi
	movq	%rsi, -72(%rbp)                 ## 8-byte Spill
	cmpl	$-1, (%rsi)
	sete	%dil
	callq	_assert
	leal	1(%r12), %eax
	testl	%r12d, %r12d
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	jle	LBB0_1
## %bb.3:
	movl	%eax, %r12d
	movl	$1, %ebx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	xorl	%edi, %edi
	cmpl	$0, (%r15,%rbx,4)
	setg	%dil
	callq	_assert
	cmpl	$2, (%r15,%rbx,4)
	jge	LBB0_5
## %bb.2:                               ##   in Loop: Header=BB0_4 Depth=1
	incq	%rbx
	cmpq	%rbx, %r12
	jne	LBB0_4
LBB0_1:
	movl	$1, %eax
	jmp	LBB0_6
LBB0_5:
	xorl	%eax, %eax
LBB0_6:
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	leaq	-88(%rbp), %rdi
	movq	%r13, %rsi
	movl	$8, %edx
	callq	_memcpy
	movq	(%r13), %rax
	movb	(%rax), %al
	movb	%al, -41(%rbp)                  ## 1-byte Spill
	xorl	%edi, %edi
	movl	-48(%rbp), %r14d                ## 4-byte Reload
	movl	%r14d, %esi
	movl	-52(%rbp), %r12d                ## 4-byte Reload
	movl	%r12d, %edx
	callq	_get_subtree_array_size
	movl	%eax, %ebx
	movl	%eax, -112(%rbp)
	callq	_dyn_mark
	shll	$2, %ebx
	movl	%ebx, %edi
	callq	_zmalloc
	movl	%eax, -96(%rbp)
	movq	$0, -104(%rbp)
	movq	%r13, %rdi
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movl	%ebx, %esi
	movl	$1, %edx
	callq	_bwrite_nbits
	leaq	-112(%rbp), %rax
	movq	%r13, %rdi
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	movq	%r15, %rdx
	xorl	%ecx, %ecx
	movl	%r14d, %r8d
	movq	%rbx, %r14
	movl	%r12d, %r9d
	movq	%rax, %r12
	pushq	%rbx
	pushq	%rax
	callq	_bwrite_mlist_sublist_first_pass
	addq	$16, %rsp
	movq	%r13, %rdi
	leaq	-88(%rbp), %rsi
	movl	$8, %edx
	callq	_memcpy
	movq	(%r13), %rax
	movb	-41(%rbp), %cl                  ## 1-byte Reload
	movb	%cl, (%rax)
	movq	$0, -104(%rbp)
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	testq	%rbx, %rbx
	je	LBB0_8
## %bb.7:
	movl	$0, (%rbx)
LBB0_8:
	movq	%r13, %rdi
	movl	%r14d, %esi
	movl	$1, %edx
	callq	_bwrite_nbits
	subq	$8, %rsp
	movq	%r13, %rdi
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	movq	%r15, %rdx
	xorl	%ecx, %ecx
	movl	-48(%rbp), %r8d                 ## 4-byte Reload
	movl	-52(%rbp), %r9d                 ## 4-byte Reload
	pushq	%r14
	pushq	%rbx
	pushq	%r12
	callq	_bwrite_mlist_sublist_second_pass
	addq	$32, %rsp
	callq	_dyn_release
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bwrite_mlist                   ; -- Begin function bwrite_mlist
	.p2align	2
_bwrite_mlist:                          ; @bwrite_mlist
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	mov	x19, x5
	mov	x20, x4
	mov	x25, x3
	mov	x21, x2
	mov	x22, x1
	mov	x23, x0
	ldr	w8, [x1]
	cmn	w8, #1
	cset	w0, eq
	bl	_assert
	add	w24, w25, #1
	cmp	w25, #1
	b.lt	LBB0_4
; %bb.1:
	add	x25, x21, #4
	sub	x26, x24, #1
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x25]
	cmp	w8, #0
	cset	w0, gt
	bl	_assert
	ldr	w8, [x25]
	cmp	w8, #2
	b.ge	LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x25, x25, #4
	subs	x26, x26, #1
	b.ne	LBB0_2
LBB0_4:
	mov	w25, #1
	b	LBB0_6
LBB0_5:
	mov	w25, #0
LBB0_6:
	add	x0, sp, #40
	mov	x1, x23
	mov	w2, #8
	bl	_memcpy
	ldr	x8, [x23]
	ldrb	w27, [x8]
	mov	w0, #0
	mov	x1, x24
	mov	x2, x20
	bl	_get_subtree_array_size
	mov	x26, x0
	str	w0, [sp, #16]
	bl	_dyn_mark
	lsl	w0, w26, #2
	bl	_zmalloc
	str	w0, [sp, #32]
	str	xzr, [sp, #24]
	mov	x0, x23
	mov	x1, x25
	mov	w2, #1
	bl	_bwrite_nbits
	add	x6, sp, #16
	mov	x0, x23
	mov	x1, x22
	mov	x2, x21
	mov	w3, #0
	mov	x4, x24
	mov	x5, x20
	mov	x7, x25
	bl	_bwrite_mlist_sublist_first_pass
	add	x1, sp, #40
	mov	x0, x23
	mov	w2, #8
	bl	_memcpy
	ldr	x8, [x23]
	strb	w27, [x8]
	str	xzr, [sp, #24]
	cbz	x19, LBB0_8
; %bb.7:
	str	wzr, [x19]
LBB0_8:
	mov	x0, x23
	mov	x1, x25
	mov	w2, #1
	bl	_bwrite_nbits
	str	w25, [sp]
	add	x6, sp, #16
	mov	x0, x23
	mov	x1, x22
	mov	x2, x21
	mov	w3, #0
	mov	x4, x24
	mov	x5, x20
	mov	x7, x19
	bl	_bwrite_mlist_sublist_second_pass
	bl	_dyn_release
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
