	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_aldap_bind                     ## -- Begin function aldap_bind
	.p2align	4, 0x90
_aldap_bind:                            ## @aldap_bind
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movq	%rsi, %r12
	movq	%rdi, %r14
	xorl	%edi, %edi
	callq	_ber_add_sequence
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movq	%rax, %r15
	testq	%rbx, %rbx
	leaq	L_.str(%rip), %rax
	cmoveq	%rax, %rbx
	testq	%r12, %r12
	cmoveq	%rax, %r12
	movl	(%r14), %edx
	incl	%edx
	movl	%edx, (%r14)
	movq	_BER_CLASS_APP@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_LDAP_REQ_BIND@GOTPCREL(%rip), %rax
	movq	(%rax), %r8
	movq	_VERSION@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movq	_BER_CLASS_CONTEXT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_LDAP_AUTH_SIMPLE@GOTPCREL(%rip), %r10
	leaq	L_.str.1(%rip), %rsi
	movq	%r15, %rdi
	pushq	(%r10)
	pushq	%rax
	pushq	%rbx
	pushq	%r12
	callq	_ber_printf_elements
	addq	$32, %rsp
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	leaq	L_.str.2(%rip), %rdi
	movq	%r15, %rsi
	callq	_LDAP_DEBUG
	leaq	8(%r14), %rdi
	movq	%r15, %rsi
	callq	_ber_write_elements
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_ber_free_elements
	cmpl	$-1, %ebx
	je	LBB0_5
## %bb.3:
	movl	(%r14), %eax
	jmp	LBB0_6
LBB0_4:
	movq	%r15, %rdi
	callq	_ber_free_elements
LBB0_5:
	movq	_ALDAP_ERR_OPERATION_FAILED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%r14)
	movl	$-1, %eax
LBB0_6:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.space	1

L_.str.1:                               ## @.str.1
	.asciz	"d{tdsst"

	.comm	_BER_CLASS_APP,4,2              ## @BER_CLASS_APP
	.comm	_LDAP_REQ_BIND,8,3              ## @LDAP_REQ_BIND
	.comm	_VERSION,4,2                    ## @VERSION
	.comm	_BER_CLASS_CONTEXT,4,2          ## @BER_CLASS_CONTEXT
	.comm	_LDAP_AUTH_SIMPLE,8,3           ## @LDAP_AUTH_SIMPLE
L_.str.2:                               ## @.str.2
	.asciz	"aldap_bind"

	.comm	_ALDAP_ERR_OPERATION_FAILED,4,2 ## @ALDAP_ERR_OPERATION_FAILED
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_aldap_bind                     ; -- Begin function aldap_bind
	.p2align	2
_aldap_bind:                            ; @aldap_bind
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x22, x2
	mov	x21, x1
	mov	x19, x0
	mov	x0, #0
	bl	_ber_add_sequence
	cbz	x0, LBB0_5
; %bb.1:
	mov	x20, x0
Lloh0:
	adrp	x8, l_.str@PAGE
Lloh1:
	add	x8, x8, l_.str@PAGEOFF
	cmp	x22, #0
	csel	x7, x8, x22, eq
	cmp	x21, #0
	csel	x6, x8, x21, eq
	ldr	w8, [x19]
	add	w2, w8, #1
	str	w2, [x19]
Lloh2:
	adrp	x8, _BER_CLASS_APP@GOTPAGE
Lloh3:
	ldr	x8, [x8, _BER_CLASS_APP@GOTPAGEOFF]
Lloh4:
	ldr	w3, [x8]
Lloh5:
	adrp	x8, _LDAP_REQ_BIND@GOTPAGE
Lloh6:
	ldr	x8, [x8, _LDAP_REQ_BIND@GOTPAGEOFF]
Lloh7:
	ldr	x4, [x8]
Lloh8:
	adrp	x8, _VERSION@GOTPAGE
Lloh9:
	ldr	x8, [x8, _VERSION@GOTPAGEOFF]
Lloh10:
	ldr	w5, [x8]
Lloh11:
	adrp	x8, _BER_CLASS_CONTEXT@GOTPAGE
Lloh12:
	ldr	x8, [x8, _BER_CLASS_CONTEXT@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
Lloh14:
	adrp	x9, _LDAP_AUTH_SIMPLE@GOTPAGE
Lloh15:
	ldr	x9, [x9, _LDAP_AUTH_SIMPLE@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	str	x9, [sp, #8]
	str	w8, [sp]
Lloh17:
	adrp	x1, l_.str.1@PAGE
Lloh18:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_ber_printf_elements
	cbz	x0, LBB0_4
; %bb.2:
Lloh19:
	adrp	x0, l_.str.2@PAGE
Lloh20:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x20
	bl	_LDAP_DEBUG
	add	x0, x19, #8
	mov	x1, x20
	bl	_ber_write_elements
	mov	x21, x0
	mov	x0, x20
	bl	_ber_free_elements
	cmn	w21, #1
	b.eq	LBB0_5
; %bb.3:
	ldr	w0, [x19]
	b	LBB0_6
LBB0_4:
	mov	x0, x20
	bl	_ber_free_elements
LBB0_5:
Lloh21:
	adrp	x8, _ALDAP_ERR_OPERATION_FAILED@GOTPAGE
Lloh22:
	ldr	x8, [x8, _ALDAP_ERR_OPERATION_FAILED@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	str	w8, [x19, #4]
	mov	w0, #-1
LBB0_6:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.space	1

l_.str.1:                               ; @.str.1
	.asciz	"d{tdsst"

	.comm	_BER_CLASS_APP,4,2              ; @BER_CLASS_APP
	.comm	_LDAP_REQ_BIND,8,3              ; @LDAP_REQ_BIND
	.comm	_VERSION,4,2                    ; @VERSION
	.comm	_BER_CLASS_CONTEXT,4,2          ; @BER_CLASS_CONTEXT
	.comm	_LDAP_AUTH_SIMPLE,8,3           ; @LDAP_AUTH_SIMPLE
l_.str.2:                               ; @.str.2
	.asciz	"aldap_bind"

	.comm	_ALDAP_ERR_OPERATION_FAILED,4,2 ; @ALDAP_ERR_OPERATION_FAILED
.subsections_via_symbols
