	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Util_chomp                     ## -- Begin function Util_chomp
	.p2align	4, 0x90
_Util_chomp:                            ## @Util_chomp
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	callq	_strlen
                                        ## kill: def $eax killed $eax def $rax
	cmpl	$2, %eax
	jl	LBB0_4
## %bb.1:
	leal	-1(%rax), %ecx
	cmpb	$10, (%rbx,%rcx)
	jne	LBB0_6
## %bb.2:
	addl	$-2, %eax
	cmpb	$13, (%rbx,%rax)
	jne	LBB0_6
## %bb.3:
	addq	%rax, %rbx
	movq	%rbx, %rax
	jmp	LBB0_8
LBB0_4:
	cmpl	$1, %eax
	jne	LBB0_9
## %bb.5:
	xorl	%ecx, %ecx
LBB0_6:
	leaq	(%rbx,%rcx), %rax
	movb	(%rbx,%rcx), %cl
	cmpb	$13, %cl
	je	LBB0_8
## %bb.7:
	cmpb	$10, %cl
	jne	LBB0_9
LBB0_8:
	movb	$0, (%rax)
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Util_chomp                     ; -- Begin function Util_chomp
	.p2align	2
_Util_chomp:                            ; @Util_chomp
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	bl	_strlen
	subs	w9, w0, #2
	b.lt	LBB0_3
; %bb.1:
	sub	w8, w0, #1
	ldrb	w10, [x19, x8]
	cmp	w10, #10
	b.ne	LBB0_5
; %bb.2:
	add	x9, x19, x9
	ldrb	w10, [x9]
	cmp	w10, #13
	b.ne	LBB0_5
	b	LBB0_6
LBB0_3:
	cmp	w0, #1
	b.ne	LBB0_7
; %bb.4:
	mov	x8, #0
LBB0_5:
	add	x9, x19, x8
	ldrb	w8, [x9]
	cmp	w8, #13
	ccmp	w8, #10, #4, ne
	b.ne	LBB0_7
LBB0_6:
	strb	wzr, [x9]
LBB0_7:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
