	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_user_from_uid                  ## -- Begin function user_from_uid
	.p2align	4, 0x90
_user_from_uid:                         ## @user_from_uid
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	movl	%edi, %r15d
	movq	_uidtb@GOTPCREL(%rip), %r13
	movq	(%r13), %r12
	testq	%r12, %r12
	jne	LBB0_3
## %bb.1:
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_uidtb_start
	testq	%rax, %rax
	js	LBB0_22
## %bb.2:
	movq	(%r13), %r12
LBB0_3:
	movq	_UID_SZ@GOTPCREL(%rip), %rcx
	movl	%r15d, %eax
	cltd
	idivl	(%rcx)
	movslq	%edx, %r13
	movq	(%r12,%r13,8), %rbx
	testq	%rbx, %rbx
	je	LBB0_9
## %bb.4:
	movq	(%rbx), %rax
	testq	%rax, %rax
	jle	LBB0_9
## %bb.5:
	cmpl	%r15d, 8(%rbx)
	jne	LBB0_9
## %bb.6:
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_14
## %bb.7:
	movq	_VALID@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_8
	jmp	LBB0_14
LBB0_9:
	movq	_pwopn@GOTPCREL(%rip), %r14
	cmpl	$0, (%r14)
	je	LBB0_15
## %bb.10:
	testq	%rbx, %rbx
	je	LBB0_16
LBB0_11:
	movl	%r15d, %edi
	callq	__pwcache_getpwuid
	testq	%rax, %rax
	je	LBB0_17
## %bb.12:
	testq	%rbx, %rbx
	je	LBB0_20
## %bb.13:
	movl	%r15d, 8(%rbx)
	movq	16(%rbx), %rdi
	movq	(%rax), %rsi
	movq	_UNMLEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_strlcpy
	movq	_VALID@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%rbx)
LBB0_14:
	addq	$16, %rbx
	jmp	LBB0_21
LBB0_15:
	movl	$1, %edi
	callq	__pwcache_setpassent
	incl	(%r14)
	testq	%rbx, %rbx
	jne	LBB0_11
LBB0_16:
	movl	$24, %edi
	callq	_malloc
	movq	%rax, %rbx
	movq	%rax, (%r12,%r13,8)
	jmp	LBB0_11
LBB0_17:
	testq	%rbx, %rbx
	je	LBB0_8
## %bb.18:
	movl	%r15d, 8(%rbx)
	movq	16(%rbx), %rdi
	movq	_UNMLEN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movslq	%r15d, %rcx
	leaq	L_.str(%rip), %rdx
	callq	_snprintf
	movq	_INVALID@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%rbx)
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_14
LBB0_8:
	xorl	%ebx, %ebx
	jmp	LBB0_22
LBB0_20:
	movq	%rax, %rbx
LBB0_21:
	movq	(%rbx), %rbx
LBB0_22:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_uidtb,8,3                      ## @uidtb
	.comm	_UID_SZ,4,2                     ## @UID_SZ
	.comm	_VALID,8,3                      ## @VALID
	.comm	_pwopn,4,2                      ## @pwopn
	.comm	_UNMLEN,4,2                     ## @UNMLEN
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%lu"

	.comm	_INVALID,8,3                    ## @INVALID
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_user_from_uid                  ; -- Begin function user_from_uid
	.p2align	2
_user_from_uid:                         ; @user_from_uid
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x1
	mov	x21, x0
Lloh0:
	adrp	x20, _uidtb@GOTPAGE
Lloh1:
	ldr	x20, [x20, _uidtb@GOTPAGEOFF]
	ldr	x22, [x20]
	cbnz	x22, LBB0_3
; %bb.1:
	bl	_uidtb_start
	tbnz	x0, #63, LBB0_19
; %bb.2:
	ldr	x22, [x20]
LBB0_3:
Lloh2:
	adrp	x8, _UID_SZ@GOTPAGE
Lloh3:
	ldr	x8, [x8, _UID_SZ@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	sdiv	w9, w21, w8
	msub	w23, w9, w8, w21
	ldr	x20, [x22, w23, sxtw #3]
	cbz	x20, LBB0_8
; %bb.4:
	ldr	x8, [x20]
	cmp	x8, #1
	b.lt	LBB0_8
; %bb.5:
	ldr	w9, [x20, #8]
	cmp	w9, w21
	b.ne	LBB0_8
; %bb.6:
	cbz	w19, LBB0_13
; %bb.7:
Lloh5:
	adrp	x9, _VALID@GOTPAGE
Lloh6:
	ldr	x9, [x9, _VALID@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_19
	b	LBB0_13
LBB0_8:
Lloh8:
	adrp	x24, _pwopn@GOTPAGE
Lloh9:
	ldr	x24, [x24, _pwopn@GOTPAGEOFF]
	ldr	w8, [x24]
	cbz	w8, LBB0_15
; %bb.9:
	cbz	x20, LBB0_16
LBB0_10:
	mov	x0, x21
	bl	__pwcache_getpwuid
	cbz	x0, LBB0_17
; %bb.11:
	cbz	x20, LBB0_14
; %bb.12:
	str	w21, [x20, #8]
	ldr	x8, [x20, #16]
	ldr	x1, [x0]
Lloh10:
	adrp	x9, _UNMLEN@GOTPAGE
Lloh11:
	ldr	x9, [x9, _UNMLEN@GOTPAGEOFF]
Lloh12:
	ldr	w2, [x9]
	mov	x0, x8
	bl	_strlcpy
Lloh13:
	adrp	x8, _VALID@GOTPAGE
Lloh14:
	ldr	x8, [x8, _VALID@GOTPAGEOFF]
Lloh15:
	ldr	x8, [x8]
	str	x8, [x20]
LBB0_13:
	add	x0, x20, #16
LBB0_14:
	ldr	x0, [x0]
	b	LBB0_20
LBB0_15:
	mov	w0, #1
	bl	__pwcache_setpassent
	ldr	w8, [x24]
	add	w8, w8, #1
	str	w8, [x24]
	cbnz	x20, LBB0_10
LBB0_16:
	sxtw	x23, w23
	mov	w0, #24
	bl	_malloc
	mov	x20, x0
	str	x0, [x22, x23, lsl #3]
	b	LBB0_10
LBB0_17:
	cbz	x20, LBB0_19
; %bb.18:
	str	w21, [x20, #8]
	ldr	x0, [x20, #16]
Lloh16:
	adrp	x8, _UNMLEN@GOTPAGE
Lloh17:
	ldr	x8, [x8, _UNMLEN@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	sxtw	x3, w21
Lloh19:
	adrp	x2, l_.str@PAGE
Lloh20:
	add	x2, x2, l_.str@PAGEOFF
	bl	_snprintf
Lloh21:
	adrp	x8, _INVALID@GOTPAGE
Lloh22:
	ldr	x8, [x8, _INVALID@GOTPAGEOFF]
Lloh23:
	ldr	x8, [x8]
	str	x8, [x20]
	cbz	w19, LBB0_13
LBB0_19:
	mov	x0, #0
LBB0_20:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_uidtb,8,3                      ; @uidtb
	.comm	_UID_SZ,4,2                     ; @UID_SZ
	.comm	_VALID,8,3                      ; @VALID
	.comm	_pwopn,4,2                      ; @pwopn
	.comm	_UNMLEN,4,2                     ; @UNMLEN
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%lu"

	.comm	_INVALID,8,3                    ; @INVALID
.subsections_via_symbols
