	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function categorize
_categorize:                            ## @categorize
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	cmpq	$0, (%rdi)
	jne	LBB0_14
## %bb.1:
	movq	_CHAR_MIN@GOTPCREL(%rip), %rax
	movslq	(%rax), %r13
	movq	_CHAR_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	%eax, %r13d
	jle	LBB0_2
LBB0_14:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	%rsi, %rbx
	movq	8(%rsi), %rsi
	leal	1(%r13), %r12d
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	jmp	LBB0_3
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	_CHAR_MAX@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_3 Depth=1
	leaq	1(%r13), %rcx
	movslq	%eax, %rdx
	incl	%r12d
	cmpq	%rdx, %r13
	movq	%rcx, %r13
	jge	LBB0_14
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_8 Depth 2
	cmpq	$0, (%rsi,%r13,8)
	jne	LBB0_13
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%rbx, %rdi
	movl	%r13d, %esi
	callq	_isinsets
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movslq	(%rbx), %rdx
	leal	1(%rdx), %eax
	movl	%eax, (%rbx)
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movq	%rdx, (%rsi,%r13,8)
	movq	_CHAR_MAX@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rax
	cmpq	%rax, %r13
	jge	LBB0_13
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	movl	%r12d, %ebx
	movq	%r13, %r14
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_8 Depth=2
	movslq	(%rcx), %rax
	incl	%ebx
	cmpq	%rax, %r14
	jge	LBB0_12
LBB0_8:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%r14, %r15
	incq	%r14
	cmpq	$0, 8(%rsi,%r15,8)
	jne	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=2
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%r13d, %esi
	movl	%ebx, %edx
	callq	_samesets
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movq	_CHAR_MAX@GOTPCREL(%rip), %rcx
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_8 Depth=2
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, 8(%rsi,%r15,8)
	jmp	LBB0_11
LBB0_12:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_CHAR_MIN,4,2                   ## @CHAR_MIN
	.comm	_CHAR_MAX,4,2                   ## @CHAR_MAX
	.no_dead_strip	_categorize
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function categorize
_categorize:                            ; @categorize
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	ldr	x8, [x0]
	cbnz	x8, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _CHAR_MIN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CHAR_MIN@GOTPAGEOFF]
Lloh2:
	ldrsw	x20, [x8]
Lloh3:
	adrp	x21, _CHAR_MAX@GOTPAGE
Lloh4:
	ldr	x21, [x21, _CHAR_MAX@GOTPAGEOFF]
	ldr	w8, [x21]
	cmp	w20, w8
	b.le	LBB0_3
LBB0_2:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_3:
	mov	x19, x1
	ldr	x22, [x1, #8]
	add	w23, w20, #1
	add	x9, x22, x20, lsl #3
	add	x24, x9, #8
	b	LBB0_6
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	w8, [x21]
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	cmp	x20, w8, sxtw
	add	x20, x20, #1
	add	x23, x23, #1
	add	x24, x24, #8
	b.ge	LBB0_2
LBB0_6:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_11 Depth 2
	ldr	x9, [x22, x20, lsl #3]
	cbnz	x9, LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x19
	mov	x1, x20
	bl	_isinsets
	cbz	x0, LBB0_4
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	ldrsw	x25, [x19]
	add	w8, w25, #1
	str	w8, [x19]
	str	x25, [x22, x20, lsl #3]
	ldrsw	x8, [x21]
	cmp	x20, x8
	b.ge	LBB0_5
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x26, #0
	b	LBB0_11
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=2
	ldrsw	x8, [x21]
	add	x26, x26, #1
	add	x9, x20, x26
	cmp	x9, x8
	b.ge	LBB0_14
LBB0_11:                                ;   Parent Loop BB0_6 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x24, x26, lsl #3]
	cbnz	x8, LBB0_10
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=2
	add	w2, w23, w26
	mov	x0, x19
	mov	x1, x20
	bl	_samesets
	cbz	x0, LBB0_10
; %bb.13:                               ;   in Loop: Header=BB0_11 Depth=2
	str	x25, [x24, x26, lsl #3]
	b	LBB0_10
LBB0_14:                                ;   in Loop: Header=BB0_6 Depth=1
                                        ; kill: def $w8 killed $w8 killed $x8 def $x8
	b	LBB0_5
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_CHAR_MIN,4,2                   ; @CHAR_MIN
	.comm	_CHAR_MAX,4,2                   ; @CHAR_MAX
	.no_dead_strip	_categorize
.subsections_via_symbols
