	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function png_malloc_array_checked
_png_malloc_array_checked:              ## @png_malloc_array_checked
	.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
	movslq	%esi, %rsi
	movq	_PNG_SIZE_MAX@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, %rdx
	orq	%rcx, %rdx
	shrq	$32, %rdx
	je	LBB0_1
## %bb.2:
	xorl	%edx, %edx
	divq	%rcx
	cmpq	%rsi, %rax
	jae	LBB0_5
LBB0_4:
	xorl	%eax, %eax
	popq	%rbp
	retq
LBB0_1:
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%ecx
                                        ## kill: def $eax killed $eax def $rax
	cmpq	%rsi, %rax
	jb	LBB0_4
LBB0_5:
	imulq	%rcx, %rsi
	popq	%rbp
	jmp	_png_malloc_base                ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_PNG_SIZE_MAX,8,3               ## @PNG_SIZE_MAX
	.no_dead_strip	_png_malloc_array_checked
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function png_malloc_array_checked
_png_malloc_array_checked:              ; @png_malloc_array_checked
	.cfi_startproc
; %bb.0:
                                        ; kill: def $w1 killed $w1 def $x1
	sxtw	x8, w1
Lloh0:
	adrp	x9, _PNG_SIZE_MAX@GOTPAGE
Lloh1:
	ldr	x9, [x9, _PNG_SIZE_MAX@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	udiv	x9, x9, x2
	cmp	x9, x8
	b.hs	LBB0_2
; %bb.1:
	mov	x0, #0
	ret
LBB0_2:
	mul	x1, x8, x2
	b	_png_malloc_base
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_PNG_SIZE_MAX,8,3               ; @PNG_SIZE_MAX
	.no_dead_strip	_png_malloc_array_checked
.subsections_via_symbols
