	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function eap_fast_read_line
_eap_fast_read_line:                    ## @eap_fast_read_line
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	incl	40(%rdi)
	movq	%rsi, %r14
	movq	32(%rdi), %rdx
	testq	%rdx, %rdx
	je	LBB0_3
## %bb.1:
	movq	(%rbx), %rdi
	movq	8(%rbx), %rsi
	callq	_fgets
	testq	%rax, %rax
	jne	LBB0_9
## %bb.2:
	movl	$-1, %eax
	jmp	LBB0_19
LBB0_3:
	movq	16(%rbx), %rsi
	movq	24(%rbx), %r12
	movl	$-1, %eax
	cmpq	%r12, %rsi
	jae	LBB0_19
## %bb.4:
	movq	%r12, %rcx
	subq	%rsi, %rcx
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	cmpb	$10, (%rsi,%rax)
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	incq	%rax
	cmpq	%rax, %rcx
	jne	LBB0_5
	jmp	LBB0_8
LBB0_7:
	addq	%rsi, %rax
	movq	%rax, %r12
LBB0_8:
	movq	%r12, %rax
	subq	%rsi, %rax
	movq	(%rbx), %rdi
	movq	8(%rbx), %rcx
	leaq	-1(%rcx), %r15
	cmpq	%rcx, %rax
	cmovbq	%rax, %r15
	movq	%r15, %rdx
	callq	_os_memcpy
	movq	(%rbx), %rax
	movb	$0, (%rax,%r15)
	incq	%r12
	movq	%r12, 16(%rbx)
LBB0_9:
	movq	(%rbx), %rax
	movq	8(%rbx), %rcx
	movb	$0, -1(%rcx,%rax)
	movq	(%rbx), %rdi
	movq	%rdi, %rax
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movzbl	(%rax), %ecx
	testb	%cl, %cl
	je	LBB0_14
## %bb.11:                              ##   in Loop: Header=BB0_10 Depth=1
	cmpb	$13, %cl
	je	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_10 Depth=1
	cmpb	$10, %cl
	je	LBB0_13
## %bb.16:                              ##   in Loop: Header=BB0_10 Depth=1
	incq	%rax
	jmp	LBB0_10
LBB0_13:
	movb	$0, (%rax)
	movq	(%rbx), %rdi
LBB0_14:
	movl	$61, %esi
	callq	_os_strchr
	movq	%rax, %rcx
	xorl	%eax, %eax
	testq	%rcx, %rcx
	je	LBB0_15
## %bb.17:
	movq	%rcx, %rdx
	incq	%rdx
	movb	$0, (%rcx)
	jmp	LBB0_18
LBB0_15:
	xorl	%edx, %edx
LBB0_18:
	movq	%rdx, (%r14)
LBB0_19:
                                        ## kill: def $eax killed $eax killed $rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_eap_fast_read_line
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function eap_fast_read_line
_eap_fast_read_line:                    ; @eap_fast_read_line
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x1
	mov	x20, x0
	ldr	w8, [x0, #40]
	add	w8, w8, #1
	str	w8, [x0, #40]
	ldr	x2, [x0, #32]
	cbz	x2, LBB0_2
; %bb.1:
	ldp	x0, x1, [x20]
	bl	_fgets
	cbnz	x0, LBB0_9
	b	LBB0_6
LBB0_2:
	ldp	x1, x22, [x20, #16]
	cmp	x1, x22
	b.hs	LBB0_6
; %bb.3:
	mov	x8, #0
	sub	x9, x22, x1
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w10, [x1, x8]
	cmp	w10, #10
	b.eq	LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	add	x8, x8, #1
	cmp	x9, x8
	b.ne	LBB0_4
	b	LBB0_8
LBB0_6:
	mov	w0, #-1
	b	LBB0_16
LBB0_7:
	add	x22, x1, x8
LBB0_8:
	ldp	x0, x8, [x20]
	sub	x9, x8, #1
	sub	x10, x22, x1
	cmp	x10, x8
	csel	x21, x10, x9, lo
	mov	x2, x21
	bl	_os_memcpy
	ldr	x8, [x20]
	strb	wzr, [x8, x21]
	add	x8, x22, #1
	str	x8, [x20, #16]
LBB0_9:
	ldp	x8, x9, [x20]
	add	x8, x9, x8
	sturb	wzr, [x8, #-1]
	ldr	x0, [x20]
	mov	x8, x0
	ldrb	w9, [x8]
	cbz	w9, LBB0_13
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	cmp	w9, #13
	ccmp	w9, #10, #4, ne
	b.eq	LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	add	x8, x8, #1
	ldrb	w9, [x8]
	cbnz	w9, LBB0_10
	b	LBB0_13
LBB0_12:
	strb	wzr, [x8]
	ldr	x0, [x20]
LBB0_13:
	mov	w1, #61
	bl	_os_strchr
	mov	x8, x0
	cbz	x0, LBB0_15
; %bb.14:
	strb	wzr, [x8], #1
LBB0_15:
	mov	w0, #0
	str	x8, [x19]
LBB0_16:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_eap_fast_read_line
.subsections_via_symbols
