	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_stem_eng                       ## -- Begin function stem_eng
	.p2align	4, 0x90
_stem_eng:                              ## @stem_eng
	.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
	testl	%edx, %edx
	jle	LBB0_1
## %bb.2:
	movl	%edx, %r12d
	xorl	%ebx, %ebx
	movq	_stem_ts@GOTPCREL(%rip), %r13
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	(%r15,%rbx), %eax
	testb	%al, %al
	je	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movsbl	%al, %edi
	callq	_conv_eng
	movq	(%r13), %rcx
	movl	%eax, (%rcx,%rbx,4)
	incq	%rbx
	cmpq	%rbx, %r12
	jne	LBB0_3
## %bb.5:
	movl	%r12d, %ebx
	jmp	LBB0_6
LBB0_1:
	xorl	%ebx, %ebx
LBB0_6:
	movq	_stem_ts@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	%ebx, %ecx
	movl	$-1, (%rax,%rcx,4)
	movl	%ebx, %edi
	callq	_do_stem_eng
	movl	%eax, %ebx
	movq	%r14, %rdi
	movq	%r15, %rsi
	movl	%eax, %edx
	callq	_memcpy
	testl	%ebx, %ebx
	jle	LBB0_9
## %bb.7:
	movq	_last_letter@GOTPCREL(%rip), %rax
	movb	(%rax), %al
	testb	%al, %al
	je	LBB0_9
## %bb.8:
	leal	-1(%rbx), %ecx
	movb	%al, (%r14,%rcx)
LBB0_9:
	movslq	%ebx, %rax
	movb	$0, (%r14,%rax)
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_stem_ts,8,3                    ## @stem_ts
	.comm	_last_letter,1,0                ## @last_letter
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_stem_eng                       ; -- Begin function stem_eng
	.p2align	2
_stem_eng:                              ; @stem_eng
	.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
Lloh0:
	adrp	x22, _stem_ts@GOTPAGE
Lloh1:
	ldr	x22, [x22, _stem_ts@GOTPAGEOFF]
	cmp	w2, #1
	b.lt	LBB0_5
; %bb.1:
	mov	x21, #0
	mov	w23, w2
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w8, [x20, x21]
	cbz	w8, LBB0_6
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	sxtb	w0, w8
	bl	_conv_eng
	ldr	x8, [x22]
	str	w0, [x8, x21, lsl #2]
	add	x21, x21, #1
	cmp	x23, x21
	b.ne	LBB0_2
; %bb.4:
	mov	x21, x23
	b	LBB0_6
LBB0_5:
	mov	w21, #0
LBB0_6:
	ldr	x8, [x22]
	mov	w9, #-1
	str	w9, [x8, w21, uxtw #2]
	mov	x0, x21
	bl	_do_stem_eng
	mov	x21, x0
	mov	x0, x19
	mov	x1, x20
	mov	x2, x21
	bl	_memcpy
	subs	w8, w21, #1
	b.lt	LBB0_9
; %bb.7:
Lloh2:
	adrp	x9, _last_letter@GOTPAGE
Lloh3:
	ldr	x9, [x9, _last_letter@GOTPAGEOFF]
	ldrb	w9, [x9]
	cbz	w9, LBB0_9
; %bb.8:
	strb	w9, [x19, w8, uxtw]
LBB0_9:
	strb	wzr, [x19, w21, sxtw]
	mov	x0, x21
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_stem_ts,8,3                    ; @stem_ts
	.comm	_last_letter,1,0                ; @last_letter
.subsections_via_symbols
