	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fbsd_read_memory
_fbsd_read_memory:                      ## @fbsd_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
                                        ## kill: def $edx killed $edx def $rdx
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movl	%edi, %r12d
	movl	%edi, %eax
	andl	$3, %eax
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	addl	%edx, %eax
	movslq	%eax, %rdi
	addq	$3, %rdi
	movq	%rdi, %r14
	shrq	$2, %r14
	andl	$-4, %edi
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_alloca
	movq	%rax, %rbx
	testl	%r14d, %r14d
	jle	LBB0_4
## %bb.1:
	movl	%r14d, %r14d
	shlq	$2, %r14
	andl	$-4, %r12d
	xorl	%r15d, %r15d
	movq	_errno@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	leal	(%r12,%r15), %edx
	movl	$0, (%r13)
	movq	_PT_READ_D@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_inferior_pid@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%ecx, %ecx
	callq	_ptrace
	movl	%eax, (%rbx,%r15)
	movl	(%r13), %eax
	testl	%eax, %eax
	jne	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	addq	$4, %r15
	cmpq	%r15, %r14
	jne	LBB0_2
LBB0_4:
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	addq	%rax, %rbx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rsi
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_memcpy
	xorl	%eax, %eax
LBB0_5:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_errno,4,2                      ## @errno
	.comm	_PT_READ_D,4,2                  ## @PT_READ_D
	.comm	_inferior_pid,4,2               ## @inferior_pid
	.no_dead_strip	_fbsd_read_memory
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fbsd_read_memory
_fbsd_read_memory:                      ; @fbsd_read_memory
	.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, x2
	mov	x20, x1
	mov	x22, x0
	and	w23, w0, #0x3
	add	w8, w23, w2
	sxtw	x8, w8
	add	x25, x8, #3
	lsr	x24, x25, #2
	and	w0, w25, #0xfffffffc
	bl	_alloca
	mov	x21, x0
	cmp	w24, #1
	b.lt	LBB0_4
; %bb.1:
	and	w22, w22, #0xfffffffc
Lloh0:
	adrp	x24, _errno@GOTPAGE
Lloh1:
	ldr	x24, [x24, _errno@GOTPAGEOFF]
	ubfx	x25, x25, #2, #32
Lloh2:
	adrp	x26, _PT_READ_D@GOTPAGE
Lloh3:
	ldr	x26, [x26, _PT_READ_D@GOTPAGEOFF]
Lloh4:
	adrp	x27, _inferior_pid@GOTPAGE
Lloh5:
	ldr	x27, [x27, _inferior_pid@GOTPAGEOFF]
	mov	x28, x21
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	str	wzr, [x24]
	ldr	w0, [x26]
	ldr	w1, [x27]
	mov	x2, x22
	mov	w3, #0
	bl	_ptrace
	str	w0, [x28]
	ldr	w0, [x24]
	cbnz	w0, LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	w22, w22, #4
	add	x28, x28, #4
	subs	x25, x25, #1
	b.ne	LBB0_2
LBB0_4:
	add	x1, x21, w23, uxtw
	mov	x0, x20
	mov	x2, x19
	bl	_memcpy
	mov	w0, #0
LBB0_5:
	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 AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_errno,4,2                      ; @errno
	.comm	_PT_READ_D,4,2                  ; @PT_READ_D
	.comm	_inferior_pid,4,2               ; @inferior_pid
	.no_dead_strip	_fbsd_read_memory
.subsections_via_symbols
