	.file	"extr_junk.c_test_junk.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Unexpected mallocx() failure"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC1:
	.string	"Previously allocated byte %zu/%zu is corrupted"
	.align 8
.LC2:
	.string	"Newly allocated byte %zu/%zu isn't junk-filled"
	.section	.rodata.str1.1
.LC3:
	.string	"Unexpected rallocx() failure"
	.section	.rodata.str1.8
	.align 8
.LC4:
	.string	"Expected region of size %zu to be junk-filled"
	.text
	.p2align 4
	.type	test_junk, @function
test_junk:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	mov	r14, rsi
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	cmp	QWORD PTR opt_junk_free[rip], 0
	je	.L2
	mov	eax, DWORD PTR arena_dalloc_junk_small[rip]
	mov	DWORD PTR arena_dalloc_junk_small_orig[rip], eax
	mov	eax, DWORD PTR arena_dalloc_junk_small_intercept[rip]
	mov	DWORD PTR arena_dalloc_junk_small[rip], eax
	mov	eax, DWORD PTR arena_dalloc_junk_large[rip]
	mov	DWORD PTR arena_dalloc_junk_large_orig[rip], eax
	mov	eax, DWORD PTR arena_dalloc_junk_large_intercept[rip]
	mov	DWORD PTR arena_dalloc_junk_large[rip], eax
	mov	eax, DWORD PTR huge_dalloc_junk[rip]
	mov	DWORD PTR huge_dalloc_junk_orig[rip], eax
	mov	eax, DWORD PTR huge_dalloc_junk_intercept[rip]
	mov	DWORD PTR huge_dalloc_junk[rip], eax
.L2:
	xor	esi, esi
	xor	ebx, ebx
	lea	r13, .LC2[rip]
	call	mallocx@PLT
	lea	rsi, .LC0[rip]
	mov	r12, rax
	mov	rdi, rax
	call	assert_ptr_not_null@PLT
	xor	esi, esi
	mov	rdi, r12
	call	sallocx@PLT
	mov	rbp, rax
	mov	r15, rax
	cmp	rax, r14
	ja	.L4
	.p2align 4,,10
	.p2align 3
.L3:
	cmp	rbp, rbx
	ja	.L7
	jmp	.L10
	.p2align 4,,10
	.p2align 3
.L6:
	mov	BYTE PTR [r12+rbx], 97
	add	rbx, 1
	cmp	rbp, rbx
	je	.L10
.L7:
	cmp	QWORD PTR opt_junk_alloc[rip], 0
	je	.L6
	movsx	edi, BYTE PTR [r12+rbx]
	mov	rcx, rbx
	mov	r8, rbp
	mov	rdx, r13
	mov	esi, 165
	call	assert_c_eq@PLT
	mov	BYTE PTR [r12+rbx], 97
	add	rbx, 1
	cmp	rbp, rbx
	jne	.L7
.L10:
	lea	r15, 1[rbp]
	xor	ecx, ecx
	xor	edx, edx
	mov	rdi, r12
	mov	rsi, r15
	call	xallocx@PLT
	cmp	rax, rbp
	je	.L26
.L9:
	xor	esi, esi
	mov	rdi, r12
	call	sallocx@PLT
	mov	r15, rax
	cmp	r14, rax
	jb	.L4
	test	rbp, rbp
	je	.L5
	xor	edi, edi
	call	ZU@PLT
	movsx	edi, BYTE PTR [r12]
	mov	r8, rbp
	lea	rdx, .LC1[rip]
	mov	rcx, rax
	mov	esi, 97
	call	assert_c_eq@PLT
	movsx	edi, BYTE PTR -1[r12+rbp]
	lea	rcx, -1[rbp]
	mov	r8, rbp
	lea	rdx, .LC1[rip]
	mov	esi, 97
	call	assert_c_eq@PLT
.L5:
	mov	rbx, rbp
	mov	rbp, r15
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L26:
	mov	rdi, r12
	call	watch_junking@PLT
	xor	edx, edx
	mov	rdi, r12
	mov	rsi, r15
	call	rallocx@PLT
	lea	rsi, .LC3[rip]
	mov	rdi, rax
	mov	r12, rax
	call	assert_ptr_not_null@PLT
	cmp	QWORD PTR opt_junk_free[rip], 0
	mov	edi, 1
	je	.L11
	xor	edi, edi
	cmp	QWORD PTR saw_junking[rip], 0
	setne	dil
.L11:
	mov	rdx, rbp
	lea	rsi, .LC4[rip]
	call	assert_true@PLT
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L4:
	mov	rdi, r12
	call	watch_junking@PLT
	xor	esi, esi
	mov	rdi, r12
	call	dallocx@PLT
	cmp	QWORD PTR opt_junk_free[rip], 0
	mov	edi, 1
	jne	.L27
.L13:
	mov	rdx, r15
	lea	rsi, .LC4[rip]
	call	assert_true@PLT
	cmp	QWORD PTR opt_junk_free[rip], 0
	je	.L1
	mov	eax, DWORD PTR arena_dalloc_junk_small_orig[rip]
	mov	DWORD PTR arena_dalloc_junk_small[rip], eax
	mov	eax, DWORD PTR arena_dalloc_junk_large_orig[rip]
	mov	DWORD PTR arena_dalloc_junk_large[rip], eax
	mov	eax, DWORD PTR huge_dalloc_junk_orig[rip]
	mov	DWORD PTR huge_dalloc_junk[rip], eax
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
.L27:
	.cfi_restore_state
	xor	edi, edi
	cmp	QWORD PTR saw_junking[rip], 0
	setne	dil
	jmp	.L13
	.cfi_endproc
.LFE0:
	.size	test_junk, .-test_junk
	.comm	saw_junking,8,8
	.comm	opt_junk_free,8,8
	.comm	opt_junk_alloc,8,8
	.comm	huge_dalloc_junk_orig,4,4
	.comm	huge_dalloc_junk_intercept,4,4
	.comm	huge_dalloc_junk,4,4
	.comm	arena_dalloc_junk_small_orig,4,4
	.comm	arena_dalloc_junk_small_intercept,4,4
	.comm	arena_dalloc_junk_small,4,4
	.comm	arena_dalloc_junk_large_orig,4,4
	.comm	arena_dalloc_junk_large_intercept,4,4
	.comm	arena_dalloc_junk_large,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_junk.c_test_junk.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Unexpected mallocx() failure\000"
	.align	2
.LC1:
	.ascii	"Previously allocated byte %zu/%zu is corrupted\000"
	.align	2
.LC2:
	.ascii	"Newly allocated byte %zu/%zu isn't junk-filled\000"
	.align	2
.LC3:
	.ascii	"Unexpected rallocx() failure\000"
	.align	2
.LC4:
	.ascii	"Expected region of size %zu to be junk-filled\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	test_junk, %function
test_junk:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r3, .L36
	sub	sp, sp, #20
	ldr	r3, [r3]
	str	r1, [sp, #12]
	cmp	r3, #0
	beq	.L2
	ldr	r3, .L36+4
	ldr	ip, .L36+8
	ldr	r1, .L36+12
	ldr	r4, [r3]
	ldr	r2, .L36+16
	ldr	ip, [ip]
	ldr	r1, [r1]
	ldr	lr, .L36+20
	str	ip, [r3]
	str	r4, [lr]
	ldr	r3, .L36+24
	ldr	lr, [r2]
	ldr	ip, .L36+28
	str	r1, [r2]
	ldr	r2, .L36+32
	ldr	r1, [r3]
	str	lr, [r2]
	ldr	ip, [ip]
	ldr	r2, .L36+36
	str	ip, [r3]
	str	r1, [r2]
.L2:
	mov	r1, #0
	bl	mallocx
	mov	r10, r0
	ldr	r1, .L36+40
	bl	assert_ptr_not_null
	mov	r0, r10
	mov	r1, #0
	bl	sallocx
	ldr	r3, [sp, #12]
	mov	r6, r0
	cmp	r0, r3
	movhi	r5, r0
	bhi	.L4
	mov	r4, #0
	ldr	r9, .L36+44
	ldr	fp, .L36+48
.L3:
	cmp	r6, r4
	bls	.L11
	sub	r4, r4, #1
	sub	r5, r6, #1
	mov	r8, #97
	add	r4, r10, r4
	add	r5, r5, r10
	rsb	r7, r10, #1
	b	.L7
.L6:
	strb	r8, [r4, #1]!
	cmp	r4, r5
	beq	.L11
.L7:
	ldr	r2, [r9]
	add	r3, r7, r4
	cmp	r2, #0
	beq	.L6
	ldrb	r0, [r4, #1]	@ zero_extendqisi2
	mov	r2, fp
	mov	r1, #165
	str	r6, [sp]
	bl	assert_c_eq
	strb	r8, [r4, #1]!
	cmp	r4, r5
	bne	.L7
.L11:
	mov	r3, #0
	add	r4, r6, #1
	mov	r2, r3
	mov	r1, r4
	mov	r0, r10
	bl	xallocx
	cmp	r0, r6
	beq	.L34
.L9:
	mov	r1, #0
	mov	r0, r10
	bl	sallocx
	ldr	r3, [sp, #12]
	mov	r5, r0
	cmp	r3, r0
	bcc	.L4
	cmp	r6, #0
	beq	.L5
	mov	r0, #0
	ldrb	r4, [r10]	@ zero_extendqisi2
	bl	ZU
	mov	r1, #97
	mov	r3, r0
	ldr	r2, .L36+52
	mov	r0, r4
	str	r6, [sp]
	bl	assert_c_eq
	sub	r3, r6, #1
	ldrb	r0, [r10, r3]	@ zero_extendqisi2
	mov	r1, #97
	ldr	r2, .L36+52
	str	r6, [sp]
	bl	assert_c_eq
.L5:
	mov	r4, r6
	mov	r6, r5
	b	.L3
.L34:
	mov	r0, r10
	bl	watch_junking
	mov	r1, r4
	mov	r0, r10
	mov	r2, #0
	bl	rallocx
	ldr	r1, .L36+56
	mov	r10, r0
	bl	assert_ptr_not_null
	ldr	r3, .L36
	ldr	r3, [r3]
	cmp	r3, #0
	moveq	r0, #1
	beq	.L12
	ldr	r3, .L36+60
	ldr	r0, [r3]
	subs	r0, r0, #0
	movne	r0, #1
.L12:
	mov	r2, r6
	ldr	r1, .L36+64
	bl	assert_true
	b	.L9
.L4:
	mov	r0, r10
	bl	watch_junking
	mov	r0, r10
	mov	r1, #0
	bl	dallocx
	ldr	r3, .L36
	ldr	r3, [r3]
	cmp	r3, #0
	moveq	r0, #1
	bne	.L35
.L14:
	mov	r2, r5
	ldr	r1, .L36+64
	bl	assert_true
	ldr	r3, .L36
	ldr	r3, [r3]
	cmp	r3, #0
	beq	.L1
	ldr	r1, .L36+20
	ldr	r2, .L36+32
	ldr	r3, .L36+36
	ldr	lr, [r1]
	ldr	r0, [r2]
	ldr	ip, .L36+4
	ldr	r2, [r3]
	ldr	r1, .L36+16
	ldr	r3, .L36+24
	str	lr, [ip]
	str	r0, [r1]
	str	r2, [r3]
.L1:
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L35:
	ldr	r3, .L36+60
	ldr	r0, [r3]
	subs	r0, r0, #0
	movne	r0, #1
	b	.L14
.L37:
	.align	2
.L36:
	.word	opt_junk_free
	.word	arena_dalloc_junk_small
	.word	arena_dalloc_junk_small_intercept
	.word	arena_dalloc_junk_large_intercept
	.word	arena_dalloc_junk_large
	.word	arena_dalloc_junk_small_orig
	.word	huge_dalloc_junk
	.word	huge_dalloc_junk_intercept
	.word	arena_dalloc_junk_large_orig
	.word	huge_dalloc_junk_orig
	.word	.LC0
	.word	opt_junk_alloc
	.word	.LC2
	.word	.LC1
	.word	.LC3
	.word	saw_junking
	.word	.LC4
	.size	test_junk, .-test_junk
	.comm	saw_junking,4,4
	.comm	opt_junk_free,4,4
	.comm	opt_junk_alloc,4,4
	.comm	huge_dalloc_junk_orig,4,4
	.comm	huge_dalloc_junk_intercept,4,4
	.comm	huge_dalloc_junk,4,4
	.comm	arena_dalloc_junk_small_orig,4,4
	.comm	arena_dalloc_junk_small_intercept,4,4
	.comm	arena_dalloc_junk_small,4,4
	.comm	arena_dalloc_junk_large_orig,4,4
	.comm	arena_dalloc_junk_large_intercept,4,4
	.comm	arena_dalloc_junk_large,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
