	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_line
_get_line:                              ## @get_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	%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
	movl	%edx, %r14d
	movq	%rsi, %rbx
	movl	%edi, %r12d
	movq	$0, -48(%rbp)
	leaq	-52(%rbp), %rdi
	callq	_sigemptyset
	movq	_SIG_DFL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -56(%rbp)
	movq	_SIGALRM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%r13d, %r13d
	leaq	-56(%rbp), %rsi
	xorl	%edx, %edx
	callq	_sigaction
LBB0_1:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_5 Depth 2
	movl	$10, %edi
	callq	_alarm
	movl	%r14d, %r15d
	movl	%r14d, %edx
	subl	%r13d, %edx
	movl	%r12d, %r14d
	movl	%r12d, %edi
	movq	%rbx, %rsi
	callq	_read
	movl	%eax, %r12d
	xorl	%edi, %edi
	callq	_alarm
	testl	%r12d, %r12d
	je	LBB0_10
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	js	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	leal	(%r12,%r13), %eax
	testl	%r12d, %r12d
	movl	$1, %ecx
	cmovlel	%r12d, %ecx
	subl	%ecx, %eax
	incl	%eax
	notl	%r12d
	addl	%ecx, %r12d
	xorl	%ecx, %ecx
	movl	$9217, %esi                     ## imm = 0x2401
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=2
	incq	%rbx
	decl	%ecx
	cmpl	%ecx, %r12d
	je	LBB0_8
LBB0_5:                                 ##   Parent Loop BB0_1 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movzbl	(%rbx), %edx
	cmpq	$13, %rdx
	ja	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=2
	btq	%rdx, %rsi
	jae	LBB0_7
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_1 Depth=1
	movl	%eax, %r13d
	cmpl	%r15d, %eax
	movl	%r14d, %r12d
	movl	%r15d, %r14d
	jl	LBB0_1
	jmp	LBB0_11
LBB0_9:
	subl	%ecx, %r13d
LBB0_10:
	movl	%r13d, %eax
LBB0_11:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movl	$-1, %eax
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_SIG_DFL,4,2                    ## @SIG_DFL
	.comm	_SIGALRM,4,2                    ## @SIGALRM
	.no_dead_strip	_get_line
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_line
_get_line:                              ; @get_line
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x19, x2
	mov	x20, x1
	mov	x21, x0
	str	xzr, [sp, #8]
	mov	x8, sp
	orr	x0, x8, #0x4
	bl	_sigemptyset
Lloh0:
	adrp	x8, _SIG_DFL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SIG_DFL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [sp]
Lloh3:
	adrp	x8, _SIGALRM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SIGALRM@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	mov	x1, sp
	mov	x2, #0
	bl	_sigaction
	mov	w23, #0
	mov	w24, #1
	mov	w25, #9217
LBB0_1:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_4 Depth 2
	mov	w0, #10
	bl	_alarm
	sub	w2, w19, w23
	mov	x0, x21
	mov	x1, x20
	bl	_read
	mov	x22, x0
	mov	w0, #0
	bl	_alarm
	cbz	w22, LBB0_7
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	tbnz	w22, #31, LBB0_9
; %bb.3:                                ;   in Loop: Header=BB0_1 Depth=1
	add	w8, w22, #1
	cmp	w22, #1
	csinc	w9, w22, wzr, lt
	add	w10, w8, w23
	sub	w0, w10, w9
	sub	w8, w8, w9
LBB0_4:                                 ;   Parent Loop BB0_1 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldrb	w9, [x20]
	cmp	w9, #13
	lsl	w9, w24, w9
	and	w9, w9, w25
	ccmp	w9, #0, #4, ls
	b.ne	LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=2
	add	w23, w23, #1
	add	x20, x20, #1
	subs	w8, w8, #1
	b.ne	LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_1 Depth=1
	mov	x23, x0
	cmp	w0, w19
	b.lt	LBB0_1
	b	LBB0_8
LBB0_7:
	mov	x0, x23
LBB0_8:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_9:
	mov	w0, #-1
	b	LBB0_8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_SIG_DFL,4,2                    ; @SIG_DFL
	.comm	_SIGALRM,4,2                    ; @SIGALRM
	.no_dead_strip	_get_line
.subsections_via_symbols
