	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_search_term
_get_search_term:                       ## @get_search_term
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r12
	movl	$0, -44(%rbp)
	movq	_TRUE@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_DLG_EXIT_UNKNOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -76(%rbp)                 ## 4-byte Spill
	leaq	L_.str(%rip), %rdi
	callq	__
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movq	%rax, %rdi
	callq	_dlg_count_columns
	movl	%eax, %r13d
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	movq	%r12, %rdi
	callq	_getbegyx
	movq	_MARGIN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	leal	(%rax,%rax), %r14d
	incl	%r14d
	movl	%r14d, -64(%rbp)                ## 4-byte Spill
	leal	4(%r13,%rax,2), %edi
	movl	$30, %esi
	callq	_MAX
	movl	%eax, %r13d
	movq	%r12, %rdi
	callq	_getmaxx
	movq	_MARGIN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	addl	%ecx, %ecx
	subl	%ecx, %eax
	movl	%r13d, %edi
	movl	%eax, %esi
	callq	_MIN
	movl	%eax, %r13d
	movq	_MARGIN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%eax, %eax
	negl	%eax
	leal	(%rax,%r13), %esi
	addl	$-2, %esi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_MIN
	movl	%eax, -68(%rbp)                 ## 4-byte Spill
	movq	%r12, %rdi
	movl	%r14d, %esi
	movl	%r13d, %edx
	callq	_dlg_new_modal_window
	movq	%rax, %r14
	movq	_TRUE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_keypad
	leaq	L_.str.1(%rip), %rsi
	leaq	_get_search_term.binding(%rip), %rdx
	movq	%r14, %rdi
	callq	_dlg_register_window
	movq	_searchbox_attr@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movq	_searchbox_border_attr@GOTPCREL(%rip), %rax
	movl	(%rax), %r10d
	movq	_searchbox_border2_attr@GOTPCREL(%rip), %rcx
	movl	(%rcx), %eax
	xorl	%r12d, %r12d
	movq	%r14, %rdi
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	xorl	%esi, %esi
	xorl	%edx, %edx
	movl	-64(%rbp), %ecx                 ## 4-byte Reload
	movl	%r13d, %r8d
	pushq	%rax
	pushq	%r10
	callq	_dlg_draw_box2
	addq	$16, %rsp
	movq	_searchbox_title_attr@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_dlg_attrset
	movq	%r13, -64(%rbp)                 ## 8-byte Spill
	movl	%r13d, %eax
	subl	-68(%rbp), %eax                 ## 4-byte Folded Reload
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%eax, %edx
	sarl	%edx
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_wmove
	movq	-88(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rdi
	callq	_dlg_index_wchars
	movq	%rax, %r14
	movq	%r13, %rdi
	movl	-68(%rbp), %esi                 ## 4-byte Reload
	xorl	%edx, %edx
	callq	_dlg_limit_columns
	movslq	(%r14), %rcx
	addq	%rcx, %r13
	cltq
	movl	(%r14,%rax,4), %edx
	subl	%ecx, %edx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r13, %rsi
	callq	_waddnstr
	movq	%r15, %rdi
	callq	_dlg_count_columns
	movl	%eax, -72(%rbp)
	movl	-76(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, %r14d
	movq	_DLG_EXIT_UNKNOWN@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_17
## %bb.1:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	addl	$-2, %eax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	jmp	LBB0_2
LBB0_15:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	$50, %edi
	callq	_napms
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	_DLG_EXIT_UNKNOWN@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r14d
	jne	LBB0_17
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	testl	%ebx, %ebx
	je	LBB0_6
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	-44(%rbp), %ecx
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	leaq	-44(%rbp), %rsi
	callq	_dlg_getc
	movl	%eax, %r12d
	movl	-44(%rbp), %ecx
	testl	%ecx, %ecx
	je	LBB0_12
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$128, %ecx
	je	LBB0_8
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$133, %ecx
	jne	LBB0_4
## %bb.10:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	_DLG_EXIT_OK@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_12:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	_ESC@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r12d
	je	LBB0_13
## %bb.14:                              ##   in Loop: Header=BB0_2 Depth=1
	xorl	%ecx, %ecx
	movq	_ERR@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r12d
	je	LBB0_15
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	%r15, %rdi
	leaq	-72(%rbp), %rsi
	movl	%r12d, %edx
	movl	%ebx, %r8d
	callq	_dlg_edit_string
	testq	%rax, %rax
	je	LBB0_16
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	-72(%rbp), %edx
	movq	_searchbox_attr@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_FALSE@GOTPCREL(%rip), %r13
	movl	(%r13), %eax
	subq	$8, %rsp
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rsi
	movl	$1, %r8d
	movl	$1, %r9d
	pushq	%rbx
	pushq	%rax
	pushq	-64(%rbp)                       ## 8-byte Folded Reload
	callq	_dlg_show_string
	addq	$32, %rsp
	movl	(%r13), %ebx
	jmp	LBB0_16
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	_DLG_EXIT_CANCEL@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_13:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	_DLG_EXIT_ESC@GOTPCREL(%rip), %rax
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	(%rax), %eax
	xorl	%ebx, %ebx
	movl	%eax, %r14d
	movq	_DLG_EXIT_UNKNOWN@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_2
LBB0_17:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_dlg_del_window
	movl	%r14d, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__DATA,__data
	.p2align	4                               ## @get_search_term.binding
_get_search_term.binding:
	.long	129                             ## 0x81
	.long	130                             ## 0x82
	.long	131                             ## 0x83
	.long	132                             ## 0x84

	.comm	_TRUE,4,2                       ## @TRUE
	.comm	_DLG_EXIT_UNKNOWN,4,2           ## @DLG_EXIT_UNKNOWN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Search"

	.comm	_MARGIN,4,2                     ## @MARGIN
L_.str.1:                               ## @.str.1
	.asciz	"searchbox"

	.comm	_searchbox_attr,4,2             ## @searchbox_attr
	.comm	_searchbox_border_attr,4,2      ## @searchbox_border_attr
	.comm	_searchbox_border2_attr,4,2     ## @searchbox_border2_attr
	.comm	_searchbox_title_attr,4,2       ## @searchbox_title_attr
	.comm	_DLG_EXIT_CANCEL,4,2            ## @DLG_EXIT_CANCEL
	.comm	_DLG_EXIT_OK,4,2                ## @DLG_EXIT_OK
	.comm	_ESC,4,2                        ## @ESC
	.comm	_DLG_EXIT_ESC,4,2               ## @DLG_EXIT_ESC
	.comm	_ERR,4,2                        ## @ERR
	.comm	_FALSE,4,2                      ## @FALSE
	.no_dead_strip	_get_search_term
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_search_term
_get_search_term:                       ; @get_search_term
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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 w27, -88
	.cfi_offset w28, -96
	mov	x19, x1
	mov	x23, x0
	str	wzr, [sp, #8]
Lloh0:
	adrp	x8, _TRUE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh2:
	ldr	w21, [x8]
Lloh3:
	adrp	x8, _DLG_EXIT_UNKNOWN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DLG_EXIT_UNKNOWN@GOTPAGEOFF]
Lloh5:
	ldr	w20, [x8]
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	bl	__
	mov	x24, x0
	bl	_dlg_count_columns
	mov	x26, x0
	mov	x0, x23
	bl	_getbegyx
Lloh8:
	adrp	x28, _MARGIN@GOTPAGE
Lloh9:
	ldr	x28, [x28, _MARGIN@GOTPAGEOFF]
	ldr	w8, [x28]
	mov	w25, #1
	bfi	w25, w8, #1, #31
	add	w8, w26, w8, lsl #1
	add	w0, w8, #4
	mov	w1, #30
	bl	_MAX
	mov	x22, x0
	mov	x0, x23
	bl	_getmaxx
	ldr	w8, [x28]
	sub	w1, w0, w8, lsl #1
	mov	x0, x22
	bl	_MIN
	mov	x27, x0
	ldr	w8, [x28]
Lloh10:
	adrp	x28, _DLG_EXIT_UNKNOWN@GOTPAGE
Lloh11:
	ldr	x28, [x28, _DLG_EXIT_UNKNOWN@GOTPAGEOFF]
	sub	w22, w0, #2
	sub	w1, w22, w8, lsl #1
	mov	x0, x26
	bl	_MIN
	mov	x26, x0
	mov	x0, x23
	mov	x1, x25
	mov	x2, x27
	bl	_dlg_new_modal_window
	mov	x23, x0
Lloh12:
	adrp	x8, _TRUE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	bl	_keypad
Lloh15:
	adrp	x1, l_.str.1@PAGE
Lloh16:
	add	x1, x1, l_.str.1@PAGEOFF
Lloh17:
	adrp	x2, _get_search_term.binding@PAGE
Lloh18:
	add	x2, x2, _get_search_term.binding@PAGEOFF
	mov	x0, x23
	bl	_dlg_register_window
Lloh19:
	adrp	x8, _searchbox_attr@GOTPAGE
Lloh20:
	ldr	x8, [x8, _searchbox_attr@GOTPAGEOFF]
Lloh21:
	ldr	w5, [x8]
Lloh22:
	adrp	x8, _searchbox_border_attr@GOTPAGE
Lloh23:
	ldr	x8, [x8, _searchbox_border_attr@GOTPAGEOFF]
Lloh24:
	ldr	w6, [x8]
Lloh25:
	adrp	x8, _searchbox_border2_attr@GOTPAGE
Lloh26:
	ldr	x8, [x8, _searchbox_border2_attr@GOTPAGEOFF]
Lloh27:
	ldr	w7, [x8]
	mov	x0, x23
	mov	w1, #0
	mov	w2, #0
	mov	x3, x25
	mov	x4, x27
	bl	_dlg_draw_box2
Lloh28:
	adrp	x8, _searchbox_title_attr@GOTPAGE
Lloh29:
	ldr	x8, [x8, _searchbox_title_attr@GOTPAGEOFF]
Lloh30:
	ldr	w1, [x8]
	mov	x0, x23
	bl	_dlg_attrset
	sub	w8, w27, w26
	cmp	w8, #0
	cinc	w8, w8, lt
	asr	w2, w8, #1
	mov	x0, x23
	mov	w1, #0
	bl	_wmove
	mov	x0, x24
	bl	_dlg_index_wchars
	mov	x25, x0
	mov	x0, x24
	mov	x1, x26
	mov	w2, #0
	bl	_dlg_limit_columns
	ldrsw	x8, [x25]
	add	x1, x24, x8
	ldr	w9, [x25, w0, sxtw #2]
	sub	w2, w9, w8
	mov	x0, x23
	bl	_waddnstr
	mov	x0, x19
	bl	_dlg_count_columns
	str	w0, [sp, #12]
	ldr	w8, [x28]
	cmp	w20, w8
	b.ne	LBB0_18
; %bb.1:
	mov	w24, #0
Lloh31:
	adrp	x26, _ESC@GOTPAGE
Lloh32:
	ldr	x26, [x26, _ESC@GOTPAGEOFF]
Lloh33:
	adrp	x27, _ERR@GOTPAGE
Lloh34:
	ldr	x27, [x27, _ERR@GOTPAGEOFF]
Lloh35:
	adrp	x25, _FALSE@GOTPAGE
Lloh36:
	ldr	x25, [x25, _FALSE@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	w0, #50
	bl	_napms
	mov	w21, #0
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x28]
	cmp	w20, w8
	b.ne	LBB0_18
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	cbz	w21, LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w3, [sp, #8]
	b	LBB0_13
LBB0_6:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x1, sp, #8
	mov	x0, x23
	bl	_dlg_getc
	mov	x24, x0
	ldr	w3, [sp, #8]
	cbz	w3, LBB0_10
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	w3, #128
	b.eq	LBB0_15
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	w3, #133
	b.ne	LBB0_13
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
Lloh37:
	adrp	x8, _DLG_EXIT_OK@GOTPAGE
Lloh38:
	ldr	x8, [x8, _DLG_EXIT_OK@GOTPAGEOFF]
	b	LBB0_17
LBB0_10:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x26]
	cmp	w24, w8
	b.eq	LBB0_16
; %bb.11:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x27]
	cmp	w24, w8
	b.eq	LBB0_2
; %bb.12:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	w3, #0
LBB0_13:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x1, sp, #12
	mov	x0, x19
	mov	x2, x24
	mov	x4, x21
	bl	_dlg_edit_string
	cbz	x0, LBB0_3
; %bb.14:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	w2, [sp, #12]
Lloh39:
	adrp	x8, _searchbox_attr@GOTPAGE
Lloh40:
	ldr	x8, [x8, _searchbox_attr@GOTPAGEOFF]
Lloh41:
	ldr	w3, [x8]
	ldr	w7, [x25]
	str	w21, [sp]
	mov	x0, x23
	mov	x1, x19
	mov	w4, #1
	mov	w5, #1
	mov	x6, x22
	bl	_dlg_show_string
	ldr	w21, [x25]
	b	LBB0_3
LBB0_15:                                ;   in Loop: Header=BB0_4 Depth=1
Lloh42:
	adrp	x8, _DLG_EXIT_CANCEL@GOTPAGE
Lloh43:
	ldr	x8, [x8, _DLG_EXIT_CANCEL@GOTPAGEOFF]
	b	LBB0_17
LBB0_16:                                ;   in Loop: Header=BB0_4 Depth=1
Lloh44:
	adrp	x8, _DLG_EXIT_ESC@GOTPAGE
Lloh45:
	ldr	x8, [x8, _DLG_EXIT_ESC@GOTPAGEOFF]
LBB0_17:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	w21, #0
	ldr	w20, [x8]
	b	LBB0_3
LBB0_18:
	mov	x0, x23
	bl	_dlg_del_window
	mov	x0, x20
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh35, Lloh36
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpLdrGot	Lloh37, Lloh38
	.loh AdrpLdrGotLdr	Lloh39, Lloh40, Lloh41
	.loh AdrpLdrGot	Lloh42, Lloh43
	.loh AdrpLdrGot	Lloh44, Lloh45
	.cfi_endproc
                                        ; -- End function
	.section	__DATA,__data
	.p2align	2                               ; @get_search_term.binding
_get_search_term.binding:
	.long	129                             ; 0x81
	.long	130                             ; 0x82
	.long	131                             ; 0x83
	.long	132                             ; 0x84

	.comm	_TRUE,4,2                       ; @TRUE
	.comm	_DLG_EXIT_UNKNOWN,4,2           ; @DLG_EXIT_UNKNOWN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Search"

	.comm	_MARGIN,4,2                     ; @MARGIN
l_.str.1:                               ; @.str.1
	.asciz	"searchbox"

	.comm	_searchbox_attr,4,2             ; @searchbox_attr
	.comm	_searchbox_border_attr,4,2      ; @searchbox_border_attr
	.comm	_searchbox_border2_attr,4,2     ; @searchbox_border2_attr
	.comm	_searchbox_title_attr,4,2       ; @searchbox_title_attr
	.comm	_DLG_EXIT_CANCEL,4,2            ; @DLG_EXIT_CANCEL
	.comm	_DLG_EXIT_OK,4,2                ; @DLG_EXIT_OK
	.comm	_ESC,4,2                        ; @ESC
	.comm	_DLG_EXIT_ESC,4,2               ; @DLG_EXIT_ESC
	.comm	_ERR,4,2                        ; @ERR
	.comm	_FALSE,4,2                      ; @FALSE
	.no_dead_strip	_get_search_term
.subsections_via_symbols
