	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_add_search_dir                 ## -- Begin function add_search_dir
	.p2align	4, 0x90
_add_search_dir:                        ## @add_search_dir
	.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, %r12
	movq	_n_search_dirs@GOTPCREL(%rip), %r15
	movl	(%r15), %eax
	testl	%eax, %eax
	jle	LBB0_4
## %bb.1:
	xorl	%ebx, %ebx
	movq	_search_dirs@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r14), %rax
	movq	(%rax,%rbx,8), %rdi
	movq	%r12, %rsi
	callq	_strcmp
	testq	%rax, %rax
	je	LBB0_5
## %bb.2:                               ##   in Loop: Header=BB0_3 Depth=1
	incq	%rbx
	movslq	(%r15), %rax
	cmpq	%rax, %rbx
	jl	LBB0_3
LBB0_4:
	leal	1(%rax), %ecx
	movl	%ecx, (%r15)
	movq	_search_dirs@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	leal	8(,%rax,8), %esi
	callq	_xrealloc
	movq	%rax, %r14
	movq	%rax, (%rbx)
	movq	%r12, %rdi
	callq	_strdup
	movslq	(%r15), %rcx
	movq	%rax, -8(%r14,%rcx,8)
LBB0_5:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_n_search_dirs,4,2              ## @n_search_dirs
	.comm	_search_dirs,8,3                ## @search_dirs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_add_search_dir                 ; -- Begin function add_search_dir
	.p2align	2
_add_search_dir:                        ; @add_search_dir
	.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
Lloh0:
	adrp	x21, _n_search_dirs@GOTPAGE
Lloh1:
	ldr	x21, [x21, _n_search_dirs@GOTPAGEOFF]
	ldr	w8, [x21]
Lloh2:
	adrp	x22, _search_dirs@GOTPAGE
Lloh3:
	ldr	x22, [x22, _search_dirs@GOTPAGEOFF]
	cmp	w8, #1
	b.lt	LBB0_4
; %bb.1:
	mov	x20, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x22]
	ldr	x0, [x8, x20, lsl #3]
	mov	x1, x19
	bl	_strcmp
	cbz	x0, LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x20, x20, #1
	ldrsw	x8, [x21]
	cmp	x20, x8
	b.lt	LBB0_2
LBB0_4:
	add	w8, w8, #1
	str	w8, [x21]
	ldr	x0, [x22]
	lsl	w1, w8, #3
	bl	_xrealloc
	mov	x20, x0
	str	x0, [x22]
	mov	x0, x19
	bl	_strdup
	ldrsw	x8, [x21]
	add	x8, x20, x8, lsl #3
	stur	x0, [x8, #-8]
LBB0_5:
	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
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_n_search_dirs,4,2              ; @n_search_dirs
	.comm	_search_dirs,8,3                ; @search_dirs
.subsections_via_symbols
