	.file	"extr_kuhl_m_lsadump_dc.c_kuhl_m_lsadump_dcshadow_init_ldap.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	kuhl_m_lsadump_dcshadow_init_ldap
	.type	kuhl_m_lsadump_dcshadow_init_ldap, @function
kuhl_m_lsadump_dcshadow_init_ldap:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	xor	r12d, r12d
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rbx, rsi
	mov	esi, 389
	sub	rsp, 16
	.cfi_def_cfa_offset 48
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	call	ldap_init@PLT
	test	rax, rax
	je	.L1
	mov	rbp, rax
	mov	esi, DWORD PTR LDAP_OPT_PROTOCOL_VERSION[rip]
	mov	eax, DWORD PTR LDAP_VERSION3[rip]
	lea	rdx, 4[rsp]
	mov	rdi, rbp
	mov	DWORD PTR 4[rsp], eax
	call	ldap_set_option@PLT
	mov	rdx, QWORD PTR LDAP_OPT_ON[rip]
	mov	esi, DWORD PTR LDAP_OPT_SIGN[rip]
	mov	rdi, rbp
	call	ldap_set_option@PLT
	xor	esi, esi
	mov	rdi, rbp
	call	ldap_connect@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L3
	mov	ecx, DWORD PTR LDAP_AUTH_NEGOTIATE[rip]
	xor	edx, edx
	xor	esi, esi
	mov	rdi, rbp
	call	ldap_bind_s@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L3
	mov	QWORD PTR [rbx], rbp
	.p2align 4,,10
	.p2align 3
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L11
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	mov	rdi, rbp
	call	ldap_unbind@PLT
	jmp	.L1
.L11:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	kuhl_m_lsadump_dcshadow_init_ldap, .-kuhl_m_lsadump_dcshadow_init_ldap
	.comm	LDAP_VERSION3,4,4
	.comm	LDAP_OPT_SIGN,4,4
	.comm	LDAP_OPT_PROTOCOL_VERSION,4,4
	.comm	LDAP_OPT_ON,8,8
	.comm	LDAP_AUTH_NEGOTIATE,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_kuhl_m_lsadump_dc.c_kuhl_m_lsadump_dcshadow_init_ldap.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	kuhl_m_lsadump_dcshadow_init_ldap
	.syntax unified
	.arm
	.fpu softvfp
	.type	kuhl_m_lsadump_dcshadow_init_ldap, %function
kuhl_m_lsadump_dcshadow_init_ldap:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r3, .L11
	sub	sp, sp, #8
	mov	r6, r1
	ldr	r1, .L11+4
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	bl	ldap_init
	subs	r4, r0, #0
	moveq	r5, r4
	beq	.L1
	ldr	r3, .L11+8
	ldr	r2, .L11+12
	ldr	r3, [r3]
	ldr	r1, [r2]
	mov	r2, sp
	str	r3, [sp]
	bl	ldap_set_option
	ldr	r3, .L11+16
	ldr	r2, .L11+20
	ldr	r1, [r3]
	ldr	r2, [r2]
	mov	r0, r4
	bl	ldap_set_option
	mov	r1, #0
	mov	r0, r4
	bl	ldap_connect
	subs	r5, r0, #0
	bne	.L3
	ldr	r3, .L11+24
	mov	r2, r5
	mov	r1, r5
	mov	r0, r4
	ldr	r3, [r3]
	bl	ldap_bind_s
	subs	r5, r0, #0
	streq	r4, [r6]
	bne	.L3
.L1:
	ldr	r3, .L11
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L10
	mov	r0, r5
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, pc}
.L3:
	mov	r0, r4
	bl	ldap_unbind
	b	.L1
.L10:
	bl	__stack_chk_fail
.L12:
	.align	2
.L11:
	.word	.LC0
	.word	389
	.word	LDAP_VERSION3
	.word	LDAP_OPT_PROTOCOL_VERSION
	.word	LDAP_OPT_SIGN
	.word	LDAP_OPT_ON
	.word	LDAP_AUTH_NEGOTIATE
	.size	kuhl_m_lsadump_dcshadow_init_ldap, .-kuhl_m_lsadump_dcshadow_init_ldap
	.comm	LDAP_VERSION3,4,4
	.comm	LDAP_OPT_SIGN,4,4
	.comm	LDAP_OPT_PROTOCOL_VERSION,4,4
	.comm	LDAP_OPT_ON,4,4
	.comm	LDAP_AUTH_NEGOTIATE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
