	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Arch_FindLib                   ## -- Begin function Arch_FindLib
	.p2align	4, 0x90
_Arch_FindLib:                          ## @Arch_FindLib
	.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
	movl	%esi, %r14d
	movq	%rdi, %r12
	movq	(%rdi), %rdi
	callq	_strlen
	addl	$4, %eax
	movslq	%eax, %r15
	movq	%r15, %rdi
	callq	_bmake_malloc
	movq	%rax, %rbx
	movq	(%r12), %rcx
	addq	$2, %rcx
	leaq	L_.str(%rip), %rdx
	movq	%rax, %rdi
	movq	%r15, %rsi
	callq	_snprintf
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_Dir_FindFile
	movq	%rax, 8(%r12)
	movq	%rbx, %rdi
	callq	_free
	movq	_TARGET@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	8(%r12), %rsi
	testq	%rsi, %rsi
	jne	LBB0_2
## %bb.1:
	movq	(%r12), %rsi
LBB0_2:
	movq	%r12, %rdx
	xorl	%ecx, %ecx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_Var_Set                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"lib%s.a"

	.comm	_TARGET,4,2                     ## @TARGET
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Arch_FindLib                   ; -- Begin function Arch_FindLib
	.p2align	2
_Arch_FindLib:                          ; @Arch_FindLib
	.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	x20, x1
	mov	x19, x0
	ldr	x0, [x0]
	bl	_strlen
	add	w8, w0, #4
	sxtw	x21, w8
	mov	x0, x21
	bl	_bmake_malloc
	mov	x22, x0
	ldr	x8, [x19]
	add	x3, x8, #2
Lloh0:
	adrp	x2, l_.str@PAGE
Lloh1:
	add	x2, x2, l_.str@PAGEOFF
	mov	x1, x21
	bl	_snprintf
	mov	x0, x22
	mov	x1, x20
	bl	_Dir_FindFile
	str	x0, [x19, #8]
	mov	x0, x22
	bl	_free
Lloh2:
	adrp	x8, _TARGET@GOTPAGE
Lloh3:
	ldr	x8, [x8, _TARGET@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	ldr	x1, [x19, #8]
	cbnz	x1, LBB0_2
; %bb.1:
	ldr	x1, [x19]
LBB0_2:
	mov	x2, x19
	mov	w3, #0
	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	_Var_Set
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"lib%s.a"

	.comm	_TARGET,4,2                     ; @TARGET
.subsections_via_symbols
