	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pw_uidpolicy
_pw_uidpolicy:                          ## @pw_uidpolicy
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	testq	%rsi, %rsi
	js	LBB0_4
## %bb.1:
	movq	%rsi, %r14
	movq	%rsi, %rdi
	callq	_GETPWUID
	testq	%rax, %rax
	je	LBB0_20
## %bb.2:
	movq	_conf@GOTPCREL(%rip), %rcx
	cmpq	$0, (%rcx)
	je	LBB0_20
## %bb.3:
	movq	_EX_DATAERR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movl	(%rax), %edx
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_errx
	jmp	LBB0_20
LBB0_4:
	movq	%rdi, %rbx
	movl	(%rdi), %eax
	movl	4(%rdi), %edi
	cmpl	%edi, %eax
	jl	LBB0_6
## %bb.5:
	movabsq	$137438953473000, %rax          ## imm = 0x7D00000003E8
	movq	%rax, (%rbx)
	movl	$32000, %edi                    ## imm = 0x7D00
	movl	$1000, %eax                     ## imm = 0x3E8
LBB0_6:
	subl	%eax, %edi
	incl	%edi
	callq	_bm_alloc
	movl	%eax, -24(%rbp)
	xorl	%eax, %eax
	callq	_SETPWENT
	xorl	%eax, %eax
	callq	_GETPWENT
	testq	%rax, %rax
	je	LBB0_12
## %bb.7:
	leaq	-24(%rbp), %r14
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_8 Depth=1
	xorl	%eax, %eax
	callq	_GETPWENT
	testq	%rax, %rax
	je	LBB0_12
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rax), %rax
	movslq	(%rbx), %rcx
	movq	%rax, %rsi
	subq	%rcx, %rsi
	jl	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movslq	4(%rbx), %rcx
	cmpq	%rcx, %rax
	jg	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	%r14, %rdi
	callq	_bm_setbit
	jmp	LBB0_11
LBB0_12:
	xorl	%eax, %eax
	callq	_ENDPWENT
	cmpq	$0, 8(%rbx)
	jne	LBB0_15
## %bb.13:
	leaq	-24(%rbp), %rdi
	callq	_bm_lastset
	movslq	(%rbx), %rcx
	leaq	(%rax,%rcx), %rdx
	movslq	4(%rbx), %rsi
	cmpq	%rsi, %rdx
	jge	LBB0_15
## %bb.14:
	leaq	(%rax,%rcx), %r14
	incq	%r14
	cmpq	%rcx, %r14
	jge	LBB0_17
	jmp	LBB0_18
LBB0_15:
	leaq	-24(%rbp), %rdi
	callq	_bm_firstunset
	movq	%rax, %r14
	movslq	(%rbx), %rcx
	addq	%rcx, %r14
	cmpq	%rcx, %r14
	jl	LBB0_18
LBB0_17:
	movslq	4(%rbx), %rax
	cmpq	%rax, %r14
	jle	LBB0_19
LBB0_18:
	movq	_EX_SOFTWARE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	_errx
LBB0_19:
	leaq	-24(%rbp), %rdi
	callq	_bm_dealloc
LBB0_20:
	movq	%r14, %rax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_conf,8,3                       ## @conf
	.comm	_EX_DATAERR,4,2                 ## @EX_DATAERR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"uid `%ju' has already been allocated"

	.comm	_EX_SOFTWARE,4,2                ## @EX_SOFTWARE
L_.str.1:                               ## @.str.1
	.asciz	"unable to allocate a new uid - range fully used"

	.no_dead_strip	_pw_uidpolicy
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function pw_uidpolicy
lCPI0_0:
	.long	1000                            ; 0x3e8
	.long	32000                           ; 0x7d00
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_pw_uidpolicy:                          ; @pw_uidpolicy
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.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
	tbnz	x1, #63, LBB0_4
; %bb.1:
	mov	x20, x1
	mov	x0, x1
	bl	_GETPWUID
	cbz	x0, LBB0_18
; %bb.2:
Lloh0:
	adrp	x8, _conf@GOTPAGE
Lloh1:
	ldr	x8, [x8, _conf@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cbz	x8, LBB0_18
; %bb.3:
Lloh3:
	adrp	x8, _EX_DATAERR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EX_DATAERR@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	ldr	x9, [x0]
	str	x9, [sp]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x8
	bl	_errx
	b	LBB0_18
LBB0_4:
	mov	x19, x0
	ldp	w9, w8, [x0]
	cmp	w9, w8
	b.lt	LBB0_6
; %bb.5:
Lloh8:
	adrp	x8, lCPI0_0@PAGE
Lloh9:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	str	d0, [x19]
	mov	w8, #32000
	mov	w9, #1000
LBB0_6:
	sub	w8, w8, w9
	add	w0, w8, #1
	bl	_bm_alloc
	str	w0, [sp, #8]
	bl	_SETPWENT
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	bl	_GETPWENT
	cbz	x0, LBB0_11
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	x8, [x0]
	ldrsw	x9, [x19]
	subs	x1, x8, x9
	b.lt	LBB0_7
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	ldrsw	x9, [x19, #4]
	cmp	x8, x9
	b.gt	LBB0_7
; %bb.10:                               ;   in Loop: Header=BB0_7 Depth=1
	add	x0, sp, #8
	bl	_bm_setbit
	b	LBB0_7
LBB0_11:
	bl	_ENDPWENT
	ldr	x8, [x19, #8]
	cbnz	x8, LBB0_14
; %bb.12:
	add	x0, sp, #8
	bl	_bm_lastset
	ldpsw	x8, x10, [x19]
	add	x9, x0, x8
	cmp	x9, x10
	b.ge	LBB0_14
; %bb.13:
	add	x20, x9, #1
	cmp	x20, x8
	b.ge	LBB0_15
	b	LBB0_16
LBB0_14:
	add	x0, sp, #8
	bl	_bm_firstunset
	ldrsw	x8, [x19]
	add	x20, x0, x8
	cmp	x20, x8
	b.lt	LBB0_16
LBB0_15:
	ldrsw	x8, [x19, #4]
	cmp	x20, x8
	b.le	LBB0_17
LBB0_16:
Lloh10:
	adrp	x8, _EX_SOFTWARE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EX_SOFTWARE@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
Lloh13:
	adrp	x1, l_.str.1@PAGE
Lloh14:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_errx
LBB0_17:
	add	x0, sp, #8
	bl	_bm_dealloc
LBB0_18:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdr	Lloh8, Lloh9
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_conf,8,3                       ; @conf
	.comm	_EX_DATAERR,4,2                 ; @EX_DATAERR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"uid `%ju' has already been allocated"

	.comm	_EX_SOFTWARE,4,2                ; @EX_SOFTWARE
l_.str.1:                               ; @.str.1
	.asciz	"unable to allocate a new uid - range fully used"

	.no_dead_strip	_pw_uidpolicy
.subsections_via_symbols
