	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_getdelim                       ## -- Begin function getdelim
	.p2align	4, 0x90
_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, %r12
	movl	%edx, -60(%rbp)                 ## 4-byte Spill
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	%rcx, %rdi
	callq	_FLOCKFILE_CANCELSAFE
	movq	%r12, %rdi
	movl	$-1, %esi
	callq	_ORIENT
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	testq	%r14, %r14
	je	LBB0_4
## %bb.1:
	testq	%rbx, %rbx
	je	LBB0_4
## %bb.2:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	cmpq	$0, (%rax)
	je	LBB0_8
## %bb.3:
	cmpq	$0, (%r12)
	jg	LBB0_13
	jmp	LBB0_9
LBB0_4:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_errno@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
LBB0_5:
	movq	___SERR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 8(%r12)
LBB0_6:
	movq	$-1, -56(%rbp)
LBB0_7:
	xorl	%eax, %eax
	callq	_FUNLOCKFILE_CANCELSAFE
	movq	-56(%rbp), %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	$0, (%rbx)
	cmpq	$0, (%r12)
	jg	LBB0_13
LBB0_9:
	movq	%r12, %rdi
	callq	___srefill
	testq	%rax, %rax
	je	LBB0_13
## %bb.10:
	movq	%r12, %rdi
	callq	___sfeof
	testl	%eax, %eax
	je	LBB0_5
## %bb.11:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	$1, %esi
	movq	%rbx, %rdx
	callq	_expandtofit
	testq	%rax, %rax
	jne	LBB0_5
## %bb.12:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movb	$0, (%rax)
	jmp	LBB0_6
LBB0_13:
	movq	$0, -56(%rbp)
	.p2align	4, 0x90
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %r15
	movq	16(%r12), %r14
	movq	%r14, %rdi
	movl	-60(%rbp), %esi                 ## 4-byte Reload
	movq	%r15, %rdx
	callq	_memchr
	testq	%rax, %rax
	jne	LBB0_18
## %bb.15:                              ##   in Loop: Header=BB0_14 Depth=1
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	leaq	-56(%rbp), %rsi
	movq	%rbx, %rdx
	movq	%r14, %rcx
	movl	%r15d, %r8d
	callq	_sappend
	testq	%rax, %rax
	jne	LBB0_5
## %bb.16:                              ##   in Loop: Header=BB0_14 Depth=1
	movq	%r12, %rdi
	callq	___srefill
	testq	%rax, %rax
	je	LBB0_14
## %bb.17:
	movq	%r12, %rdi
	callq	___sfeof
	testl	%eax, %eax
	jne	LBB0_20
	jmp	LBB0_5
LBB0_18:
	movq	%rax, %r13
	addq	$4, %r13
	movq	%r13, %r8
	subq	%r14, %r8
	shrq	$2, %r8
	leaq	-56(%rbp), %rsi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rdx
	movq	%r14, %rcx
                                        ## kill: def $r8d killed $r8d killed $r8
	callq	_sappend
	testq	%rax, %rax
	jne	LBB0_5
## %bb.19:
	movq	%r13, %rax
	subq	16(%r12), %rax
	sarq	$2, %rax
	subq	%rax, (%r12)
	movq	%r13, 16(%r12)
LBB0_20:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movq	-56(%rbp), %rcx
	movb	$0, (%rax,%rcx)
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_errno,4,2                      ## @errno
	.comm	___SERR,4,2                     ## @__SERR
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_getdelim                       ; -- Begin function getdelim
	.p2align	2
_getdelim:                              ; @getdelim
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x19, x3
	mov	x22, x2
	mov	x21, x1
	mov	x20, x0
	mov	x0, x3
	bl	_FLOCKFILE_CANCELSAFE
	mov	x0, x19
	mov	w1, #-1
	bl	_ORIENT
	cbz	x20, LBB0_10
; %bb.1:
	cbz	x21, LBB0_10
; %bb.2:
	ldr	x8, [x20]
	cbnz	x8, LBB0_4
; %bb.3:
	str	xzr, [x21]
LBB0_4:
	ldr	x8, [x19]
	cmp	x8, #0
	b.le	LBB0_14
LBB0_5:
	str	xzr, [sp, #8]
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x23, [x19, #16]
	ldr	x24, [x19]
	mov	x0, x23
	mov	x1, x22
	mov	x2, x24
	bl	_memchr
	cbnz	x0, LBB0_18
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	add	x1, sp, #8
	mov	x0, x20
	mov	x2, x21
	mov	x3, x23
	mov	x4, x24
	bl	_sappend
	cbnz	x0, LBB0_11
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x19
	bl	___srefill
	cbz	x0, LBB0_6
; %bb.9:
	mov	x0, x19
	bl	___sfeof
	cbnz	w0, LBB0_20
	b	LBB0_11
LBB0_10:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _errno@GOTPAGE
Lloh4:
	ldr	x9, [x9, _errno@GOTPAGEOFF]
Lloh5:
	str	w8, [x9]
LBB0_11:
Lloh6:
	adrp	x8, ___SERR@GOTPAGE
Lloh7:
	ldr	x8, [x8, ___SERR@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	ldr	w9, [x19, #8]
	orr	w8, w9, w8
	str	w8, [x19, #8]
LBB0_12:
	mov	x8, #-1
	str	x8, [sp, #8]
LBB0_13:
	bl	_FUNLOCKFILE_CANCELSAFE
	ldr	x0, [sp, #8]
	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
	add	sp, sp, #80
	ret
LBB0_14:
	mov	x0, x19
	bl	___srefill
	cbz	x0, LBB0_5
; %bb.15:
	mov	x0, x19
	bl	___sfeof
	cbz	w0, LBB0_11
; %bb.16:
	mov	x0, x20
	mov	w1, #1
	mov	x2, x21
	bl	_expandtofit
	cbnz	x0, LBB0_11
; %bb.17:
	ldr	x8, [x20]
	strb	wzr, [x8]
	b	LBB0_12
LBB0_18:
	add	x22, x0, #4
	sub	x8, x22, x23
	lsr	x4, x8, #2
	add	x1, sp, #8
	mov	x0, x20
	mov	x2, x21
	mov	x3, x23
                                        ; kill: def $w4 killed $w4 killed $x4
	bl	_sappend
	cbnz	x0, LBB0_11
; %bb.19:
	ldr	x8, [x19, #16]
	sub	x8, x22, x8
	ldr	x9, [x19]
	sub	x8, x9, x8, asr #2
	str	x8, [x19]
	str	x22, [x19, #16]
LBB0_20:
	ldr	x8, [x20]
	ldr	x9, [sp, #8]
	strb	wzr, [x8, x9]
	b	LBB0_13
	.loh AdrpLdrGotStr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_errno,4,2                      ; @errno
	.comm	___SERR,4,2                     ; @__SERR
.subsections_via_symbols
