	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_recallocarray                  ## -- Begin function recallocarray
	.p2align	4, 0x90
_recallocarray:                         ## @recallocarray
	.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	%rdx, %rbx
	testq	%rdi, %rdi
	je	LBB0_4
## %bb.1:
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	_MUL_NO_OVERFLOW@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	cmpq	%rbx, %rsi
	jbe	LBB0_5
## %bb.2:
	testq	%rbx, %rbx
	je	LBB0_10
## %bb.3:
	cmpq	%rcx, %rsi
	jbe	LBB0_6
	jmp	LBB0_10
LBB0_4:
	movq	%rbx, %rdi
	movq	%rcx, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_calloc                         ## TAILCALL
LBB0_5:
	testq	%rbx, %rbx
	je	LBB0_10
LBB0_6:
	movq	_SIZE_MAX@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, %rdx
	orq	%rbx, %rdx
	shrq	$32, %rdx
	je	LBB0_9
## %bb.7:
	xorl	%edx, %edx
	divq	%rbx
	cmpq	%rcx, %rax
	jae	LBB0_10
LBB0_8:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_17
LBB0_9:
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%ebx
                                        ## kill: def $eax killed $eax def $rax
	cmpq	%rcx, %rax
	jb	LBB0_8
LBB0_10:
	cmpq	%r15, %rsi
	jbe	LBB0_13
## %bb.11:
	testq	%r15, %r15
	je	LBB0_19
## %bb.12:
	cmpq	%rcx, %rsi
	jbe	LBB0_14
	jmp	LBB0_19
LBB0_13:
	testq	%r15, %r15
	je	LBB0_19
LBB0_14:
	movq	_SIZE_MAX@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, %rdx
	orq	%r15, %rdx
	shrq	$32, %rdx
	je	LBB0_18
## %bb.15:
	xorl	%edx, %edx
	divq	%r15
	cmpq	%rcx, %rax
	jae	LBB0_19
LBB0_16:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_17:
	movl	(%rax), %eax
	movq	_errno@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
LBB0_29:
	xorl	%r14d, %r14d
	jmp	LBB0_30
LBB0_18:
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%r15d
                                        ## kill: def $eax killed $eax def $rax
	cmpq	%rcx, %rax
	jb	LBB0_16
LBB0_19:
	imulq	%rcx, %rbx
	imulq	%rcx, %r15
	movq	%rbx, %r13
	subq	%r15, %r13
	jbe	LBB0_22
## %bb.20:
	movq	%rbx, %rdi
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_29
## %bb.21:
	movq	%rax, %r12
	movq	%rax, %rdi
	movq	%r14, %rsi
	movq	%r15, %rdx
	callq	_memcpy
	movq	%r12, %rdi
	addq	%r15, %rdi
	xorl	%esi, %esi
	movq	%r13, %rdx
	callq	_memset
	jmp	LBB0_27
LBB0_22:
	movq	%r15, %r12
	subq	%rbx, %r12
	movq	%r15, %rax
	shrq	%rax
	cmpq	%rax, %r12
	jae	LBB0_25
## %bb.23:
	xorl	%eax, %eax
	callq	_getpagesize
	cmpq	%rax, %r12
	jae	LBB0_25
## %bb.24:
	addq	%r14, %rbx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movq	%r12, %rdx
	callq	_memset
	jmp	LBB0_30
LBB0_25:
	movq	%rbx, %rdi
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_29
## %bb.26:
	movq	%rax, %r12
	movq	%rax, %rdi
	movq	%r14, %rsi
	movq	%rbx, %rdx
	callq	_memcpy
LBB0_27:
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_explicit_bzero
	movq	%r14, %rdi
	callq	_free
	movq	%r12, %r14
LBB0_30:
	movq	%r14, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MUL_NO_OVERFLOW,8,3            ## @MUL_NO_OVERFLOW
	.comm	_SIZE_MAX,8,3                   ## @SIZE_MAX
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_errno,4,2                      ## @errno
	.comm	_EINVAL,4,2                     ## @EINVAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_recallocarray                  ; -- Begin function recallocarray
	.p2align	2
_recallocarray:                         ; @recallocarray
	.cfi_startproc
; %bb.0:
	cbz	x0, LBB0_4
; %bb.1:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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_remember_state
	mov	x19, x0
Lloh0:
	adrp	x8, _MUL_NO_OVERFLOW@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MUL_NO_OVERFLOW@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x8, x2
	b.ls	LBB0_5
; %bb.2:
	cbz	x2, LBB0_8
; %bb.3:
	cmp	x8, x3
	b.ls	LBB0_6
	b	LBB0_8
LBB0_4:
	.cfi_def_cfa wsp, 0
	.cfi_same_value w30
	.cfi_same_value w29
	.cfi_same_value w19
	.cfi_same_value w20
	.cfi_same_value w21
	.cfi_same_value w22
	.cfi_same_value w23
	.cfi_same_value w24
	mov	x0, x2
	mov	x1, x3
	b	_calloc
LBB0_5:
	.cfi_restore_state
	cbz	x2, LBB0_8
LBB0_6:
Lloh3:
	adrp	x9, _SIZE_MAX@GOTPAGE
Lloh4:
	ldr	x9, [x9, _SIZE_MAX@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	udiv	x9, x9, x2
	cmp	x9, x3
	b.hs	LBB0_8
; %bb.7:
	mov	x19, #0
Lloh6:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_14
LBB0_8:
	cmp	x8, x1
	b.ls	LBB0_11
; %bb.9:
	cbz	x1, LBB0_15
; %bb.10:
	cmp	x8, x3
	b.ls	LBB0_12
	b	LBB0_15
LBB0_11:
	cbz	x1, LBB0_15
LBB0_12:
Lloh8:
	adrp	x8, _SIZE_MAX@GOTPAGE
Lloh9:
	ldr	x8, [x8, _SIZE_MAX@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	udiv	x8, x8, x1
	cmp	x8, x3
	b.hs	LBB0_15
; %bb.13:
	mov	x19, #0
Lloh11:
	adrp	x8, _EINVAL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_14:
	ldr	w8, [x8]
Lloh13:
	adrp	x9, _errno@GOTPAGE
Lloh14:
	ldr	x9, [x9, _errno@GOTPAGEOFF]
Lloh15:
	str	w8, [x9]
	b	LBB0_25
LBB0_15:
	mul	x22, x3, x2
	mul	x20, x3, x1
	subs	x23, x22, x20
	b.ls	LBB0_18
; %bb.16:
	mov	x0, x22
	bl	_malloc
	cbz	x0, LBB0_24
; %bb.17:
	mov	x21, x0
	mov	x1, x19
	mov	x2, x20
	bl	_memcpy
	add	x0, x21, x20
	mov	w1, #0
	mov	x2, x23
	bl	_memset
	b	LBB0_23
LBB0_18:
	sub	x21, x20, x22
	cmp	x21, x20, lsr #1
	b.hs	LBB0_21
; %bb.19:
	bl	_getpagesize
	cmp	x21, x0
	b.hs	LBB0_21
; %bb.20:
	add	x0, x19, x22
	mov	w1, #0
	mov	x2, x21
	bl	_memset
	b	LBB0_25
LBB0_21:
	mov	x0, x22
	bl	_malloc
	cbz	x0, LBB0_24
; %bb.22:
	mov	x21, x0
	mov	x1, x19
	mov	x2, x22
	bl	_memcpy
LBB0_23:
	mov	x0, x19
	mov	x1, x20
	bl	_explicit_bzero
	mov	x0, x19
	bl	_free
	mov	x19, x21
	b	LBB0_25
LBB0_24:
	mov	x19, #0
LBB0_25:
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotStr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_MUL_NO_OVERFLOW,8,3            ; @MUL_NO_OVERFLOW
	.comm	_SIZE_MAX,8,3                   ; @SIZE_MAX
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_errno,4,2                      ; @errno
	.comm	_EINVAL,4,2                     ; @EINVAL
.subsections_via_symbols
