	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_do_xfer_memory                 ## -- Begin function do_xfer_memory
	.p2align	4, 0x90
_do_xfer_memory:                        ## @do_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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testl	%edx, %edx
	je	LBB0_1
## %bb.2:
	movq	%r8, %r14
	movl	%ecx, %r13d
	movl	%edx, %ebx
	movq	%rsi, %r15
	movl	%edi, %r12d
	movq	_errno@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
	testl	%ecx, %ecx
	jne	LBB0_6
## %bb.3:
	movq	_trust_readonly@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_6
## %bb.4:
	movq	_current_target@GOTPCREL(%rip), %rdi
	movl	%r12d, %esi
	callq	_target_section_by_addr
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movl	(%rax), %esi
	movl	4(%rax), %edi
	callq	_bfd_get_section_flags
	movq	_SEC_READONLY@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_6
## %bb.15:
	movq	_current_target@GOTPCREL(%rip), %r9
	movl	%r12d, %edi
	movq	%r15, %rsi
	movl	%ebx, %edx
	xorl	%ecx, %ecx
	movq	%r14, %r8
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_xfer_memory                    ## TAILCALL
LBB0_6:
	movq	_current_target@GOTPCREL(%rip), %r9
	movl	%r12d, %edi
	movq	%r15, %rsi
	movl	%ebx, %edx
	movl	%r13d, %ecx
	movq	%r14, %r8
	callq	*(%r9)
	testl	%eax, %eax
	jle	LBB0_7
LBB0_13:
	movl	%eax, %r14d
	jmp	LBB0_14
LBB0_1:
	xorl	%r14d, %r14d
LBB0_14:
	movl	%r14d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movq	_target_stack@GOTPCREL(%rip), %rcx
	movq	(%rcx), %r15
	movl	$-1, %r14d
	testq	%r15, %r15
	jne	LBB0_8
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	24(%r15), %r15
	testq	%r15, %r15
	je	LBB0_12
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	cmpl	$0, 16(%r15)
	je	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movl	%r12d, %edi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movl	%ebx, %edx
	movl	%r13d, %ecx
	movq	-56(%rbp), %r8                  ## 8-byte Reload
	movq	%r15, %r9
	callq	*(%r15)
	testl	%eax, %eax
	jg	LBB0_13
## %bb.10:                              ##   in Loop: Header=BB0_8 Depth=1
	cmpq	$0, 8(%r15)
	je	LBB0_11
	jmp	LBB0_14
LBB0_12:
	testl	%eax, %eax
	jg	LBB0_13
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_errno,8,3                      ## @errno
	.comm	_trust_readonly,8,3             ## @trust_readonly
	.comm	_current_target,8,3             ## @current_target
	.comm	_SEC_READONLY,4,2               ## @SEC_READONLY
	.comm	_target_stack,8,3               ## @target_stack
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_do_xfer_memory                 ; -- Begin function do_xfer_memory
	.p2align	2
_do_xfer_memory:                        ; @do_xfer_memory
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	cbz	w2, LBB0_12
; %bb.1:
	mov	x19, x4
	mov	x23, x3
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
Lloh0:
	adrp	x8, _errno@GOTPAGE
Lloh1:
	ldr	x8, [x8, _errno@GOTPAGEOFF]
Lloh2:
	str	xzr, [x8]
	cbnz	w3, LBB0_6
; %bb.2:
Lloh3:
	adrp	x8, _trust_readonly@GOTPAGE
Lloh4:
	ldr	x8, [x8, _trust_readonly@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cbz	x8, LBB0_6
; %bb.3:
Lloh6:
	adrp	x0, _current_target@GOTPAGE
Lloh7:
	ldr	x0, [x0, _current_target@GOTPAGEOFF]
	mov	x1, x22
	bl	_target_section_by_addr
	cbz	x0, LBB0_6
; %bb.4:
	ldp	w1, w8, [x0]
	mov	x0, x8
	bl	_bfd_get_section_flags
Lloh8:
	adrp	x8, _SEC_READONLY@GOTPAGE
Lloh9:
	ldr	x8, [x8, _SEC_READONLY@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_6
; %bb.5:
Lloh11:
	adrp	x5, _current_target@GOTPAGE
Lloh12:
	ldr	x5, [x5, _current_target@GOTPAGEOFF]
	mov	x0, x22
	mov	x1, x21
	mov	x2, x20
	mov	w3, #0
	mov	x4, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_xfer_memory
LBB0_6:
Lloh13:
	adrp	x5, _current_target@GOTPAGE
Lloh14:
	ldr	x5, [x5, _current_target@GOTPAGEOFF]
	ldr	x8, [x5]
	mov	x0, x22
	mov	x1, x21
	mov	x2, x20
	mov	x3, x23
	mov	x4, x19
	blr	x8
	cmp	w0, #0
	b.gt	LBB0_15
; %bb.7:
Lloh15:
	adrp	x8, _target_stack@GOTPAGE
Lloh16:
	ldr	x8, [x8, _target_stack@GOTPAGEOFF]
Lloh17:
	ldr	x24, [x8]
	cbnz	x24, LBB0_9
	b	LBB0_14
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	ldr	x24, [x24, #24]
	cbz	x24, LBB0_13
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x24, #16]
	cbz	w8, LBB0_8
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	x8, [x24]
	mov	x0, x22
	mov	x1, x21
	mov	x2, x20
	mov	x3, x23
	mov	x4, x19
	mov	x5, x24
	blr	x8
	cmp	w0, #0
	b.gt	LBB0_15
; %bb.11:                               ;   in Loop: Header=BB0_9 Depth=1
	ldr	x8, [x24, #8]
	cbz	x8, LBB0_8
	b	LBB0_14
LBB0_12:
	mov	w0, #0
	b	LBB0_15
LBB0_13:
	cmp	w0, #1
	b.ge	LBB0_15
LBB0_14:
	mov	w0, #-1
LBB0_15:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotStr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_errno,8,3                      ; @errno
	.comm	_trust_readonly,8,3             ; @trust_readonly
	.comm	_current_target,8,3             ; @current_target
	.comm	_SEC_READONLY,4,2               ; @SEC_READONLY
	.comm	_target_stack,8,3               ; @target_stack
.subsections_via_symbols
