	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__TIFFCheckRealloc              ## -- Begin function _TIFFCheckRealloc
	.p2align	4, 0x90
__TIFFCheckRealloc:                     ## @_TIFFCheckRealloc
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r14
	movl	%ecx, %r15d
	movl	%edx, %ebx
	movq	%rdi, %r12
	testl	%edx, %edx
	je	LBB0_3
## %bb.1:
	testl	%r15d, %r15d
	je	LBB0_3
## %bb.2:
	movl	%r15d, %eax
	imull	%ebx, %eax
	movq	%rsi, %rdi
	movl	%eax, %esi
	callq	__TIFFrealloc
	testq	%rax, %rax
	jne	LBB0_4
LBB0_3:
	movl	(%r12), %esi
	movl	4(%r12), %edi
	movslq	%ebx, %r8
	movslq	%r15d, %r9
	leaq	L_.str(%rip), %rdx
	movq	%r14, %rcx
	callq	_TIFFErrorExt
	xorl	%eax, %eax
LBB0_4:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to allocate memory for %s (%ld elements of %ld bytes each)"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__TIFFCheckRealloc              ; -- Begin function _TIFFCheckRealloc
	.p2align	2
__TIFFCheckRealloc:                     ; @_TIFFCheckRealloc
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x4
	mov	x20, x3
	mov	x21, x2
	mov	x22, x0
	cbz	w2, LBB0_3
; %bb.1:
	cbz	w20, LBB0_3
; %bb.2:
	mul	w8, w20, w21
	mov	x0, x1
	mov	x1, x8
	bl	__TIFFrealloc
	cbnz	x0, LBB0_4
LBB0_3:
	ldp	w1, w0, [x22]
	sxtw	x4, w21
	sxtw	x5, w20
Lloh0:
	adrp	x2, l_.str@PAGE
Lloh1:
	add	x2, x2, l_.str@PAGEOFF
	mov	x3, x19
	bl	_TIFFErrorExt
	mov	x0, #0
LBB0_4:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to allocate memory for %s (%ld elements of %ld bytes each)"

.subsections_via_symbols
