	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_command
_get_command:                           ## @get_command
	.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	%rsi, %r15
	movq	_MAX_COMMAND_LINE@GOTPCREL(%rip), %r14
	cmpl	$0, (%r14)
	jle	LBB0_6
## %bb.1:
	movq	_EOF@GOTPCREL(%rip), %r12
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	xorl	%eax, %eax
	callq	_getchar
	cmpl	$10, %eax
	je	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	(%r12), %eax
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r15), %rcx
	movl	%eax, (%rcx,%rbx,4)
	incq	%rbx
	movslq	(%r14), %rax
	cmpq	%rax, %rbx
	jl	LBB0_2
LBB0_5:
	testl	%ebx, %ebx
	jne	LBB0_9
LBB0_6:
	movq	_stdin@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_feof
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:
	movl	(%rbx), %edi
	callq	_clearerr
	movq	(%r15), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_strcpy
	movl	$4, %ebx
	jmp	LBB0_9
LBB0_7:
	xorl	%ebx, %ebx
LBB0_9:
	movl	(%r14), %eax
	cmpl	%eax, %ebx
	jne	LBB0_14
## %bb.10:
	decl	%ebx
	movq	_EOF@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	xorl	%eax, %eax
	callq	_getchar
	incl	%ebx
	cmpl	$10, %eax
	je	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_11 Depth=1
	cmpl	(%r12), %eax
	jne	LBB0_11
LBB0_13:
	movl	(%r14), %eax
LBB0_14:
	cmpl	%eax, %ebx
	jle	LBB0_16
## %bb.15:
	leaq	L_str(%rip), %rdi
	callq	_puts
	xorl	%ebx, %ebx
LBB0_16:
	movq	(%r15), %rax
	movslq	%ebx, %rcx
	movl	$0, (%rax,%rcx,4)
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_COMMAND_LINE,4,2           ## @MAX_COMMAND_LINE
	.comm	_EOF,4,2                        ## @EOF
	.comm	_stdin,4,2                      ## @stdin
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"quit"

L_str:                                  ## @str
	.asciz	"command line too long."

	.no_dead_strip	_get_command
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_command
_get_command:                           ; @get_command
	.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
Lloh0:
	adrp	x20, _MAX_COMMAND_LINE@GOTPAGE
Lloh1:
	ldr	x20, [x20, _MAX_COMMAND_LINE@GOTPAGEOFF]
	ldr	w8, [x20]
Lloh2:
	adrp	x21, _EOF@GOTPAGE
Lloh3:
	ldr	x21, [x21, _EOF@GOTPAGEOFF]
	cmp	w8, #1
	b.lt	LBB0_6
; %bb.1:
	mov	x22, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	bl	_getchar
	cmp	w0, #10
	b.eq	LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w8, [x21]
	cmp	w0, w8
	b.eq	LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x19]
	str	w0, [x8, x22, lsl #2]
	add	x22, x22, #1
	ldrsw	x8, [x20]
	cmp	x22, x8
	b.lt	LBB0_2
LBB0_5:
	cbnz	w22, LBB0_9
LBB0_6:
Lloh4:
	adrp	x22, _stdin@GOTPAGE
Lloh5:
	ldr	x22, [x22, _stdin@GOTPAGEOFF]
	ldr	w0, [x22]
	bl	_feof
	cbz	x0, LBB0_8
; %bb.7:
	ldr	w0, [x22]
	bl	_clearerr
	ldr	x0, [x19]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	bl	_strcpy
	mov	w22, #4
	b	LBB0_9
LBB0_8:
	mov	w22, #0
LBB0_9:
	ldr	w8, [x20]
	cmp	w22, w8
	b.ne	LBB0_14
; %bb.10:
	sub	w22, w22, #1
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	bl	_getchar
	add	w22, w22, #1
	cmp	w0, #10
	b.eq	LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	w8, [x21]
	cmp	w0, w8
	b.ne	LBB0_11
LBB0_13:
	ldr	w8, [x20]
LBB0_14:
	cmp	w22, w8
	b.le	LBB0_16
; %bb.15:
Lloh8:
	adrp	x0, l_str@PAGE
Lloh9:
	add	x0, x0, l_str@PAGEOFF
	bl	_puts
	mov	w22, #0
LBB0_16:
	ldr	x0, [x19]
	str	wzr, [x0, w22, sxtw #2]
	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
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_COMMAND_LINE,4,2           ; @MAX_COMMAND_LINE
	.comm	_EOF,4,2                        ; @EOF
	.comm	_stdin,4,2                      ; @stdin
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"quit"

l_str:                                  ; @str
	.asciz	"command line too long."

	.no_dead_strip	_get_command
.subsections_via_symbols
