	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_copy_data                      ## -- Begin function copy_data
	.p2align	4, 0x90
_copy_data:                             ## @copy_data
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	cmpq	$0, 16(%rdi)
	je	LBB0_2
## %bb.1:
	cmpq	$0, 8(%r14)
	je	LBB0_13
LBB0_2:
	movl	32(%r14), %edi
	xorl	%esi, %esi
	callq	_elf_getdata
	movq	%rax, %r15
	testq	%rax, %rax
	jne	LBB0_6
## %bb.3:
	xorl	%eax, %eax
	callq	_elf_errno
	movl	32(%r14), %edi
	xorl	%esi, %esi
	callq	_elf_rawdata
	movq	%rax, %r15
	testq	%rax, %rax
	je	LBB0_4
LBB0_6:
	movl	24(%r14), %edi
	callq	_elf_newdata
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:
	cmpq	$0, 16(%r14)
	je	LBB0_10
LBB0_9:
	leaq	8(%r14), %rcx
	xorl	%r8d, %r8d
	jmp	LBB0_11
LBB0_7:
	movq	_EXIT_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movl	$-1, %edi
	callq	_elf_errmsg
	leaq	L_.str.1(%rip), %rsi
	movl	%r12d, %edi
	movl	%eax, %edx
	callq	_errx
	cmpq	$0, 16(%r14)
	jne	LBB0_9
LBB0_10:
	movq	24(%r15), %r8
	leaq	16(%r15), %rcx
	leaq	8(%r15), %r14
LBB0_11:
	movl	(%r15), %edx
	movl	4(%r15), %esi
	movl	(%r14), %edi
	movl	12(%r15), %eax
	movq	(%rcx), %rcx
	movl	%edx, (%rbx)
	movq	%r8, 24(%rbx)
	movq	%rcx, 16(%rbx)
	movl	%eax, 12(%rbx)
	movl	%edi, 8(%rbx)
	movl	%esi, 4(%rbx)
	testl	%edx, %edx
	jne	LBB0_13
## %bb.12:
	movl	$1, (%rbx)
LBB0_13:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	xorl	%eax, %eax
	callq	_elf_errno
	testl	%eax, %eax
	je	LBB0_13
## %bb.5:
	movq	_EXIT_FAILURE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	28(%r14), %edx
	leaq	L_.str(%rip), %rsi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_errx                           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_EXIT_FAILURE,4,2               ## @EXIT_FAILURE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to read section: %s"

L_.str.1:                               ## @.str.1
	.asciz	"elf_newdata() failed: %s"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_copy_data                      ; -- Begin function copy_data
	.p2align	2
_copy_data:                             ; @copy_data
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x0
	ldr	x8, [x0, #16]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_11
LBB0_2:
	ldr	w0, [x19, #32]
	mov	x1, #0
	bl	_elf_getdata
	mov	x20, x0
	cbnz	x0, LBB0_4
; %bb.3:
	bl	_elf_errno
	ldr	w0, [x19, #32]
	mov	x1, #0
	bl	_elf_rawdata
	mov	x20, x0
	cbz	x0, LBB0_12
LBB0_4:
	ldr	w0, [x19, #24]
	bl	_elf_newdata
	mov	x21, x0
	cbz	x0, LBB0_7
; %bb.5:
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_8
LBB0_6:
	mov	x8, #0
	add	x9, x19, #8
	b	LBB0_9
LBB0_7:
Lloh0:
	adrp	x8, _EXIT_FAILURE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EXIT_FAILURE@GOTPAGEOFF]
Lloh2:
	ldr	w22, [x8]
	mov	w0, #-1
	bl	_elf_errmsg
	mov	x2, x0
Lloh3:
	adrp	x1, l_.str.1@PAGE
Lloh4:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x22
	bl	_errx
	ldr	x8, [x19, #16]
	cbnz	x8, LBB0_6
LBB0_8:
	ldr	x8, [x20, #24]
	add	x9, x20, #16
	add	x19, x20, #8
LBB0_9:
	ldr	w10, [x19]
	ldr	w11, [x20, #12]
	ldr	x9, [x9]
	ldp	w13, w12, [x20]
	stp	x9, x8, [x21, #16]
	stp	w10, w11, [x21, #8]
	stp	w13, w12, [x21]
	cbnz	w13, LBB0_11
; %bb.10:
	mov	w8, #1
	str	w8, [x21]
LBB0_11:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_12:
	bl	_elf_errno
	cbz	w0, LBB0_11
; %bb.13:
Lloh5:
	adrp	x8, _EXIT_FAILURE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EXIT_FAILURE@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
	ldr	w2, [x19, #28]
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_errx
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_EXIT_FAILURE,4,2               ; @EXIT_FAILURE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to read section: %s"

l_.str.1:                               ; @.str.1
	.asciz	"elf_newdata() failed: %s"

.subsections_via_symbols
