	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cscope_search                  ## -- Begin function cscope_search
	.p2align	4, 0x90
_cscope_search:                         ## @cscope_search
	.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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	8(%rdx), %rcx
	testq	%rcx, %rcx
	je	LBB0_1
## %bb.5:
	movl	$1, -40(%rbp)
	movq	$0, -32(%rbp)
	movl	4(%rbx), %r8d
	movq	_SEARCH_CSCOPE@GOTPCREL(%rip), %rax
	movq	_SEARCH_FILE@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rax), %edx
	movl	%edx, (%rsp)
	leaq	-40(%rbp), %rdx
	movq	%r15, %rdi
	movq	%rdx, %rsi
	xorl	%r9d, %r9d
	callq	_f_search
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	_TAG_SEARCH@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movl	(%rbx), %esi
	movq	%r15, %rdi
	callq	_db_exist
	testl	%eax, %eax
	je	LBB0_2
## %bb.4:
	movl	(%rbx), %eax
	movl	%eax, -40(%rbp)
	jmp	LBB0_9
LBB0_7:
	movq	(%r15), %rax
	movq	_NOTSET@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_9
## %bb.8:
	movq	_FORWARD@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r15)
LBB0_9:
	movl	-40(%rbp), %esi
	movl	%esi, 8(%r15)
	leaq	16(%r15), %rdx
	movq	$0, 16(%r15)
	movq	%r15, %rdi
	callq	_nonblank
	xorl	%eax, %eax
	jmp	LBB0_10
LBB0_2:
	movq	_TAG_BADLNO@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %esi
	movl	(%r14), %edx
	movq	%r15, %rdi
	callq	_tag_msg
	movl	$1, %eax
LBB0_10:
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TAG_BADLNO,4,2                 ## @TAG_BADLNO
	.comm	_SEARCH_CSCOPE,4,2              ## @SEARCH_CSCOPE
	.comm	_SEARCH_FILE,4,2                ## @SEARCH_FILE
	.comm	_TAG_SEARCH,4,2                 ## @TAG_SEARCH
	.comm	_NOTSET,8,3                     ## @NOTSET
	.comm	_FORWARD,8,3                    ## @FORWARD
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cscope_search                  ; -- Begin function cscope_search
	.p2align	2
_cscope_search:                         ; @cscope_search
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x21, x2
	mov	x20, x1
	mov	x19, x0
	ldr	x3, [x2, #8]
	cbz	x3, LBB0_3
; %bb.1:
	mov	w8, #1
	str	w8, [sp]
	str	xzr, [sp, #8]
Lloh0:
	adrp	x8, _SEARCH_CSCOPE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SEARCH_CSCOPE@GOTPAGEOFF]
	ldr	w4, [x21, #4]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _SEARCH_FILE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _SEARCH_FILE@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w6, w9, w8
	mov	x1, sp
	mov	x2, sp
	mov	x0, x19
	mov	x5, #0
	bl	_f_search
	cbz	x0, LBB0_5
; %bb.2:
Lloh6:
	adrp	x8, _TAG_SEARCH@GOTPAGE
Lloh7:
	ldr	x8, [x8, _TAG_SEARCH@GOTPAGEOFF]
	b	LBB0_9
LBB0_3:
	ldr	w1, [x21]
	mov	x0, x19
	bl	_db_exist
	cbz	w0, LBB0_8
; %bb.4:
	ldr	w8, [x21]
	str	w8, [sp]
	b	LBB0_7
LBB0_5:
	ldr	x8, [x19]
Lloh8:
	adrp	x9, _NOTSET@GOTPAGE
Lloh9:
	ldr	x9, [x9, _NOTSET@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.6:
Lloh11:
	adrp	x8, _FORWARD@GOTPAGE
Lloh12:
	ldr	x8, [x8, _FORWARD@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	str	x8, [x19]
LBB0_7:
	ldr	w1, [sp]
	str	w1, [x19, #8]
	mov	x2, x19
	str	xzr, [x2, #16]!
	mov	x0, x19
	bl	_nonblank
	mov	w0, #0
	b	LBB0_10
LBB0_8:
Lloh14:
	adrp	x8, _TAG_BADLNO@GOTPAGE
Lloh15:
	ldr	x8, [x8, _TAG_BADLNO@GOTPAGEOFF]
LBB0_9:
	ldr	w1, [x8]
	ldr	w2, [x20]
	mov	x0, x19
	bl	_tag_msg
	mov	w0, #1
LBB0_10:
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_TAG_BADLNO,4,2                 ; @TAG_BADLNO
	.comm	_SEARCH_CSCOPE,4,2              ; @SEARCH_CSCOPE
	.comm	_SEARCH_FILE,4,2                ; @SEARCH_FILE
	.comm	_TAG_SEARCH,4,2                 ; @TAG_SEARCH
	.comm	_NOTSET,8,3                     ; @NOTSET
	.comm	_FORWARD,8,3                    ; @FORWARD
.subsections_via_symbols
