	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_do_copy_relocations            ## -- Begin function do_copy_relocations
	.p2align	4, 0x90
_do_copy_relocations:                   ## @do_copy_relocations
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r13
	movl	48(%rdi), %edi
	callq	_assert
	movq	40(%r13), %r15
	movslq	(%r13), %rbx
	addq	%r15, %rbx
	xorl	%eax, %eax
	cmpq	%rbx, %r15
	jae	LBB0_11
## %bb.1:
	movq	_R_PPC_COPY@GOTPCREL(%rip), %r14
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	-80(%rbp), %rax
	movq	-72(%rbp), %rcx
	movq	16(%rcx), %r14
	addq	16(%rax), %r14
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rdx
	callq	_memcpy
	leaq	L_.str.1(%rip), %rdi
	movq	%r14, %rsi
	movq	%rbx, %rdx
	movq	%r12, %rcx
	callq	_dbg
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movq	_R_PPC_COPY@GOTPCREL(%rip), %r14
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	addq	$16, %r15
	cmpq	%rbx, %r15
	jae	LBB0_10
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_5 Depth 2
	movl	(%r15), %edi
	callq	_ELF_R_TYPE
	cmpq	(%r14), %rax
	jne	LBB0_9
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%r15), %rbx
	addq	16(%r13), %rbx
	movq	32(%r13), %r12
	movl	(%r15), %edi
	callq	_ELF_R_SYM
	cltq
	leaq	(%rax,%rax,2), %rax
	movslq	(%r12,%rax,8), %r14
	addq	8(%r13), %r14
	movq	8(%r12,%rax,8), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	leaq	-80(%rbp), %rdi
	movq	%r14, %rsi
	callq	_symlook_init
	movl	(%r15), %edi
	callq	_ELF_R_SYM
	movq	%r13, %rdi
	movl	%eax, %esi
	callq	_fetch_ventry
	movl	%eax, -60(%rbp)
	movq	_SYMLOOK_EARLY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -64(%rbp)
	movq	%r13, %rdi
	callq	_globallist_next
	testq	%rax, %rax
	je	LBB0_7
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rax, %r12
	.p2align	4, 0x90
LBB0_5:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	leaq	-80(%rbp), %rdi
	movq	%r12, %rsi
	callq	_symlook_obj
	testl	%eax, %eax
	je	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=2
	movq	%r12, %rdi
	callq	_globallist_next
	movq	%rax, %r12
	testq	%rax, %rax
	jne	LBB0_5
LBB0_7:
	movl	24(%r13), %edx
	leaq	L_.str(%rip), %rdi
	movq	%r14, %rsi
	callq	__rtld_error
	movl	$-1, %eax
LBB0_11:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	xorl	%eax, %eax
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_R_PPC_COPY,8,3                 ## @R_PPC_COPY
	.comm	_SYMLOOK_EARLY,4,2              ## @SYMLOOK_EARLY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Undefined symbol \"%s\"  referenced from COPY relocation in %s"

L_.str.1:                               ## @.str.1
	.asciz	"copy_reloc: src=%p,dst=%p,size=%d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_do_copy_relocations            ; -- Begin function do_copy_relocations
	.p2align	2
_do_copy_relocations:                   ; @do_copy_relocations
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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, x0
	ldr	w0, [x0, #48]
	bl	_assert
	ldr	x25, [x19, #40]
	ldrsw	x8, [x19]
	add	x26, x25, x8
	cmp	x25, x26
	b.hs	LBB0_10
; %bb.1:
Lloh0:
	adrp	x27, _R_PPC_COPY@GOTPAGE
Lloh1:
	ldr	x27, [x27, _R_PPC_COPY@GOTPAGEOFF]
	mov	w22, #24
Lloh2:
	adrp	x20, _SYMLOOK_EARLY@GOTPAGE
Lloh3:
	ldr	x20, [x20, _SYMLOOK_EARLY@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldp	x9, x8, [sp, #8]
	ldr	x9, [x9, #16]
	ldr	x8, [x8, #16]
	add	x22, x8, x9
	mov	x0, x23
	mov	x1, x22
	mov	x2, x21
	bl	_memcpy
Lloh4:
	adrp	x0, l_.str.1@PAGE
Lloh5:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x22
	mov	x2, x23
	mov	x3, x21
	bl	_dbg
	mov	w22, #24
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x25, x25, #16
	cmp	x25, x26
	b.hs	LBB0_10
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
	ldr	w0, [x25]
	bl	_ELF_R_TYPE
	ldr	x8, [x27]
	cmp	x0, x8
	b.ne	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x23, [x19, #16]
	ldr	x28, [x25, #8]
	ldr	x21, [x19, #32]
	ldr	w0, [x25]
	bl	_ELF_R_SYM
	ldr	x8, [x19, #8]
	smaddl	x9, w0, w22, x21
	ldrsw	x10, [x9]
	add	x22, x8, x10
	ldr	x21, [x9, #8]
	add	x0, sp, #8
	mov	x1, x22
	bl	_symlook_init
	ldr	w0, [x25]
	bl	_ELF_R_SYM
	mov	x1, x0
	mov	x0, x19
	bl	_fetch_ventry
	ldr	w8, [x20]
	stp	w8, w0, [sp, #24]
	mov	x0, x19
	bl	_globallist_next
	cbz	x0, LBB0_9
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x24, x0
	add	x23, x28, x23
LBB0_7:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	add	x0, sp, #8
	mov	x1, x24
	bl	_symlook_obj
	cbz	w0, LBB0_2
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=2
	mov	x0, x24
	bl	_globallist_next
	mov	x24, x0
	cbnz	x0, LBB0_7
LBB0_9:
	ldr	w2, [x19, #24]
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x22
	bl	__rtld_error
	mov	w0, #-1
	b	LBB0_11
LBB0_10:
	mov	w0, #0
LBB0_11:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_R_PPC_COPY,8,3                 ; @R_PPC_COPY
	.comm	_SYMLOOK_EARLY,4,2              ; @SYMLOOK_EARLY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Undefined symbol \"%s\"  referenced from COPY relocation in %s"

l_.str.1:                               ; @.str.1
	.asciz	"copy_reloc: src=%p,dst=%p,size=%d\n"

.subsections_via_symbols
