	.file	"extr_pname_to_uid.c__gsskrb5_pname_to_uid.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	_gsskrb5_pname_to_uid
	.type	_gsskrb5_pname_to_uid, @function
_gsskrb5_pname_to_uid:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	push	r15
	.cfi_offset 15, -24
	mov	r15, rcx
	push	r14
	push	r13
	.cfi_offset 14, -32
	.cfi_offset 13, -40
	mov	r13d, esi
	push	r12
	push	rbx
	.cfi_offset 12, -48
	.cfi_offset 3, -56
	mov	rbx, rdi
	sub	rsp, 1064
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -56[rbp], rax
	xor	eax, eax
	mov	eax, DWORD PTR MAXLOGNAME[rip]
	mov	rcx, rsp
	lea	r12d, 1[rax]
	movsx	rax, r12d
	add	rax, 15
	mov	rdx, rax
	and	rax, -4096
	sub	rcx, rax
	and	rdx, -16
	mov	rax, rcx
	cmp	rsp, rax
	je	.L3
.L32:
	sub	rsp, 4096
	or	QWORD PTR 4088[rsp], 0
	cmp	rsp, rax
	jne	.L32
.L3:
	and	edx, 4095
	sub	rsp, rdx
	test	rdx, rdx
	jne	.L33
.L4:
	lea	rdi, -1104[rbp]
	mov	r14, rsp
	call	GSSAPI_KRB5_INIT@PLT
	mov	rcx, rsp
	mov	edx, r12d
	mov	esi, r13d
	mov	edi, DWORD PTR -1104[rbp]
	call	krb5_aname_to_localname@PLT
	test	rax, rax
	jne	.L34
	mov	QWORD PTR [rbx], 0
	mov	rbx, QWORD PTR buflen_hint.1964[rip]
	lea	r13, -1096[rbp]
	.p2align 4,,10
	.p2align 3
.L7:
	mov	QWORD PTR -1096[rbp], 0
	cmp	rbx, 1024
	ja	.L35
	lea	r12, -1088[rbp]
	mov	r8, r13
	mov	rcx, rbx
	mov	rdi, r14
	lea	rsi, -1100[rbp]
	mov	rdx, r12
	call	getpwnam_r@PLT
	cmp	DWORD PTR ERANGE[rip], eax
	jne	.L13
.L15:
	add	rbx, 1024
	cmp	QWORD PTR buflen_hint.1964[rip], rbx
	jnb	.L7
	mov	QWORD PTR buflen_hint.1964[rip], rbx
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L34:
	mov	QWORD PTR [rbx], rax
	mov	r13, QWORD PTR GSS_S_FAILURE[rip]
.L1:
	mov	rax, QWORD PTR -56[rbp]
	xor	rax, QWORD PTR fs:40
	jne	.L36
	lea	rsp, -40[rbp]
	mov	rax, r13
	pop	rbx
	pop	r12
	pop	r13
	pop	r14
	pop	r15
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa 7, 8
	ret
	.p2align 4,,10
	.p2align 3
.L35:
	.cfi_restore_state
	mov	rdi, rbx
	call	malloc@PLT
	mov	r12, rax
	test	rax, rax
	je	.L37
	lea	rsi, -1100[rbp]
	mov	r8, r13
	mov	rcx, rbx
	mov	rdx, rax
	mov	rdi, r14
	call	getpwnam_r@PLT
	cmp	DWORD PTR ERANGE[rip], eax
	jne	.L13
	mov	rdi, r12
	call	free@PLT
	jmp	.L15
	.p2align 4,,10
	.p2align 3
.L13:
	mov	rdx, QWORD PTR -1096[rbp]
	cmp	rbx, 1024
	seta	al
	test	rdx, rdx
	je	.L9
	mov	edx, DWORD PTR [rdx]
	mov	r13, QWORD PTR GSS_S_COMPLETE[rip]
	mov	DWORD PTR [r15], edx
.L12:
	test	al, al
	je	.L1
	mov	rdi, r12
	call	free@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L37:
	xor	eax, eax
.L9:
	mov	r13, QWORD PTR GSS_S_FAILURE[rip]
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L33:
	or	QWORD PTR -8[rsp+rdx], 0
	jmp	.L4
.L36:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	_gsskrb5_pname_to_uid, .-_gsskrb5_pname_to_uid
	.data
	.align 8
	.type	buflen_hint.1964, @object
	.size	buflen_hint.1964, 8
buflen_hint.1964:
	.quad	1024
	.comm	MAXLOGNAME,4,4
	.comm	GSS_S_FAILURE,8,8
	.comm	GSS_S_COMPLETE,8,8
	.comm	ERANGE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_pname_to_uid.c__gsskrb5_pname_to_uid.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	_gsskrb5_pname_to_uid
	.syntax unified
	.arm
	.fpu softvfp
	.type	_gsskrb5_pname_to_uid, %function
_gsskrb5_pname_to_uid:
	@ args = 0, pretend = 0, frame = 1040
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	add	fp, sp, #32
	sub	sp, sp, #1040
	sub	sp, sp, #12
	mov	r6, r1
	ldr	r2, .L31
	mov	r5, r0
	ldr	r2, [r2]
	mov	r10, r3
	add	r1, r2, #8
	bic	r1, r1, #7
	sub	sp, sp, r1
	ldr	r3, .L31+4
	sub	r0, fp, #1072
	add	r4, r2, #1
	sub	r0, r0, #4
	add	r7, sp, #8
	ldr	r3, [r3]
	str	r3, [fp, #-40]
	mov	r3,#0
	bl	GSSAPI_KRB5_INIT
	mov	r3, r7
	mov	r2, r4
	mov	r1, r6
	ldr	r0, [fp, #-1076]
	bl	krb5_aname_to_localname
	cmp	r0, #0
	bne	.L26
	ldr	r6, .L31+8
	sub	r3, fp, #1056
	sub	r3, r3, #4
	ldr	r4, [r6]
	ldr	r8, .L31+12
	str	r0, [r5]
	sub	r9, r3, #4
	b	.L4
.L5:
	sub	r3, fp, #1056
	sub	r3, r3, #4
	sub	r3, r3, #8
	str	r3, [sp]
	mov	r2, r9
	mov	r3, r4
	mov	r0, r7
	sub	r1, fp, #1072
	bl	getpwnam_r
	ldr	r3, [r8]
	cmp	r3, r0
	bne	.L27
.L12:
	ldr	r3, [r6]
	add	r4, r4, #1024
	cmp	r3, r4
	strcc	r4, [r6]
.L4:
	mov	r3, #0
	cmp	r4, #1024
	str	r3, [fp, #-1068]
	bls	.L5
	mov	r0, r4
	bl	malloc
	subs	r5, r0, #0
	beq	.L28
	sub	r3, fp, #1056
	sub	r3, r3, #4
	sub	r3, r3, #8
	str	r3, [sp]
	mov	r2, r5
	mov	r3, r4
	mov	r0, r7
	sub	r1, fp, #1072
	bl	getpwnam_r
	ldr	r3, [r8]
	cmp	r3, r0
	bne	.L10
	mov	r0, r5
	bl	free
	b	.L12
.L27:
	mov	r5, r9
.L10:
	ldr	r3, [fp, #-1068]
	cmp	r4, #1024
	movls	r4, #0
	movhi	r4, #1
	cmp	r3, #0
	beq	.L6
	ldr	r2, [r3]
	ldr	r3, .L31+16
	cmp	r4, #0
	ldr	r6, [r3]
	str	r2, [r10]
	bne	.L29
.L1:
	ldr	r3, .L31+4
	ldr	r2, [r3]
	ldr	r3, [fp, #-40]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L30
	mov	r0, r6
	sub	sp, fp, #32
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L26:
	ldr	r3, .L31+20
	str	r0, [r5]
	ldr	r6, [r3]
	b	.L1
.L28:
	mov	r4, r5
.L6:
	ldr	r3, .L31+20
	cmp	r4, #0
	ldr	r6, [r3]
	beq	.L1
.L29:
	mov	r0, r5
	bl	free
	b	.L1
.L30:
	bl	__stack_chk_fail
.L32:
	.align	2
.L31:
	.word	MAXLOGNAME
	.word	.LC0
	.word	.LANCHOR0
	.word	ERANGE
	.word	GSS_S_COMPLETE
	.word	GSS_S_FAILURE
	.size	_gsskrb5_pname_to_uid, .-_gsskrb5_pname_to_uid
	.comm	MAXLOGNAME,4,4
	.comm	GSS_S_FAILURE,4,4
	.comm	GSS_S_COMPLETE,4,4
	.comm	ERANGE,4,4
	.data
	.align	2
	.set	.LANCHOR0,. + 0
	.type	buflen_hint.4248, %object
	.size	buflen_hint.4248, 4
buflen_hint.4248:
	.word	1024
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
