	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function add_tc
_add_tc:                                ## @add_tc
	.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
	movl	%edx, %r15d
	movq	%rsi, %r12
	movq	%rdi, %r14
	movq	_NCURSES_PATHSEP@GOTPCREL(%rip), %r13
	movsbl	(%r13), %esi
	movq	%r12, %rdi
	callq	_strchr
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movb	$0, (%rbx)
LBB0_2:
	movq	_MAXPATHS@GOTPCREL(%rip), %rax
	cmpl	%r15d, (%rax)
	jle	LBB0_5
## %bb.3:
	movq	_R_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	__nc_access
	testq	%rax, %rax
	jne	LBB0_5
## %bb.4:
	movslq	%r15d, %rax
	incl	%r15d
	movq	%r12, (%r14,%rax,8)
	movq	_TRACE_DATABASE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r12, %rsi
	callq	_TR
LBB0_5:
	movslq	%r15d, %rax
	movq	$0, (%r14,%rax,8)
	testq	%rbx, %rbx
	je	LBB0_7
## %bb.6:
	movb	(%r13), %al
	movb	%al, (%rbx)
LBB0_7:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NCURSES_PATHSEP,1,0            ## @NCURSES_PATHSEP
	.comm	_MAXPATHS,4,2                   ## @MAXPATHS
	.comm	_R_OK,4,2                       ## @R_OK
	.comm	_TRACE_DATABASE,4,2             ## @TRACE_DATABASE
	.no_dead_strip	_add_tc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function add_tc
_add_tc:                                ; @add_tc
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x19, x2
	mov	x22, x1
	mov	x20, x0
Lloh0:
	adrp	x23, _NCURSES_PATHSEP@GOTPAGE
Lloh1:
	ldr	x23, [x23, _NCURSES_PATHSEP@GOTPAGEOFF]
	ldrsb	w1, [x23]
	mov	x0, x22
	bl	_strchr
	mov	x21, x0
	cbz	x0, LBB0_2
; %bb.1:
	strb	wzr, [x21]
LBB0_2:
Lloh2:
	adrp	x8, _MAXPATHS@GOTPAGE
Lloh3:
	ldr	x8, [x8, _MAXPATHS@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	cmp	w8, w19
	b.le	LBB0_4
; %bb.3:
Lloh5:
	adrp	x8, _R_OK@GOTPAGE
Lloh6:
	ldr	x8, [x8, _R_OK@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, x22
	bl	__nc_access
	cbz	x0, LBB0_7
LBB0_4:
	str	xzr, [x20, w19, sxtw #3]
	cbz	x21, LBB0_6
LBB0_5:
	ldrb	w8, [x23]
	strb	w8, [x21]
LBB0_6:
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_7:
	add	w24, w19, #1
	str	x22, [x20, w19, sxtw #3]
Lloh8:
	adrp	x8, _TRACE_DATABASE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _TRACE_DATABASE@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	mov	x1, x22
	bl	_TR
	mov	x19, x24
	str	xzr, [x20, w19, sxtw #3]
	cbnz	x21, LBB0_5
	b	LBB0_6
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_NCURSES_PATHSEP,1,0            ; @NCURSES_PATHSEP
	.comm	_MAXPATHS,4,2                   ; @MAXPATHS
	.comm	_R_OK,4,2                       ; @R_OK
	.comm	_TRACE_DATABASE,4,2             ; @TRACE_DATABASE
	.no_dead_strip	_add_tc
.subsections_via_symbols
