	.file	"extr_pam_ksu.c_auth_krb5.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Password for %s:"
.LC1:
	.string	"Password:"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC2:
	.string	"krb5_get_init_creds_opt_alloc: %s"
	.align 8
.LC3:
	.string	"krb5_get_init_creds_password: %s"
	.section	.rodata.str1.1
.LC4:
	.string	"krb5_verify_init_creds: %s"
	.text
	.p2align 4
	.type	auth_krb5, @function
auth_krb5:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	mov	r14, rdi
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r13d, ecx
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12, rdx
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	ebp, esi
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	sub	rsp, 48
	.cfi_def_cfa_offset 96
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 40[rsp], rax
	xor	eax, eax
	lea	rbx, 12[rsp]
	mov	QWORD PTR 32[rsp], 0
	mov	rdi, rbx
	call	krb5_verify_init_creds_opt_init@PLT
	lea	rdi, 32[rsp]
	test	r12, r12
	je	.L2
	mov	rdx, r12
	lea	rsi, .LC0[rip]
	xor	eax, eax
	call	asprintf@PLT
.L3:
	mov	rcx, QWORD PTR 32[rsp]
	mov	r12d, DWORD PTR PAM_BUF_ERR[rip]
	test	rcx, rcx
	je	.L1
	mov	esi, DWORD PTR PAM_AUTHTOK[rip]
	lea	rdx, 24[rsp]
	mov	rdi, r14
	mov	QWORD PTR 24[rsp], 0
	call	pam_get_authtok@PLT
	mov	rdi, QWORD PTR 32[rsp]
	mov	r12d, eax
	call	free@PLT
	cmp	DWORD PTR PAM_SUCCESS[rip], r12d
	je	.L14
.L1:
	mov	rax, QWORD PTR 40[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L15
	add	rsp, 48
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L14:
	.cfi_restore_state
	lea	rsi, 16[rsp]
	mov	edi, ebp
	call	krb5_get_init_creds_opt_alloc@PLT
	test	rax, rax
	jne	.L16
	lea	r14, 8[rsp]
	sub	rsp, 8
	.cfi_def_cfa_offset 104
	xor	r9d, r9d
	xor	r8d, r8d
	push	QWORD PTR 24[rsp]
	.cfi_def_cfa_offset 112
	mov	rsi, r14
	mov	edi, ebp
	mov	edx, r13d
	push	0
	.cfi_def_cfa_offset 120
	push	0
	.cfi_def_cfa_offset 128
	mov	rcx, QWORD PTR 56[rsp]
	call	krb5_get_init_creds_password@PLT
	mov	rsi, QWORD PTR 48[rsp]
	add	rsp, 32
	.cfi_def_cfa_offset 96
	mov	edi, ebp
	mov	r12, rax
	call	krb5_get_init_creds_opt_free@PLT
	test	r12, r12
	jne	.L17
	mov	esi, 1
	mov	rdi, rbx
	call	krb5_verify_init_creds_opt_set_ap_req_nofail@PLT
	mov	r9, rbx
	xor	r8d, r8d
	xor	ecx, ecx
	xor	edx, edx
	mov	rsi, r14
	mov	edi, ebp
	call	krb5_verify_init_creds@PLT
	mov	rsi, r14
	mov	edi, ebp
	mov	r13, rax
	call	krb5_free_cred_contents@PLT
	mov	r12d, DWORD PTR PAM_SUCCESS[rip]
	test	r13, r13
	je	.L1
	mov	rsi, r13
	mov	edi, ebp
	call	krb5_get_error_message@PLT
	lea	rdi, .LC4[rip]
	mov	r12, rax
	mov	rsi, rax
	jmp	.L12
	.p2align 4,,10
	.p2align 3
.L2:
	lea	rsi, .LC1[rip]
	xor	eax, eax
	call	asprintf@PLT
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L16:
	mov	rsi, rax
	mov	edi, ebp
	call	krb5_get_error_message@PLT
	lea	rdi, .LC2[rip]
	mov	r12, rax
	mov	rsi, rax
.L12:
	call	PAM_LOG@PLT
	mov	rsi, r12
	mov	edi, ebp
	call	krb5_free_error_message@PLT
	mov	r12d, DWORD PTR PAM_AUTH_ERR[rip]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L17:
	mov	rsi, r12
	mov	edi, ebp
	call	krb5_get_error_message@PLT
	lea	rdi, .LC3[rip]
	mov	r12, rax
	mov	rsi, rax
	jmp	.L12
.L15:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	auth_krb5, .-auth_krb5
	.comm	PAM_SUCCESS,4,4
	.comm	PAM_BUF_ERR,4,4
	.comm	PAM_AUTH_ERR,4,4
	.comm	PAM_AUTHTOK,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_pam_ksu.c_auth_krb5.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Password for %s:\000"
	.align	2
.LC1:
	.ascii	"Password:\000"
	.align	2
.LC2:
	.ascii	"krb5_get_init_creds_opt_alloc: %s\000"
	.align	2
.LC3:
	.ascii	"krb5_get_init_creds_password: %s\000"
	.align	2
.LC4:
	.ascii	"krb5_verify_init_creds: %s\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC5:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	auth_krb5, %function
auth_krb5:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	mov	ip, #0
	mov	r4, r2
	sub	sp, sp, #52
	mov	r7, r3
	ldr	r3, .L18
	mov	r6, r0
	add	r0, sp, #32
	ldr	r3, [r3]
	str	r3, [sp, #44]
	mov	r3,#0
	mov	r5, r1
	str	ip, [sp, #40]
	bl	krb5_verify_init_creds_opt_init
	cmp	r4, #0
	beq	.L2
	mov	r2, r4
	ldr	r1, .L18+4
	add	r0, sp, #40
	bl	asprintf
.L3:
	ldr	r3, [sp, #40]
	cmp	r3, #0
	beq	.L13
	mov	ip, #0
	ldr	r2, .L18+8
	mov	r0, r6
	ldr	r1, [r2]
	add	r2, sp, #36
	str	ip, [sp, #36]
	bl	pam_get_authtok
	mov	r4, r0
	ldr	r6, .L18+12
	ldr	r0, [sp, #40]
	bl	free
	ldr	r3, [r6]
	cmp	r3, r4
	beq	.L14
.L1:
	ldr	r3, .L18
	ldr	r2, [r3]
	ldr	r3, [sp, #44]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L15
	mov	r0, r4
	add	sp, sp, #52
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L14:
	add	r1, sp, #28
	mov	r0, r5
	bl	krb5_get_init_creds_opt_alloc
	subs	r1, r0, #0
	bne	.L16
	ldr	r3, [sp, #28]
	mov	r2, r7
	str	r1, [sp, #12]
	str	r1, [sp, #8]
	str	r1, [sp, #4]
	str	r1, [sp]
	str	r3, [sp, #16]
	add	r1, sp, #24
	ldr	r3, [sp, #36]
	mov	r0, r5
	bl	krb5_get_init_creds_password
	mov	r4, r0
	ldr	r1, [sp, #28]
	mov	r0, r5
	bl	krb5_get_init_creds_opt_free
	cmp	r4, #0
	bne	.L17
	mov	r1, #1
	add	r0, sp, #32
	bl	krb5_verify_init_creds_opt_set_ap_req_nofail
	add	r3, sp, #32
	mov	r2, r4
	str	r3, [sp, #4]
	str	r4, [sp]
	mov	r3, r4
	add	r1, sp, #24
	mov	r0, r5
	bl	krb5_verify_init_creds
	mov	r4, r0
	add	r1, sp, #24
	mov	r0, r5
	bl	krb5_free_cred_contents
	cmp	r4, #0
	ldreq	r4, [r6]
	beq	.L1
	mov	r1, r4
	mov	r0, r5
	bl	krb5_get_error_message
	mov	r4, r0
	ldr	r0, .L18+16
	b	.L11
.L13:
	ldr	r3, .L18+20
	ldr	r4, [r3]
	b	.L1
.L2:
	ldr	r1, .L18+24
	add	r0, sp, #40
	bl	asprintf
	b	.L3
.L16:
	mov	r0, r5
	bl	krb5_get_error_message
	mov	r4, r0
	ldr	r0, .L18+28
.L11:
	mov	r1, r4
	bl	PAM_LOG
	mov	r1, r4
	mov	r0, r5
	bl	krb5_free_error_message
	ldr	r3, .L18+32
	ldr	r4, [r3]
	b	.L1
.L17:
	mov	r1, r4
	mov	r0, r5
	bl	krb5_get_error_message
	mov	r4, r0
	ldr	r0, .L18+36
	b	.L11
.L15:
	bl	__stack_chk_fail
.L19:
	.align	2
.L18:
	.word	.LC5
	.word	.LC0
	.word	PAM_AUTHTOK
	.word	PAM_SUCCESS
	.word	.LC4
	.word	PAM_BUF_ERR
	.word	.LC1
	.word	.LC2
	.word	PAM_AUTH_ERR
	.word	.LC3
	.size	auth_krb5, .-auth_krb5
	.comm	PAM_SUCCESS,4,4
	.comm	PAM_BUF_ERR,4,4
	.comm	PAM_AUTH_ERR,4,4
	.comm	PAM_AUTHTOK,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
