	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function amu_ldap_rebind
_amu_ldap_rebind:                       ## @amu_ldap_rebind
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	24(%rdi), %r14
	xorl	%edi, %edi
	callq	_clocktime
	movq	%rax, %r15
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_dlog
	cmpq	$0, 8(%rbx)
	je	LBB0_3
## %bb.1:
	movq	(%rbx), %rax
	subq	%r15, %rax
	movq	_AMD_LDAP_TTL@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jle	LBB0_16
## %bb.2:
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_dlog
	movq	8(%rbx), %rdi
	callq	_amu_ldap_unbind
	movq	%r15, (%rbx)
	movq	$0, 8(%rbx)
LBB0_3:
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	movq	_XLOG_WARNING@GOTPCREL(%rip), %r12
	xorl	%eax, %eax
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_4 Depth=1
	movl	(%r12), %edi
	leaq	L_.str.6(%rip), %rsi
	xorl	%eax, %eax
	callq	_plog
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	incl	%eax
	cmpl	$10, %eax
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	je	LBB0_11
LBB0_4:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_5 Depth 2
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	16(%rbx), %r13
	testq	%r13, %r13
	leaq	L_.str.3(%rip), %rbx
	jne	LBB0_5
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_5 Depth=2
	movl	(%r12), %edi
	movl	(%r13), %ecx
	movl	4(%r13), %edx
	movq	%rbx, %rsi
	xorl	%eax, %eax
	callq	_plog
LBB0_9:                                 ##   in Loop: Header=BB0_5 Depth=2
	movq	8(%r13), %r13
	testq	%r13, %r13
	je	LBB0_10
LBB0_5:                                 ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%r13), %esi
	movl	4(%r13), %edi
	callq	_ldap_open
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=2
	movq	%rax, %r15
	movl	8(%r14), %edx
	movl	(%r14), %esi
	movl	4(%r14), %ecx
	movq	%rax, %rdi
	callq	_ldap_bind_s
	movq	_LDAP_SUCCESS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_12
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=2
	movl	(%r12), %edi
	movl	(%r13), %ecx
	movl	4(%r13), %edx
	movl	(%r14), %r8d
	leaq	L_.str.4(%rip), %rsi
	xorl	%eax, %eax
	callq	_plog
	jmp	LBB0_9
LBB0_12:
	movq	_gopt@GOTPCREL(%rip), %rax
	movq	8(%rax), %rdx
	testq	%rdx, %rdx
	jle	LBB0_14
## %bb.13:
	movl	(%r12), %edi
	leaq	L_.str.5(%rip), %rsi
	xorl	%eax, %eax
	callq	_plog
LBB0_14:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	%r15, 8(%rax)
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	%rcx, (%rax)
	xorl	%ebx, %ebx
	jmp	LBB0_15
LBB0_16:
	leaq	L_.str.2(%rip), %rdi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_dlog
LBB0_15:
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	movq	_XLOG_USER@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.7(%rip), %rsi
	xorl	%eax, %eax
	callq	_plog
	movq	_ENOENT@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"-> amu_ldap_rebind\n"

	.comm	_AMD_LDAP_TTL,8,3               ## @AMD_LDAP_TTL
L_.str.1:                               ## @.str.1
	.asciz	"Re-establishing ldap connection\n"

L_.str.2:                               ## @.str.2
	.asciz	"amu_ldap_rebind: timestamp OK\n"

	.comm	_XLOG_WARNING,4,2               ## @XLOG_WARNING
L_.str.3:                               ## @.str.3
	.asciz	"Unable to ldap_open to %s:%d\n"

	.comm	_LDAP_SUCCESS,8,3               ## @LDAP_SUCCESS
L_.str.4:                               ## @.str.4
	.asciz	"Unable to ldap_bind to %s:%d as %s\n"

	.comm	_gopt,24,3                      ## @gopt
L_.str.5:                               ## @.str.5
	.asciz	"ldap_enable_cache(%ld) is not available on this system!\n"

L_.str.6:                               ## @.str.6
	.asciz	"Exhausted list of ldap servers, looping.\n"

	.comm	_XLOG_USER,4,2                  ## @XLOG_USER
L_.str.7:                               ## @.str.7
	.asciz	"Unable to (re)bind to any ldap hosts\n"

	.comm	_ENOENT,4,2                     ## @ENOENT
	.comm	_LDAP_OPT_PROTOCOL_VERSION,4,2  ## @LDAP_OPT_PROTOCOL_VERSION
	.comm	_LDAP_VERSION2,8,3              ## @LDAP_VERSION2
	.no_dead_strip	_amu_ldap_rebind
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function amu_ldap_rebind
_amu_ldap_rebind:                       ; @amu_ldap_rebind
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
	ldr	x25, [x0, #24]
	mov	x0, #0
	bl	_clocktime
	mov	x20, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_dlog
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_3
; %bb.1:
	ldr	x8, [x19]
Lloh2:
	adrp	x9, _AMD_LDAP_TTL@GOTPAGE
Lloh3:
	ldr	x9, [x9, _AMD_LDAP_TTL@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	sub	x8, x8, x20
	cmp	x8, x9
	b.le	LBB0_14
; %bb.2:
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_dlog
	ldr	x0, [x19, #8]
	bl	_amu_ldap_unbind
	stp	x20, xzr, [x19]
LBB0_3:
	mov	w27, #0
Lloh7:
	adrp	x26, _XLOG_WARNING@GOTPAGE
Lloh8:
	ldr	x26, [x26, _XLOG_WARNING@GOTPAGEOFF]
Lloh9:
	adrp	x22, l_.str.3@PAGE
Lloh10:
	add	x22, x22, l_.str.3@PAGEOFF
Lloh11:
	adrp	x28, _LDAP_SUCCESS@GOTPAGE
Lloh12:
	ldr	x28, [x28, _LDAP_SUCCESS@GOTPAGEOFF]
Lloh13:
	adrp	x23, l_.str.4@PAGE
Lloh14:
	add	x23, x23, l_.str.4@PAGEOFF
	b	LBB0_5
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	w0, [x26]
Lloh15:
	adrp	x1, l_.str.6@PAGE
Lloh16:
	add	x1, x1, l_.str.6@PAGEOFF
	bl	_plog
	add	w27, w27, #1
	cmp	w27, #10
	b.eq	LBB0_16
LBB0_5:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_8 Depth 2
	ldr	x21, [x19, #16]
	cbnz	x21, LBB0_8
	b	LBB0_4
LBB0_6:                                 ;   in Loop: Header=BB0_8 Depth=2
	ldr	w0, [x26]
	ldp	w9, w8, [x21]
	stp	x8, x9, [sp]
	mov	x1, x22
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=2
	bl	_plog
	ldr	x21, [x21, #8]
	cbz	x21, LBB0_4
LBB0_8:                                 ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldp	w1, w0, [x21]
	bl	_ldap_open
	cbz	x0, LBB0_6
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=2
	mov	x24, x0
	ldp	w3, w2, [x25, #4]
	ldr	w1, [x25]
	bl	_ldap_bind_s
	ldr	x8, [x28]
	cmp	x0, x8
	b.eq	LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=2
	ldr	w0, [x26]
	ldp	w9, w8, [x21]
	ldr	w10, [x25]
	stp	x9, x10, [sp, #8]
	str	x8, [sp]
	mov	x1, x23
	b	LBB0_7
LBB0_11:
Lloh17:
	adrp	x8, _gopt@GOTPAGE
Lloh18:
	ldr	x8, [x8, _gopt@GOTPAGEOFF]
Lloh19:
	ldr	x8, [x8, #8]
	cmp	x8, #1
	b.lt	LBB0_13
; %bb.12:
	ldr	w0, [x26]
	str	x8, [sp]
Lloh20:
	adrp	x1, l_.str.5@PAGE
Lloh21:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_plog
LBB0_13:
	mov	w0, #0
	stp	x20, x24, [x19]
	b	LBB0_15
LBB0_14:
Lloh22:
	adrp	x0, l_.str.2@PAGE
Lloh23:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_dlog
	mov	w0, #0
LBB0_15:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_16:
Lloh24:
	adrp	x8, _XLOG_USER@GOTPAGE
Lloh25:
	ldr	x8, [x8, _XLOG_USER@GOTPAGEOFF]
Lloh26:
	ldr	w0, [x8]
Lloh27:
	adrp	x1, l_.str.7@PAGE
Lloh28:
	add	x1, x1, l_.str.7@PAGEOFF
	bl	_plog
Lloh29:
	adrp	x8, _ENOENT@GOTPAGE
Lloh30:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
Lloh31:
	ldr	w0, [x8]
	b	LBB0_15
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"-> amu_ldap_rebind\n"

	.comm	_AMD_LDAP_TTL,8,3               ; @AMD_LDAP_TTL
l_.str.1:                               ; @.str.1
	.asciz	"Re-establishing ldap connection\n"

l_.str.2:                               ; @.str.2
	.asciz	"amu_ldap_rebind: timestamp OK\n"

	.comm	_XLOG_WARNING,4,2               ; @XLOG_WARNING
l_.str.3:                               ; @.str.3
	.asciz	"Unable to ldap_open to %s:%d\n"

	.comm	_LDAP_SUCCESS,8,3               ; @LDAP_SUCCESS
l_.str.4:                               ; @.str.4
	.asciz	"Unable to ldap_bind to %s:%d as %s\n"

	.comm	_gopt,24,3                      ; @gopt
l_.str.5:                               ; @.str.5
	.asciz	"ldap_enable_cache(%ld) is not available on this system!\n"

l_.str.6:                               ; @.str.6
	.asciz	"Exhausted list of ldap servers, looping.\n"

	.comm	_XLOG_USER,4,2                  ; @XLOG_USER
l_.str.7:                               ; @.str.7
	.asciz	"Unable to (re)bind to any ldap hosts\n"

	.comm	_ENOENT,4,2                     ; @ENOENT
	.comm	_LDAP_OPT_PROTOCOL_VERSION,4,2  ; @LDAP_OPT_PROTOCOL_VERSION
	.comm	_LDAP_VERSION2,8,3              ; @LDAP_VERSION2
	.no_dead_strip	_amu_ldap_rebind
.subsections_via_symbols
