	.file	"extr_get_cred.c_get_cred_kdc_capath_worker.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	""
.LC1:
	.string	"malloc: out of memory"
	.text
	.p2align 4
	.type	get_cred_kdc_capath_worker, @function
get_cred_kdc_capath_worker:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15d, r8d
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	ebp, edi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rcx
	sub	rsp, 136
	.cfi_def_cfa_offset 192
	mov	rax, QWORD PTR 192[rsp]
	mov	DWORD PTR 52[rsp], r9d
	lea	r13, 64[rsp]
	mov	DWORD PTR 8[rsp], edx
	mov	r14, QWORD PTR 208[rsp]
	mov	QWORD PTR 56[rsp], rax
	mov	rax, QWORD PTR 200[rsp]
	mov	DWORD PTR 48[rsp], esi
	mov	rsi, QWORD PTR [rbx]
	mov	QWORD PTR 32[rsp], rax
	mov	rcx, QWORD PTR fs:40
	mov	QWORD PTR 120[rsp], rcx
	xor	ecx, ecx
	mov	QWORD PTR [rax], 0
	call	krb5_principal_get_realm@PLT
	mov	rsi, QWORD PTR 8[rbx]
	mov	edi, ebp
	mov	DWORD PTR 40[rsp], eax
	call	krb5_principal_get_realm@PLT
	mov	edx, 24
	xor	esi, esi
	mov	rdi, r13
	mov	r12d, eax
	call	memset@PLT
	mov	rsi, QWORD PTR [rbx]
	mov	rdx, r13
	mov	edi, ebp
	call	krb5_copy_principal@PLT
	mov	r8, rax
	test	rax, rax
	je	.L36
.L1:
	mov	rax, QWORD PTR 120[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L37
	add	rsp, 136
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	rax, r8
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L36:
	.cfi_restore_state
	lea	rax, 72[rsp]
	mov	ecx, DWORD PTR KRB5_TGS_NAME[rip]
	xor	r9d, r9d
	mov	edi, ebp
	mov	r8d, r12d
	mov	edx, r15d
	mov	rsi, rax
	mov	QWORD PTR 24[rsp], rax
	call	krb5_make_principal@PLT
	test	rax, rax
	jne	.L38
	lea	rax, 96[rsp]
	mov	rcx, QWORD PTR [r14]
	mov	rdx, QWORD PTR 72[rsp]
	mov	edi, ebp
	mov	esi, DWORD PTR 8[rsp]
	mov	r8, rax
	mov	QWORD PTR 16[rsp], rax
	call	find_cred@PLT
	test	rax, rax
	je	.L39
	mov	rdx, QWORD PTR 8[rbx]
	mov	rsi, QWORD PTR [rbx]
	mov	edi, ebp
	call	krb5_realm_compare@PLT
	mov	ecx, 1
	test	rax, rax
	jne	.L40
	mov	QWORD PTR 40[rsp], rbx
	mov	ebx, ecx
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L12:
	mov	rsi, QWORD PTR 96[rsp]
	test	ebx, ebx
	je	.L13
	mov	eax, DWORD PTR 16[rsi]
	test	eax, eax
	jne	.L14
.L13:
	mov	DWORD PTR 16[rsi], 0
	xor	ebx, ebx
.L14:
	mov	rdx, r14
	mov	edi, ebp
	call	add_cred@PLT
	test	rax, rax
	jne	.L33
	mov	rax, QWORD PTR 96[rsp]
	mov	esi, r12d
	mov	rax, QWORD PTR 8[rax]
	mov	rax, QWORD PTR [rax]
	mov	r15d, DWORD PTR 4[rax]
	mov	edi, r15d
	call	strcmp@PLT
	test	rax, rax
	je	.L16
	mov	rsi, QWORD PTR 72[rsp]
	mov	edi, ebp
	call	krb5_free_principal@PLT
	mov	ecx, DWORD PTR KRB5_TGS_NAME[rip]
	xor	r9d, r9d
	mov	edi, ebp
	mov	rsi, QWORD PTR 24[rsp]
	mov	r8d, r12d
	mov	edx, r15d
	mov	QWORD PTR 72[rsp], 0
	call	krb5_make_principal@PLT
	test	rax, rax
	jne	.L33
	mov	rsi, QWORD PTR 96[rsp]
	mov	edi, ebp
	call	krb5_free_creds@PLT
	test	rax, rax
	jne	.L33
.L11:
	push	r14
	.cfi_def_cfa_offset 200
	mov	rcx, r13
	xor	r9d, r9d
	xor	r8d, r8d
	push	QWORD PTR 24[rsp]
	.cfi_def_cfa_offset 208
	mov	edx, DWORD PTR 24[rsp]
	mov	edi, ebp
	mov	esi, DWORD PTR 64[rsp]
	call	get_cred_kdc_capath@PLT
	pop	rdx
	.cfi_def_cfa_offset 200
	pop	rcx
	.cfi_def_cfa_offset 192
	test	rax, rax
	je	.L12
.L33:
	mov	QWORD PTR 8[rsp], rax
.L34:
	mov	rsi, QWORD PTR 72[rsp]
	mov	edi, ebp
	call	krb5_free_principal@PLT
	mov	rsi, QWORD PTR 64[rsp]
	mov	edi, ebp
	call	krb5_free_principal@PLT
	mov	r8, QWORD PTR 8[rsp]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L38:
	mov	rsi, QWORD PTR 64[rsp]
	mov	edi, ebp
	mov	QWORD PTR 8[rsp], rax
	call	krb5_free_principal@PLT
	mov	r8, QWORD PTR 8[rsp]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L39:
	mov	esi, DWORD PTR 40[rsp]
	mov	edi, r15d
	call	strcmp@PLT
	test	rax, rax
	je	.L5
.L7:
	mov	r12d, DWORD PTR 112[rsp]
.L6:
	mov	esi, 24
	mov	edi, 1
	call	calloc@PLT
	mov	rcx, QWORD PTR 32[rsp]
	mov	QWORD PTR [rcx], rax
	test	rax, rax
	je	.L41
	sub	rsp, 8
	.cfi_def_cfa_offset 200
	mov	r8, rbx
	xor	ecx, ecx
	mov	edi, ebp
	push	rax
	.cfi_def_cfa_offset 208
	push	QWORD PTR 72[rsp]
	.cfi_def_cfa_offset 216
	mov	eax, DWORD PTR 76[rsp]
	push	rax
	.cfi_def_cfa_offset 224
	mov	r9, QWORD PTR 48[rsp]
	mov	edx, DWORD PTR 80[rsp]
	mov	esi, DWORD PTR 40[rsp]
	call	get_cred_kdc_address@PLT
	add	rsp, 32
	.cfi_def_cfa_offset 192
	mov	r8, rax
	test	rax, rax
	jne	.L42
	test	r12d, r12d
	jne	.L9
	mov	rax, QWORD PTR 32[rsp]
	mov	rax, QWORD PTR [rax]
	mov	DWORD PTR 16[rax], 0
.L9:
	mov	rsi, QWORD PTR 16[rsp]
	mov	edi, ebp
	mov	QWORD PTR 8[rsp], r8
	call	krb5_free_cred_contents@PLT
	jmp	.L34
	.p2align 4,,10
	.p2align 3
.L40:
	mov	rsi, QWORD PTR 8[rbx]
	mov	edx, DWORD PTR KRB5_CC_NOTFOUND[rip]
	mov	edi, ebp
	call	not_found@PLT
	mov	r8, rax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L5:
	mov	esi, r12d
	mov	edi, r15d
	call	strcmp@PLT
	test	rax, rax
	jne	.L7
	mov	r12d, 1
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L16:
	mov	rsi, QWORD PTR 72[rsp]
	mov	edi, ebp
	mov	rbx, QWORD PTR 40[rsp]
	call	krb5_free_principal@PLT
	mov	rsi, QWORD PTR 64[rsp]
	mov	edi, ebp
	call	krb5_free_principal@PLT
	mov	esi, 24
	mov	edi, 1
	call	calloc@PLT
	mov	rcx, QWORD PTR 32[rsp]
	mov	QWORD PTR [rcx], rax
	test	rax, rax
	je	.L43
	sub	rsp, 8
	.cfi_def_cfa_offset 200
	mov	r8, rbx
	xor	ecx, ecx
	mov	edi, ebp
	push	rax
	.cfi_def_cfa_offset 208
	push	QWORD PTR 72[rsp]
	.cfi_def_cfa_offset 216
	mov	eax, DWORD PTR 76[rsp]
	push	rax
	.cfi_def_cfa_offset 224
	mov	r9, QWORD PTR 128[rsp]
	mov	edx, DWORD PTR 80[rsp]
	mov	esi, DWORD PTR 40[rsp]
	call	get_cred_kdc_address@PLT
	add	rsp, 32
	.cfi_def_cfa_offset 192
	mov	r8, rax
	test	rax, rax
	jne	.L44
.L19:
	mov	rsi, QWORD PTR 96[rsp]
	mov	edi, ebp
	mov	QWORD PTR 8[rsp], r8
	call	krb5_free_creds@PLT
	mov	r8, QWORD PTR 8[rsp]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L41:
	mov	r8, QWORD PTR ENOMEM[rip]
	lea	rsi, .LC0[rip]
	lea	rdi, .LC1[rip]
	mov	QWORD PTR 8[rsp], r8
	call	N_@PLT
	mov	r8, QWORD PTR 8[rsp]
	mov	edi, ebp
	mov	edx, eax
	mov	rsi, r8
	call	krb5_set_error_message@PLT
	mov	r8, QWORD PTR 8[rsp]
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L42:
	mov	rbx, QWORD PTR 32[rsp]
	mov	QWORD PTR 8[rsp], rax
	mov	rdi, QWORD PTR [rbx]
	call	free@PLT
	mov	QWORD PTR [rbx], 0
	mov	r8, QWORD PTR 8[rsp]
	jmp	.L9
.L43:
	mov	r8, QWORD PTR ENOMEM[rip]
	lea	rsi, .LC0[rip]
	lea	rdi, .LC1[rip]
	mov	QWORD PTR 8[rsp], r8
	call	N_@PLT
	mov	r8, QWORD PTR 8[rsp]
	mov	edi, ebp
	mov	edx, eax
	mov	rsi, r8
	call	krb5_set_error_message@PLT
	mov	r8, QWORD PTR 8[rsp]
	jmp	.L19
.L44:
	mov	rbx, QWORD PTR 32[rsp]
	mov	QWORD PTR 8[rsp], rax
	mov	rdi, QWORD PTR [rbx]
	call	free@PLT
	mov	QWORD PTR [rbx], 0
	mov	r8, QWORD PTR 8[rsp]
	jmp	.L19
.L37:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	get_cred_kdc_capath_worker, .-get_cred_kdc_capath_worker
	.comm	KRB5_TGS_NAME,4,4
	.comm	KRB5_CC_NOTFOUND,4,4
	.comm	ENOMEM,8,8
	.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_get_cred.c_get_cred_kdc_capath_worker.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"\000"
	.align	2
.LC1:
	.ascii	"malloc: out of memory\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	get_cred_kdc_capath_worker, %function
get_cred_kdc_capath_worker:
	@ args = 20, pretend = 0, frame = 56
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r6, r3
	mov	r3, r1
	mov	r4, #0
	sub	sp, sp, #84
	ldr	ip, [sp, #132]
	ldr	r1, .L42
	str	ip, [sp, #36]
	ldr	r1, [r1]
	str	r1, [sp, #76]
	mov	r1,#0
	str	r3, [sp, #32]
	ldr	r3, [sp, #128]
	ldr	r1, [r6]
	str	r4, [ip]
	mov	r5, r0
	mov	r10, r2
	str	r3, [sp, #40]
	ldr	fp, [sp, #136]
	bl	krb5_principal_get_realm
	ldr	r1, [r6, #4]
	mov	r8, r0
	mov	r0, r5
	bl	krb5_principal_get_realm
	ldr	r1, [r6]
	mov	r7, r0
	add	r2, sp, #52
	mov	r0, r5
	str	r4, [sp, #52]
	str	r4, [sp, #56]
	str	r4, [sp, #60]
	bl	krb5_copy_principal
	subs	r4, r0, #0
	beq	.L34
.L1:
	ldr	r3, .L42
	ldr	r2, [r3]
	ldr	r3, [sp, #76]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L35
	mov	r0, r4
	add	sp, sp, #84
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L34:
	ldr	r3, .L42+4
	str	r4, [sp, #4]
	str	r7, [sp]
	mov	r0, r5
	ldr	r3, [r3]
	ldr	r2, [sp, #120]
	add	r1, sp, #56
	bl	krb5_make_principal
	subs	r4, r0, #0
	bne	.L32
	add	r3, sp, #64
	str	r3, [sp]
	mov	r1, r10
	mov	r0, r5
	ldr	r3, [fp]
	ldr	r2, [sp, #56]
	bl	find_cred
	cmp	r0, #0
	beq	.L36
	ldm	r6, {r1, r2}
	mov	r0, r5
	bl	krb5_realm_compare
	subs	r9, r0, #0
	bne	.L37
	mov	r3, #1
	ldr	r8, [sp, #32]
	str	r3, [sp, #28]
	str	r6, [sp, #44]
	b	.L11
.L12:
	ldr	r3, [sp, #28]
	ldr	r1, [sp, #64]
	cmp	r3, #0
	beq	.L13
	ldr	r3, [r1, #8]
	cmp	r3, #0
	bne	.L14
.L13:
	mov	r3, #0
	str	r9, [r1, #8]
	str	r3, [sp, #28]
.L14:
	mov	r2, fp
	mov	r0, r5
	bl	add_cred
	subs	r4, r0, #0
	bne	.L31
	ldr	r3, [sp, #64]
	mov	r1, r7
	ldr	r3, [r3, #4]
	ldr	r3, [r3]
	ldr	r6, [r3, #4]
	mov	r0, r6
	bl	strcmp
	cmp	r0, #0
	beq	.L16
	ldr	r1, [sp, #56]
	mov	r0, r5
	bl	krb5_free_principal
	ldr	r3, .L42+4
	str	r4, [sp, #4]
	str	r7, [sp]
	mov	r2, r6
	mov	r0, r5
	ldr	r3, [r3]
	add	r1, sp, #56
	str	r4, [sp, #56]
	bl	krb5_make_principal
	subs	r4, r0, #0
	bne	.L31
	mov	r0, r5
	ldr	r1, [sp, #64]
	bl	krb5_free_creds
	subs	r4, r0, #0
	bne	.L31
.L11:
	add	r3, sp, #64
	str	r3, [sp, #8]
	mov	r2, r10
	mov	r1, r8
	mov	r0, r5
	str	fp, [sp, #12]
	str	r9, [sp, #4]
	str	r9, [sp]
	add	r3, sp, #52
	bl	get_cred_kdc_capath
	subs	r4, r0, #0
	beq	.L12
.L31:
	mov	r0, r5
	ldr	r1, [sp, #56]
	bl	krb5_free_principal
.L32:
	mov	r0, r5
	ldr	r1, [sp, #52]
	bl	krb5_free_principal
	b	.L1
.L36:
	mov	r1, r8
	ldr	r0, [sp, #120]
	bl	strcmp
	cmp	r0, #0
	beq	.L5
.L7:
	ldr	r7, [sp, #72]
.L6:
	mov	r1, #12
	mov	r0, #1
	bl	calloc
	ldr	r3, [sp, #36]
	cmp	r0, #0
	str	r0, [r3]
	beq	.L38
	ldr	r3, [sp, #40]
	str	r0, [sp, #16]
	str	r3, [sp, #12]
	ldr	r3, [sp, #124]
	mov	r1, r10
	str	r3, [sp, #8]
	add	r3, sp, #64
	str	r3, [sp, #4]
	mov	r0, r5
	mov	r3, #0
	ldr	r2, [sp, #32]
	str	r6, [sp]
	bl	get_cred_kdc_address
	subs	r4, r0, #0
	bne	.L39
	cmp	r7, #0
	ldreq	r3, [sp, #36]
	ldreq	r3, [r3]
	streq	r4, [r3, #8]
.L9:
	add	r1, sp, #64
	mov	r0, r5
	bl	krb5_free_cred_contents
	mov	r0, r5
	ldr	r1, [sp, #56]
	bl	krb5_free_principal
	b	.L32
.L37:
	ldr	r3, .L42+8
	mov	r0, r5
	ldr	r1, [r6, #4]
	ldr	r2, [r3]
	bl	not_found
	mov	r4, r0
	b	.L1
.L39:
	ldr	r6, [sp, #36]
	ldr	r0, [r6]
	bl	free
	mov	r3, #0
	str	r3, [r6]
	b	.L9
.L5:
	mov	r1, r7
	ldr	r0, [sp, #120]
	bl	strcmp
	cmp	r0, #0
	bne	.L7
	mov	r7, #1
	b	.L6
.L16:
	ldr	r1, [sp, #56]
	mov	r7, r0
	mov	r0, r5
	ldr	r6, [sp, #44]
	bl	krb5_free_principal
	ldr	r1, [sp, #52]
	mov	r0, r5
	bl	krb5_free_principal
	mov	r1, #12
	mov	r0, #1
	bl	calloc
	ldr	r3, [sp, #36]
	cmp	r0, #0
	str	r0, [r3]
	beq	.L40
	ldr	r3, [sp, #40]
	ldr	ip, [sp, #64]
	str	r3, [sp, #12]
	ldr	r3, [sp, #124]
	str	r0, [sp, #16]
	str	r3, [sp, #8]
	mov	r1, r10
	mov	r3, r4
	mov	r0, r5
	ldr	r2, [sp, #32]
	str	r6, [sp]
	str	ip, [sp, #4]
	bl	get_cred_kdc_address
	subs	r4, r0, #0
	bne	.L41
.L19:
	mov	r0, r5
	ldr	r1, [sp, #64]
	bl	krb5_free_creds
	b	.L1
.L41:
	ldr	r6, [sp, #36]
	ldr	r0, [r6]
	bl	free
	str	r7, [r6]
	b	.L19
.L35:
	bl	__stack_chk_fail
.L40:
	ldr	r3, .L42+12
	ldr	r1, .L42+16
	ldr	r0, .L42+20
	ldr	r4, [r3]
	bl	N_
	mov	r1, r4
	mov	r2, r0
	mov	r0, r5
	bl	krb5_set_error_message
	b	.L19
.L38:
	ldr	r3, .L42+12
	ldr	r1, .L42+16
	ldr	r0, .L42+20
	ldr	r4, [r3]
	bl	N_
	mov	r1, r4
	mov	r2, r0
	mov	r0, r5
	bl	krb5_set_error_message
	b	.L9
.L43:
	.align	2
.L42:
	.word	.LC2
	.word	KRB5_TGS_NAME
	.word	KRB5_CC_NOTFOUND
	.word	ENOMEM
	.word	.LC0
	.word	.LC1
	.size	get_cred_kdc_capath_worker, .-get_cred_kdc_capath_worker
	.comm	KRB5_TGS_NAME,4,4
	.comm	KRB5_CC_NOTFOUND,4,4
	.comm	ENOMEM,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
