	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function store_image_check
_store_image_check:                     ## @store_image_check
	.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
	movl	%esi, %r12d
	movq	(%rdi), %rax
	cmpl	$237, -4(%rax)
	jne	LBB0_13
## %bb.1:
	movq	8(%rdi), %rcx
	cmpl	$254, (%rax,%rcx,4)
	jne	LBB0_13
## %bb.2:
	movq	24(%rdi), %rbx
	testq	%rbx, %rbx
	jle	LBB0_12
## %bb.3:
	movslq	16(%rdi), %r13
	leaq	5(%r13), %rcx
	imull	%edx, %ecx
	movslq	%ecx, %rcx
	imulq	%rbx, %rcx
	leaq	(%rax,%rcx,4), %r15
	incq	%rbx
	leaq	20(,%r13,4), %r14
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_4 Depth=1
	movl	%r12d, %edi
	leaq	L_.str.2(%rip), %rsi
	callq	_png_error
LBB0_11:                                ##   in Loop: Header=BB0_4 Depth=1
	decq	%rbx
	addq	%r14, %r15
	cmpq	$1, %rbx
	jle	LBB0_12
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	$190, (%r15)
	jne	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpl	$239, 4(%r15)
	je	LBB0_7
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	movl	%r12d, %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_png_error
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=1
	cmpl	$222, 8(%r15,%r13,4)
	jne	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpl	$173, 12(%r15,%r13,4)
	jne	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpl	$17, 16(%r15,%r13,4)
	jne	LBB0_10
	jmp	LBB0_11
LBB0_13:
	leaq	L_.str(%rip), %rsi
	movl	%r12d, %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_png_error                      ## TAILCALL
LBB0_12:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"image overwrite"

L_.str.1:                               ## @.str.1
	.asciz	"row start overwritten"

L_.str.2:                               ## @.str.2
	.asciz	"row end overwritten"

	.no_dead_strip	_store_image_check
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function store_image_check
_store_image_check:                     ; @store_image_check
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x1
	ldr	x8, [x0]
	ldur	w9, [x8, #-4]
	cmp	w9, #237
	b.ne	LBB0_12
; %bb.1:
	ldr	x9, [x0, #8]
	ldr	w9, [x8, x9, lsl #2]
	cmp	w9, #254
	b.ne	LBB0_12
; %bb.2:
	ldr	x9, [x0, #24]
	cmp	x9, #1
	b.lt	LBB0_13
; %bb.3:
	ldrsw	x10, [x0, #16]
	add	w11, w10, #5
	mul	w12, w11, w2
	sxtw	x12, w12
	mul	x12, x9, x12
	add	x22, x8, x12, lsl #2
	add	w8, w10, #1
	add	w12, w10, #2
	add	x23, x9, #1
	sbfiz	x9, x12, #2, #32
	add	x24, x9, #8
	sbfiz	x25, x11, #2, #32
	sbfiz	x8, x8, #2, #32
	add	x26, x8, #8
	lsl	x8, x10, #2
	add	x27, x8, #8
Lloh0:
	adrp	x20, l_.str.2@PAGE
Lloh1:
	add	x20, x20, l_.str.2@PAGEOFF
Lloh2:
	adrp	x21, l_.str.1@PAGE
Lloh3:
	add	x21, x21, l_.str.1@PAGEOFF
	b	LBB0_6
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x19
	mov	x1, x20
	bl	_png_error
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	sub	x23, x23, #1
	add	x22, x22, x25
	cmp	x23, #1
	b.le	LBB0_13
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x22]
	cmp	w8, #190
	b.ne	LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w8, [x22, #4]
	cmp	w8, #239
	b.eq	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x19
	mov	x1, x21
	bl	_png_error
LBB0_9:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	w8, [x22, x27]
	cmp	w8, #222
	b.ne	LBB0_4
; %bb.10:                               ;   in Loop: Header=BB0_6 Depth=1
	ldr	w8, [x22, x26]
	cmp	w8, #173
	b.ne	LBB0_4
; %bb.11:                               ;   in Loop: Header=BB0_6 Depth=1
	ldr	w8, [x22, x24]
	cmp	w8, #17
	b.ne	LBB0_4
	b	LBB0_5
LBB0_12:
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_png_error
LBB0_13:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"image overwrite"

l_.str.1:                               ; @.str.1
	.asciz	"row start overwritten"

l_.str.2:                               ; @.str.2
	.asciz	"row end overwritten"

	.no_dead_strip	_store_image_check
.subsections_via_symbols
