	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rem_uid
_rem_uid:                               ## @rem_uid
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_TOP_MAX_UIDS@GOTPCREL(%rip), %rax
	movq	(%rax), %r8
	testq	%r8, %r8
	je	LBB0_1
## %bb.2:
	movq	_ps@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	xorl	%ecx, %ecx
	movq	%r8, %rdx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rsi,%rcx,4), %eax
	cmpl	$-1, %eax
	je	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpl	%edi, %eax
	cmoveq	%rcx, %rdx
	incq	%rcx
	cmpq	%rcx, %r8
	jne	LBB0_3
## %bb.5:
	movq	%r8, %rcx
LBB0_6:
	cmpq	%r8, %rdx
	je	LBB0_8
LBB0_7:
	movq	_ps@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	-4(%rax,%rcx,4), %esi
	movl	%esi, (%rax,%rdx,4)
	movl	$-1, -4(%rax,%rcx,4)
LBB0_8:
	popq	%rbp
	retq
LBB0_1:
	xorl	%ecx, %ecx
	xorl	%edx, %edx
	cmpq	%r8, %rdx
	jne	LBB0_7
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_TOP_MAX_UIDS,8,3               ## @TOP_MAX_UIDS
	.comm	_ps,8,3                         ## @ps
	.no_dead_strip	_rem_uid
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rem_uid
_rem_uid:                               ; @rem_uid
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _TOP_MAX_UIDS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TOP_MAX_UIDS@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x8]
Lloh3:
	adrp	x8, _ps@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ps@GOTPAGEOFF]
	mov	x10, #0
	cbz	x9, LBB0_8
; %bb.1:
	ldr	x12, [x8]
	mov	x11, x9
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w13, [x12, x10, lsl #2]
	cmn	w13, #1
	b.eq	LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	cmp	w13, w0
	csel	x11, x10, x11, eq
	add	x10, x10, #1
	cmp	x9, x10
	b.ne	LBB0_2
; %bb.4:
	mov	x10, x9
LBB0_5:
	cmp	x11, x9
	b.eq	LBB0_7
LBB0_6:
	ldr	x8, [x8]
	add	x9, x8, x10, lsl #2
	ldur	w10, [x9, #-4]
	str	w10, [x8, x11, lsl #2]
	mov	w8, #-1
	stur	w8, [x9, #-4]
LBB0_7:
	ret
LBB0_8:
	mov	x11, #0
	cmp	x11, x9
	b.ne	LBB0_6
	b	LBB0_7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_TOP_MAX_UIDS,8,3               ; @TOP_MAX_UIDS
	.comm	_ps,8,3                         ; @ps
	.no_dead_strip	_rem_uid
.subsections_via_symbols
