	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_child_xfer_memory              ## -- Begin function child_xfer_memory
	.p2align	4, 0x90
_child_xfer_memory:                     ## @child_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, -72(%rbp)                 ## 4-byte Spill
                                        ## kill: def $edx killed $edx def $rdx
	movq	%rsi, %r14
	movl	%edi, %ebx
	movl	%edi, %r13d
	andl	$-4, %r13d
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	leal	(%rdx,%rbx), %eax
	movl	%eax, -76(%rbp)                 ## 4-byte Spill
	movl	%eax, %r15d
	subl	%r13d, %r15d
	leal	3(%r15), %r12d
	sarl	$2, %r12d
	movslq	%r12d, %rax
	movq	%rax, -104(%rbp)                ## 8-byte Spill
	leaq	(,%rax,4), %rdi
	movq	%rdi, -96(%rbp)                 ## 8-byte Spill
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_alloca
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	xorl	%eax, %eax
	callq	_ARCH64
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	cmpl	$0, -72(%rbp)                   ## 4-byte Folded Reload
	movq	%rbx, -88(%rbp)                 ## 8-byte Spill
	je	LBB0_13
## %bb.1:
	movq	%r14, -72(%rbp)                 ## 8-byte Spill
	cmpl	%ebx, %r13d
	jge	LBB0_3
## %bb.2:
	movl	%r13d, %edi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	_read_word
	testl	%eax, %eax
	je	LBB0_21
LBB0_3:
	movslq	%r13d, %rax
	movq	-96(%rbp), %r14                 ## 8-byte Reload
	addq	%rax, %r14
	movslq	-76(%rbp), %rax                 ## 4-byte Folded Reload
	cmpq	%rax, %r14
	jbe	LBB0_5
## %bb.4:
	leal	-1(%r15), %edi
	andl	$-4, %edi
	addl	%r13d, %edi
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	-104(%rbp), %rcx                ## 8-byte Reload
	leaq	(%rax,%rcx,4), %rsi
	addq	$-4, %rsi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	_read_word
	testl	%eax, %eax
	je	LBB0_21
LBB0_5:
	movq	-88(%rbp), %r14                 ## 8-byte Reload
	movl	%r14d, %eax
	andl	$3, %eax
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	addq	%rax, %rdi
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movl	%ebx, %edx
	callq	_memcpy
	movq	_errno@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	testl	%r15d, %r15d
	jle	LBB0_22
## %bb.6:
	cmpl	$2, %r12d
	movl	$1, %r13d
	cmovgel	%r12d, %r13d
	shlq	$2, %r13
	andl	$-4, %r14d
	xorl	%r12d, %r12d
	movq	%r14, %rax
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rax, %r14
	leaq	(%rax,%r12), %rbx
	movq	_PT_WRITE_D@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	_inferior_ptid@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_PIDGET
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	(%rcx,%r12), %ecx
	movl	%r15d, %edi
	movl	%eax, %esi
	movl	%ebx, %edx
	xorl	%r8d, %r8d
	callq	_rs6000_ptrace64
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_7 Depth=1
	movslq	%ebx, %rdx
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	(%rcx,%r12), %ecx
	movl	%r15d, %edi
	movl	%eax, %esi
	xorl	%r8d, %r8d
	callq	_rs6000_ptrace32
LBB0_10:                                ##   in Loop: Header=BB0_7 Depth=1
	movq	_errno@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	jne	LBB0_21
## %bb.11:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	%r14, %rax
	addq	$4, %r12
	cmpq	%r12, %r13
	jne	LBB0_7
## %bb.12:
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_22
LBB0_13:
	testl	%r15d, %r15d
	jle	LBB0_17
## %bb.14:
	cmpl	$2, %r12d
	movl	$1, %r15d
	cmovgel	%r12d, %r15d
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	movl	%r13d, %edi
	movq	%rbx, %rsi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	_read_word
	testl	%eax, %eax
	je	LBB0_21
## %bb.16:                              ##   in Loop: Header=BB0_15 Depth=1
	addl	$4, %r13d
	addq	$4, %rbx
	decq	%r15
	jne	LBB0_15
LBB0_17:
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	addl	-96(%rbp), %eax                 ## 4-byte Folded Reload
	subl	%r13d, %eax
	cltq
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	addq	%rax, %rsi
	movq	%r14, %rdi
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movl	%ebx, %edx
	callq	_memcpy
	jmp	LBB0_22
LBB0_21:
	xorl	%ebx, %ebx
LBB0_22:
	movl	%ebx, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_QUIT,4,2                       ## @QUIT
	.comm	_errno,8,3                      ## @errno
	.comm	_PT_WRITE_D,4,2                 ## @PT_WRITE_D
	.comm	_inferior_ptid,4,2              ## @inferior_ptid
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_child_xfer_memory              ; -- Begin function child_xfer_memory
	.p2align	2
_child_xfer_memory:                     ; @child_xfer_memory
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x26, x3
	mov	x19, x2
	str	x1, [sp, #8]                    ; 8-byte Folded Spill
	mov	x24, x0
	and	w20, w0, #0xfffffffc
	add	w23, w2, w0
	sub	w28, w23, w20
	add	w8, w28, #3
	asr	w9, w8, #2
	sbfx	x27, x8, #2, #30
	sbfiz	x25, x9, #2, #32
	mov	x0, x25
	bl	_alloca
	mov	x21, x0
	bl	_ARCH64
	mov	x22, x0
	cbz	w26, LBB0_12
; %bb.1:
	cmp	w20, w24
	b.ge	LBB0_3
; %bb.2:
	mov	x0, x20
	mov	x1, x21
	mov	x2, x22
	bl	_read_word
	cbz	w0, LBB0_11
LBB0_3:
	add	x8, x25, w20, sxtw
	cmp	x8, w23, sxtw
	b.ls	LBB0_5
; %bb.4:
	sub	w8, w28, #1
	and	w8, w8, #0xfffffffc
	add	w0, w8, w20
	add	x8, x21, x27, lsl #2
	sub	x1, x8, #4
	mov	x2, x22
	bl	_read_word
	cbz	w0, LBB0_11
LBB0_5:
	and	w8, w24, #0x3
	add	x0, x21, x8
	ldr	x1, [sp, #8]                    ; 8-byte Folded Reload
	mov	x2, x19
	bl	_memcpy
Lloh0:
	adrp	x24, _errno@GOTPAGE
Lloh1:
	ldr	x24, [x24, _errno@GOTPAGEOFF]
	str	xzr, [x24]
	cmp	w28, #1
	b.lt	LBB0_17
; %bb.6:
	cmp	w27, #1
	csinc	w25, w27, wzr, gt
Lloh2:
	adrp	x26, _PT_WRITE_D@GOTPAGE
Lloh3:
	ldr	x26, [x26, _PT_WRITE_D@GOTPAGEOFF]
Lloh4:
	adrp	x27, _inferior_ptid@GOTPAGE
Lloh5:
	ldr	x27, [x27, _inferior_ptid@GOTPAGEOFF]
	b	LBB0_9
LBB0_7:                                 ;   in Loop: Header=BB0_9 Depth=1
	sxtw	x2, w20
	ldr	w3, [x21]
	mov	x0, x23
	mov	x4, #0
	bl	_rs6000_ptrace32
	ldr	x8, [x24]
	cbnz	x8, LBB0_11
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	add	w20, w20, #4
	add	x21, x21, #4
	subs	x25, x25, #1
	b.eq	LBB0_17
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w23, [x26]
	ldr	w0, [x27]
	bl	_PIDGET
	mov	x1, x0
	cbz	w22, LBB0_7
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	w3, [x21]
	mov	x0, x23
	mov	x2, x20
	mov	x4, #0
	bl	_rs6000_ptrace64
	ldr	x8, [x24]
	cbz	x8, LBB0_8
LBB0_11:
	mov	w19, #0
	b	LBB0_17
LBB0_12:
	cmp	w28, #1
	b.lt	LBB0_16
; %bb.13:
	cmp	w27, #1
	csinc	w23, w27, wzr, gt
	mov	x26, x21
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	mov	x1, x26
	mov	x2, x22
	bl	_read_word
	cbz	w0, LBB0_11
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=1
	add	w20, w20, #4
	add	x26, x26, #4
	subs	x23, x23, #1
	b.ne	LBB0_14
LBB0_16:
	add	w8, w25, w24
	sub	w8, w8, w20
	add	x1, x21, w8, sxtw
	ldr	x0, [sp, #8]                    ; 8-byte Folded Reload
	mov	x2, x19
	bl	_memcpy
LBB0_17:
	mov	x0, x19
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_QUIT,4,2                       ; @QUIT
	.comm	_errno,8,3                      ; @errno
	.comm	_PT_WRITE_D,4,2                 ; @PT_WRITE_D
	.comm	_inferior_ptid,4,2              ; @inferior_ptid
.subsections_via_symbols
