	.file	"extr_xmalloc.c_xcalloc.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"xcalloc: zero size"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC1:
	.string	"xcalloc: nmemb * size > SIZE_MAX"
	.align 8
.LC2:
	.string	"xcalloc: out of memory (allocating %zu bytes)"
	.text
	.p2align 4
	.globl	xcalloc
	.type	xcalloc, @function
xcalloc:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rbx, rdi
	test	rsi, rsi
	je	.L6
	test	rdi, rdi
	je	.L6
.L2:
	mov	rax, QWORD PTR SIZE_MAX[rip]
	xor	edx, edx
	div	rbx
	cmp	rax, rbp
	jb	.L12
.L4:
	mov	rsi, rbp
	mov	rdi, rbx
	call	calloc@PLT
	mov	r12, rax
	test	rax, rax
	je	.L13
.L1:
	mov	rax, r12
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore_state
	lea	rdi, .LC0[rip]
	xor	eax, eax
	call	fatal@PLT
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L12:
	lea	rdi, .LC1[rip]
	xor	eax, eax
	call	fatal@PLT
	jmp	.L4
.L13:
	mov	rsi, rbp
	lea	rdi, .LC2[rip]
	xor	eax, eax
	imul	rsi, rbx
	call	fatal@PLT
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	xcalloc, .-xcalloc
	.comm	SIZE_MAX,8,8
	.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_xmalloc.c_xcalloc.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"xcalloc: zero size\000"
	.global	__aeabi_uidiv
	.align	2
.LC1:
	.ascii	"xcalloc: nmemb * size > SIZE_MAX\000"
	.align	2
.LC2:
	.ascii	"xcalloc: out of memory (allocating %zu bytes)\000"
	.text
	.align	2
	.global	xcalloc
	.syntax unified
	.arm
	.fpu softvfp
	.type	xcalloc, %function
xcalloc:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	cmp	r0, #0
	cmpne	r1, #0
	push	{r4, r5, r6, lr}
	mov	r4, r1
	mov	r5, r0
	beq	.L10
.L2:
	ldr	r3, .L13
	mov	r1, r5
	ldr	r0, [r3]
	bl	__aeabi_uidiv
	cmp	r0, r4
	bcc	.L11
.L3:
	mov	r1, r4
	mov	r0, r5
	bl	calloc
	subs	r6, r0, #0
	beq	.L12
.L1:
	mov	r0, r6
	pop	{r4, r5, r6, pc}
.L10:
	ldr	r0, .L13+4
	bl	fatal
	b	.L2
.L11:
	ldr	r0, .L13+8
	bl	fatal
	b	.L3
.L12:
	mul	r1, r5, r4
	ldr	r0, .L13+12
	bl	fatal
	b	.L1
.L14:
	.align	2
.L13:
	.word	SIZE_MAX
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.size	xcalloc, .-xcalloc
	.comm	SIZE_MAX,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
