	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function getdelim
_getdelim:                              ## @getdelim
	.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	%rcx, -48(%rbp)                 ## 8-byte Spill
	movl	%edx, -52(%rbp)                 ## 4-byte Spill
	movq	%rsi, %r13
	movq	%rdi, %r12
	movq	(%rdi), %r15
	testq	%r15, %r15
	je	LBB0_2
## %bb.1:
	movq	(%r13), %rbx
	testq	%rbx, %rbx
	jne	LBB0_4
LBB0_2:
	movq	_BUFSIZ@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	%rbx, %rdi
	callq	_malloc
	movq	%rax, (%r12)
	testq	%rax, %rax
	je	LBB0_17
## %bb.3:
	movq	%rax, %r15
	movq	%rbx, (%r13)
LBB0_4:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_fgetc
	cmpl	$-1, %eax
	je	LBB0_11
## %bb.5:
	addq	%r15, %rbx
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_7 Depth=1
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_fgetc
	movq	%r14, %r15
	cmpl	$-1, %eax
	je	LBB0_12
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	leaq	1(%r15), %r14
	movb	%al, (%r15)
	cmpl	-52(%rbp), %eax                 ## 4-byte Folded Reload
	je	LBB0_16
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	addq	$3, %r15
	cmpq	%rbx, %r15
	jb	LBB0_6
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	(%r13), %rbx
	addq	%rbx, %rbx
	movq	(%r12), %r15
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_realloc
	testq	%rax, %rax
	je	LBB0_17
## %bb.10:                              ##   in Loop: Header=BB0_7 Depth=1
	subl	%r15d, %r14d
	movq	%rax, (%r12)
	movq	%rbx, (%r13)
	addq	%rax, %rbx
	movslq	%r14d, %r14
	addq	%rax, %r14
	jmp	LBB0_6
LBB0_17:
	movl	$-1, %eax
	jmp	LBB0_18
LBB0_11:
	movq	%r15, %r14
LBB0_12:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_feof
	movq	%rax, %rcx
	movl	$-1, %eax
	testq	%rcx, %rcx
	je	LBB0_18
## %bb.13:
	movl	(%r12), %edx
	movl	%r14d, %ecx
	subl	%edx, %ecx
	je	LBB0_18
## %bb.14:
	movb	$0, (%r14)
	movl	%ecx, %eax
	jmp	LBB0_18
LBB0_16:
	movb	$0, (%r14)
	subl	(%r12), %r14d
	movl	%r14d, %eax
LBB0_18:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BUFSIZ,8,3                     ## @BUFSIZ
	.no_dead_strip	_getdelim
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function getdelim
_getdelim:                              ; @getdelim
	.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	x20, x3
	mov	x21, x2
	mov	x22, x1
	mov	x19, x0
	ldr	x23, [x0]
	cbz	x23, LBB0_2
; %bb.1:
	ldr	x24, [x22]
	cbnz	x24, LBB0_4
LBB0_2:
Lloh0:
	adrp	x8, _BUFSIZ@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BUFSIZ@GOTPAGEOFF]
Lloh2:
	ldr	x24, [x8]
	mov	x0, x24
	bl	_malloc
	str	x0, [x19]
	cbz	x0, LBB0_15
; %bb.3:
	mov	x23, x0
	str	x24, [x22]
LBB0_4:
	mov	x0, x20
	bl	_fgetc
	cmn	w0, #1
	b.eq	LBB0_11
; %bb.5:
	add	x24, x23, x24
	mov	x25, x23
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x20
	bl	_fgetc
	mov	x23, x25
	cmn	w0, #1
	b.eq	LBB0_12
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	strb	w0, [x25], #1
	cmp	w0, w21
	b.eq	LBB0_16
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	add	x8, x23, #3
	cmp	x8, x24
	b.lo	LBB0_6
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	x8, [x22]
	lsl	x23, x8, #1
	ldr	x24, [x19]
	mov	x0, x24
	mov	x1, x23
	bl	_realloc
	cbz	x0, LBB0_15
; %bb.10:                               ;   in Loop: Header=BB0_7 Depth=1
	sub	w8, w25, w24
	str	x0, [x19]
	str	x23, [x22]
	add	x24, x0, x23
	add	x25, x0, w8, sxtw
	b	LBB0_6
LBB0_11:
	mov	x25, x23
LBB0_12:
	mov	x0, x20
	bl	_feof
	cbz	x0, LBB0_15
; %bb.13:
	ldr	w8, [x19]
	subs	w0, w25, w8
	b.eq	LBB0_15
; %bb.14:
	strb	wzr, [x25]
	b	LBB0_17
LBB0_15:
	mov	w0, #-1
	b	LBB0_17
LBB0_16:
	strb	wzr, [x25]
	ldr	w8, [x19]
	sub	w0, w25, w8
LBB0_17:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_BUFSIZ,8,3                     ; @BUFSIZ
	.no_dead_strip	_getdelim
.subsections_via_symbols
