	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function r_remove_category_2
_r_remove_category_2:                   ## @r_remove_category_2
	.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
	movslq	4(%rdi), %rax
	movl	%eax, (%rdi)
	leal	-2(%rax), %ecx
	xorl	%r14d, %r14d
	cmpl	8(%rdi), %ecx
	jle	LBB0_15
## %bb.1:
	movq	%rdi, %rbx
	movq	16(%rdi), %rcx
	movl	-4(%rcx,%rax,4), %eax
	movl	%eax, %ecx
	andl	$-32, %ecx
	cmpl	$128, %ecx
	jne	LBB0_15
## %bb.2:
	movl	$262, %ecx                      ## imm = 0x106
	btl	%eax, %ecx
	jae	LBB0_15
## %bb.3:
	movq	_a_2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$3, %edx
	callq	_find_among_b
	testl	%eax, %eax
	je	LBB0_15
## %bb.4:
	movl	4(%rbx), %r12d
	movl	%r12d, 24(%rbx)
	cmpl	$2, %eax
	je	LBB0_13
## %bb.5:
	cmpl	$1, %eax
	jne	LBB0_14
## %bb.6:
	movl	28(%rbx), %r15d
	movq	_s_2@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movl	$6, %esi
	callq	_eq_s_b
	testl	%eax, %eax
	jne	LBB0_11
## %bb.7:
	subl	%r12d, %r15d
	movl	28(%rbx), %eax
	subl	%r15d, %eax
	movl	%eax, 4(%rbx)
	movq	_s_3@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movl	$6, %esi
	callq	_eq_s_b
	testl	%eax, %eax
	jne	LBB0_11
## %bb.8:
	movl	28(%rbx), %eax
	subl	%r15d, %eax
	movl	%eax, 4(%rbx)
	movq	_s_4@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movl	$6, %esi
	callq	_eq_s_b
	testl	%eax, %eax
	jne	LBB0_11
## %bb.9:
	movl	28(%rbx), %eax
	subl	%r15d, %eax
	movl	%eax, 4(%rbx)
	movq	_s_5@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movl	$6, %esi
	jmp	LBB0_10
LBB0_13:
	movq	_s_6@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%rbx, %rdi
	movl	$9, %esi
LBB0_10:
	callq	_eq_s_b
	testl	%eax, %eax
	je	LBB0_15
LBB0_11:
	movq	%rbx, %rdi
	callq	_slice_del
	testl	%eax, %eax
	js	LBB0_12
LBB0_14:
	movl	$1, %r14d
	jmp	LBB0_15
LBB0_12:
	movl	%eax, %r14d
LBB0_15:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_a_2,4,2                        ## @a_2
	.comm	_s_2,4,2                        ## @s_2
	.comm	_s_3,4,2                        ## @s_3
	.comm	_s_4,4,2                        ## @s_4
	.comm	_s_5,4,2                        ## @s_5
	.comm	_s_6,4,2                        ## @s_6
	.no_dead_strip	_r_remove_category_2
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function r_remove_category_2
_r_remove_category_2:                   ; @r_remove_category_2
	.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
	ldp	w8, w9, [x0, #4]
	str	w8, [x0]
	sub	w10, w8, #2
	cmp	w10, w9
	b.le	LBB0_3
; %bb.1:
	mov	x19, x0
	ldr	x9, [x0, #16]
	sub	w8, w8, #1
	ldr	w8, [x9, w8, sxtw #2]
	and	w9, w8, #0xffffffe0
	cmp	w9, #128
	b.ne	LBB0_3
; %bb.2:
	mov	w9, #262
	lsr	w8, w9, w8
	tbnz	w8, #0, LBB0_5
LBB0_3:
	mov	w0, #0
LBB0_4:
	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
LBB0_5:
Lloh0:
	adrp	x8, _a_2@GOTPAGE
Lloh1:
	ldr	x8, [x8, _a_2@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #3
	bl	_find_among_b
	cbz	w0, LBB0_4
; %bb.6:
	ldr	w20, [x19, #4]
	str	w20, [x19, #24]
	cmp	w0, #2
	b.eq	LBB0_12
; %bb.7:
	cmp	w0, #1
	b.ne	LBB0_15
; %bb.8:
	ldr	w21, [x19, #28]
Lloh3:
	adrp	x8, _s_2@GOTPAGE
Lloh4:
	ldr	x8, [x8, _s_2@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #6
	bl	_eq_s_b
	cbnz	w0, LBB0_14
; %bb.9:
	ldr	w8, [x19, #28]
	sub	w20, w21, w20
	sub	w8, w8, w20
	str	w8, [x19, #4]
Lloh6:
	adrp	x8, _s_3@GOTPAGE
Lloh7:
	ldr	x8, [x8, _s_3@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #6
	bl	_eq_s_b
	cbnz	w0, LBB0_14
; %bb.10:
	ldr	w8, [x19, #28]
	sub	w8, w8, w20
	str	w8, [x19, #4]
Lloh9:
	adrp	x8, _s_4@GOTPAGE
Lloh10:
	ldr	x8, [x8, _s_4@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #6
	bl	_eq_s_b
	cbnz	w0, LBB0_14
; %bb.11:
	ldr	w8, [x19, #28]
	sub	w8, w8, w20
	str	w8, [x19, #4]
Lloh12:
	adrp	x8, _s_5@GOTPAGE
Lloh13:
	ldr	x8, [x8, _s_5@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #6
	b	LBB0_13
LBB0_12:
Lloh15:
	adrp	x8, _s_6@GOTPAGE
Lloh16:
	ldr	x8, [x8, _s_6@GOTPAGEOFF]
Lloh17:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #9
LBB0_13:
	bl	_eq_s_b
	cbz	w0, LBB0_4
LBB0_14:
	mov	x0, x19
	bl	_slice_del
	tbnz	w0, #31, LBB0_4
LBB0_15:
	mov	w0, #1
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_a_2,4,2                        ; @a_2
	.comm	_s_2,4,2                        ; @s_2
	.comm	_s_3,4,2                        ; @s_3
	.comm	_s_4,4,2                        ; @s_4
	.comm	_s_5,4,2                        ; @s_5
	.comm	_s_6,4,2                        ; @s_6
	.no_dead_strip	_r_remove_category_2
.subsections_via_symbols
