	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cgetset                        ## -- Begin function cgetset
	.p2align	4, 0x90
_cgetset:                               ## @cgetset
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.4:
	movq	%rdi, %rbx
	callq	_strlen
	movq	_topreclen@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	leaq	1(%rax), %rdi
	callq	_malloc
	movq	_toprec@GOTPCREL(%rip), %rcx
	movq	%rax, (%rcx)
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movq	_gottoprec@GOTPCREL(%rip), %rcx
	movq	$0, (%rcx)
	movq	%rax, %rdi
	movq	%rbx, %rsi
	callq	_strcpy
	jmp	LBB0_7
LBB0_1:
	movq	_toprec@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_3
## %bb.2:
	callq	_free
LBB0_3:
	movq	$0, (%rbx)
	movq	_topreclen@GOTPCREL(%rip), %rax
	movq	$0, (%rax)
LBB0_7:
	xorl	%eax, %eax
	jmp	LBB0_8
LBB0_5:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_errno@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	movl	$-1, %eax
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_toprec,8,3                     ## @toprec
	.comm	_topreclen,8,3                  ## @topreclen
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_errno,4,2                      ## @errno
	.comm	_gottoprec,8,3                  ## @gottoprec
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cgetset                        ; -- Begin function cgetset
	.p2align	2
_cgetset:                               ; @cgetset
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	cbz	x0, LBB0_3
; %bb.1:
	mov	x19, x0
	bl	_strlen
Lloh0:
	adrp	x8, _topreclen@GOTPAGE
Lloh1:
	ldr	x8, [x8, _topreclen@GOTPAGEOFF]
Lloh2:
	str	x0, [x8]
	add	x0, x0, #1
	bl	_malloc
Lloh3:
	adrp	x8, _toprec@GOTPAGE
Lloh4:
	ldr	x8, [x8, _toprec@GOTPAGEOFF]
Lloh5:
	str	x0, [x8]
	cbz	x0, LBB0_6
; %bb.2:
Lloh6:
	adrp	x8, _gottoprec@GOTPAGE
Lloh7:
	ldr	x8, [x8, _gottoprec@GOTPAGEOFF]
Lloh8:
	str	xzr, [x8]
	mov	x1, x19
	bl	_strcpy
	mov	w0, #0
	b	LBB0_7
LBB0_3:
Lloh9:
	adrp	x19, _toprec@GOTPAGE
Lloh10:
	ldr	x19, [x19, _toprec@GOTPAGEOFF]
	ldr	x0, [x19]
	cbz	x0, LBB0_5
; %bb.4:
	bl	_free
LBB0_5:
	mov	w0, #0
	str	xzr, [x19]
Lloh11:
	adrp	x8, _topreclen@GOTPAGE
Lloh12:
	ldr	x8, [x8, _topreclen@GOTPAGEOFF]
Lloh13:
	str	xzr, [x8]
	b	LBB0_7
LBB0_6:
Lloh14:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
Lloh17:
	adrp	x9, _errno@GOTPAGE
Lloh18:
	ldr	x9, [x9, _errno@GOTPAGEOFF]
Lloh19:
	str	w8, [x9]
	mov	w0, #-1
LBB0_7:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotStr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotStr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotStr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotStr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotStr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_toprec,8,3                     ; @toprec
	.comm	_topreclen,8,3                  ; @topreclen
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_errno,4,2                      ; @errno
	.comm	_gottoprec,8,3                  ; @gottoprec
.subsections_via_symbols
