	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function last_char
_last_char:                             ## @last_char
	.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
	movl	%edi, %r14d
	movq	_bufptr@GOTPCREL(%rip), %r12
	movq	(%r12), %rdi
	callq	_strlen
	movq	%rax, %rbx
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	subq	$1, %rbx
	jb	LBB0_5
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	(%r12), %rax
	movl	(%rax,%rbx,4), %edi
	callq	_UChar
	movl	%eax, %edi
	callq	_isspace
	testl	%eax, %eax
	jne	LBB0_1
## %bb.3:
	cmpl	%r14d, %ebx
	jle	LBB0_5
## %bb.4:
	movq	(%r12), %rax
	subl	%r14d, %ebx
	movslq	%ebx, %rcx
	movl	(%rax,%rcx,4), %r15d
LBB0_5:
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_bufptr,8,3                     ## @bufptr
	.no_dead_strip	_last_char
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function last_char
_last_char:                             ; @last_char
	.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, x0
Lloh0:
	adrp	x20, _bufptr@GOTPAGE
Lloh1:
	ldr	x20, [x20, _bufptr@GOTPAGEOFF]
	ldr	x0, [x20]
	bl	_strlen
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	cbz	x0, LBB0_6
; %bb.2:                                ;   in Loop: Header=BB0_1 Depth=1
	sub	x21, x0, #1
	ldr	x8, [x20]
	add	x8, x8, x0, lsl #2
	ldur	w0, [x8, #-4]
	bl	_UChar
	bl	_isspace
	mov	x8, x0
	mov	x0, x21
	cbnz	w8, LBB0_1
; %bb.3:
	cmp	w21, w19
	b.le	LBB0_5
; %bb.4:
	ldr	x8, [x20]
	sub	w9, w21, w19
	ldr	w0, [x8, w9, sxtw #2]
	b	LBB0_6
LBB0_5:
	mov	w0, #0
LBB0_6:
	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	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_bufptr,8,3                     ; @bufptr
	.no_dead_strip	_last_char
.subsections_via_symbols
