	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vx_xfer_memory
_vx_xfer_memory:                        ## @vx_xfer_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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %ebx
	movl	%edx, %r14d
	movq	%rsi, %r15
	movq	%rdi, %r12
	leaq	-112(%rbp), %rdi
	xorl	%esi, %esi
	movl	$32, %edx
	callq	_memset
	leaq	-80(%rbp), %rdi
	xorl	%esi, %esi
	movl	$16, %edx
	callq	_memset
	movq	_inferior_ptid@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_PIDGET
	movl	%eax, -88(%rbp)
	movl	%r12d, -112(%rbp)
	movl	%r14d, -108(%rbp)
	testl	%ebx, %ebx
	je	LBB0_2
## %bb.1:
	movq	_DATA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -96(%rbp)
	leaq	-64(%rbp), %rax
	movq	%rax, -104(%rbp)
	movq	%r15, -56(%rbp)
	movl	%r14d, -64(%rbp)
	movq	_PTRACE_WRITEDATA@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_2:
	leaq	-64(%rbp), %rax
	movq	%rax, -72(%rbp)
	movq	_PTRACE_READDATA@GOTPCREL(%rip), %rax
LBB0_3:
	movl	%r14d, %ebx
	movl	%r14d, -44(%rbp)                ## 4-byte Spill
	testl	%r14d, %r14d
	jle	LBB0_10
## %bb.4:
	movl	(%rax), %r13d
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	_VX_MEMXFER_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edi
	callq	_min
	movl	%eax, %r14d
	movl	%r12d, -112(%rbp)
	movl	%eax, -108(%rbp)
	movq	%r15, -56(%rbp)
	movl	%eax, -64(%rbp)
	movl	%r13d, %edi
	leaq	-112(%rbp), %rsi
	leaq	-80(%rbp), %rdx
	callq	_net_ptrace_clnt_call
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	_rpcerr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_error
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=1
	cmpl	$0, -80(%rbp)
	jne	LBB0_8
## %bb.9:                               ##   in Loop: Header=BB0_5 Depth=1
	movslq	%r14d, %rax
	addq	%rax, %r12
	addq	%rax, %r15
	subl	%r14d, %ebx
	jg	LBB0_5
	jmp	LBB0_10
LBB0_8:
	movl	-76(%rbp), %eax
	movq	_errno@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
LBB0_10:
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	subl	%ebx, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_inferior_ptid,4,2              ## @inferior_ptid
	.comm	_DATA,4,2                       ## @DATA
	.comm	_PTRACE_WRITEDATA,4,2           ## @PTRACE_WRITEDATA
	.comm	_PTRACE_READDATA,4,2            ## @PTRACE_READDATA
	.comm	_VX_MEMXFER_MAX,4,2             ## @VX_MEMXFER_MAX
	.comm	_rpcerr,4,2                     ## @rpcerr
	.comm	_errno,4,2                      ## @errno
	.no_dead_strip	_vx_xfer_memory
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vx_xfer_memory
_vx_xfer_memory:                        ; @vx_xfer_memory
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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	x22, x3
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	add	x0, sp, #32
	mov	w1, #0
	mov	w2, #32
	bl	_memset
	add	x0, sp, #16
	mov	w1, #0
	mov	w2, #16
	bl	_memset
Lloh0:
	adrp	x8, _inferior_ptid@GOTPAGE
Lloh1:
	ldr	x8, [x8, _inferior_ptid@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_PIDGET
	str	w0, [sp, #56]
	stp	w21, w19, [sp, #32]
	cbz	w22, LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _DATA@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DATA@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [sp, #48]
	mov	x8, sp
	str	x8, [sp, #40]
	str	x20, [sp, #8]
	str	w19, [sp]
Lloh6:
	adrp	x8, _PTRACE_WRITEDATA@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PTRACE_WRITEDATA@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:
	mov	x8, sp
	str	x8, [sp, #24]
Lloh8:
	adrp	x8, _PTRACE_READDATA@GOTPAGE
Lloh9:
	ldr	x8, [x8, _PTRACE_READDATA@GOTPAGEOFF]
LBB0_3:
	mov	x22, x19
	cmp	w19, #1
	b.lt	LBB0_10
; %bb.4:
	ldr	w23, [x8]
Lloh10:
	adrp	x25, _VX_MEMXFER_MAX@GOTPAGE
Lloh11:
	ldr	x25, [x25, _VX_MEMXFER_MAX@GOTPAGEOFF]
	mov	x22, x19
Lloh12:
	adrp	x26, _rpcerr@GOTPAGE
Lloh13:
	ldr	x26, [x26, _rpcerr@GOTPAGEOFF]
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x25]
	mov	x0, x22
	bl	_min
	mov	x24, x0
	stp	w21, w0, [sp, #32]
	str	x20, [sp, #8]
	str	w0, [sp]
	add	x1, sp, #32
	add	x2, sp, #16
	mov	x0, x23
	bl	_net_ptrace_clnt_call
	cbz	x0, LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w0, [x26]
	bl	_error
LBB0_7:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [sp, #16]
	cbnz	w8, LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	sxtw	x8, w24
	add	x21, x21, x8
	add	x20, x20, x8
	sub	w22, w22, w24
	cmp	w22, #0
	b.gt	LBB0_5
	b	LBB0_10
LBB0_9:
	ldr	w8, [sp, #20]
Lloh14:
	adrp	x9, _errno@GOTPAGE
Lloh15:
	ldr	x9, [x9, _errno@GOTPAGEOFF]
Lloh16:
	str	w8, [x9]
LBB0_10:
	sub	w0, w19, w22
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotStr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_inferior_ptid,4,2              ; @inferior_ptid
	.comm	_DATA,4,2                       ; @DATA
	.comm	_PTRACE_WRITEDATA,4,2           ; @PTRACE_WRITEDATA
	.comm	_PTRACE_READDATA,4,2            ; @PTRACE_READDATA
	.comm	_VX_MEMXFER_MAX,4,2             ; @VX_MEMXFER_MAX
	.comm	_rpcerr,4,2                     ; @rpcerr
	.comm	_errno,4,2                      ; @errno
	.no_dead_strip	_vx_xfer_memory
.subsections_via_symbols
