	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_aldap_unbind                   ## -- Begin function aldap_unbind
	.p2align	4, 0x90
_aldap_unbind:                          ## @aldap_unbind
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	xorl	%edi, %edi
	callq	_ber_add_sequence
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	movq	%rax, %rbx
	movl	(%r14), %edx
	incl	%edx
	movl	%edx, (%r14)
	movq	_BER_CLASS_APP@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_LDAP_REQ_UNBIND_30@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_ber_printf_elements
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	leaq	L_.str.1(%rip), %rdi
	movq	%rbx, %rsi
	callq	_LDAP_DEBUG
	leaq	8(%r14), %rdi
	movq	%rbx, %rsi
	callq	_ber_write_elements
	movl	%eax, %r15d
	movq	%rbx, %rdi
	callq	_ber_free_elements
	cmpl	$-1, %r15d
	je	LBB0_5
## %bb.3:
	movl	(%r14), %eax
	jmp	LBB0_6
LBB0_4:
	movq	%rbx, %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:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"d{t"

	.comm	_BER_CLASS_APP,4,2              ## @BER_CLASS_APP
	.comm	_LDAP_REQ_UNBIND_30,4,2         ## @LDAP_REQ_UNBIND_30
L_.str.1:                               ## @.str.1
	.asciz	"aldap_unbind"

	.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_unbind                   ; -- Begin function aldap_unbind
	.p2align	2
_aldap_unbind:                          ; @aldap_unbind
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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	x19, x0
	mov	x0, #0
	bl	_ber_add_sequence
	cbz	x0, LBB0_5
; %bb.1:
	mov	x20, x0
	ldr	w8, [x19]
	add	w2, w8, #1
	str	w2, [x19]
Lloh0:
	adrp	x8, _BER_CLASS_APP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BER_CLASS_APP@GOTPAGEOFF]
Lloh2:
	ldr	w3, [x8]
Lloh3:
	adrp	x8, _LDAP_REQ_UNBIND_30@GOTPAGE
Lloh4:
	ldr	x8, [x8, _LDAP_REQ_UNBIND_30@GOTPAGEOFF]
Lloh5:
	ldr	w4, [x8]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	bl	_ber_printf_elements
	cbz	x0, LBB0_4
; %bb.2:
Lloh8:
	adrp	x0, l_.str.1@PAGE
Lloh9:
	add	x0, x0, l_.str.1@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:
Lloh10:
	adrp	x8, _ALDAP_ERR_OPERATION_FAILED@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ALDAP_ERR_OPERATION_FAILED@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	str	w8, [x19, #4]
	mov	w0, #-1
LBB0_6:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"d{t"

	.comm	_BER_CLASS_APP,4,2              ; @BER_CLASS_APP
	.comm	_LDAP_REQ_UNBIND_30,4,2         ; @LDAP_REQ_UNBIND_30
l_.str.1:                               ; @.str.1
	.asciz	"aldap_unbind"

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