	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__gsskrb5_pname_to_uid          ## -- Begin function _gsskrb5_pname_to_uid
	.p2align	4, 0x90
__gsskrb5_pname_to_uid:                 ## @_gsskrb5_pname_to_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
	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	%rcx, -1112(%rbp)               ## 8-byte Spill
	movl	%esi, %r12d
	movq	%rdi, %r14
	movq	%rsp, %r13
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_MAXLOGNAME@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	incl	%ebx
	movq	%rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r15
	leaq	-1084(%rbp), %rdi
	callq	_GSSAPI_KRB5_INIT
	movl	-1084(%rbp), %edi
	movl	%r12d, %esi
	movl	%ebx, %edx
	movq	%r15, %rcx
	callq	_krb5_aname_to_localname
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%rax, (%r14)
	movq	_GSS_S_FAILURE@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
LBB0_17:
	movq	%r13, %rsp
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_19
## %bb.18:
	movq	%r14, %rax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	%r13, -1104(%rbp)               ## 8-byte Spill
	movq	$0, (%r14)
	movq	__gsskrb5_pname_to_uid.buflen_hint(%rip), %rbx
	leaq	-1120(%rbp), %r14
	movq	_ERANGE@GOTPCREL(%rip), %r13
	leaq	-1072(%rbp), %rax
	movq	%rax, -1096(%rbp)               ## 8-byte Spill
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	$0, -1120(%rbp)
	cmpq	$1025, %rbx                     ## imm = 0x401
	jb	LBB0_8
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%rbx, %rdi
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%rax, %r12
	movq	%r15, %rdi
	leaq	-1080(%rbp), %rsi
	movq	%rax, %rdx
	movq	%rbx, %rcx
	movq	%r14, %r8
	callq	_getpwnam_r
	cmpl	(%r13), %eax
	jne	LBB0_7
## %bb.11:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	%r12, %rdi
	callq	_free
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	%r15, %rdi
	leaq	-1080(%rbp), %rsi
	leaq	-1072(%rbp), %rdx
	movq	%rbx, %rcx
	movq	%r14, %r8
	callq	_getpwnam_r
	cmpl	(%r13), %eax
	jne	LBB0_9
LBB0_12:                                ##   in Loop: Header=BB0_3 Depth=1
	addq	$1024, %rbx                     ## imm = 0x400
	cmpq	__gsskrb5_pname_to_uid.buflen_hint(%rip), %rbx
	jbe	LBB0_3
## %bb.13:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	%rbx, __gsskrb5_pname_to_uid.buflen_hint(%rip)
	jmp	LBB0_3
LBB0_5:
	movq	_GSS_S_FAILURE@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	movq	-1104(%rbp), %r13               ## 8-byte Reload
	jmp	LBB0_17
LBB0_7:
	movq	%r12, -1096(%rbp)               ## 8-byte Spill
LBB0_9:
	movq	-1112(%rbp), %rcx               ## 8-byte Reload
	movq	-1120(%rbp), %rax
	testq	%rax, %rax
	movq	-1104(%rbp), %r13               ## 8-byte Reload
	je	LBB0_10
## %bb.14:
	movl	(%rax), %eax
	movl	%eax, (%rcx)
	movq	_GSS_S_COMPLETE@GOTPCREL(%rip), %rax
	jmp	LBB0_15
LBB0_10:
	movq	_GSS_S_FAILURE@GOTPCREL(%rip), %rax
LBB0_15:
	movq	(%rax), %r14
	cmpq	$1025, %rbx                     ## imm = 0x401
	jb	LBB0_17
## %bb.16:
	movq	-1096(%rbp), %rdi               ## 8-byte Reload
	callq	_free
	jmp	LBB0_17
LBB0_19:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MAXLOGNAME,4,2                 ## @MAXLOGNAME
	.section	__DATA,__data
	.p2align	3                               ## @_gsskrb5_pname_to_uid.buflen_hint
__gsskrb5_pname_to_uid.buflen_hint:
	.quad	1024                            ## 0x400

	.comm	_GSS_S_FAILURE,8,3              ## @GSS_S_FAILURE
	.comm	_ERANGE,4,2                     ## @ERANGE
	.comm	_GSS_S_COMPLETE,8,3             ## @GSS_S_COMPLETE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__gsskrb5_pname_to_uid          ; -- Begin function _gsskrb5_pname_to_uid
	.p2align	2
__gsskrb5_pname_to_uid:                 ; @_gsskrb5_pname_to_uid
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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 w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	sub	sp, sp, #1056
	mov	x19, sp
	mov	x20, x3
	mov	x23, x1
	mov	x21, x0
	mov	x25, sp
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh3:
	adrp	x8, _MAXLOGNAME@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MAXLOGNAME@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	add	w24, w8, #1
	mov	x9, x24
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x24, #15
	and	x9, x9, #0x1fffffff0
	sub	x22, x8, x9
	mov	sp, x22
	add	x0, x19, #20
	bl	_GSSAPI_KRB5_INIT
	ldr	w0, [x19, #20]
	mov	x1, x23
	mov	x2, x24
	mov	x3, x22
	bl	_krb5_aname_to_localname
	cbz	x0, LBB0_5
; %bb.1:
	str	x0, [x21]
LBB0_2:
Lloh8:
	adrp	x8, _GSS_S_FAILURE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _GSS_S_FAILURE@GOTPAGEOFF]
Lloh10:
	ldr	x20, [x8]
LBB0_3:
	mov	sp, x25
	ldur	x8, [x29, #-88]
Lloh11:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh12:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_18
; %bb.4:
	mov	x0, x20
	sub	sp, x29, #80
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_5:
	str	xzr, [x21]
	adrp	x24, __gsskrb5_pname_to_uid.buflen_hint@PAGE
	ldr	x21, [x24, __gsskrb5_pname_to_uid.buflen_hint@PAGEOFF]
Lloh14:
	adrp	x26, _ERANGE@GOTPAGE
Lloh15:
	ldr	x26, [x26, _ERANGE@GOTPAGEOFF]
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	str	xzr, [x19, #8]
	cmp	x21, #1025
	b.lo	LBB0_10
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x21
	bl	_malloc
	cbz	x0, LBB0_2
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x23, x0
	add	x1, x19, #16
	add	x4, x19, #8
	mov	x0, x22
	mov	x2, x23
	mov	x3, x21
	bl	_getpwnam_r
	ldr	w8, [x26]
	cmp	w0, w8
	b.ne	LBB0_13
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x0, x23
	bl	_free
	b	LBB0_11
LBB0_10:                                ;   in Loop: Header=BB0_6 Depth=1
	add	x23, x19, #24
	add	x1, x19, #16
	add	x2, x19, #24
	add	x4, x19, #8
	mov	x0, x22
	mov	x3, x21
	bl	_getpwnam_r
	ldr	w8, [x26]
	cmp	w0, w8
	b.ne	LBB0_13
LBB0_11:                                ;   in Loop: Header=BB0_6 Depth=1
	add	x21, x21, #1024
	ldr	x8, [x24, __gsskrb5_pname_to_uid.buflen_hint@PAGEOFF]
	cmp	x21, x8
	b.ls	LBB0_6
; %bb.12:                               ;   in Loop: Header=BB0_6 Depth=1
	str	x21, [x24, __gsskrb5_pname_to_uid.buflen_hint@PAGEOFF]
	b	LBB0_6
LBB0_13:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_15
; %bb.14:
	ldr	w8, [x8]
	str	w8, [x20]
Lloh16:
	adrp	x8, _GSS_S_COMPLETE@GOTPAGE
Lloh17:
	ldr	x8, [x8, _GSS_S_COMPLETE@GOTPAGEOFF]
	b	LBB0_16
LBB0_15:
Lloh18:
	adrp	x8, _GSS_S_FAILURE@GOTPAGE
Lloh19:
	ldr	x8, [x8, _GSS_S_FAILURE@GOTPAGEOFF]
LBB0_16:
	ldr	x20, [x8]
	cmp	x21, #1025
	b.lo	LBB0_3
; %bb.17:
	mov	x0, x23
	bl	_free
	b	LBB0_3
LBB0_18:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_MAXLOGNAME,4,2                 ; @MAXLOGNAME
	.section	__DATA,__data
	.p2align	3                               ; @_gsskrb5_pname_to_uid.buflen_hint
__gsskrb5_pname_to_uid.buflen_hint:
	.quad	1024                            ; 0x400

	.comm	_GSS_S_FAILURE,8,3              ; @GSS_S_FAILURE
	.comm	_ERANGE,4,2                     ; @ERANGE
	.comm	_GSS_S_COMPLETE,8,3             ; @GSS_S_COMPLETE
.subsections_via_symbols
