	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function EDIT_EM_SetSel
_EDIT_EM_SetSel:                        ## @EDIT_EM_SetSel
	.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	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	%rdx, %r13
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	(%rdi), %r15
	movq	8(%rdi), %r12
	callq	_get_text_length
	cmpq	%rbx, %r15
	jne	LBB0_3
## %bb.1:
	cmpq	%r13, %r12
	jne	LBB0_3
## %bb.2:
	movq	_FALSE@GOTPCREL(%rip), %rax
	jmp	LBB0_12
LBB0_3:
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
	cmpq	$-1, %rbx
	je	LBB0_4
## %bb.5:
	movq	%rbx, %rdi
	movq	%rax, %rsi
	movq	%rax, %r12
	callq	_min
	movq	%rax, %rbx
	movq	%r13, %rdi
	movq	%r12, %rsi
	callq	_min
	movq	%rax, %r13
	jmp	LBB0_6
LBB0_4:
	movq	8(%r14), %r13
	movq	%r13, %rbx
LBB0_6:
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	movq	%rbx, (%r14)
	movq	%r13, 8(%r14)
	movq	_EF_AFTER_WRAP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpq	$0, -56(%rbp)                   ## 8-byte Folded Reload
	je	LBB0_8
## %bb.7:
	orl	%eax, 16(%r14)
	jmp	LBB0_9
LBB0_8:
	notl	%eax
	andl	%eax, 16(%r14)
LBB0_9:
	movq	%r13, %rdi
	movq	%r12, %rsi
	callq	_ORDER_UINT
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_ORDER_UINT
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_ORDER_UINT
	movq	%rbx, %rdi
	movq	%r13, %rsi
	callq	_ORDER_UINT
	cmpq	%r15, %r13
	je	LBB0_11
## %bb.10:
	movq	%r13, %rdx
	cmovgq	%r15, %rdx
	cmovlq	%r15, %r13
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_EDIT_InvalidateText
	movq	%r13, %rbx
LBB0_11:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movq	%r12, %rdx
	callq	_EDIT_InvalidateText
	movq	_TRUE@GOTPCREL(%rip), %rax
LBB0_12:
	movq	(%rax), %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FALSE,8,3                      ## @FALSE
	.comm	_EF_AFTER_WRAP,4,2              ## @EF_AFTER_WRAP
	.comm	_TRUE,8,3                       ## @TRUE
	.no_dead_strip	_EDIT_EM_SetSel
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function EDIT_EM_SetSel
_EDIT_EM_SetSel:                        ; @EDIT_EM_SetSel
	.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
	mov	x24, x3
	mov	x23, x2
	mov	x22, x1
	mov	x19, x0
	ldp	x21, x20, [x0]
	bl	_get_text_length
	cmp	x21, x22
	ccmp	x20, x23, #0, eq
	b.eq	LBB0_3
; %bb.1:
	cmn	x22, #1
	b.eq	LBB0_4
; %bb.2:
	mov	x25, x0
	mov	x0, x22
	mov	x1, x25
	bl	_min
	mov	x22, x0
	mov	x0, x23
	mov	x1, x25
	bl	_min
	mov	x23, x0
	b	LBB0_5
LBB0_3:
Lloh0:
	adrp	x8, _FALSE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
	b	LBB0_11
LBB0_4:
	ldr	x23, [x19, #8]
	mov	x22, x23
LBB0_5:
	stp	x22, x23, [x19]
Lloh2:
	adrp	x8, _EF_AFTER_WRAP@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EF_AFTER_WRAP@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	cbz	x24, LBB0_7
; %bb.6:
	ldr	w9, [x19, #16]
	orr	w8, w9, w8
	b	LBB0_8
LBB0_7:
	ldr	w9, [x19, #16]
	bic	w8, w9, w8
LBB0_8:
	str	w8, [x19, #16]
	mov	x0, x23
	mov	x1, x20
	bl	_ORDER_UINT
	mov	x0, x22
	mov	x1, x21
	bl	_ORDER_UINT
	mov	x0, x21
	mov	x1, x20
	bl	_ORDER_UINT
	mov	x0, x22
	mov	x1, x23
	bl	_ORDER_UINT
	cmp	x23, x21
	b.eq	LBB0_10
; %bb.9:
	cmp	x21, x23
	csel	x2, x21, x23, lt
	csel	x21, x21, x23, gt
	mov	x0, x19
	mov	x1, x22
	bl	_EDIT_InvalidateText
	mov	x22, x21
LBB0_10:
	mov	x0, x19
	mov	x1, x22
	mov	x2, x20
	bl	_EDIT_InvalidateText
Lloh5:
	adrp	x8, _TRUE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
LBB0_11:
	ldr	x0, [x8]
	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
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_FALSE,8,3                      ; @FALSE
	.comm	_EF_AFTER_WRAP,4,2              ; @EF_AFTER_WRAP
	.comm	_TRUE,8,3                       ; @TRUE
	.no_dead_strip	_EDIT_EM_SetSel
.subsections_via_symbols
