	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fgetln                         ## -- Begin function fgetln
	.p2align	4, 0x90
_fgetln:                                ## @fgetln
	.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	%rsi, %r14
	movq	%rdi, %r12
	callq	_FLOCKFILE_CANCELSAFE
	movq	%r12, %rdi
	movl	$-1, %esi
	callq	_ORIENT
	movq	(%r12), %rdx
	testq	%rdx, %rdx
	je	LBB0_1
LBB0_3:
	movq	8(%r12), %rdi
	movl	$10, %esi
	callq	_memchr
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	incq	%rax
	movq	8(%r12), %rbx
	movq	%rax, %rcx
	subq	%rbx, %rcx
	movq	%rcx, (%r14)
	movq	___SMOD@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	%edx, 16(%r12)
	subq	%rcx, (%r12)
	movq	%rax, 8(%r12)
	jmp	LBB0_16
LBB0_1:
	movq	%r12, %rdi
	callq	___srefill
	testq	%rax, %rax
	je	LBB0_2
## %bb.17:
	movq	$0, (%r14)
	jmp	LBB0_15
LBB0_5:
	movq	(%r12), %r15
	leaq	80(%r15), %rsi
	movq	%r12, %rdi
	callq	___slbexpand
	testq	%rax, %rax
	je	LBB0_6
LBB0_14:
	movq	$0, (%r14)
	movq	___SERR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 16(%r12)
LBB0_15:
	xorl	%ebx, %ebx
LBB0_16:
	xorl	%eax, %eax
	callq	_FUNLOCKFILE_CANCELSAFE
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	(%r12), %rdx
	jmp	LBB0_3
LBB0_6:
	xorl	%edi, %edi
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdx
	subq	%rdi, %rdx
	addq	24(%r12), %rdi
	movq	8(%r12), %rsi
	callq	_memcpy
	movq	%r12, %rdi
	callq	___srefill
	testq	%rax, %rax
	jne	LBB0_8
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=1
	movq	(%r12), %rdx
	movq	8(%r12), %rdi
	movl	$10, %esi
	callq	_memchr
	testq	%rax, %rax
	jne	LBB0_10
## %bb.13:                              ##   in Loop: Header=BB0_7 Depth=1
	movq	(%r12), %rbx
	leaq	(%rbx,%r15), %rsi
	addq	$80, %rsi
	addq	%r15, %rbx
	movq	%r12, %rdi
	callq	___slbexpand
	movq	%r15, %rdi
	movq	%rbx, %r15
	testq	%rax, %rax
	je	LBB0_7
	jmp	LBB0_14
LBB0_8:
	movq	%r12, %rdi
	callq	___sfeof
	testq	%rax, %rax
	jne	LBB0_12
	jmp	LBB0_14
LBB0_10:
	movq	%rax, %rbx
	incq	%rbx
	movq	%rbx, %r13
	subq	8(%r12), %r13
	leaq	(%r15,%r13), %rsi
	movq	%r12, %rdi
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	callq	___slbexpand
	testq	%rax, %rax
	jne	LBB0_14
## %bb.11:
	addq	24(%r12), %r15
	movq	8(%r12), %rsi
	movq	%r15, %rdi
	movq	%r13, %rdx
	callq	_memcpy
	subq	%r13, (%r12)
	movq	%rbx, 8(%r12)
	movq	-48(%rbp), %r15                 ## 8-byte Reload
LBB0_12:
	movq	%r15, (%r14)
	movq	24(%r12), %rbx
	jmp	LBB0_16
	.cfi_endproc
                                        ## -- End function
	.comm	___SMOD,4,2                     ## @__SMOD
	.comm	___SERR,4,2                     ## @__SERR
	.comm	_OPTIMISTIC,8,3                 ## @OPTIMISTIC
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fgetln                         ; -- Begin function fgetln
	.p2align	2
_fgetln:                                ; @fgetln
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x20, x1
	mov	x19, x0
	bl	_FLOCKFILE_CANCELSAFE
	mov	x0, x19
	mov	w1, #-1
	bl	_ORIENT
	ldr	x2, [x19]
	cbz	x2, LBB0_3
LBB0_1:
	ldr	x0, [x19, #8]
	mov	w1, #10
	bl	_memchr
	cbz	x0, LBB0_5
; %bb.2:
	add	x8, x0, #1
	ldr	x21, [x19, #8]
	sub	x9, x8, x21
	str	x9, [x20]
Lloh0:
	adrp	x10, ___SMOD@GOTPAGE
Lloh1:
	ldr	x10, [x10, ___SMOD@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x10]
	ldr	w11, [x19, #16]
	orr	w10, w11, w10
	str	w10, [x19, #16]
	ldr	x10, [x19]
	sub	x9, x10, x9
	stp	x9, x8, [x19]
	b	LBB0_7
LBB0_3:
	mov	x0, x19
	bl	___srefill
	cbz	x0, LBB0_8
; %bb.4:
	mov	x21, #0
	str	xzr, [x20]
	b	LBB0_7
LBB0_5:
	ldr	x23, [x19]
	add	x1, x23, #80
	mov	x0, x19
	bl	___slbexpand
	cbz	x0, LBB0_9
LBB0_6:
	mov	x21, #0
	str	xzr, [x20]
Lloh3:
	adrp	x8, ___SERR@GOTPAGE
Lloh4:
	ldr	x8, [x8, ___SERR@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	ldr	w9, [x19, #16]
	orr	w8, w9, w8
	str	w8, [x19, #16]
LBB0_7:
	bl	_FUNLOCKFILE_CANCELSAFE
	mov	x0, x21
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_8:
	ldr	x2, [x19]
	b	LBB0_1
LBB0_9:
	mov	x8, #0
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x19, #24]
	add	x0, x9, x8
	ldr	x1, [x19, #8]
	sub	x2, x23, x8
	bl	_memcpy
	mov	x0, x19
	bl	___srefill
	cbnz	x0, LBB0_13
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	ldp	x2, x0, [x19]
	mov	w1, #10
	bl	_memchr
	cbnz	x0, LBB0_14
; %bb.12:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	x8, [x19]
	add	x21, x8, x23
	add	x1, x21, #80
	mov	x0, x19
	bl	___slbexpand
	mov	x8, x23
	mov	x23, x21
	cbz	x0, LBB0_10
	b	LBB0_6
LBB0_13:
	mov	x0, x19
	bl	___sfeof
	cbnz	x0, LBB0_16
	b	LBB0_6
LBB0_14:
	add	x24, x0, #1
	ldr	x8, [x19, #8]
	sub	x22, x24, x8
	add	x21, x22, x23
	mov	x0, x19
	mov	x1, x21
	bl	___slbexpand
	cbnz	x0, LBB0_6
; %bb.15:
	ldr	x8, [x19, #24]
	add	x0, x8, x23
	ldr	x1, [x19, #8]
	mov	x2, x22
	bl	_memcpy
	ldr	x8, [x19]
	sub	x8, x8, x22
	stp	x8, x24, [x19]
	mov	x23, x21
LBB0_16:
	str	x23, [x20]
	ldr	x21, [x19, #24]
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	___SMOD,4,2                     ; @__SMOD
	.comm	___SERR,4,2                     ; @__SERR
	.comm	_OPTIMISTIC,8,3                 ; @OPTIMISTIC
.subsections_via_symbols
