	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function selection_widget_select
_selection_widget_select:               ## @selection_widget_select
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_I@GOTPCREL(%rip), %r15
	movq	24(%r15), %rbx
	testq	%rbx, %rbx
	je	LBB0_4
## %bb.1:
	movq	(%rbx), %r12
	cmpq	8(%rbx), %r12
	jae	LBB0_4
## %bb.2:
	movq	(%r15), %r14
	movq	%r14, %rdi
	movl	$32, %esi
	callq	_strchr
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	subl	%r14d, %eax
	incl	%eax
	movslq	%eax, %r14
	movq	16(%rbx), %rax
	movl	(%rax,%r12,4), %edi
	callq	_strlen
	leaq	(%rax,%r14), %rdi
	movq	_R_LINE_BUFSIZE@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	decq	%rsi
	callq	_R_MIN
	movq	%rax, 8(%r15)
	addq	(%r15), %r14
	movq	(%rbx), %rax
	movq	16(%rbx), %rcx
	movl	(%rcx,%rax,4), %ebx
	movl	%ebx, %edi
	callq	_strlen
	movq	%r14, %rdi
	movl	%ebx, %esi
	movq	%rax, %rdx
	callq	_memcpy
	movq	8(%r15), %rax
	movq	%rax, 16(%r15)
LBB0_4:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	16(%rbx), %rax
	movl	(%rax,%r12,4), %edi
	callq	_strlen
	movq	_R_LINE_BUFSIZE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rsi
	decq	%rsi
	movq	%rax, %rdi
	callq	_R_MIN
	movq	%rax, 8(%r15)
	movq	(%r15), %rdi
	movq	(%rbx), %rcx
	movq	16(%rbx), %rdx
	movl	(%rdx,%rcx,4), %esi
	movq	%rax, %rdx
	callq	_memcpy
	movq	(%r15), %rax
	movq	8(%r15), %rcx
	movb	$0, (%rax,%rcx)
	movq	8(%r15), %rax
	movq	%rax, 16(%r15)
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_selection_widget_erase         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_I,32,3                         ## @I
	.comm	_R_LINE_BUFSIZE,8,3             ## @R_LINE_BUFSIZE
	.no_dead_strip	_selection_widget_select
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function selection_widget_select
_selection_widget_select:               ; @selection_widget_select
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
Lloh0:
	adrp	x21, _I@GOTPAGE
Lloh1:
	ldr	x21, [x21, _I@GOTPAGEOFF]
	ldr	x20, [x21, #24]
	cbz	x20, LBB0_4
; %bb.1:
	ldp	x22, x8, [x20]
	cmp	x22, x8
	b.hs	LBB0_4
; %bb.2:
	ldr	x19, [x21]
	mov	x0, x19
	mov	w1, #32
	bl	_strchr
	cbz	x0, LBB0_5
; %bb.3:
	sub	w8, w0, w19
	add	w8, w8, #1
	sxtw	x19, w8
	ldr	x8, [x20, #16]
	ldr	w0, [x8, x22, lsl #2]
	bl	_strlen
	add	x0, x0, x19
Lloh2:
	adrp	x8, _R_LINE_BUFSIZE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _R_LINE_BUFSIZE@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	sub	x1, x8, #1
	bl	_R_MIN
	str	x0, [x21, #8]
	ldr	x8, [x21]
	add	x19, x8, x19
	ldr	x8, [x20, #16]
	ldr	x9, [x20]
	ldr	w20, [x8, x9, lsl #2]
	mov	x0, x20
	bl	_strlen
	mov	x2, x0
	mov	x0, x19
	mov	x1, x20
	bl	_memcpy
	ldr	x8, [x21, #8]
	str	x8, [x21, #16]
LBB0_4:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_5:
	ldr	x8, [x20, #16]
	ldr	w0, [x8, x22, lsl #2]
	bl	_strlen
Lloh5:
	adrp	x8, _R_LINE_BUFSIZE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _R_LINE_BUFSIZE@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
	sub	x1, x8, #1
	bl	_R_MIN
	mov	x2, x0
	str	x0, [x21, #8]
	ldr	x0, [x21]
	ldr	x8, [x20, #16]
	ldr	x9, [x20]
	ldr	w1, [x8, x9, lsl #2]
	bl	_memcpy
	ldp	x8, x9, [x21]
	strb	wzr, [x8, x9]
	ldr	x8, [x21, #8]
	str	x8, [x21, #16]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_selection_widget_erase
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_I,32,3                         ; @I
	.comm	_R_LINE_BUFSIZE,8,3             ; @R_LINE_BUFSIZE
	.no_dead_strip	_selection_widget_select
.subsections_via_symbols
