	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function trim
_trim:                                  ## @trim
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	decq	%rbx
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	1(%rbx), %edi
	incq	%rbx
	callq	_isspace
	testq	%rax, %rax
	jne	LBB0_1
## %bb.2:
	movq	%rbx, %rdi
	callq	_strlen
	movslq	%eax, %r14
	movq	%rbx, %rcx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rcx, %r15
	leaq	(%rcx,%r14), %rax
	cmpq	%rbx, %rax
	jbe	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movzbl	-1(%r15,%r14), %edi
	callq	_isspace
	leaq	-1(%r15), %rcx
	testq	%rax, %rax
	jne	LBB0_3
LBB0_5:
	movq	_NUL@GOTPCREL(%rip), %rax
	movb	(%rax), %al
	movb	%al, (%r15,%r14)
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NUL,1,0                        ## @NUL
	.no_dead_strip	_trim
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function trim
_trim:                                  ; @trim
	.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
	sub	x19, x0, #1
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w0, [x19, #1]!
	bl	_isspace
	cbnz	x0, LBB0_1
; %bb.2:
	mov	x0, x19
	bl	_strlen
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x8, w0
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	mov	x20, x8
	add	x8, x19, x8
	cmp	x8, x19
	b.ls	LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldurb	w0, [x8, #-1]
	bl	_isspace
	sub	x8, x20, #1
	cbnz	x0, LBB0_3
LBB0_5:
Lloh0:
	adrp	x8, _NUL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NUL@GOTPAGEOFF]
	ldrb	w8, [x8]
	strb	w8, [x19, x20]
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_NUL,1,0                        ; @NUL
	.no_dead_strip	_trim
.subsections_via_symbols
