	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_reallocarray                   ## -- Begin function reallocarray
	.p2align	4, 0x90
_reallocarray:                          ## @reallocarray
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	%rdx, %rcx
	movq	_MUL_NO_OVERFLOW@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	%rsi, %rax
	jbe	LBB0_4
## %bb.1:
	testq	%rsi, %rsi
	je	LBB0_3
## %bb.2:
	cmpq	%rcx, %rax
	jbe	LBB0_5
	jmp	LBB0_3
LBB0_4:
	testq	%rsi, %rsi
	je	LBB0_3
LBB0_5:
	movq	_SIZE_MAX@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, %rdx
	orq	%rsi, %rdx
	shrq	$32, %rdx
	je	LBB0_6
## %bb.7:
	xorl	%edx, %edx
	divq	%rsi
	cmpq	%rcx, %rax
	jae	LBB0_3
LBB0_9:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_errno@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	xorl	%eax, %eax
	popq	%rbp
	retq
LBB0_6:
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%esi
                                        ## kill: def $eax killed $eax def $rax
	cmpq	%rcx, %rax
	jb	LBB0_9
LBB0_3:
	imulq	%rsi, %rcx
	movq	%rcx, %rsi
	popq	%rbp
	jmp	_realloc                        ## TAILCALL
	.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
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_reallocarray                   ; -- Begin function reallocarray
	.p2align	2
_reallocarray:                          ; @reallocarray
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _MUL_NO_OVERFLOW@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MUL_NO_OVERFLOW@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x8, x1
	b.ls	LBB0_3
; %bb.1:
	cbz	x1, LBB0_6
; %bb.2:
	cmp	x8, x2
	b.ls	LBB0_4
	b	LBB0_6
LBB0_3:
	cbz	x1, LBB0_6
LBB0_4:
Lloh3:
	adrp	x8, _SIZE_MAX@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SIZE_MAX@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	udiv	x8, x8, x1
	cmp	x8, x2
	b.hs	LBB0_6
; %bb.5:
Lloh6:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _errno@GOTPAGE
Lloh10:
	ldr	x9, [x9, _errno@GOTPAGEOFF]
Lloh11:
	str	w8, [x9]
	mov	x0, #0
	ret
LBB0_6:
	mul	x1, x2, x1
	b	_realloc
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotStr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.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
.subsections_via_symbols
