	.file	"extr_heap.c_test_sbheap.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"_set_sbh_threshold succeeded\n"
	.text
	.p2align 4
	.type	test_sbheap, @function
test_sbheap:
.LFB0:
	.cfi_startproc
	endbr64
	sub	rsp, 8
	.cfi_def_cfa_offset 16
	xor	edi, edi
	call	_set_sbh_threshold@PLT
	xor	edi, edi
	lea	rsi, .LC0[rip]
	test	eax, eax
	sete	dil
	xor	eax, eax
	call	ok@PLT
	mov	edi, 1000
	call	_set_sbh_threshold@PLT
	xor	edi, edi
	lea	rsi, .LC0[rip]
	test	eax, eax
	sete	dil
	xor	eax, eax
	add	rsp, 8
	.cfi_def_cfa_offset 8
	jmp	ok@PLT
	.cfi_endproc
.LFE0:
	.size	test_sbheap, .-test_sbheap
	.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_heap.c_test_sbheap.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"malloc failed\012\000"
	.align	2
.LC1:
	.ascii	"_set_sbh_threshold failed\012\000"
	.align	2
.LC2:
	.ascii	"threshold = %d\012\000"
	.align	2
.LC3:
	.ascii	"incorrect alignment (%p)\012\000"
	.align	2
.LC4:
	.ascii	"realloc failed\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	test_sbheap, %function
test_sbheap:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r0, #1
	bl	malloc
	ldr	r7, .L4
	mov	r4, r0
	subs	r0, r0, #0
	movne	r0, #1
	ldr	r6, .L4+4
	mov	r1, r7
	bl	ok
	mov	r0, #1
	bl	_set_sbh_threshold
	mov	r1, r6
	bl	ok
	bl	_get_sbh_threshold
	mov	r2, r0
	sub	r0, r0, #16
	clz	r0, r0
	ldr	r5, .L4+8
	lsr	r0, r0, #5
	mov	r1, r5
	bl	ok
	mov	r0, #8
	bl	_set_sbh_threshold
	mov	r1, r6
	bl	ok
	bl	_get_sbh_threshold
	mov	r2, r0
	sub	r0, r0, #16
	clz	r0, r0
	mov	r1, r5
	lsr	r0, r0, #5
	bl	ok
	mov	r0, #1000
	bl	_set_sbh_threshold
	mov	r1, r6
	bl	ok
	bl	_get_sbh_threshold
	mov	r2, r0
	sub	r0, r0, #1008
	clz	r0, r0
	mov	r1, r5
	lsr	r0, r0, #5
	bl	ok
	mov	r0, r4
	bl	free
	mov	r0, #1
	bl	malloc
	mov	r4, r0
	subs	r0, r0, #0
	mov	r1, r7
	movne	r0, #1
	ldr	r7, .L4+12
	bl	ok
	tst	r4, #15
	mov	r2, r4
	moveq	r0, #1
	movne	r0, #0
	mov	r1, r7
	bl	ok
	mov	r0, r4
	mov	r1, #10
	bl	realloc
	mov	r4, r0
	subs	r0, r0, #0
	movne	r0, #1
	ldr	r1, .L4+16
	bl	ok
	tst	r4, #15
	mov	r2, r4
	moveq	r0, #1
	movne	r0, #0
	mov	r1, r7
	bl	ok
	mov	r0, #0
	bl	_set_sbh_threshold
	mov	r1, r6
	bl	ok
	bl	_get_sbh_threshold
	mov	r2, r0
	clz	r0, r0
	mov	r1, r5
	lsr	r0, r0, #5
	bl	ok
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, lr}
	b	free
.L5:
	.align	2
.L4:
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.word	.LC4
	.size	test_sbheap, .-test_sbheap
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
