	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_uid_from_user                  ## -- Begin function uid_from_user
	.p2align	4, 0x90
_uid_from_user:                         ## @uid_from_user
	.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	$-1, %r15d
	testq	%rdi, %rdi
	je	LBB0_20
## %bb.1:
	movq	%rsi, %rbx
	movq	%rdi, %r13
	callq	_strlen
	testq	%rax, %rax
	je	LBB0_20
## %bb.2:
	movq	%rax, %r12
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	_usrtb@GOTPCREL(%rip), %rbx
	movq	(%rbx), %r14
	testq	%r14, %r14
	jne	LBB0_5
## %bb.3:
	xorl	%eax, %eax
	callq	_usrtb_start
	testq	%rax, %rax
	js	LBB0_20
## %bb.4:
	movq	(%rbx), %r14
LBB0_5:
	movq	_UNM_SZ@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rdi
	movq	%r12, %rsi
	callq	_st_hash
	movslq	%eax, %rbx
	movq	(%r14,%rbx,8), %r12
	testq	%r12, %r12
	je	LBB0_10
## %bb.6:
	cmpq	$0, (%r12)
	jle	LBB0_10
## %bb.7:
	movl	12(%r12), %esi
	movq	%r13, %rdi
	callq	_strcmp
	testl	%eax, %eax
	je	LBB0_8
LBB0_10:
	movq	_pwopn@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_11
## %bb.12:
	testq	%r12, %r12
	jne	LBB0_16
	jmp	LBB0_13
LBB0_11:
	movl	$1, %edi
	callq	__pwcache_setpassent
	movq	_pwopn@GOTPCREL(%rip), %rax
	incl	(%rax)
	testq	%r12, %r12
	jne	LBB0_16
LBB0_13:
	movl	$16, %edi
	callq	_malloc
	movq	%rax, %r12
	movq	%rax, (%r14,%rbx,8)
	testq	%rax, %rax
	je	LBB0_14
LBB0_16:
	movl	12(%r12), %edi
	movq	_UNMLEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r13, %rsi
	callq	_strlcpy
	movq	%r13, %rdi
	callq	__pwcache_getpwnam
	testq	%rax, %rax
	je	LBB0_17
## %bb.18:
	movq	_VALID@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, (%r12)
	movl	(%rax), %eax
	movl	%eax, 8(%r12)
LBB0_19:
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	xorl	%r15d, %r15d
	jmp	LBB0_20
LBB0_17:
	movq	_INVALID@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%r12)
	jmp	LBB0_20
LBB0_8:
	movq	(%r12), %rax
	movq	_INVALID@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_20
## %bb.9:
	movl	8(%r12), %eax
	jmp	LBB0_19
LBB0_14:
	movq	%r13, %rdi
	callq	__pwcache_getpwnam
	testq	%rax, %rax
	je	LBB0_20
## %bb.15:
	movl	(%rax), %eax
	jmp	LBB0_19
LBB0_20:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_usrtb,8,3                      ## @usrtb
	.comm	_UNM_SZ,4,2                     ## @UNM_SZ
	.comm	_INVALID,8,3                    ## @INVALID
	.comm	_pwopn,4,2                      ## @pwopn
	.comm	_UNMLEN,4,2                     ## @UNMLEN
	.comm	_VALID,8,3                      ## @VALID
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_uid_from_user                  ; -- Begin function uid_from_user
	.p2align	2
_uid_from_user:                         ; @uid_from_user
	.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
	cbz	x0, LBB0_20
; %bb.1:
	mov	x19, x1
	mov	x20, x0
	bl	_strlen
	cbz	x0, LBB0_20
; %bb.2:
	mov	x21, x0
Lloh0:
	adrp	x22, _usrtb@GOTPAGE
Lloh1:
	ldr	x22, [x22, _usrtb@GOTPAGEOFF]
	ldr	x23, [x22]
	cbnz	x23, LBB0_5
; %bb.3:
	bl	_usrtb_start
	tbnz	x0, #63, LBB0_20
; %bb.4:
	ldr	x23, [x22]
LBB0_5:
Lloh2:
	adrp	x8, _UNM_SZ@GOTPAGE
Lloh3:
	ldr	x8, [x8, _UNM_SZ@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x1, x21
	bl	_st_hash
	mov	x22, x0
	ldr	x21, [x23, w0, sxtw #3]
	cbz	x21, LBB0_8
; %bb.6:
	ldr	x8, [x21]
	cmp	x8, #1
	b.lt	LBB0_8
; %bb.7:
	ldr	w1, [x21, #12]
	mov	x0, x20
	bl	_strcmp
	cbz	w0, LBB0_16
LBB0_8:
Lloh5:
	adrp	x24, _pwopn@GOTPAGE
Lloh6:
	ldr	x24, [x24, _pwopn@GOTPAGEOFF]
	ldr	w8, [x24]
	cbz	w8, LBB0_10
; %bb.9:
	cbnz	x21, LBB0_12
	b	LBB0_11
LBB0_10:
	mov	w0, #1
	bl	__pwcache_setpassent
	ldr	w8, [x24]
	add	w8, w8, #1
	str	w8, [x24]
	cbnz	x21, LBB0_12
LBB0_11:
	sxtw	x22, w22
	mov	w0, #16
	bl	_malloc
	mov	x21, x0
	str	x0, [x23, x22, lsl #3]
	cbz	x0, LBB0_18
LBB0_12:
	ldr	w0, [x21, #12]
Lloh7:
	adrp	x8, _UNMLEN@GOTPAGE
Lloh8:
	ldr	x8, [x8, _UNMLEN@GOTPAGEOFF]
Lloh9:
	ldr	w2, [x8]
	mov	x1, x20
	bl	_strlcpy
	mov	x0, x20
	bl	__pwcache_getpwnam
	cbz	x0, LBB0_15
; %bb.13:
	mov	x8, x0
	mov	w0, #0
Lloh10:
	adrp	x9, _VALID@GOTPAGE
Lloh11:
	ldr	x9, [x9, _VALID@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	str	x9, [x21]
	ldr	w8, [x8]
	str	w8, [x21, #8]
LBB0_14:
	str	w8, [x19]
	b	LBB0_21
LBB0_15:
Lloh13:
	adrp	x8, _INVALID@GOTPAGE
Lloh14:
	ldr	x8, [x8, _INVALID@GOTPAGEOFF]
Lloh15:
	ldr	x8, [x8]
	str	x8, [x21]
	b	LBB0_20
LBB0_16:
	ldr	x8, [x21]
Lloh16:
	adrp	x9, _INVALID@GOTPAGE
Lloh17:
	ldr	x9, [x9, _INVALID@GOTPAGEOFF]
Lloh18:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_20
; %bb.17:
	mov	w0, #0
	ldr	w8, [x21, #8]
	b	LBB0_14
LBB0_18:
	mov	x0, x20
	bl	__pwcache_getpwnam
	cbz	x0, LBB0_20
; %bb.19:
	mov	x8, x0
	mov	w0, #0
	ldr	w8, [x8]
	b	LBB0_14
LBB0_20:
	mov	w0, #-1
LBB0_21:
	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 AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_usrtb,8,3                      ; @usrtb
	.comm	_UNM_SZ,4,2                     ; @UNM_SZ
	.comm	_INVALID,8,3                    ; @INVALID
	.comm	_pwopn,4,2                      ; @pwopn
	.comm	_UNMLEN,4,2                     ; @UNMLEN
	.comm	_VALID,8,3                      ; @VALID
.subsections_via_symbols
