	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gssd_pname_to_uid_1_svc        ## -- Begin function gssd_pname_to_uid_1_svc
	.p2align	4, 0x90
_gssd_pname_to_uid_1_svc:               ## @gssd_pname_to_uid_1_svc
	.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
	subq	$1080, %rsp                     ## imm = 0x438
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movl	4(%rdi), %edi
	callq	_gssd_find_resource
	movq	%rax, %r14
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$48, %edx
	callq	_memset
	testq	%r14, %r14
	je	LBB0_17
## %bb.1:
	leaq	8(%rbx), %r12
	movl	(%r15), %edx
	leaq	-1104(%rbp), %rcx
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_gss_pname_to_uid
	movq	%rax, 16(%rbx)
	movq	_GSS_S_COMPLETE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_16
## %bb.2:
	movq	-1104(%rbp), %rax
	movq	%rbx, -1088(%rbp)               ## 8-byte Spill
	movq	%rax, 24(%rbx)
	movq	_gssd_pname_to_uid_1_svc.buflen_hint(%rip), %rbx
	leaq	-1112(%rbp), %r12
	leaq	-1096(%rbp), %r13
	movq	_ERANGE@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	$0, -1096(%rbp)
	leaq	-1072(%rbp), %r15
	cmpq	$1025, %rbx                     ## imm = 0x401
	jb	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%rbx, %rdi
	callq	_malloc
	movq	%rax, %r15
	testq	%rax, %rax
	je	LBB0_5
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	-1104(%rbp), %rdi
	movq	%r12, %rsi
	movq	%r15, %rdx
	movq	%rbx, %rcx
	movq	%r13, %r8
	callq	_getpwuid_r
	cmpl	(%r14), %eax
	jne	LBB0_11
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpq	$1025, %rbx                     ## imm = 0x401
	jb	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%r15, %rdi
	callq	_free
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=1
	addq	$1024, %rbx                     ## imm = 0x400
	cmpq	_gssd_pname_to_uid_1_svc.buflen_hint(%rip), %rbx
	jbe	LBB0_3
## %bb.10:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	%rbx, _gssd_pname_to_uid_1_svc.buflen_hint(%rip)
	jmp	LBB0_3
LBB0_17:
	movq	_GSS_S_BAD_NAME@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 16(%rbx)
	movq	$0, 8(%rbx)
	leaq	L_.str.3(%rip), %rdi
	xorl	%eax, %eax
	callq	_gssd_verbose_out
	jmp	LBB0_18
LBB0_16:
	movl	(%r12), %edx
	leaq	L_.str.2(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_gssd_verbose_out
	jmp	LBB0_18
LBB0_11:
	cmpq	$0, -1096(%rbp)
	je	LBB0_12
## %bb.20:
	movq	%rsp, %r14
	movq	_NGROUPS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -1076(%rbp)
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r12
	movq	-1096(%rbp), %rax
	movl	(%rax), %esi
	movq	-1088(%rbp), %r13               ## 8-byte Reload
	movl	%esi, (%r13)
	movl	4(%rax), %edi
	leaq	-1076(%rbp), %rcx
	movq	%r12, %rdx
	callq	_getgrouplist
	movl	-1076(%rbp), %edi
	movl	%edi, 32(%r13)
	shll	$2, %edi
	callq	_mem_alloc
	movq	%rax, 40(%r13)
	movl	-1076(%rbp), %edx
	shll	$2, %edx
	movq	%rax, %rdi
	movq	%r12, %rsi
	callq	_memcpy
	movl	(%r13), %edx
	movl	24(%r13), %esi
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_gssd_verbose_out
	movq	%r14, %rsp
	testq	%r15, %r15
	jne	LBB0_14
	jmp	LBB0_18
LBB0_5:
	xorl	%r15d, %r15d
LBB0_12:
	movq	-1088(%rbp), %rax               ## 8-byte Reload
	movl	$65534, (%rax)                  ## imm = 0xFFFE
	movl	$0, 32(%rax)
	movq	$0, 40(%rax)
	movl	24(%rax), %esi
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_gssd_verbose_out
	testq	%r15, %r15
	je	LBB0_18
LBB0_14:
	cmpq	$1025, %rbx                     ## imm = 0x401
	jb	LBB0_18
## %bb.15:
	movq	%r15, %rdi
	callq	_free
LBB0_18:
	movq	_TRUE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_21
## %bb.19:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_21:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__DATA,__data
	.p2align	3                               ## @gssd_pname_to_uid_1_svc.buflen_hint
_gssd_pname_to_uid_1_svc.buflen_hint:
	.quad	1024                            ## 0x400

	.comm	_GSS_S_COMPLETE,8,3             ## @GSS_S_COMPLETE
	.comm	_ERANGE,4,2                     ## @ERANGE
	.comm	_NGROUPS,4,2                    ## @NGROUPS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"gssd_pname_to_uid: mapped to uid=%d, gid=%d\n"

L_.str.1:                               ## @.str.1
	.asciz	"gssd_pname_to_uid: mapped to uid=%d, but no groups\n"

L_.str.2:                               ## @.str.2
	.asciz	"gssd_pname_to_uid: failed major=0x%x minor=%d\n"

	.comm	_GSS_S_BAD_NAME,8,3             ## @GSS_S_BAD_NAME
L_.str.3:                               ## @.str.3
	.asciz	"gssd_pname_to_uid: no name\n"

	.comm	_TRUE,4,2                       ## @TRUE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gssd_pname_to_uid_1_svc        ; -- Begin function gssd_pname_to_uid_1_svc
	.p2align	2
_gssd_pname_to_uid_1_svc:               ; @gssd_pname_to_uid_1_svc
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w27, -72
	.cfi_offset w28, -80
	sub	sp, sp, #1072
	mov	x19, sp
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
	ldr	w0, [x0, #4]
	bl	_gssd_find_resource
	mov	x22, x0
	mov	x0, x20
	mov	w1, #0
	mov	w2, #48
	bl	_memset
	cbz	x22, LBB0_11
; %bb.1:
	add	x23, x20, #8
	ldr	w2, [x21]
	add	x3, x19, #32
	mov	x0, x23
	mov	x1, x22
	bl	_gss_pname_to_uid
	str	x0, [x20, #16]
Lloh3:
	adrp	x8, _GSS_S_COMPLETE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GSS_S_COMPLETE@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_12
; %bb.2:
	ldr	x8, [x19, #32]
	str	x8, [x20, #24]
	adrp	x23, _gssd_pname_to_uid_1_svc.buflen_hint@PAGE
	ldr	x21, [x23, _gssd_pname_to_uid_1_svc.buflen_hint@PAGEOFF]
Lloh6:
	adrp	x24, _ERANGE@GOTPAGE
Lloh7:
	ldr	x24, [x24, _ERANGE@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	str	xzr, [x19, #16]
	cmp	x21, #1025
	b.lo	LBB0_5
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x21
	bl	_malloc
	mov	x22, x0
	cbnz	x0, LBB0_6
	b	LBB0_15
LBB0_5:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x22, x19, #40
LBB0_6:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x0, [x19, #32]
	add	x1, x19, #24
	add	x4, x19, #16
	mov	x2, x22
	mov	x3, x21
	bl	_getpwuid_r
	ldr	w8, [x24]
	cmp	w0, w8
	b.ne	LBB0_13
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	cmp	x21, #1025
	b.lo	LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x22
	bl	_free
LBB0_9:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x21, x21, #1024
	ldr	x8, [x23, _gssd_pname_to_uid_1_svc.buflen_hint@PAGEOFF]
	cmp	x21, x8
	b.ls	LBB0_3
; %bb.10:                               ;   in Loop: Header=BB0_3 Depth=1
	str	x21, [x23, _gssd_pname_to_uid_1_svc.buflen_hint@PAGEOFF]
	b	LBB0_3
LBB0_11:
Lloh8:
	adrp	x8, _GSS_S_BAD_NAME@GOTPAGE
Lloh9:
	ldr	x8, [x8, _GSS_S_BAD_NAME@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	stp	xzr, x8, [x20, #8]
Lloh11:
	adrp	x0, l_.str.3@PAGE
Lloh12:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_gssd_verbose_out
	b	LBB0_18
LBB0_12:
	ldr	x8, [x23]
	stp	x0, x8, [sp, #-16]!
Lloh13:
	adrp	x0, l_.str.2@PAGE
Lloh14:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_gssd_verbose_out
	add	sp, sp, #16
	b	LBB0_18
LBB0_13:
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_15
; %bb.14:
	mov	x24, sp
Lloh15:
	adrp	x8, _NGROUPS@GOTPAGE
Lloh16:
	ldr	x8, [x8, _NGROUPS@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	str	w8, [x19, #12]
	lsl	x8, x8, #2
	mov	x9, x8
Lloh18:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh19:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x23, x9, x8
	mov	sp, x23
	ldr	x8, [x19, #16]
	ldr	w1, [x8]
	str	w1, [x20]
	ldr	w0, [x8, #4]
	add	x3, x19, #12
	mov	x2, x23
	bl	_getgrouplist
	ldr	w8, [x19, #12]
	str	w8, [x20, #32]
	lsl	w0, w8, #2
	bl	_mem_alloc
	str	x0, [x20, #40]
	ldr	w8, [x19, #12]
	lsl	w2, w8, #2
	mov	x1, x23
	bl	_memcpy
	ldr	x8, [x20, #24]
	ldr	w9, [x20]
	stp	x8, x9, [sp, #-16]!
Lloh20:
	adrp	x0, l_.str@PAGE
Lloh21:
	add	x0, x0, l_.str@PAGEOFF
	bl	_gssd_verbose_out
	add	sp, sp, #16
	mov	sp, x24
	cbnz	x22, LBB0_16
	b	LBB0_18
LBB0_15:
	mov	w8, #65534
	str	w8, [x20]
	str	wzr, [x20, #32]
	str	xzr, [x20, #40]
	ldr	x8, [x20, #24]
	str	x8, [sp, #-16]!
Lloh22:
	adrp	x0, l_.str.1@PAGE
Lloh23:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_gssd_verbose_out
	add	sp, sp, #16
	cbz	x22, LBB0_18
LBB0_16:
	cmp	x21, #1025
	b.lo	LBB0_18
; %bb.17:
	mov	x0, x22
	bl	_free
LBB0_18:
Lloh24:
	adrp	x8, _TRUE@GOTPAGE
Lloh25:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh26:
	ldr	w0, [x8]
	ldur	x8, [x29, #-72]
Lloh27:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh28:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh29:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_20
; %bb.19:
	sub	sp, x29, #64
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_20:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.section	__DATA,__data
	.p2align	3                               ; @gssd_pname_to_uid_1_svc.buflen_hint
_gssd_pname_to_uid_1_svc.buflen_hint:
	.quad	1024                            ; 0x400

	.comm	_GSS_S_COMPLETE,8,3             ; @GSS_S_COMPLETE
	.comm	_ERANGE,4,2                     ; @ERANGE
	.comm	_NGROUPS,4,2                    ; @NGROUPS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"gssd_pname_to_uid: mapped to uid=%d, gid=%d\n"

l_.str.1:                               ; @.str.1
	.asciz	"gssd_pname_to_uid: mapped to uid=%d, but no groups\n"

l_.str.2:                               ; @.str.2
	.asciz	"gssd_pname_to_uid: failed major=0x%x minor=%d\n"

	.comm	_GSS_S_BAD_NAME,8,3             ; @GSS_S_BAD_NAME
l_.str.3:                               ; @.str.3
	.asciz	"gssd_pname_to_uid: no name\n"

	.comm	_TRUE,4,2                       ; @TRUE
.subsections_via_symbols
