	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cgetstr                        ## -- Begin function cgetstr
	.p2align	4, 0x90
_cgetstr:                               ## @cgetstr
	.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	%rdx, %r12
	movl	$61, %edx
	callq	_cgetcap
	testq	%rax, %rax
	je	LBB0_39
## %bb.1:
	movq	%rax, %rbx
	movq	_SFRAG@GOTPCREL(%rip), %r14
	movq	(%r14), %r13
	movq	%r13, %rdi
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_40
## %bb.2:
	movq	%rax, %r15
	movq	%r12, -64(%rbp)                 ## 8-byte Spill
	movq	_ESC@GOTPCREL(%rip), %rax
	movb	(%rax), %sil
	movq	(%r14), %rdi
	leaq	LJTI0_0(%rip), %r8
	movq	%r15, %r12
	xorl	%r14d, %r14d
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_6 Depth=1
	incq	%rbx
LBB0_4:                                 ##   in Loop: Header=BB0_6 Depth=1
	movb	%al, (%r15,%r14)
LBB0_5:                                 ##   in Loop: Header=BB0_6 Depth=1
	incq	%r14
	cmpq	%r14, %r13
	je	LBB0_28
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	(%rbx), %eax
	cmpb	$93, %al
	jg	LBB0_15
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	cmpb	$92, %al
	jne	LBB0_20
## %bb.8:                               ##   in Loop: Header=BB0_6 Depth=1
	movzbl	1(%rbx), %eax
	testl	%eax, %eax
	je	LBB0_36
## %bb.9:                               ##   in Loop: Header=BB0_6 Depth=1
	cmpb	$58, %al
	je	LBB0_36
## %bb.10:                              ##   in Loop: Header=BB0_6 Depth=1
	movl	%eax, %ecx
	andb	$-8, %cl
	cmpb	$48, %cl
	jne	LBB0_23
## %bb.11:                              ##   in Loop: Header=BB0_6 Depth=1
	addl	$-48, %eax
	movzbl	2(%rbx), %ecx
	movl	%ecx, %edx
	andb	$-8, %dl
	cmpb	$48, %dl
	jne	LBB0_26
## %bb.12:                              ##   in Loop: Header=BB0_6 Depth=1
	leal	(%rcx,%rax,8), %eax
	addl	$-48, %eax
	movzbl	3(%rbx), %ecx
	movl	%ecx, %edx
	andb	$-8, %dl
	cmpb	$48, %dl
	jne	LBB0_27
## %bb.13:                              ##   in Loop: Header=BB0_6 Depth=1
	addq	$4, %rbx
	leal	(%rcx,%rax,8), %eax
	addl	$-48, %eax
LBB0_14:                                ##   in Loop: Header=BB0_6 Depth=1
	movb	%al, (%r15,%r14)
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_6 Depth=1
	cmpb	$94, %al
	jne	LBB0_3
## %bb.16:                              ##   in Loop: Header=BB0_6 Depth=1
	movzbl	1(%rbx), %eax
	cmpb	$63, %al
	je	LBB0_22
## %bb.17:                              ##   in Loop: Header=BB0_6 Depth=1
	testb	%al, %al
	je	LBB0_36
## %bb.18:                              ##   in Loop: Header=BB0_6 Depth=1
	cmpb	$58, %al
	je	LBB0_36
## %bb.19:                              ##   in Loop: Header=BB0_6 Depth=1
	addq	$2, %rbx
	andb	$31, %al
	jmp	LBB0_4
LBB0_20:                                ##   in Loop: Header=BB0_6 Depth=1
	testb	%al, %al
	je	LBB0_36
## %bb.21:                              ##   in Loop: Header=BB0_6 Depth=1
	cmpb	$58, %al
	jne	LBB0_3
	jmp	LBB0_36
LBB0_22:                                ##   in Loop: Header=BB0_6 Depth=1
	movb	$127, (%r15,%r14)
	addq	$2, %rbx
	jmp	LBB0_5
LBB0_23:                                ##   in Loop: Header=BB0_6 Depth=1
	movsbl	%al, %ecx
	addq	$2, %rbx
	addl	$-66, %ecx
	cmpl	$50, %ecx
	ja	LBB0_14
## %bb.24:                              ##   in Loop: Header=BB0_6 Depth=1
	movslq	(%r8,%rcx,4), %rcx
	addq	%r8, %rcx
	jmpq	*%rcx
LBB0_25:                                ##   in Loop: Header=BB0_6 Depth=1
	movb	$8, (%r15,%r14)
	jmp	LBB0_5
LBB0_26:                                ##   in Loop: Header=BB0_6 Depth=1
	addq	$2, %rbx
	movb	%al, (%r15,%r14)
	jmp	LBB0_5
LBB0_27:                                ##   in Loop: Header=BB0_6 Depth=1
	addq	$3, %rbx
	movb	%al, (%r15,%r14)
	jmp	LBB0_5
LBB0_28:                                ##   in Loop: Header=BB0_6 Depth=1
	movb	%sil, -41(%rbp)                 ## 1-byte Spill
	leaq	(%rdi,%r15), %rsi
	subq	%r12, %rsi
	addq	%r14, %rsi
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movq	%r12, %rdi
	movq	%r8, %r13
	callq	_reallocf
	movq	%r13, %r8
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movzbl	-41(%rbp), %esi                 ## 1-byte Folded Reload
	movq	%rax, %rcx
	subq	%r12, %r15
	addq	%rax, %r15
	addq	%r14, %r15
	movl	$-2, %eax
	movq	%rdi, %r13
	movq	%rcx, %r12
	testq	%rcx, %rcx
	je	LBB0_42
## %bb.29:                              ##   in Loop: Header=BB0_6 Depth=1
	xorl	%r14d, %r14d
	jmp	LBB0_6
LBB0_30:                                ##   in Loop: Header=BB0_6 Depth=1
	movb	$58, (%r15,%r14)
	jmp	LBB0_5
LBB0_31:                                ##   in Loop: Header=BB0_6 Depth=1
	movb	%sil, (%r15,%r14)
	jmp	LBB0_5
LBB0_32:                                ##   in Loop: Header=BB0_6 Depth=1
	movb	$12, (%r15,%r14)
	jmp	LBB0_5
LBB0_33:                                ##   in Loop: Header=BB0_6 Depth=1
	movb	$10, (%r15,%r14)
	jmp	LBB0_5
LBB0_34:                                ##   in Loop: Header=BB0_6 Depth=1
	movb	$13, (%r15,%r14)
	jmp	LBB0_5
LBB0_35:                                ##   in Loop: Header=BB0_6 Depth=1
	movb	$9, (%r15,%r14)
	jmp	LBB0_5
LBB0_36:
	movb	$0, (%r15,%r14)
	decq	%r13
	movq	%r12, %rax
	cmpq	%r14, %r13
	je	LBB0_38
## %bb.37:
	movq	%r15, %rax
	subq	%r12, %rax
	leaq	(%rax,%r14), %rsi
	incq	%rsi
	movq	%r12, %rdi
	callq	_reallocf
	testq	%rax, %rax
	je	LBB0_41
LBB0_38:
	subl	%r12d, %r15d
	addq	%r14, %r15
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, (%rcx)
	movl	%r15d, %eax
	jmp	LBB0_42
LBB0_39:
	movl	$-1, %eax
	jmp	LBB0_42
LBB0_40:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_errno@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
LBB0_41:
	movl	$-2, %eax
LBB0_42:
	addq	$24, %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_25, LBB0_25-LJTI0_0
.set L0_0_set_30, LBB0_30-LJTI0_0
.set L0_0_set_14, LBB0_14-LJTI0_0
.set L0_0_set_31, LBB0_31-LJTI0_0
.set L0_0_set_32, LBB0_32-LJTI0_0
.set L0_0_set_33, LBB0_33-LJTI0_0
.set L0_0_set_34, LBB0_34-LJTI0_0
.set L0_0_set_35, LBB0_35-LJTI0_0
LJTI0_0:
	.long	L0_0_set_25
	.long	L0_0_set_30
	.long	L0_0_set_14
	.long	L0_0_set_31
	.long	L0_0_set_32
	.long	L0_0_set_14
	.long	L0_0_set_14
	.long	L0_0_set_14
	.long	L0_0_set_14
	.long	L0_0_set_14
	.long	L0_0_set_14
	.long	L0_0_set_14
	.long	L0_0_set_33
	.long	L0_0_set_14
	.long	L0_0_set_14
	.long	L0_0_set_14
	.long	L0_0_set_34
	.long	L0_0_set_14
	.long	L0_0_set_35
	.long	L0_0_set_14
	.long	L0_0_set_14
	.long	L0_0_set_14
	.long	L0_0_set_14
	.long	L0_0_set_14
	.long	L0_0_set_14
	.long	L0_0_set_14
	.long	L0_0_set_14
	.long	L0_0_set_14
	.long	L0_0_set_14
	.long	L0_0_set_14
	.long	L0_0_set_14
	.long	L0_0_set_14
	.long	L0_0_set_25
	.long	L0_0_set_30
	.long	L0_0_set_14
	.long	L0_0_set_31
	.long	L0_0_set_32
	.long	L0_0_set_14
	.long	L0_0_set_14
	.long	L0_0_set_14
	.long	L0_0_set_14
	.long	L0_0_set_14
	.long	L0_0_set_14
	.long	L0_0_set_14
	.long	L0_0_set_33
	.long	L0_0_set_14
	.long	L0_0_set_14
	.long	L0_0_set_14
	.long	L0_0_set_34
	.long	L0_0_set_14
	.long	L0_0_set_35
	.end_data_region
                                        ## -- End function
	.comm	_SFRAG,8,3                      ## @SFRAG
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_errno,4,2                      ## @errno
	.comm	_ESC,4,2                        ## @ESC
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cgetstr                        ; -- Begin function cgetstr
	.p2align	2
_cgetstr:                               ; @cgetstr
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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, x2
	mov	w2, #61
	bl	_cgetcap
	cbz	x0, LBB0_36
; %bb.1:
	mov	x21, x0
Lloh0:
	adrp	x22, _SFRAG@GOTPAGE
Lloh1:
	ldr	x22, [x22, _SFRAG@GOTPAGEOFF]
	ldr	x23, [x22]
	mov	x0, x23
	bl	_malloc
	cbz	x0, LBB0_37
; %bb.2:
	mov	x20, x0
Lloh2:
	adrp	x8, _ESC@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ESC@GOTPAGEOFF]
Lloh4:
	ldr	w24, [x8]
Lloh5:
	adrp	x25, lJTI0_0@PAGE
Lloh6:
	add	x25, x25, lJTI0_0@PAGEOFF
	mov	w12, #8
	mov	w13, #58
	mov	w14, #12
	ldr	x27, [x22]
	mov	w15, #10
	mov	w16, #13
	mov	w17, #9
	mov	w26, #127
	mov	x22, x0
	mov	x28, #0
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	strb	w26, [x20, x28]
	add	x21, x21, #2
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x28, x28, #1
	cmp	x23, x28
	b.eq	LBB0_25
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w8, [x21]
	cmp	w8, #93
	b.gt	LBB0_12
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	cmp	w8, #92
	b.ne	LBB0_17
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	ldrsb	w9, [x21, #1]
	cbz	w9, LBB0_33
; %bb.8:                                ;   in Loop: Header=BB0_5 Depth=1
	and	w8, w9, #0xff
	cmp	w8, #58
	b.eq	LBB0_33
; %bb.9:                                ;   in Loop: Header=BB0_5 Depth=1
	and	w10, w8, #0xf8
	cmp	w10, #48
	b.ne	LBB0_21
; %bb.10:                               ;   in Loop: Header=BB0_5 Depth=1
	mov	x9, x21
	ldrb	w10, [x9, #2]!
	sub	w8, w8, #48
	and	w11, w10, #0xf8
	cmp	w11, #48
	b.ne	LBB0_24
; %bb.11:                               ;   in Loop: Header=BB0_5 Depth=1
	add	x9, x9, #2
	ldrb	w11, [x21, #3]!
	add	w8, w10, w8, lsl #3
	sub	w8, w8, #48
	and	w10, w11, #0xf8
	add	w11, w11, w8, lsl #3
	sub	w11, w11, #48
	cmp	w10, #48
	csel	w8, w8, w11, ne
	csel	x21, x21, x9, ne
	strb	w8, [x20, x28]
	b	LBB0_4
LBB0_12:                                ;   in Loop: Header=BB0_5 Depth=1
	cmp	w8, #94
	b.ne	LBB0_19
; %bb.13:                               ;   in Loop: Header=BB0_5 Depth=1
	ldrb	w8, [x21, #1]
	cmp	w8, #63
	b.eq	LBB0_3
; %bb.14:                               ;   in Loop: Header=BB0_5 Depth=1
	cbz	w8, LBB0_33
; %bb.15:                               ;   in Loop: Header=BB0_5 Depth=1
	cmp	w8, #58
	b.eq	LBB0_33
; %bb.16:                               ;   in Loop: Header=BB0_5 Depth=1
	add	x21, x21, #2
	and	w8, w8, #0x1f
	strb	w8, [x20, x28]
	b	LBB0_4
LBB0_17:                                ;   in Loop: Header=BB0_5 Depth=1
	cbz	w8, LBB0_33
; %bb.18:                               ;   in Loop: Header=BB0_5 Depth=1
	cmp	w8, #58
	b.eq	LBB0_33
LBB0_19:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x21, x21, #1
LBB0_20:                                ;   in Loop: Header=BB0_5 Depth=1
	strb	w8, [x20, x28]
	b	LBB0_4
LBB0_21:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x21, x21, #2
	sub	w9, w9, #66
	cmp	w9, #50
	b.hi	LBB0_20
; %bb.22:                               ;   in Loop: Header=BB0_5 Depth=1
	adr	x10, LBB0_20
	ldrb	w11, [x25, x9]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_23:                                ;   in Loop: Header=BB0_5 Depth=1
	strb	w12, [x20, x28]
	b	LBB0_4
LBB0_24:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x21, x9
	strb	w8, [x20, x28]
	b	LBB0_4
LBB0_25:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x8, x27, x20
	sub	x8, x8, x22
	add	x1, x8, x28
	mov	x0, x22
	bl	_reallocf
	mov	w17, #9
	mov	w16, #13
	mov	w15, #10
	mov	w14, #12
	mov	w13, #58
	mov	w12, #8
	mov	x8, x0
	sub	x9, x20, x22
	add	x9, x0, x9
	add	x20, x9, x28
	mov	w0, #-2
	mov	x23, x27
	mov	x22, x8
	cbz	x8, LBB0_39
; %bb.26:                               ;   in Loop: Header=BB0_5 Depth=1
	mov	x28, #0
	b	LBB0_5
LBB0_27:                                ;   in Loop: Header=BB0_5 Depth=1
	strb	w13, [x20, x28]
	b	LBB0_4
LBB0_28:                                ;   in Loop: Header=BB0_5 Depth=1
	strb	w24, [x20, x28]
	b	LBB0_4
LBB0_29:                                ;   in Loop: Header=BB0_5 Depth=1
	strb	w14, [x20, x28]
	b	LBB0_4
LBB0_30:                                ;   in Loop: Header=BB0_5 Depth=1
	strb	w15, [x20, x28]
	b	LBB0_4
LBB0_31:                                ;   in Loop: Header=BB0_5 Depth=1
	strb	w16, [x20, x28]
	b	LBB0_4
LBB0_32:                                ;   in Loop: Header=BB0_5 Depth=1
	strb	w17, [x20, x28]
	b	LBB0_4
LBB0_33:
	strb	wzr, [x20, x28]
	sub	x9, x23, #1
	mov	x8, x22
	cmp	x9, x28
	b.eq	LBB0_35
; %bb.34:
	sub	x8, x20, x22
	add	x8, x8, x28
	add	x1, x8, #1
	mov	x0, x22
	bl	_reallocf
	mov	x8, x0
	cbz	x0, LBB0_38
LBB0_35:
	sub	w9, w20, w22
	add	x0, x9, x28
	str	x8, [x19]
	b	LBB0_39
LBB0_36:
	mov	w0, #-1
	b	LBB0_39
LBB0_37:
Lloh7:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh8:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
Lloh10:
	adrp	x9, _errno@GOTPAGE
Lloh11:
	ldr	x9, [x9, _errno@GOTPAGEOFF]
Lloh12:
	str	w8, [x9]
LBB0_38:
	mov	w0, #-2
LBB0_39:
                                        ; kill: def $w0 killed $w0 killed $x0
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotStr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_23-LBB0_20)>>2
	.byte	(LBB0_27-LBB0_20)>>2
	.byte	(LBB0_20-LBB0_20)>>2
	.byte	(LBB0_28-LBB0_20)>>2
	.byte	(LBB0_29-LBB0_20)>>2
	.byte	(LBB0_20-LBB0_20)>>2
	.byte	(LBB0_20-LBB0_20)>>2
	.byte	(LBB0_20-LBB0_20)>>2
	.byte	(LBB0_20-LBB0_20)>>2
	.byte	(LBB0_20-LBB0_20)>>2
	.byte	(LBB0_20-LBB0_20)>>2
	.byte	(LBB0_20-LBB0_20)>>2
	.byte	(LBB0_30-LBB0_20)>>2
	.byte	(LBB0_20-LBB0_20)>>2
	.byte	(LBB0_20-LBB0_20)>>2
	.byte	(LBB0_20-LBB0_20)>>2
	.byte	(LBB0_31-LBB0_20)>>2
	.byte	(LBB0_20-LBB0_20)>>2
	.byte	(LBB0_32-LBB0_20)>>2
	.byte	(LBB0_20-LBB0_20)>>2
	.byte	(LBB0_20-LBB0_20)>>2
	.byte	(LBB0_20-LBB0_20)>>2
	.byte	(LBB0_20-LBB0_20)>>2
	.byte	(LBB0_20-LBB0_20)>>2
	.byte	(LBB0_20-LBB0_20)>>2
	.byte	(LBB0_20-LBB0_20)>>2
	.byte	(LBB0_20-LBB0_20)>>2
	.byte	(LBB0_20-LBB0_20)>>2
	.byte	(LBB0_20-LBB0_20)>>2
	.byte	(LBB0_20-LBB0_20)>>2
	.byte	(LBB0_20-LBB0_20)>>2
	.byte	(LBB0_20-LBB0_20)>>2
	.byte	(LBB0_23-LBB0_20)>>2
	.byte	(LBB0_27-LBB0_20)>>2
	.byte	(LBB0_20-LBB0_20)>>2
	.byte	(LBB0_28-LBB0_20)>>2
	.byte	(LBB0_29-LBB0_20)>>2
	.byte	(LBB0_20-LBB0_20)>>2
	.byte	(LBB0_20-LBB0_20)>>2
	.byte	(LBB0_20-LBB0_20)>>2
	.byte	(LBB0_20-LBB0_20)>>2
	.byte	(LBB0_20-LBB0_20)>>2
	.byte	(LBB0_20-LBB0_20)>>2
	.byte	(LBB0_20-LBB0_20)>>2
	.byte	(LBB0_30-LBB0_20)>>2
	.byte	(LBB0_20-LBB0_20)>>2
	.byte	(LBB0_20-LBB0_20)>>2
	.byte	(LBB0_20-LBB0_20)>>2
	.byte	(LBB0_31-LBB0_20)>>2
	.byte	(LBB0_20-LBB0_20)>>2
	.byte	(LBB0_32-LBB0_20)>>2
                                        ; -- End function
	.comm	_SFRAG,8,3                      ; @SFRAG
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_errno,4,2                      ; @errno
	.comm	_ESC,4,2                        ; @ESC
.subsections_via_symbols
