	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_png_icc_check_length           ## -- Begin function png_icc_check_length
	.p2align	4, 0x90
_png_icc_check_length:                  ## @png_icc_check_length
	.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	%rcx, %rbx
	movl	%edx, %r14d
	movl	%esi, %r15d
	movq	%rdi, %r12
	callq	_icc_check_length
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	_PNG_SIZE_MAX@GOTPCREL(%rip), %rcx
	movl	$1, %eax
	cmpq	%rbx, (%rcx)
	jge	LBB0_3
## %bb.4:
	leaq	L_.str(%rip), %r8
	movq	%r12, %rdi
	movl	%r15d, %esi
	movl	%r14d, %edx
	movq	%rbx, %rcx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_png_icc_profile_error          ## TAILCALL
LBB0_1:
	xorl	%eax, %eax
LBB0_3:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PNG_SIZE_MAX,8,3               ## @PNG_SIZE_MAX
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"exceeds system limits"

	.comm	_PNG_USER_CHUNK_MALLOC_MAX,8,3  ## @PNG_USER_CHUNK_MALLOC_MAX
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_png_icc_check_length           ; -- Begin function png_icc_check_length
	.p2align	2
_png_icc_check_length:                  ; @png_icc_check_length
	.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, x3
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
	bl	_icc_check_length
	cbz	w0, LBB0_4
; %bb.1:
Lloh0:
	adrp	x8, _PNG_SIZE_MAX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PNG_SIZE_MAX@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x8, x19
	b.ge	LBB0_3
; %bb.2:
Lloh3:
	adrp	x4, l_.str@PAGE
Lloh4:
	add	x4, x4, l_.str@PAGEOFF
	mov	x0, x22
	mov	x1, x21
	mov	x2, x20
	mov	x3, x19
	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
	b	_png_icc_profile_error
LBB0_3:
	mov	w0, #1
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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_PNG_SIZE_MAX,8,3               ; @PNG_SIZE_MAX
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"exceeds system limits"

	.comm	_PNG_USER_CHUNK_MALLOC_MAX,8,3  ; @PNG_USER_CHUNK_MALLOC_MAX
.subsections_via_symbols
