	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function memory_read
_memory_read:                           ## @memory_read
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	24(%rsi), %rcx
	xorl	%eax, %eax
	testq	%rcx, %rcx
	je	LBB0_15
## %bb.1:
	movq	(%rsi), %r9
	testq	%r9, %r9
	sete	%r8b
	je	LBB0_7
LBB0_2:
	testb	$1, %r8b
	je	LBB0_6
## %bb.3:
	movq	8(%rsi), %r8
	movq	_nullsize@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movslq	%eax, %rcx
	movq	%r8, %rdi
	subq	%rcx, %rdi
	jle	LBB0_11
## %bb.4:
	movq	%rdi, 8(%rsi)
	movq	_nulldata@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, (%rdx)
	jmp	LBB0_5
LBB0_6:
	movq	%r9, (%rdx)
	movq	24(%rsi), %rcx
	movl	(%rcx), %eax
	addl	16(%rcx), %eax
	subl	(%rsi), %eax
	movq	$0, (%rsi)
LBB0_5:
	addl	%eax, 16(%rsi)
	popq	%rbp
	retq
LBB0_7:
	movq	8(%rsi), %rdi
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	testq	%rdi, %rdi
	jne	LBB0_2
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movq	24(%rcx), %rcx
	movq	%rcx, 24(%rsi)
	testq	%rcx, %rcx
	je	LBB0_15
## %bb.10:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	(%rcx), %r9
	movq	%r9, (%rsi)
	movq	8(%rcx), %rdi
	movq	%rdi, 8(%rsi)
	testq	%r9, %r9
	sete	%r8b
	je	LBB0_8
	jmp	LBB0_2
LBB0_11:
	testq	%r8, %r8
	jle	LBB0_16
## %bb.12:
	movq	_nulldata@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%rdx)
	movq	$0, 8(%rsi)
	addl	%r8d, 16(%rsi)
	movq	24(%rsi), %rax
	movq	24(%rax), %rax
	movq	%rax, 24(%rsi)
	testq	%rax, %rax
	je	LBB0_14
## %bb.13:
	movq	(%rax), %rcx
	movq	%rcx, (%rsi)
	movq	8(%rax), %rax
	movq	%rax, 8(%rsi)
LBB0_14:
	movl	%r8d, %eax
LBB0_15:
	popq	%rbp
	retq
LBB0_16:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_fprintf
	movl	$1, %edi
	callq	_exit
	.cfi_endproc
                                        ## -- End function
	.comm	_nullsize,4,2                   ## @nullsize
	.comm	_nulldata,8,3                   ## @nulldata
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"\n\n\nInternal failure\n\n\n"

	.no_dead_strip	_memory_read
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function memory_read
_memory_read:                           ; @memory_read
	.cfi_startproc
; %bb.0:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	ldr	x9, [x1, #24]
	cbz	x9, LBB0_11
; %bb.1:
	ldr	x8, [x1]
	cmp	x8, #0
	cset	w10, eq
	cbz	x8, LBB0_7
LBB0_2:
	tbz	w10, #0, LBB0_6
; %bb.3:
	ldr	x0, [x1, #8]
Lloh0:
	adrp	x8, _nullsize@GOTPAGE
Lloh1:
	ldr	x8, [x8, _nullsize@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	sxtw	x9, w8
	subs	x9, x0, x9
	b.le	LBB0_12
; %bb.4:
	str	x9, [x1, #8]
Lloh3:
	adrp	x9, _nulldata@GOTPAGE
Lloh4:
	ldr	x9, [x9, _nulldata@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	str	x9, [x2]
	ldr	w9, [x1, #16]
	add	w9, w9, w8
	str	w9, [x1, #16]
	mov	x0, x8
LBB0_5:
                                        ; kill: def $w0 killed $w0 killed $x0
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_6:
	str	x8, [x2]
	ldr	x8, [x1, #24]
	ldr	w9, [x8]
	ldr	w8, [x8, #16]
	ldr	w10, [x1]
	add	w8, w9, w8
	sub	w0, w8, w10
	str	xzr, [x1]
	ldr	w8, [x1, #16]
	add	w8, w8, w0
	str	w8, [x1, #16]
                                        ; kill: def $w0 killed $w0 killed $x0
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_7:
	ldr	x11, [x1, #8]
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	cbnz	x11, LBB0_2
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	x9, [x9, #24]
	str	x9, [x1, #24]
	cbz	x9, LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=1
	ldp	x8, x11, [x9]
	stp	x8, x11, [x1]
	cmp	x8, #0
	cset	w10, eq
	cbz	x8, LBB0_8
	b	LBB0_2
LBB0_11:
	mov	w0, #0
                                        ; kill: def $w0 killed $w0 killed $x0
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_12:
	cmp	x0, #1
	b.lt	LBB0_15
; %bb.13:
Lloh6:
	adrp	x8, _nulldata@GOTPAGE
Lloh7:
	ldr	x8, [x8, _nulldata@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	str	x8, [x2]
	str	xzr, [x1, #8]
	ldr	w8, [x1, #16]
	add	w8, w8, w0
	str	w8, [x1, #16]
	ldr	x8, [x1, #24]
	ldr	x8, [x8, #24]
	str	x8, [x1, #24]
	cbz	x8, LBB0_5
; %bb.14:
	ldp	x9, x8, [x8]
	stp	x9, x8, [x1]
                                        ; kill: def $w0 killed $w0 killed $x0
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
LBB0_15:
Lloh9:
	adrp	x8, _stderr@GOTPAGE
Lloh10:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh11:
	ldr	w0, [x8]
Lloh12:
	adrp	x1, l_.str@PAGE
Lloh13:
	add	x1, x1, l_.str@PAGEOFF
	bl	_fprintf
	mov	w0, #1
	bl	_exit
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_nullsize,4,2                   ; @nullsize
	.comm	_nulldata,8,3                   ; @nulldata
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"\n\n\nInternal failure\n\n\n"

	.no_dead_strip	_memory_read
.subsections_via_symbols
