	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function getsel
_getsel:                                ## @getsel
	.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
	movl	%edx, %r14d
	movq	%rsi, %r15
	movq	%rdi, %r12
	xorl	%edi, %edi
	callq	_getC
	movl	%eax, %ebx
	movl	(%r12), %r13d
	leal	-36(%rbx), %eax
	cmpl	$9, %eax
	ja	LBB0_1
## %bb.5:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_12:
	testl	%r13d, %r13d
	jns	LBB0_14
## %bb.13:
	movl	%r14d, (%r12)
LBB0_14:
	movl	%r14d, (%r15)
	jmp	LBB0_32
LBB0_1:
	cmpl	$94, %ebx
	jne	LBB0_19
## %bb.2:
	testl	%r13d, %r13d
	jns	LBB0_4
## %bb.3:
	movl	$1, (%r12)
LBB0_4:
	movl	$1, (%r15)
	jmp	LBB0_32
LBB0_19:
	movl	%ebx, %edi
	callq	_Isdigit
	testl	%eax, %eax
	je	LBB0_28
## %bb.20:
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	movl	%ebx, %edi
	callq	_Isdigit
	testl	%eax, %eax
	je	LBB0_21
## %bb.22:
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_23:                                ## =>This Inner Loop Header: Depth=1
	leal	(%r14,%r14,4), %eax
	leal	(%rbx,%rax,2), %r14d
	addl	$-48, %r14d
	xorl	%edi, %edi
	callq	_getC
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_Isdigit
	testl	%eax, %eax
	jne	LBB0_23
## %bb.24:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	incl	%eax
	testl	%r14d, %r14d
	cmovnsl	%r14d, %eax
	cmpl	$0, (%r12)
	js	LBB0_27
LBB0_26:
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	jmp	LBB0_31
LBB0_6:
	movq	_quesarg@GOTPCREL(%rip), %rcx
	movl	(%rcx), %eax
	cmpl	$-1, %eax
	je	LBB0_36
## %bb.7:
	testl	%r13d, %r13d
	jns	LBB0_9
## %bb.8:
	movl	%eax, (%r12)
	movl	(%rcx), %eax
LBB0_9:
	movl	%eax, (%r15)
	jmp	LBB0_32
LBB0_15:
	testl	%r13d, %r13d
	jns	LBB0_17
## %bb.16:
	movl	$1, (%r12)
LBB0_17:
	movl	%r14d, (%r15)
	cmpl	%r14d, (%r12)
	jle	LBB0_32
## %bb.18:
	movl	$0, (%r15)
	movl	$1, (%r12)
	movl	$1, %ebx
	jmp	LBB0_37
LBB0_10:
	movl	$1, %ebx
	testl	%r13d, %r13d
	jns	LBB0_37
## %bb.11:
	movl	$0, (%r12)
	decl	%r14d
	movl	%r14d, (%r15)
	movl	$45, %edi
	callq	_unreadc
	jmp	LBB0_37
LBB0_28:
	cmpl	$0, (%r12)
	js	LBB0_29
## %bb.30:
	leal	-1(%r14), %eax
	jmp	LBB0_31
LBB0_21:
	xorl	%eax, %eax
	cmpl	$0, (%r12)
	jns	LBB0_26
LBB0_27:
	movl	%eax, (%r12)
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	jmp	LBB0_31
LBB0_29:
	movl	$0, (%r12)
	movl	%r14d, %eax
LBB0_31:
	movl	%eax, (%r15)
	movl	%ebx, %edi
	callq	_unreadc
LBB0_32:
	testl	%r13d, %r13d
	js	LBB0_33
LBB0_34:
	movl	(%r15), %eax
	cmpl	%eax, (%r12)
	jg	LBB0_36
## %bb.35:
	movl	$1, %ebx
	cmpl	%r14d, %eax
	jle	LBB0_37
LBB0_36:
	movq	_ERR_BADBANGARG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_seterror
	xorl	%ebx, %ebx
	jmp	LBB0_37
LBB0_33:
	xorl	%edi, %edi
	callq	_getC
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_unreadc
	leaq	L_.str(%rip), %rdi
	movl	%ebx, %esi
	callq	_any
	movl	$1, %ebx
	testq	%rax, %rax
	je	LBB0_34
LBB0_37:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_19, LBB0_19-LJTI0_0
.set L0_0_set_15, LBB0_15-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
LJTI0_0:
	.long	L0_0_set_12
	.long	L0_0_set_6
	.long	L0_0_set_19
	.long	L0_0_set_19
	.long	L0_0_set_19
	.long	L0_0_set_19
	.long	L0_0_set_15
	.long	L0_0_set_19
	.long	L0_0_set_19
	.long	L0_0_set_10
	.end_data_region
                                        ## -- End function
	.comm	_quesarg,4,2                    ## @quesarg
	.comm	_ERR_BADBANGARG,4,2             ## @ERR_BADBANGARG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"-$*"

	.no_dead_strip	_getsel
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function getsel
_getsel:                                ; @getsel
	.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	x19, x2
	mov	x20, x1
	mov	x21, x0
	mov	w0, #0
	bl	_getC
	mov	x22, x0
	ldr	w23, [x21]
	sub	w8, w0, #36
	cmp	w8, #9
	b.hi	LBB0_5
; %bb.1:
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
	tbz	w23, #31, LBB0_4
; %bb.3:
	str	w19, [x21]
LBB0_4:
	str	w19, [x20]
	b	LBB0_30
LBB0_5:
	cmp	w22, #94
	b.ne	LBB0_9
; %bb.6:
	tbz	w23, #31, LBB0_8
; %bb.7:
	mov	w8, #1
	str	w8, [x21]
LBB0_8:
	mov	w8, #1
	str	w8, [x20]
	b	LBB0_30
LBB0_9:
	mov	x0, x22
	bl	_Isdigit
	cbz	w0, LBB0_24
; %bb.10:
	mov	x0, x22
	bl	_Isdigit
	cbz	w0, LBB0_26
; %bb.11:
	mov	w24, #0
	mov	w25, #10
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	madd	w8, w24, w25, w22
	sub	w24, w8, #48
	mov	w0, #0
	bl	_getC
	mov	x22, x0
	bl	_Isdigit
	cbnz	w0, LBB0_12
; %bb.13:
	cmp	w24, #0
	csinc	w8, w24, w19, ge
	ldr	w9, [x21]
	tbz	w9, #31, LBB0_29
	b	LBB0_27
LBB0_14:
Lloh2:
	adrp	x9, _quesarg@GOTPAGE
Lloh3:
	ldr	x9, [x9, _quesarg@GOTPAGEOFF]
	ldr	w8, [x9]
	cmn	w8, #1
	b.eq	LBB0_33
; %bb.15:
	tbz	w23, #31, LBB0_17
; %bb.16:
	str	w8, [x21]
	ldr	w8, [x9]
LBB0_17:
	str	w8, [x20]
	b	LBB0_30
LBB0_18:
	tbz	w23, #31, LBB0_20
; %bb.19:
	mov	w8, #1
	str	w8, [x21]
LBB0_20:
	str	w19, [x20]
	ldr	w8, [x21]
	cmp	w8, w19
	b.le	LBB0_30
; %bb.21:
	str	wzr, [x20]
	mov	w0, #1
	str	w0, [x21]
	b	LBB0_36
LBB0_22:
	tbz	w23, #31, LBB0_35
; %bb.23:
	str	wzr, [x21]
	sub	w8, w19, #1
	str	w8, [x20]
	mov	w0, #45
	bl	_unreadc
	b	LBB0_35
LBB0_24:
	ldr	w8, [x21]
	tbnz	w8, #31, LBB0_28
; %bb.25:
	sub	w8, w19, #1
	b	LBB0_29
LBB0_26:
	mov	w8, #0
	ldr	w9, [x21]
	tbz	w9, #31, LBB0_29
LBB0_27:
	str	w8, [x21]
	b	LBB0_29
LBB0_28:
	str	wzr, [x21]
	mov	x8, x19
LBB0_29:
	str	w8, [x20]
	mov	x0, x22
	bl	_unreadc
LBB0_30:
	tbnz	w23, #31, LBB0_34
LBB0_31:
	ldr	w9, [x21]
	ldr	w8, [x20]
	cmp	w9, w8
	b.gt	LBB0_33
; %bb.32:
	cmp	w8, w19
	b.le	LBB0_35
LBB0_33:
Lloh4:
	adrp	x8, _ERR_BADBANGARG@GOTPAGE
Lloh5:
	ldr	x8, [x8, _ERR_BADBANGARG@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
	bl	_seterror
	mov	w0, #0
	b	LBB0_36
LBB0_34:
	mov	w0, #0
	bl	_getC
	mov	x22, x0
	bl	_unreadc
Lloh7:
	adrp	x0, l_.str@PAGE
Lloh8:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x22
	bl	_any
	cbz	x0, LBB0_31
LBB0_35:
	mov	w0, #1
LBB0_36:
	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 AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_14-LBB0_2)>>2
	.byte	(LBB0_9-LBB0_2)>>2
	.byte	(LBB0_9-LBB0_2)>>2
	.byte	(LBB0_9-LBB0_2)>>2
	.byte	(LBB0_9-LBB0_2)>>2
	.byte	(LBB0_18-LBB0_2)>>2
	.byte	(LBB0_9-LBB0_2)>>2
	.byte	(LBB0_9-LBB0_2)>>2
	.byte	(LBB0_22-LBB0_2)>>2
                                        ; -- End function
	.comm	_quesarg,4,2                    ; @quesarg
	.comm	_ERR_BADBANGARG,4,2             ; @ERR_BADBANGARG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"-$*"

	.no_dead_strip	_getsel
.subsections_via_symbols
