	.file	"extr_get_princs_c.c_kadm5_c_get_principals.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	kadm5_c_get_principals
	.type	kadm5_c_get_principals, @function
kadm5_c_get_principals:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15, rcx
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rsi
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rdx
	sub	rsp, 1064
	.cfi_def_cfa_offset 1120
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 1048[rsp], rax
	xor	eax, eax
	call	_kadm5_connect@PLT
	mov	r12, rax
	test	rax, rax
	je	.L19
.L1:
	mov	rax, QWORD PTR 1048[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L20
	add	rsp, 1064
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	rax, r12
	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
.L19:
	.cfi_restore_state
	lea	rdi, 16[rsp]
	mov	esi, 1024
	call	krb5_storage_from_mem@PLT
	mov	r14, rax
	test	rax, rax
	je	.L17
	mov	esi, DWORD PTR kadm_get_princs[rip]
	mov	rdi, rax
	call	krb5_store_int32@PLT
	xor	esi, esi
	test	r13, r13
	mov	rdi, r14
	setne	sil
	call	krb5_store_int32@PLT
	test	r13, r13
	je	.L4
	mov	rsi, r13
	mov	rdi, r14
	call	krb5_store_string@PLT
.L4:
	mov	rdi, rbp
	mov	rsi, r14
	call	_kadm5_client_send@PLT
	mov	rdi, r14
	mov	r12, rax
	call	krb5_storage_free@PLT
	test	r12, r12
	jne	.L1
	lea	r13, 12[rsp]
	mov	rdi, rbp
	mov	rsi, r13
	call	_kadm5_client_recv@PLT
	mov	r12, rax
	test	rax, rax
	jne	.L1
	mov	rdi, r13
	call	krb5_storage_from_data@PLT
	mov	rbp, rax
	test	rax, rax
	je	.L21
	lea	r14, 8[rsp]
	mov	rdi, rax
	mov	rsi, r14
	call	krb5_ret_int32@PLT
	movsx	r12, DWORD PTR 8[rsp]
	test	r12, r12
	je	.L22
.L6:
	mov	rdi, rbp
	call	krb5_storage_free@PLT
	mov	rdi, r13
	call	krb5_data_free@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L21:
	mov	rdi, r13
	call	krb5_data_free@PLT
	.p2align 4,,10
	.p2align 3
.L17:
	mov	r12, QWORD PTR ENOMEM[rip]
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L22:
	mov	rsi, r14
	mov	rdi, rbp
	call	krb5_ret_int32@PLT
	mov	eax, DWORD PTR 8[rsp]
	mov	esi, 8
	lea	edi, 1[rax]
	call	calloc@PLT
	mov	QWORD PTR [rbx], rax
	test	rax, rax
	je	.L7
	mov	edx, DWORD PTR 8[rsp]
	xor	r14d, r14d
	test	edx, edx
	jg	.L8
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L23:
	mov	rax, QWORD PTR [rbx]
.L8:
	lea	rsi, [rax+r14*8]
	mov	rdi, rbp
	add	r14, 1
	call	krb5_ret_string@PLT
	mov	edx, DWORD PTR 8[rsp]
	cmp	edx, r14d
	jg	.L23
.L9:
	mov	DWORD PTR [r15], edx
	jmp	.L6
.L7:
	mov	r12, QWORD PTR ENOMEM[rip]
	jmp	.L6
.L20:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	kadm5_c_get_principals, .-kadm5_c_get_principals
	.comm	kadm_get_princs,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_princs_c.c_kadm5_c_get_principals.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	kadm5_c_get_principals
	.syntax unified
	.arm
	.fpu softvfp
	.type	kadm5_c_get_principals, %function
kadm5_c_get_principals:
	@ args = 0, pretend = 0, frame = 1048
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, lr}
	mov	r8, r3
	sub	sp, sp, #1040
	ldr	r3, .L23
	sub	sp, sp, #12
	mov	r6, r1
	mov	r7, r2
	ldr	r3, [r3]
	str	r3, [sp, #1044]
	mov	r3,#0
	mov	r9, r0
	bl	_kadm5_connect
	subs	r4, r0, #0
	beq	.L18
.L1:
	ldr	r3, .L23
	ldr	r2, [r3]
	ldr	r3, [sp, #1044]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L19
	mov	r0, r4
	add	sp, sp, #1040
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L18:
	mov	r1, #1024
	add	r0, sp, #20
	bl	krb5_storage_from_mem
	subs	r5, r0, #0
	beq	.L16
	ldr	r3, .L23+4
	ldr	r1, [r3]
	bl	krb5_store_int32
	subs	r1, r6, #0
	movne	r1, #1
	mov	r0, r5
	bl	krb5_store_int32
	cmp	r6, #0
	beq	.L4
	mov	r1, r6
	mov	r0, r5
	bl	krb5_store_string
.L4:
	mov	r1, r5
	mov	r0, r9
	bl	_kadm5_client_send
	mov	r4, r0
	mov	r0, r5
	bl	krb5_storage_free
	cmp	r4, #0
	bne	.L1
	mov	r0, r9
	add	r1, sp, #16
	bl	_kadm5_client_recv
	subs	r4, r0, #0
	bne	.L1
	add	r0, sp, #16
	bl	krb5_storage_from_data
	subs	r6, r0, #0
	beq	.L20
	add	r3, sp, #12
	mov	r1, r3
	str	r3, [sp, #4]
	bl	krb5_ret_int32
	ldr	r4, [sp, #12]
	cmp	r4, #0
	beq	.L21
.L6:
	mov	r0, r6
	bl	krb5_storage_free
	add	r0, sp, #16
	bl	krb5_data_free
	b	.L1
.L20:
	add	r0, sp, #16
	bl	krb5_data_free
.L16:
	ldr	r3, .L23+8
	ldr	r4, [r3]
	b	.L1
.L21:
	ldr	r1, [sp, #4]
	mov	r0, r6
	bl	krb5_ret_int32
	ldr	r0, [sp, #12]
	mov	r1, #4
	add	r0, r0, #1
	bl	calloc
	cmp	r0, #0
	mov	r1, r0
	str	r0, [r7]
	beq	.L7
	ldr	r3, [sp, #12]
	cmp	r3, #0
	movgt	r5, r4
	bgt	.L8
	b	.L9
.L22:
	ldr	r1, [r7]
.L8:
	add	r1, r1, r5, lsl #2
	mov	r0, r6
	bl	krb5_ret_string
	ldr	r3, [sp, #12]
	add	r5, r5, #1
	cmp	r3, r5
	bgt	.L22
.L9:
	str	r3, [r8]
	b	.L6
.L19:
	bl	__stack_chk_fail
.L7:
	ldr	r3, .L23+8
	ldr	r4, [r3]
	b	.L6
.L24:
	.align	2
.L23:
	.word	.LC0
	.word	kadm_get_princs
	.word	ENOMEM
	.size	kadm5_c_get_principals, .-kadm5_c_get_principals
	.comm	kadm_get_princs,4,4
	.comm	ENOMEM,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
