	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ar_replace                     ## -- Begin function ar_replace
	.p2align	4, 0x90
_ar_replace:                            ## @ar_replace
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_obfd@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	testq	%r14, %r14
	je	LBB0_18
## %bb.1:
	movq	%rdi, %r15
	testq	%rdi, %rdi
	je	LBB0_17
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_5 Depth 2
	movq	(%r14), %rbx
	testq	%rbx, %rbx
	je	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	xorl	%r13d, %r13d
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_5 Depth=2
	movq	%rbx, %r14
LBB0_10:                                ##   in Loop: Header=BB0_5 Depth=2
	movq	(%rbx), %rbx
	testq	%rbx, %rbx
	je	LBB0_11
LBB0_5:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	8(%rbx), %edi
	movq	(%r15), %rsi
	callq	_FILENAME_CMP
	testq	%rax, %rax
	jne	LBB0_9
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=2
	movq	(%r15), %rdi
	xorl	%esi, %esi
	callq	_bfd_openr
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=2
	movq	%rax, (%r14)
	movq	(%rbx), %rcx
	movq	%rcx, (%rax)
	movl	$1, %r13d
	jmp	LBB0_10
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=2
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	leaq	L_.str.1(%rip), %rdi
	callq	__
	movq	_program_name@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	movq	(%r15), %rcx
	movl	%r12d, %edi
	movq	%rax, %rsi
	xorl	%eax, %eax
	callq	_fprintf
	xorl	%eax, %eax
	callq	_maybequit
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	testl	%r13d, %r13d
	movq	_stderr@GOTPCREL(%rip), %rbx
	jne	LBB0_15
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	_stderr@GOTPCREL(%rip), %rbx
LBB0_12:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r15), %rdi
	xorl	%esi, %esi
	callq	_bfd_openr
	movq	%rax, %r12
	movl	(%rbx), %r13d
	leaq	L_.str.2(%rip), %rdi
	callq	__
	movq	_program_name@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	movq	(%r15), %rcx
	movl	%r13d, %edi
	movq	%rax, %rsi
	xorl	%eax, %eax
	callq	_fprintf
	testq	%r12, %r12
	je	LBB0_13
## %bb.14:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	%r12, (%r14)
	jmp	LBB0_15
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	(%rbx), %r12d
	leaq	L_.str.1(%rip), %rdi
	callq	__
	movq	_program_name@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	movq	(%r15), %rcx
	movl	%r12d, %edi
	movq	%rax, %rsi
	xorl	%eax, %eax
	callq	_fprintf
	xorl	%eax, %eax
	callq	_maybequit
LBB0_15:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%r15), %r15
	testq	%r15, %r15
	je	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	_obfd@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	jmp	LBB0_2
LBB0_17:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_18:
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	leaq	L_.str(%rip), %rdi
	callq	__
	movq	_program_name@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rdx
	movl	%ebx, %edi
	movq	%rax, %rsi
	xorl	%eax, %eax
	callq	_fprintf
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_maybequit                      ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_obfd,8,3                       ## @obfd
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: no open output archive\n"

	.comm	_program_name,8,3               ## @program_name
L_.str.1:                               ## @.str.1
	.asciz	"%s: can't open file %s\n"

L_.str.2:                               ## @.str.2
	.asciz	"%s: can't find module file %s\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ar_replace                     ; -- Begin function ar_replace
	.p2align	2
_ar_replace:                            ; @ar_replace
	.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
Lloh0:
	adrp	x24, _obfd@GOTPAGE
Lloh1:
	ldr	x24, [x24, _obfd@GOTPAGEOFF]
	ldr	x27, [x24]
	cbz	x27, LBB0_17
; %bb.1:
	mov	x19, x0
	cbz	x0, LBB0_16
; %bb.2:
Lloh2:
	adrp	x25, _stderr@GOTPAGE
Lloh3:
	ldr	x25, [x25, _stderr@GOTPAGEOFF]
Lloh4:
	adrp	x20, l_.str.2@PAGE
Lloh5:
	add	x20, x20, l_.str.2@PAGEOFF
Lloh6:
	adrp	x26, _program_name@GOTPAGE
Lloh7:
	ldr	x26, [x26, _program_name@GOTPAGEOFF]
Lloh8:
	adrp	x21, l_.str.1@PAGE
Lloh9:
	add	x21, x21, l_.str.1@PAGEOFF
	ldr	x23, [x27]
	cbz	x23, LBB0_11
LBB0_3:
	mov	w28, #0
	b	LBB0_6
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
	mov	x27, x23
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	x23, [x23]
	cbz	x23, LBB0_10
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x23, #8]
	ldr	x1, [x19]
	bl	_FILENAME_CMP
	cbnz	x0, LBB0_4
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x0, [x19]
	mov	w1, #0
	bl	_bfd_openr
	cbz	x0, LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	str	x0, [x27]
	ldr	x8, [x23]
	str	x8, [x0]
	mov	w28, #1
	b	LBB0_5
LBB0_9:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	w22, [x25]
	mov	x0, x21
	bl	__
	mov	x1, x0
	ldr	x2, [x26]
	ldr	x8, [x19]
	str	x8, [sp]
	mov	x0, x22
	bl	_fprintf
	bl	_maybequit
	b	LBB0_5
LBB0_10:
	cbnz	w28, LBB0_13
LBB0_11:
	ldr	x0, [x19]
	mov	w1, #0
	bl	_bfd_openr
	mov	x22, x0
	ldr	w23, [x25]
	mov	x0, x20
	bl	__
	mov	x1, x0
	ldr	x2, [x26]
	ldr	x8, [x19]
	str	x8, [sp]
	mov	x0, x23
	bl	_fprintf
	cbz	x22, LBB0_15
; %bb.12:
	str	x22, [x27]
LBB0_13:
	ldr	x19, [x19, #8]
	cbz	x19, LBB0_16
LBB0_14:
	ldr	x27, [x24]
	ldr	x23, [x27]
	cbnz	x23, LBB0_3
	b	LBB0_11
LBB0_15:
	ldr	w22, [x25]
	mov	x0, x21
	bl	__
	mov	x1, x0
	ldr	x2, [x26]
	ldr	x8, [x19]
	str	x8, [sp]
	mov	x0, x22
	bl	_fprintf
	bl	_maybequit
	ldr	x19, [x19, #8]
	cbnz	x19, LBB0_14
LBB0_16:
	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
LBB0_17:
Lloh10:
	adrp	x8, _stderr@GOTPAGE
Lloh11:
	ldr	x8, [x8, _stderr@GOTPAGEOFF]
Lloh12:
	ldr	w19, [x8]
Lloh13:
	adrp	x0, l_.str@PAGE
Lloh14:
	add	x0, x0, l_.str@PAGEOFF
	bl	__
	mov	x1, x0
Lloh15:
	adrp	x8, _program_name@GOTPAGE
Lloh16:
	ldr	x8, [x8, _program_name@GOTPAGEOFF]
Lloh17:
	ldr	x2, [x8]
	mov	x0, x19
	bl	_fprintf
	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
	b	_maybequit
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_obfd,8,3                       ; @obfd
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: no open output archive\n"

	.comm	_program_name,8,3               ; @program_name
l_.str.1:                               ; @.str.1
	.asciz	"%s: can't open file %s\n"

l_.str.2:                               ; @.str.2
	.asciz	"%s: can't find module file %s\n"

.subsections_via_symbols
