	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gdbr_read_memory               ## -- Begin function gdbr_read_memory
	.p2align	4, 0x90
_gdbr_read_memory:                      ## @gdbr_read_memory
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r15d
	movq	%rdx, %r14
	movl	%esi, %r13d
	movq	%rdi, %rbx
	movslq	(%rdi), %r12
	callq	_gdbr_lock_enter
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	%r14, %rdx
	leal	-1(%r12), %r14d
	andl	%r13d, %r14d
	movl	%r12d, %eax
	subl	%r14d, %eax
	cmpl	%r15d, %eax
	jge	LBB0_3
## %bb.4:
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	movl	%r13d, %esi
	movq	%rdx, %r15
	movl	%eax, %ecx
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	callq	_gdbr_read_memory_page
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movq	%rbx, %rdi
	movl	%eax, %ebx
	cmpl	%edx, %eax
	jne	LBB0_12
## %bb.5:
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movl	%eax, %ecx
	subl	%edx, %ecx
	addl	%edx, %r13d
	movslq	%edx, %rax
	leaq	(%r15,%rax,4), %rbx
	cmpl	%r12d, %ecx
	jle	LBB0_11
## %bb.6:
	leaq	(,%r12,4), %r15
	subl	%r12d, %r14d
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%r13d, %esi
	movq	%rbx, %rdx
	movl	%r12d, %ecx
	callq	_gdbr_read_memory_page
	cmpl	%r12d, %eax
	jne	LBB0_8
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=1
	addl	%r12d, %r13d
	addq	%r15, %rbx
	subl	%r12d, %r14d
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	leal	(%rax,%r14), %ecx
	cmpl	%r12d, %ecx
	jg	LBB0_7
## %bb.10:
	negl	%r14d
	movl	%r14d, %eax
	movl	%r14d, -44(%rbp)                ## 4-byte Spill
LBB0_11:
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	movl	%r13d, %esi
	movq	%rbx, %rdx
	callq	_gdbr_read_memory_page
	movq	%r14, %rdi
	xorl	%ebx, %ebx
	testl	%eax, %eax
	cmovgl	%eax, %ebx
	addl	-44(%rbp), %ebx                 ## 4-byte Folded Reload
	jmp	LBB0_12
LBB0_1:
	movq	%rbx, %rdi
	xorl	%ebx, %ebx
	jmp	LBB0_12
LBB0_3:
	movq	%rbx, %rdi
	movl	%r13d, %esi
	movl	%r15d, %ecx
	callq	_gdbr_read_memory_page
	movq	%rbx, %rdi
	movl	%eax, %ebx
LBB0_12:
	callq	_gdbr_lock_leave
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	xorl	%ebx, %ebx
	testl	%eax, %eax
	cmovgl	%eax, %ebx
	subl	%r14d, %ebx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gdbr_read_memory               ; -- Begin function gdbr_read_memory
	.p2align	2
_gdbr_read_memory:                      ; @gdbr_read_memory
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x20, x3
	mov	x23, x2
	mov	x22, x1
	mov	x19, x0
	ldrsw	x21, [x0]
	bl	_gdbr_lock_enter
	cbz	w0, LBB0_9
; %bb.1:
	sub	w8, w21, #1
	and	w26, w8, w22
	sub	w24, w21, w26
	mov	x0, x19
	cmp	w24, w20
	b.ge	LBB0_10
; %bb.2:
	mov	x1, x22
	mov	x2, x23
	mov	x3, x24
	bl	_gdbr_read_memory_page
	mov	x25, x0
	cmp	w0, w24
	b.ne	LBB0_11
; %bb.3:
	add	w22, w24, w22
	sub	w3, w20, w24
	cmp	w3, w21
	add	x23, x23, w24, sxtw #2
	b.le	LBB0_8
; %bb.4:
	lsl	x25, x21, #2
	sub	w24, w26, w21
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	x1, x22
	mov	x2, x23
	mov	x3, x21
	bl	_gdbr_read_memory_page
	cmp	w0, w21
	b.ne	LBB0_12
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	add	w22, w22, w21
	add	x23, x23, x25
	sub	w24, w24, w21
	add	w3, w20, w24
	cmp	w3, w21
	b.gt	LBB0_5
; %bb.7:
	neg	w24, w24
LBB0_8:
	mov	x0, x19
	mov	x1, x22
	mov	x2, x23
	bl	_gdbr_read_memory_page
	cmp	w0, #0
	csel	w8, w0, wzr, gt
	add	w25, w8, w24
	b	LBB0_11
LBB0_9:
	mov	w25, #0
	b	LBB0_11
LBB0_10:
	mov	x1, x22
	mov	x2, x23
	mov	x3, x20
	bl	_gdbr_read_memory_page
	mov	x25, x0
LBB0_11:
	mov	x0, x19
	bl	_gdbr_lock_leave
	mov	x0, x25
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_12:
	cmp	w0, #0
	csel	w8, w0, wzr, gt
	sub	w25, w8, w24
	b	LBB0_11
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
