	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function copy_file
_copy_file:                             ## @copy_file
	.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
	movq	%rcx, %r13
	movq	%rdx, %rbx
	movq	%rsi, %r14
	movq	%rdi, %r15
	callq	_get_file_size
	testl	%eax, %eax
	jle	LBB0_30
## %bb.1:
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_bfd_openr
	movq	%rax, %r12
	testq	%rax, %rax
	jne	LBB0_3
## %bb.2:
	movq	%r15, %rdi
	callq	_RETURN_NONFATAL
LBB0_3:
	movq	_bfd_archive@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_bfd_check_format
	testq	%rax, %rax
	je	LBB0_10
## %bb.4:
	testq	%r13, %r13
	je	LBB0_6
## %bb.5:
	movq	_TRUE@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_10:
	movq	_bfd_object@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-48(%rbp), %rdx
	movq	%r12, %rdi
	callq	_bfd_check_format_matches
	testq	%rax, %rax
	je	LBB0_21
LBB0_11:
	testq	%r13, %r13
	jne	LBB0_13
## %bb.12:
	movq	%r12, %rdi
	callq	_bfd_get_target
	movq	%rax, %r13
LBB0_13:
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_bfd_openw
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_15
## %bb.14:
	movq	%r14, %rdi
	callq	_RETURN_NONFATAL
LBB0_15:
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_copy_object
	testl	%eax, %eax
	jne	LBB0_17
## %bb.16:
	movq	_status@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
LBB0_17:
	movq	%rbx, %rdi
	callq	_bfd_close
	testl	%eax, %eax
	jne	LBB0_19
## %bb.18:
	movq	%r14, %rdi
	callq	_RETURN_NONFATAL
LBB0_19:
	movq	%r12, %rdi
	callq	_bfd_close
	testl	%eax, %eax
	jne	LBB0_31
## %bb.20:
	movq	%r15, %rdi
	callq	_RETURN_NONFATAL
	jmp	LBB0_31
LBB0_6:
	movq	%r12, %rdi
	callq	_bfd_get_target
	movq	%rax, %r13
	movq	_FALSE@GOTPCREL(%rip), %rax
LBB0_7:
	movl	(%rax), %r15d
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_bfd_openw
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_9
## %bb.8:
	movq	%r14, %rdi
	callq	_RETURN_NONFATAL
LBB0_9:
	movq	%r12, %rdi
	movq	%rbx, %rsi
	movq	%r13, %rdx
	movl	%r15d, %ecx
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_copy_archive                   ## TAILCALL
LBB0_21:
	xorl	%eax, %eax
	callq	_bfd_get_error
	movq	%rax, %rbx
	movq	_bfd_core@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-56(%rbp), %rdx
	movq	%r12, %rdi
	callq	_bfd_check_format_matches
	testq	%rax, %rax
	je	LBB0_24
## %bb.22:
	movq	_bfd_error_file_ambiguously_recognized@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rbx
	jne	LBB0_11
## %bb.23:
	movq	-48(%rbp), %rdi
	callq	_free
	jmp	LBB0_11
LBB0_24:
	xorl	%eax, %eax
	callq	_bfd_get_error
	movq	%rax, %r14
	cmpq	%rax, %rbx
	je	LBB0_26
## %bb.25:
	movq	%rbx, %rdi
	callq	_bfd_set_error
LBB0_26:
	movq	%r15, %rdi
	callq	_bfd_nonfatal
	movq	_bfd_error_file_ambiguously_recognized@GOTPCREL(%rip), %r15
	movq	(%r15), %rax
	cmpq	%rax, %rbx
	jne	LBB0_28
## %bb.27:
	movq	-48(%rbp), %rdi
	callq	_list_matching_formats
	movq	-48(%rbp), %rdi
	callq	_free
	movq	(%r15), %rax
LBB0_28:
	cmpq	%rax, %r14
	jne	LBB0_30
## %bb.29:
	movq	-56(%rbp), %rdi
	callq	_list_matching_formats
	movq	-56(%rbp), %rdi
	callq	_free
LBB0_30:
	movq	_status@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
LBB0_31:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_status,4,2                     ## @status
	.comm	_bfd_archive,4,2                ## @bfd_archive
	.comm	_FALSE,4,2                      ## @FALSE
	.comm	_TRUE,4,2                       ## @TRUE
	.comm	_bfd_object,4,2                 ## @bfd_object
	.comm	_bfd_core,4,2                   ## @bfd_core
	.comm	_bfd_error_file_ambiguously_recognized,8,3 ## @bfd_error_file_ambiguously_recognized
	.no_dead_strip	_copy_file
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function copy_file
_copy_file:                             ; @copy_file
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x22, x3
	mov	x20, x2
	mov	x19, x1
	mov	x21, x0
	bl	_get_file_size
	cmp	w0, #0
	b.le	LBB0_30
; %bb.1:
	mov	x0, x21
	mov	x1, x20
	bl	_bfd_openr
	mov	x20, x0
	cbnz	x0, LBB0_3
; %bb.2:
	mov	x0, x21
	bl	_RETURN_NONFATAL
LBB0_3:
Lloh0:
	adrp	x8, _bfd_archive@GOTPAGE
Lloh1:
	ldr	x8, [x8, _bfd_archive@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_bfd_check_format
	cbz	x0, LBB0_6
; %bb.4:
	cbz	x22, LBB0_17
; %bb.5:
Lloh3:
	adrp	x8, _TRUE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
	b	LBB0_18
LBB0_6:
Lloh5:
	adrp	x8, _bfd_object@GOTPAGE
Lloh6:
	ldr	x8, [x8, _bfd_object@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	add	x2, sp, #8
	mov	x0, x20
	bl	_bfd_check_format_matches
	cbz	x0, LBB0_21
LBB0_7:
	cbnz	x22, LBB0_9
; %bb.8:
	mov	x0, x20
	bl	_bfd_get_target
	mov	x22, x0
LBB0_9:
	mov	x0, x19
	mov	x1, x22
	bl	_bfd_openw
	mov	x22, x0
	cbnz	x0, LBB0_11
; %bb.10:
	mov	x0, x19
	bl	_RETURN_NONFATAL
LBB0_11:
	mov	x0, x20
	mov	x1, x22
	bl	_copy_object
	cbnz	w0, LBB0_13
; %bb.12:
Lloh8:
	adrp	x8, _status@GOTPAGE
Lloh9:
	ldr	x8, [x8, _status@GOTPAGEOFF]
	mov	w9, #1
Lloh10:
	str	w9, [x8]
LBB0_13:
	mov	x0, x22
	bl	_bfd_close
	cbnz	w0, LBB0_15
; %bb.14:
	mov	x0, x19
	bl	_RETURN_NONFATAL
LBB0_15:
	mov	x0, x20
	bl	_bfd_close
	cbnz	w0, LBB0_31
; %bb.16:
	mov	x0, x21
	bl	_RETURN_NONFATAL
	b	LBB0_31
LBB0_17:
	mov	x0, x20
	bl	_bfd_get_target
	mov	x22, x0
Lloh11:
	adrp	x8, _FALSE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
LBB0_18:
	ldr	w21, [x8]
	mov	x0, x19
	mov	x1, x22
	bl	_bfd_openw
	mov	x23, x0
	cbnz	x0, LBB0_20
; %bb.19:
	mov	x0, x19
	bl	_RETURN_NONFATAL
LBB0_20:
	mov	x0, x20
	mov	x1, x23
	mov	x2, x22
	mov	x3, x21
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	b	_copy_archive
LBB0_21:
	bl	_bfd_get_error
	mov	x23, x0
Lloh13:
	adrp	x8, _bfd_core@GOTPAGE
Lloh14:
	ldr	x8, [x8, _bfd_core@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	mov	x2, sp
	mov	x0, x20
	bl	_bfd_check_format_matches
	cbz	x0, LBB0_24
; %bb.22:
Lloh16:
	adrp	x8, _bfd_error_file_ambiguously_recognized@GOTPAGE
Lloh17:
	ldr	x8, [x8, _bfd_error_file_ambiguously_recognized@GOTPAGEOFF]
Lloh18:
	ldr	x8, [x8]
	cmp	x23, x8
	b.ne	LBB0_7
; %bb.23:
	ldr	x0, [sp, #8]
	bl	_free
	b	LBB0_7
LBB0_24:
	bl	_bfd_get_error
	mov	x19, x0
	cmp	x23, x0
	b.eq	LBB0_26
; %bb.25:
	mov	x0, x23
	bl	_bfd_set_error
LBB0_26:
	mov	x0, x21
	bl	_bfd_nonfatal
Lloh19:
	adrp	x20, _bfd_error_file_ambiguously_recognized@GOTPAGE
Lloh20:
	ldr	x20, [x20, _bfd_error_file_ambiguously_recognized@GOTPAGEOFF]
	ldr	x8, [x20]
	cmp	x23, x8
	b.ne	LBB0_28
; %bb.27:
	ldr	x0, [sp, #8]
	bl	_list_matching_formats
	ldr	x0, [sp, #8]
	bl	_free
	ldr	x8, [x20]
LBB0_28:
	cmp	x19, x8
	b.ne	LBB0_30
; %bb.29:
	ldr	x0, [sp]
	bl	_list_matching_formats
	ldr	x0, [sp]
	bl	_free
LBB0_30:
Lloh21:
	adrp	x8, _status@GOTPAGE
Lloh22:
	ldr	x8, [x8, _status@GOTPAGEOFF]
	mov	w9, #1
Lloh23:
	str	w9, [x8]
LBB0_31:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotStr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotStr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_status,4,2                     ; @status
	.comm	_bfd_archive,4,2                ; @bfd_archive
	.comm	_FALSE,4,2                      ; @FALSE
	.comm	_TRUE,4,2                       ; @TRUE
	.comm	_bfd_object,4,2                 ; @bfd_object
	.comm	_bfd_core,4,2                   ; @bfd_core
	.comm	_bfd_error_file_ambiguously_recognized,8,3 ; @bfd_error_file_ambiguously_recognized
	.no_dead_strip	_copy_file
.subsections_via_symbols
