	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ending                         ## -- Begin function ending
	.p2align	4, 0x90
_ending:                                ## @ending
	.cfi_startproc
## %bb.0:
                                        ## kill: def $edi killed $edi def $rdi
	movslq	%edi, %rax
	imulq	$1374389535, %rax, %rax         ## imm = 0x51EB851F
	movq	%rax, %rcx
	shrq	$63, %rcx
	sarq	$37, %rax
	addl	%ecx, %eax
	imull	$100, %eax, %ecx
	movl	%ecx, %eax
	negl	%eax
	leal	(%rdi,%rax), %edx
	addl	$-10, %edx
	leaq	L_.str(%rip), %rax
	cmpl	$10, %edx
	jb	LBB0_3
## %bb.1:
	subl	%ecx, %edi
	movsbl	%dil, %ecx
	imull	$103, %ecx, %ecx
	movzwl	%cx, %ecx
	movswl	%cx, %edx
	shrl	$15, %ecx
	shrl	$10, %edx
	addb	%cl, %dl
	movzbl	%dl, %ecx
	addl	%ecx, %ecx
	leal	(%rcx,%rcx,4), %ecx
	notb	%cl
	addb	%dil, %cl
	cmpb	$2, %cl
	ja	LBB0_3
## %bb.2:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movsbq	%cl, %rax
	leaq	l_reltable.ending(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	popq	%rbp
LBB0_3:
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"th"

L_.str.1:                               ## @.str.1
	.asciz	"st"

L_.str.2:                               ## @.str.2
	.asciz	"nd"

L_.str.3:                               ## @.str.3
	.asciz	"rd"

	.section	__TEXT,__const
	.p2align	2                               ## @reltable.ending
l_reltable.ending:
	.long	L_.str.1-l_reltable.ending
	.long	L_.str.2-l_reltable.ending
	.long	L_.str.3-l_reltable.ending

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ending                         ; -- Begin function ending
	.p2align	2
_ending:                                ; @ending
	.cfi_startproc
; %bb.0:
	mov	w8, #34079
	movk	w8, #20971, lsl #16
	smull	x8, w0, w8
	lsr	x9, x8, #63
	asr	x8, x8, #37
	add	w8, w8, w9
	mov	w9, #100
	msub	w8, w8, w9, w0
	sub	w9, w8, #10
	cmp	w9, #10
	b.lo	LBB0_3
; %bb.1:
	sxtb	w9, w8
	mov	w10, #103
	mul	w9, w9, w10
	asr	w10, w9, #8
	ubfx	w9, w9, #15, #1
	add	w9, w9, w10, lsr #2
	mov	w10, #10
	msub	w8, w9, w10, w8
	sxtb	x8, w8
	sub	x8, x8, #1
	and	w9, w8, #0xff
	cmp	w9, #2
	b.hi	LBB0_3
; %bb.2:
Lloh0:
	adrp	x9, l_switch.table.ending@PAGE
Lloh1:
	add	x9, x9, l_switch.table.ending@PAGEOFF
	ldr	x0, [x9, x8, lsl #3]
	ret
LBB0_3:
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"th"

l_.str.1:                               ; @.str.1
	.asciz	"st"

l_.str.2:                               ; @.str.2
	.asciz	"nd"

l_.str.3:                               ; @.str.3
	.asciz	"rd"

	.section	__DATA,__const
	.p2align	3                               ; @switch.table.ending
l_switch.table.ending:
	.quad	l_.str.1
	.quad	l_.str.2
	.quad	l_.str.3

.subsections_via_symbols
