	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function strip_spaces
_strip_spaces:                          ## @strip_spaces
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movb	(%rdi), %al
	testb	%al, %al
	je	LBB0_11
## %bb.1:
	movq	%rdi, %rbx
	xorl	%r14d, %r14d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	%al, %edi
	callq	_isspace
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movzbl	1(%rbx), %eax
	incq	%rbx
	testb	%al, %al
	jne	LBB0_2
	jmp	LBB0_12
LBB0_5:
	cmpb	$0, (%rbx)
	je	LBB0_11
## %bb.6:
	movq	%rbx, %rdi
	callq	_strlen
	movslq	%eax, %r14
	leaq	(%rbx,%r14), %rax
	decq	%rax
	cmpq	%rax, %rbx
	je	LBB0_10
## %bb.7:
	decq	%r14
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	(%rbx,%r14), %edi
	callq	_isspace
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movb	$0, (%rbx,%r14)
	decq	%r14
	jne	LBB0_8
LBB0_10:
	xorl	%r14d, %r14d
	cmpb	$0, (%rbx)
	cmovneq	%rbx, %r14
	jmp	LBB0_12
LBB0_11:
	xorl	%r14d, %r14d
LBB0_12:
	movq	%r14, %rax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_strip_spaces
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function strip_spaces
_strip_spaces:                          ; @strip_spaces
	.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
	ldrb	w8, [x0]
	cbz	w8, LBB0_10
; %bb.1:
	mov	x19, x0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	and	w0, w8, #0xff
	bl	_isspace
	cbz	x0, LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldrb	w8, [x19, #1]!
	cbnz	w8, LBB0_2
	b	LBB0_10
LBB0_4:
	ldrb	w8, [x19]
	cbz	w8, LBB0_10
; %bb.5:
	mov	x0, x19
	bl	_strlen
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x8, w0
	add	x9, x19, x8
	sub	x9, x9, #1
	cmp	x19, x9
	b.eq	LBB0_9
; %bb.6:
	sub	x20, x8, #1
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w0, [x19, x20]
	bl	_isspace
	cbz	x0, LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	strb	wzr, [x19, x20]
	subs	x20, x20, #1
	b.ne	LBB0_7
LBB0_9:
	ldrb	w8, [x19]
	cmp	w8, #0
	csel	x0, xzr, x19, eq
	b	LBB0_11
LBB0_10:
	mov	x0, #0
LBB0_11:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_strip_spaces
.subsections_via_symbols
