	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function store_read_buffer_avail
_store_read_buffer_avail:               ## @store_read_buffer_avail
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	24(%rdi), %rax
	testq	%rax, %rax
	je	LBB0_9
## %bb.1:
	movq	%rdi, %r14
	movq	16(%rdi), %rcx
	testq	%rcx, %rcx
	je	LBB0_9
## %bb.2:
	movq	(%rax), %rbx
	addq	$8, %rax
	cmpq	%rcx, %rax
	je	LBB0_8
## %bb.3:
	movq	_STORE_BUFFER_SIZE@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	addq	%rdx, %rbx
	movq	(%rax), %rax
	cmpq	%rcx, %rax
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	testq	%rax, %rax
	jne	LBB0_4
LBB0_6:
	cmpq	%rcx, %rax
	je	LBB0_8
## %bb.7:
	movl	8(%r14), %edi
	leaq	L_.str(%rip), %rsi
	callq	_png_error
LBB0_8:
	subq	(%r14), %rbx
	ja	LBB0_10
LBB0_9:
	xorl	%ebx, %ebx
LBB0_10:
	movq	%rbx, %rax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_STORE_BUFFER_SIZE,8,3          ## @STORE_BUFFER_SIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"buffer read error"

	.no_dead_strip	_store_read_buffer_avail
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function store_read_buffer_avail
_store_read_buffer_avail:               ; @store_read_buffer_avail
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	x8, [x0, #24]
	cbz	x8, LBB0_8
; %bb.1:
	mov	x19, x0
	ldr	x9, [x0, #16]
	cbz	x9, LBB0_8
; %bb.2:
	ldr	x20, [x8], #8
	cmp	x8, x9
	b.eq	LBB0_7
; %bb.3:
Lloh0:
	adrp	x10, _STORE_BUFFER_SIZE@GOTPAGE
Lloh1:
	ldr	x10, [x10, _STORE_BUFFER_SIZE@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x10]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x8]
	add	x20, x20, x10
	cmp	x8, x9
	ccmp	x8, #0, #4, ne
	b.ne	LBB0_4
; %bb.5:
	cmp	x8, x9
	b.eq	LBB0_7
; %bb.6:
	ldr	w0, [x19, #8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_png_error
LBB0_7:
	ldr	x8, [x19]
	subs	x0, x20, x8
	b.hi	LBB0_9
LBB0_8:
	mov	x0, #0
LBB0_9:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_STORE_BUFFER_SIZE,8,3          ; @STORE_BUFFER_SIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"buffer read error"

	.no_dead_strip	_store_read_buffer_avail
.subsections_via_symbols
