	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function test_zero
_test_zero:                             ## @test_zero
	.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
	movq	%rsi, %r14
	xorl	%esi, %esi
	callq	_mallocx
	movq	%rax, %rbx
	leaq	L_.str(%rip), %rsi
	movq	%rax, %rdi
	callq	_assert_ptr_not_null
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_sallocx
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	cmpq	%r14, %rax
	jbe	LBB0_1
LBB0_9:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dallocx                        ## TAILCALL
LBB0_1:
	xorl	%r12d, %r12d
	leaq	L_.str.2(%rip), %r15
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_sallocx
	movq	%r13, %r12
	cmpq	-48(%rbp), %rax                 ## 8-byte Folded Reload
	ja	LBB0_9
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_5 Depth 2
	movq	%rax, %r13
	testq	%r12, %r12
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	(%rbx), %r14d
	xorl	%edi, %edi
	callq	_ZU
	movl	%r14d, %edi
	movl	$97, %esi
	leaq	L_.str.1(%rip), %r14
	movq	%r14, %rdx
	movq	%rax, %rcx
	movq	%r12, %r8
	callq	_assert_u_eq
	leaq	-1(%r12), %rcx
	movl	-4(%rbx,%r12,4), %edi
	movl	$97, %esi
	movq	%r14, %rdx
	movq	%r12, %r8
	callq	_assert_u_eq
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	cmpq	%r13, %r12
	jae	LBB0_6
	.p2align	4, 0x90
LBB0_5:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%rbx,%r12,4), %edi
	xorl	%esi, %esi
	movq	%r15, %rdx
	movq	%r12, %rcx
	movq	%r13, %r8
	callq	_assert_u_eq
	movl	$97, (%rbx,%r12,4)
	incq	%r12
	cmpq	%r12, %r13
	jne	LBB0_5
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	leaq	1(%r13), %r12
	movq	%rbx, %rdi
	movq	%r12, %rsi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_xallocx
	cmpq	%r13, %rax
	jne	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %rdi
	movq	%r12, %rsi
	xorl	%edx, %edx
	callq	_rallocx
	movq	%rax, %rbx
	movq	%rax, %rdi
	leaq	L_.str.3(%rip), %rsi
	callq	_assert_ptr_not_null
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unexpected mallocx() failure"

L_.str.1:                               ## @.str.1
	.asciz	"Previously allocated byte %zu/%zu is corrupted"

L_.str.2:                               ## @.str.2
	.asciz	"Newly allocated byte %zu/%zu isn't zero-filled"

L_.str.3:                               ## @.str.3
	.asciz	"Unexpected rallocx() failure"

	.comm	_MAGIC,4,2                      ## @MAGIC
	.no_dead_strip	_test_zero
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function test_zero
_test_zero:                             ; @test_zero
	.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
	mov	x19, x1
	mov	w1, #0
	bl	_mallocx
	mov	x20, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_assert_ptr_not_null
	mov	x0, x20
	mov	w1, #0
	bl	_sallocx
	cmp	x0, x19
	b.ls	LBB0_2
LBB0_1:
	mov	x0, x20
	mov	w1, #0
	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
	b	_dallocx
LBB0_2:
	mov	x25, #0
Lloh2:
	adrp	x21, l_.str.2@PAGE
Lloh3:
	add	x21, x21, l_.str.2@PAGEOFF
	mov	w27, #97
Lloh4:
	adrp	x22, l_.str.3@PAGE
Lloh5:
	add	x22, x22, l_.str.3@PAGEOFF
Lloh6:
	adrp	x23, l_.str.1@PAGE
Lloh7:
	add	x23, x23, l_.str.1@PAGEOFF
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x20
	mov	w1, #0
	bl	_sallocx
	mov	x25, x24
	cmp	x0, x19
	b.hi	LBB0_1
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
	mov	x24, x0
	cbz	x25, LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w26, [x20]
	mov	w0, #0
	bl	_ZU
	mov	x3, x0
	mov	x0, x26
	mov	w1, #97
	mov	x2, x23
	mov	x4, x25
	bl	_assert_u_eq
	sub	x3, x25, #1
	ldr	w0, [x20, x3, lsl #2]
	mov	w1, #97
	mov	x2, x23
	mov	x4, x25
	bl	_assert_u_eq
LBB0_6:                                 ;   in Loop: Header=BB0_4 Depth=1
	cmp	x25, x24
	b.hs	LBB0_8
LBB0_7:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	lsl	x26, x25, #2
	ldr	w0, [x20, x26]
	mov	w1, #0
	mov	x2, x21
	mov	x3, x25
	mov	x4, x24
	bl	_assert_u_eq
	str	w27, [x20, x26]
	add	x25, x25, #1
	cmp	x24, x25
	b.ne	LBB0_7
LBB0_8:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x25, x24, #1
	mov	x0, x20
	mov	x1, x25
	mov	w2, #0
	mov	w3, #0
	bl	_xallocx
	cmp	x0, x24
	b.ne	LBB0_3
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x20
	mov	x1, x25
	mov	w2, #0
	bl	_rallocx
	mov	x20, x0
	mov	x1, x22
	bl	_assert_ptr_not_null
	b	LBB0_3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unexpected mallocx() failure"

l_.str.1:                               ; @.str.1
	.asciz	"Previously allocated byte %zu/%zu is corrupted"

l_.str.2:                               ; @.str.2
	.asciz	"Newly allocated byte %zu/%zu isn't zero-filled"

l_.str.3:                               ; @.str.3
	.asciz	"Unexpected rallocx() failure"

	.comm	_MAGIC,4,2                      ; @MAGIC
	.no_dead_strip	_test_zero
.subsections_via_symbols
