	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function perform_search
_perform_search:                        ## @perform_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r14
	movl	%ecx, %r12d
	movq	%rdi, %rbx
	movq	_FALSE@GOTPCREL(%rip), %r13
	movl	(%r13), %r15d
	cmpl	$110, %ecx
	je	LBB0_2
## %bb.1:
	cmpl	$47, %r12d
	jne	LBB0_4
LBB0_2:
	cmpl	$0, (%rbx)
	je	LBB0_5
LBB0_3:
	xorl	%eax, %eax
	callq	_beep
	jmp	LBB0_22
LBB0_4:
	cmpl	$0, 4(%rbx)
	jne	LBB0_3
LBB0_5:
	movl	%r12d, %eax
	andl	$-33, %eax
	cmpl	$78, %eax
	jne	LBB0_8
## %bb.6:
	cmpb	$0, (%r14)
	jne	LBB0_11
## %bb.7:
	xorl	%eax, %eax
	callq	_beep
	movl	(%r13), %r15d
	jmp	LBB0_22
LBB0_8:
	movl	32(%rbx), %edi
	movq	_PAGE_LENGTH@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_PAGE_WIDTH@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r14, %rsi
	callq	_get_search_term
	movq	_DLG_EXIT_OK@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_10
## %bb.9:
	cmpb	$0, (%r14)
	je	LBB0_10
LBB0_11:
	movq	16(%rbx), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	(%rbx), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movl	4(%rbx), %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	%rbx, %rdi
	callq	_ftell_obj
	movq	%rax, %r15
	subq	24(%rbx), %r15
	xorl	%eax, %eax
	cmpl	$47, %r12d
	setne	%al
	cmpl	$110, %r12d
	leaq	-1(%rax,%rax), %rax
	movq	$-1, %rsi
	cmovneq	%rax, %rsi
	addq	8(%rbx), %rsi
	movq	%rbx, %rdi
	callq	_back_lines
	cmpl	$110, %r12d
	je	LBB0_16
## %bb.12:
	cmpl	$47, %r12d
	jne	LBB0_13
	.p2align	4, 0x90
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_match_string
	movl	(%r13), %ecx
	cmpl	%ecx, %eax
	jne	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_16 Depth=1
	cmpl	$0, (%rbx)
	je	LBB0_16
	jmp	LBB0_18
	.p2align	4, 0x90
LBB0_14:                                ##   in Loop: Header=BB0_13 Depth=1
	cmpl	$0, 4(%rbx)
	jne	LBB0_19
## %bb.15:                              ##   in Loop: Header=BB0_13 Depth=1
	movl	$2, %esi
	movq	%rbx, %rdi
	callq	_back_lines
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_match_string
	movl	(%r13), %ecx
	cmpl	%ecx, %eax
	je	LBB0_14
LBB0_18:
	movl	$1, %esi
	cmpl	%ecx, %eax
	jne	LBB0_20
LBB0_19:
	xorl	%eax, %eax
	callq	_beep
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_lseek_set
	movq	_BUF_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_read_high
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 16(%rbx)
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, 4(%rbx)
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, (%rbx)
	movq	8(%rbx), %rsi
LBB0_20:
	movq	%rbx, %rdi
	callq	_back_lines
	movl	32(%rbx), %edi
	movq	_dialog_attr@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_dlg_attrset
	jmp	LBB0_21
LBB0_10:
	movl	32(%rbx), %edi
	movq	_dialog_attr@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_dlg_attrset
	movq	8(%rbx), %rsi
	movq	%rbx, %rdi
	callq	_back_lines
LBB0_21:
	movq	_TRUE@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
LBB0_22:
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FALSE,4,2                      ## @FALSE
	.comm	_PAGE_LENGTH,4,2                ## @PAGE_LENGTH
	.comm	_PAGE_WIDTH,4,2                 ## @PAGE_WIDTH
	.comm	_DLG_EXIT_OK,4,2                ## @DLG_EXIT_OK
	.comm	_dialog_attr,4,2                ## @dialog_attr
	.comm	_TRUE,4,2                       ## @TRUE
	.comm	_BUF_SIZE,4,2                   ## @BUF_SIZE
	.comm	_DLG_EXIT_CANCEL,4,2            ## @DLG_EXIT_CANCEL
	.comm	_KEY_RESIZE,4,2                 ## @KEY_RESIZE
	.no_dead_strip	_perform_search
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function perform_search
_perform_search:                        ; @perform_search
	.cfi_startproc
; %bb.0:
	stp	d9, d8, [sp, #-96]!             ; 16-byte Folded Spill
	.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
	.cfi_offset b8, -88
	.cfi_offset b9, -96
	mov	x20, x4
	mov	x22, x3
	mov	x19, x0
Lloh0:
	adrp	x23, _FALSE@GOTPAGE
Lloh1:
	ldr	x23, [x23, _FALSE@GOTPAGEOFF]
	ldr	w21, [x23]
	cmp	w3, #110
	b.eq	LBB0_2
; %bb.1:
	cmp	w22, #47
	b.ne	LBB0_4
LBB0_2:
	ldr	w8, [x19]
	cbz	w8, LBB0_5
LBB0_3:
	bl	_beep
	b	LBB0_23
LBB0_4:
	ldr	w8, [x19, #4]
	cbnz	w8, LBB0_3
LBB0_5:
	and	w8, w22, #0xffffffdf
	cmp	w8, #78
	b.ne	LBB0_8
; %bb.6:
	ldrb	w8, [x20]
	cbnz	w8, LBB0_10
; %bb.7:
	bl	_beep
	ldr	w21, [x23]
	b	LBB0_23
LBB0_8:
	ldr	w0, [x19, #32]
Lloh2:
	adrp	x8, _PAGE_LENGTH@GOTPAGE
Lloh3:
	ldr	x8, [x8, _PAGE_LENGTH@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
Lloh5:
	adrp	x8, _PAGE_WIDTH@GOTPAGE
Lloh6:
	ldr	x8, [x8, _PAGE_WIDTH@GOTPAGEOFF]
Lloh7:
	ldr	w3, [x8]
	mov	x1, x20
	bl	_get_search_term
Lloh8:
	adrp	x8, _DLG_EXIT_OK@GOTPAGE
Lloh9:
	ldr	x8, [x8, _DLG_EXIT_OK@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_19
; %bb.9:
	ldrb	w8, [x20]
	cbz	w8, LBB0_19
LBB0_10:
	ldr	x24, [x19, #16]
	ldr	d8, [x19]
	mov	x0, x19
	bl	_ftell_obj
	mov	x21, x0
	ldr	x25, [x19, #24]
	ldr	x8, [x19, #8]
	sub	x9, x8, #1
	cmp	w22, #47
	mov	w10, #110
	ccmp	w22, w10, #4, ne
	csinc	x1, x9, x8, eq
	mov	x0, x19
	bl	_back_lines
	cmp	w22, #110
	b.eq	LBB0_12
; %bb.11:
	cmp	w22, #47
	b.ne	LBB0_16
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	x1, x20
	bl	_match_string
	ldr	w8, [x23]
	cmp	w0, w8
	b.ne	LBB0_17
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	ldr	w9, [x19]
	cbz	w9, LBB0_12
	b	LBB0_17
LBB0_14:                                ;   in Loop: Header=BB0_16 Depth=1
	ldr	w8, [x19, #4]
	cbnz	w8, LBB0_18
; %bb.15:                               ;   in Loop: Header=BB0_16 Depth=1
	mov	x0, x19
	mov	w1, #2
	bl	_back_lines
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	mov	x1, x20
	bl	_match_string
	ldr	w8, [x23]
	cmp	w0, w8
	b.eq	LBB0_14
LBB0_17:
	cmp	w0, w8
	b.ne	LBB0_20
LBB0_18:
	sub	x20, x21, x25
	bl	_beep
	mov	x0, x19
	mov	x1, x20
	bl	_lseek_set
Lloh11:
	adrp	x8, _BUF_SIZE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _BUF_SIZE@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_read_high
	str	x24, [x19, #16]
	str	d8, [x19]
	ldr	x1, [x19, #8]
	b	LBB0_21
LBB0_19:
	ldr	w0, [x19, #32]
Lloh14:
	adrp	x8, _dialog_attr@GOTPAGE
Lloh15:
	ldr	x8, [x8, _dialog_attr@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	bl	_dlg_attrset
	ldr	x1, [x19, #8]
	mov	x0, x19
	bl	_back_lines
	b	LBB0_22
LBB0_20:
	mov	w1, #1
LBB0_21:
	mov	x0, x19
	bl	_back_lines
	ldr	w0, [x19, #32]
Lloh17:
	adrp	x8, _dialog_attr@GOTPAGE
Lloh18:
	ldr	x8, [x8, _dialog_attr@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	bl	_dlg_attrset
LBB0_22:
Lloh20:
	adrp	x8, _TRUE@GOTPAGE
Lloh21:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh22:
	ldr	w21, [x8]
LBB0_23:
	mov	x0, x21
	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
	ldp	d9, d8, [sp], #96               ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.comm	_FALSE,4,2                      ; @FALSE
	.comm	_PAGE_LENGTH,4,2                ; @PAGE_LENGTH
	.comm	_PAGE_WIDTH,4,2                 ; @PAGE_WIDTH
	.comm	_DLG_EXIT_OK,4,2                ; @DLG_EXIT_OK
	.comm	_dialog_attr,4,2                ; @dialog_attr
	.comm	_TRUE,4,2                       ; @TRUE
	.comm	_BUF_SIZE,4,2                   ; @BUF_SIZE
	.comm	_DLG_EXIT_CANCEL,4,2            ; @DLG_EXIT_CANCEL
	.comm	_KEY_RESIZE,4,2                 ; @KEY_RESIZE
	.no_dead_strip	_perform_search
.subsections_via_symbols
