	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_NOTEPAD_EnableSearchMenu       ## -- Begin function NOTEPAD_EnableSearchMenu
	.p2align	4, 0x90
_NOTEPAD_EnableSearchMenu:              ## @NOTEPAD_EnableSearchMenu
	.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
	movq	_Globals@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	movl	4(%rbx), %r14d
	movq	_CMD_SEARCH@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	_MF_BYCOMMAND@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	callq	_GetWindowTextLength
	movq	_MF_DISABLED@GOTPCREL(%rip), %rcx
	movq	_MF_GRAYED@GOTPCREL(%rip), %rdx
	movq	_MF_ENABLED@GOTPCREL(%rip), %rsi
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rsi, %r15
	movl	(%rsi), %edx
	jmp	LBB0_3
LBB0_1:
	movq	%rsi, %r15
	movl	(%rdx), %edx
	orl	(%rcx), %edx
LBB0_3:
	orl	%r13d, %edx
	movl	%r14d, %edi
	movl	%r12d, %esi
	callq	_EnableMenuItem
	movl	(%rbx), %edi
	movl	4(%rbx), %r14d
	movq	_CMD_SEARCH_NEXT@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	_MF_BYCOMMAND@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	callq	_GetWindowTextLength
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movl	(%r15), %edx
	jmp	LBB0_6
LBB0_4:
	movq	_MF_GRAYED@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_MF_DISABLED@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
LBB0_6:
	orl	%ebx, %edx
	movl	%r14d, %edi
	movl	%r12d, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_EnableMenuItem                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_Globals,8,2                    ## @Globals
	.comm	_CMD_SEARCH,4,2                 ## @CMD_SEARCH
	.comm	_MF_BYCOMMAND,4,2               ## @MF_BYCOMMAND
	.comm	_MF_DISABLED,4,2                ## @MF_DISABLED
	.comm	_MF_GRAYED,4,2                  ## @MF_GRAYED
	.comm	_MF_ENABLED,4,2                 ## @MF_ENABLED
	.comm	_CMD_SEARCH_NEXT,4,2            ## @CMD_SEARCH_NEXT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_NOTEPAD_EnableSearchMenu       ; -- Begin function NOTEPAD_EnableSearchMenu
	.p2align	2
_NOTEPAD_EnableSearchMenu:              ; @NOTEPAD_EnableSearchMenu
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
Lloh0:
	adrp	x21, _Globals@GOTPAGE
Lloh1:
	ldr	x21, [x21, _Globals@GOTPAGEOFF]
Lloh2:
	adrp	x8, _CMD_SEARCH@GOTPAGE
Lloh3:
	ldr	x8, [x8, _CMD_SEARCH@GOTPAGEOFF]
Lloh4:
	ldr	w19, [x8]
Lloh5:
	adrp	x22, _MF_BYCOMMAND@GOTPAGE
Lloh6:
	ldr	x22, [x22, _MF_BYCOMMAND@GOTPAGEOFF]
	ldr	w23, [x22]
	ldp	w0, w20, [x21]
	bl	_GetWindowTextLength
Lloh7:
	adrp	x24, _MF_DISABLED@GOTPAGE
Lloh8:
	ldr	x24, [x24, _MF_DISABLED@GOTPAGEOFF]
	ldr	w8, [x24]
Lloh9:
	adrp	x25, _MF_GRAYED@GOTPAGE
Lloh10:
	ldr	x25, [x25, _MF_GRAYED@GOTPAGEOFF]
	ldr	w9, [x25]
	orr	w8, w9, w8
Lloh11:
	adrp	x26, _MF_ENABLED@GOTPAGE
Lloh12:
	ldr	x26, [x26, _MF_ENABLED@GOTPAGEOFF]
	ldr	w9, [x26]
	cmp	x0, #0
	csel	w8, w8, w9, eq
	orr	w2, w8, w23
	mov	x0, x20
	mov	x1, x19
	bl	_EnableMenuItem
Lloh13:
	adrp	x8, _CMD_SEARCH_NEXT@GOTPAGE
Lloh14:
	ldr	x8, [x8, _CMD_SEARCH_NEXT@GOTPAGEOFF]
Lloh15:
	ldr	w19, [x8]
	ldr	w22, [x22]
	ldp	w0, w20, [x21]
	bl	_GetWindowTextLength
	ldr	w8, [x24]
	ldr	w9, [x25]
	orr	w8, w9, w8
	ldr	w9, [x26]
	cmp	x0, #0
	csel	w8, w8, w9, eq
	orr	w2, w8, w22
	mov	x0, x20
	mov	x1, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_EnableMenuItem
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_Globals,8,2                    ; @Globals
	.comm	_CMD_SEARCH,4,2                 ; @CMD_SEARCH
	.comm	_MF_BYCOMMAND,4,2               ; @MF_BYCOMMAND
	.comm	_MF_DISABLED,4,2                ; @MF_DISABLED
	.comm	_MF_GRAYED,4,2                  ; @MF_GRAYED
	.comm	_MF_ENABLED,4,2                 ; @MF_ENABLED
	.comm	_CMD_SEARCH_NEXT,4,2            ; @CMD_SEARCH_NEXT
.subsections_via_symbols
