	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function chomp_line
_chomp_line:                            ## @chomp_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
	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, %r15
	movq	(%rdi), %r13
	cmpq	$0, (%rsi)
	je	LBB0_4
## %bb.1:
	leaq	1(%r13), %rbx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movsbl	(%r13), %edi
	callq	_isspace
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	incq	%r13
	movl	(%r15), %eax
	movl	%ebx, %ecx
	subl	%eax, %ecx
	incq	%rbx
	cmpq	(%r14), %rcx
	jb	LBB0_2
LBB0_4:
	cmpb	$35, (%r13)
	jne	LBB0_6
## %bb.5:
	movq	(%r15), %rax
	movb	$0, (%rax)
	movq	$0, (%r14)
	xorl	%eax, %eax
	jmp	LBB0_17
LBB0_6:
	movq	(%r15), %rdi
	movq	%rdi, %rdx
	subq	%r13, %rdx
	addq	(%r14), %rdx
	movq	%r13, %rsi
	callq	_memmove
	movq	(%r15), %r12
	movq	%r12, %rax
	subq	%r13, %rax
	movq	(%r14), %rcx
	leaq	(%rax,%rcx), %rbx
	movq	%rbx, (%r14)
	addq	%rcx, %rax
	decq	%rax
	leaq	(%r12,%rbx), %r13
	decq	%r13
	testq	%rax, %rax
	js	LBB0_11
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movsbl	(%r13), %edi
	callq	_isspace
	testl	%eax, %eax
	je	LBB0_8
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=1
	decq	%r13
	movq	(%r15), %r12
	cmpq	%r12, %r13
	jae	LBB0_7
	jmp	LBB0_10
LBB0_8:
	movq	(%r15), %r12
LBB0_10:
	movq	(%r14), %rbx
	leaq	-1(%rbx), %rax
LBB0_11:
	addq	%r12, %rax
	cmpq	%rax, %r13
	je	LBB0_13
## %bb.12:
	subq	%r12, %r13
	incq	%r13
	movq	%r13, (%r14)
	xorl	%eax, %eax
	jmp	LBB0_16
LBB0_13:
	leaq	1(%rbx), %rdi
	callq	_malloc
	movq	%rax, %r13
	testq	%rax, %rax
	jne	LBB0_15
## %bb.14:
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	callq	_err
	movq	(%r15), %r12
	movq	(%r14), %rbx
LBB0_15:
	movq	%r13, %rdi
	movq	%r12, %rsi
	movq	%rbx, %rdx
	callq	_strncpy
	movq	%r13, %r12
	movq	%r13, (%r15)
	movq	(%r14), %r13
	movl	$1, %eax
LBB0_16:
	movb	$0, (%r12,%r13)
LBB0_17:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"malloc"

	.no_dead_strip	_chomp_line
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function chomp_line
_chomp_line:                            ; @chomp_line
	.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	x19, x1
	mov	x20, x0
	ldr	x22, [x0]
	ldr	x8, [x1]
	cbz	x8, LBB0_4
; %bb.1:
	add	x21, x22, #1
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldrsb	w0, [x22]
	bl	_isspace
	cbz	w0, LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x22, x22, #1
	ldr	w8, [x20]
	ldr	x9, [x19]
	sub	w8, w21, w8
	add	x21, x21, #1
	cmp	x8, x9
	b.lo	LBB0_2
LBB0_4:
	ldrb	w8, [x22]
	cmp	w8, #35
	b.ne	LBB0_6
; %bb.5:
	mov	w0, #0
	ldr	x8, [x20]
	strb	wzr, [x8]
	str	xzr, [x19]
	b	LBB0_17
LBB0_6:
	ldr	x0, [x20]
	ldr	x8, [x19]
	sub	x9, x0, x22
	add	x2, x9, x8
	mov	x1, x22
	bl	_memmove
	ldr	x21, [x20]
	ldr	x8, [x19]
	sub	x9, x21, x22
	add	x22, x9, x8
	str	x22, [x19]
	subs	x8, x22, #1
	add	x23, x21, x8
	b.mi	LBB0_11
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldrsb	w0, [x23]
	bl	_isspace
	cbz	w0, LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	sub	x23, x23, #1
	ldr	x21, [x20]
	cmp	x23, x21
	b.hs	LBB0_7
	b	LBB0_10
LBB0_9:
	ldr	x21, [x20]
LBB0_10:
	ldr	x22, [x19]
	sub	x8, x22, #1
LBB0_11:
	add	x8, x21, x8
	cmp	x23, x8
	b.eq	LBB0_13
; %bb.12:
	mov	w0, #0
	sub	x8, x23, x21
	add	x8, x8, #1
	str	x8, [x19]
	mov	x23, x21
	b	LBB0_16
LBB0_13:
	add	x0, x22, #1
	bl	_malloc
	mov	x23, x0
	cbnz	x0, LBB0_15
; %bb.14:
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	bl	_err
	ldr	x21, [x20]
	ldr	x22, [x19]
LBB0_15:
	mov	x0, x23
	mov	x1, x21
	mov	x2, x22
	bl	_strncpy
	str	x23, [x20]
	ldr	x8, [x19]
	mov	w0, #1
LBB0_16:
	strb	wzr, [x23, x8]
LBB0_17:
	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
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"malloc"

	.no_dead_strip	_chomp_line
.subsections_via_symbols
