	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_object_file_to_archive         ## -- Begin function object_file_to_archive
	.p2align	4, 0x90
_object_file_to_archive:                ## @object_file_to_archive
	.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
	movl	%ecx, %r14d
	movq	%rsi, %r12
	movq	%rdi, %r13
	cmpq	$0, 24(%rdi)
	je	LBB0_1
## %bb.2:
	movq	16(%r13), %rax
	jmp	LBB0_3
LBB0_1:
	xorl	%eax, %eax
LBB0_3:
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movslq	8(%r13), %r15
	movq	%rdx, %rdi
	movq	%r8, %rsi
	movq	%r9, -64(%rbp)                  ## 8-byte Spill
	movq	%r9, %rdx
	callq	_read_object_file
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%rax, %rbx
	movl	%r14d, %edi
	callq	_S_ISREG
	testq	%rax, %rax
	je	LBB0_9
## %bb.6:
	addq	%r15, %r12
	movq	_STRBUF_INIT@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	$0, -72(%rbp)
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rdx
	leaq	1(%rdx), %rcx
	leaq	-48(%rbp), %r14
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_strbuf_attach
	movq	(%r13), %rax
	movl	(%rax), %edi
	movl	-48(%rbp), %ecx
	movl	-44(%rbp), %edx
	movq	%r12, %rsi
	movq	%r14, %r8
	callq	_convert_to_working_tree
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	testq	%rdi, %rdi
	je	LBB0_8
## %bb.7:
	movl	-48(%rbp), %edx
	movl	-44(%rbp), %esi
	leaq	-48(%rbp), %rcx
	callq	_format_subst
LBB0_8:
	leaq	-48(%rbp), %rdi
	leaq	-72(%rbp), %rsi
	callq	_strbuf_detach
	movq	%rax, %rbx
	movq	-72(%rbp), %rax
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, (%rcx)
	jmp	LBB0_9
LBB0_4:
	xorl	%ebx, %ebx
LBB0_9:
	movq	%rbx, %rax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_STRBUF_INIT,8,2                ## @STRBUF_INIT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_object_file_to_archive         ; -- Begin function object_file_to_archive
	.p2align	2
_object_file_to_archive:                ; @object_file_to_archive
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x19, x5
	mov	x24, x3
	mov	x22, x1
	mov	x21, x0
	ldr	x8, [x0, #24]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	x20, [x21, #16]
	b	LBB0_3
LBB0_2:
	mov	x20, #0
LBB0_3:
	ldrsw	x25, [x21, #8]
	mov	x0, x2
	mov	x1, x4
	mov	x2, x19
	bl	_read_object_file
	mov	x23, x0
	cbz	x0, LBB0_8
; %bb.4:
	mov	x0, x24
	bl	_S_ISREG
	cbz	x0, LBB0_8
; %bb.5:
Lloh0:
	adrp	x8, _STRBUF_INIT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _STRBUF_INIT@GOTPAGEOFF]
	add	x22, x22, x25
Lloh2:
	ldr	x8, [x8]
	stp	xzr, x8, [sp]
	ldr	x2, [x19]
	add	x3, x2, #1
	add	x0, sp, #8
	mov	x1, x23
	bl	_strbuf_attach
	ldr	x8, [x21]
	ldr	w0, [x8]
	ldp	w3, w2, [sp, #8]
	add	x4, sp, #8
	mov	x1, x22
	bl	_convert_to_working_tree
	cbz	x20, LBB0_7
; %bb.6:
	ldp	w2, w1, [sp, #8]
	add	x3, sp, #8
	mov	x0, x20
	bl	_format_subst
LBB0_7:
	add	x0, sp, #8
	mov	x1, sp
	bl	_strbuf_detach
	mov	x23, x0
	ldr	x8, [sp]
	str	x8, [x19]
LBB0_8:
	mov	x0, x23
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_STRBUF_INIT,8,2                ; @STRBUF_INIT
.subsections_via_symbols
