	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cgetustr                       ## -- Begin function cgetustr
	.p2align	4, 0x90
_cgetustr:                              ## @cgetustr
	.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	%rdx, %r12
	movl	$61, %edx
	callq	_cgetcap
	testq	%rax, %rax
	je	LBB0_11
## %bb.1:
	movq	%rax, %r15
	movq	_SFRAG@GOTPCREL(%rip), %r14
	movq	(%r14), %rbx
	movq	%rbx, %rdi
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_12
## %bb.2:
	movq	%rax, %r13
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
	movq	(%r14), %rdx
	movq	%rax, %r12
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	(%r15,%r14), %eax
	testb	%al, %al
	je	LBB0_8
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpb	$58, %al
	je	LBB0_8
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movb	%al, (%r13,%r14)
	incq	%r14
	cmpq	%r14, %rbx
	jne	LBB0_3
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	leaq	(%rdx,%r13), %rsi
	subq	%r12, %rsi
	addq	%r14, %rsi
	movq	%r12, %rdi
	movq	%rdx, %rbx
	callq	_reallocf
	movq	%rbx, %rdx
	movq	%rax, %rcx
	subq	%r12, %r13
	addq	%rax, %r13
	addq	%r14, %r13
	addq	%r14, %r15
	movl	$-2, %eax
	movq	%rcx, %r12
	testq	%rcx, %rcx
	je	LBB0_14
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	xorl	%r14d, %r14d
	jmp	LBB0_3
LBB0_8:
	movb	$0, (%r13,%r14)
	decq	%rbx
	movq	%r12, %rax
	cmpq	%r14, %rbx
	je	LBB0_10
## %bb.9:
	movq	%r13, %rax
	subq	%r12, %rax
	leaq	(%rax,%r14), %rsi
	incq	%rsi
	movq	%r12, %rdi
	callq	_reallocf
	testq	%rax, %rax
	je	LBB0_13
LBB0_10:
	subl	%r12d, %r13d
	addq	%r14, %r13
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, (%rcx)
	movl	%r13d, %eax
	jmp	LBB0_14
LBB0_11:
	movl	$-1, %eax
	jmp	LBB0_14
LBB0_12:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_errno@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
LBB0_13:
	movl	$-2, %eax
LBB0_14:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SFRAG,8,3                      ## @SFRAG
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_errno,4,2                      ## @errno
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cgetustr                       ; -- Begin function cgetustr
	.p2align	2
_cgetustr:                              ; @cgetustr
	.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	w2, #61
	bl	_cgetcap
	cbz	x0, LBB0_11
; %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_12
; %bb.2:
	mov	x20, x0
	ldr	x25, [x22]
	mov	x22, x0
	mov	x24, #0
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w8, [x21, x24]
	cbz	w8, LBB0_8
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	cmp	w8, #58
	b.eq	LBB0_8
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	strb	w8, [x20, x24]
	add	x24, x24, #1
	cmp	x23, x24
	b.ne	LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x8, x25, x20
	sub	x8, x8, x22
	add	x1, x8, x24
	mov	x0, x22
	bl	_reallocf
	mov	x8, x0
	sub	x9, x20, x22
	add	x9, x0, x9
	add	x20, x9, x24
	add	x21, x21, x24
	mov	w0, #-2
	mov	x23, x25
	mov	x22, x8
	cbz	x8, LBB0_14
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x24, #0
	b	LBB0_3
LBB0_8:
	strb	wzr, [x20, x24]
	sub	x9, x23, #1
	mov	x8, x22
	cmp	x9, x24
	b.eq	LBB0_10
; %bb.9:
	sub	x8, x20, x22
	add	x8, x8, x24
	add	x1, x8, #1
	mov	x0, x22
	bl	_reallocf
	mov	x8, x0
	cbz	x0, LBB0_13
LBB0_10:
	sub	w9, w20, w22
	add	x0, x9, x24
	str	x8, [x19]
	b	LBB0_14
LBB0_11:
	mov	w0, #-1
	b	LBB0_14
LBB0_12:
Lloh2:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x9, _errno@GOTPAGE
Lloh6:
	ldr	x9, [x9, _errno@GOTPAGEOFF]
Lloh7:
	str	w8, [x9]
LBB0_13:
	mov	w0, #-2
LBB0_14:
                                        ; kill: def $w0 killed $w0 killed $x0
	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 AdrpLdrGotStr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_SFRAG,8,3                      ; @SFRAG
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_errno,4,2                      ; @errno
.subsections_via_symbols
