	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_aldap_search                   ## -- Begin function aldap_search
	.p2align	4, 0x90
_aldap_search:                          ## @aldap_search
	.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
                                        ## kill: def $r9d killed $r9d def $r9
	movq	%r9, -64(%rbp)                  ## 8-byte Spill
	movq	%r8, %r14
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movl	%edx, %r15d
	movq	%rsi, %r13
	movq	%rdi, %rbx
	xorl	%edi, %edi
	callq	_ber_add_sequence
	movq	%rax, %r12
	movl	$-1, %eax
	testq	%r12, %r12
	je	LBB0_16
## %bb.1:
	movl	(%rbx), %edx
	incl	%edx
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movl	%edx, (%rbx)
	movq	_BER_CLASS_APP@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_LDAP_REQ_SEARCH@GOTPCREL(%rip), %rax
	movq	(%rax), %r8
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_ber_printf_elements
	movq	_ALDAP_ERR_OPERATION_FAILED@GOTPCREL(%rip), %rbx
	testq	%rax, %rax
	je	LBB0_13
## %bb.2:
	movl	24(%rbp), %r10d
	movl	16(%rbp), %r9d
	movl	%r15d, %ecx
	movq	_LDAP_DEREF_NEVER@GOTPCREL(%rip), %rdx
	movq	(%rdx), %r8
	leaq	L_.str.1(%rip), %rsi
	movq	%rax, %r15
	movq	%rax, %rdi
	movq	%r13, %rdx
	xorl	%eax, %eax
	pushq	-64(%rbp)                       ## 8-byte Folded Reload
	pushq	%r10
	callq	_ber_printf_elements
	addq	$16, %rsp
	testq	%rax, %rax
	je	LBB0_13
## %bb.3:
	movq	%rax, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	_ldap_parse_search_filter
	testq	%rax, %rax
	je	LBB0_12
## %bb.4:
	movq	%rax, %rdi
	callq	_ber_add_sequence
	testq	%rax, %rax
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	je	LBB0_14
## %bb.5:
	testq	%r14, %r14
	je	LBB0_10
## %bb.6:
	movq	(%r14), %rsi
	testq	%rsi, %rsi
	je	LBB0_10
## %bb.7:
	addq	$8, %r14
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rax, %rdi
	callq	_ber_add_string
	testq	%rax, %rax
	je	LBB0_14
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movq	(%r14), %rsi
	addq	$8, %r14
	testq	%rsi, %rsi
	jne	LBB0_8
LBB0_10:
	movq	32(%rbp), %rdx
	movq	%r15, %rdi
	movl	$100, %esi
	callq	_aldap_create_page_control
	leaq	L_.str.2(%rip), %rdi
	movq	%r12, %rsi
	callq	_LDAP_DEBUG
	leaq	16(%r13), %rdi
	movq	%r12, %rsi
	callq	_ber_write_elements
	movl	%eax, %ebx
	movq	%r12, %rdi
	callq	_ber_free_elements
	cmpl	$-1, %ebx
	je	LBB0_17
## %bb.11:
	movl	(%r13), %eax
	jmp	LBB0_16
LBB0_12:
	movq	_ALDAP_ERR_PARSER_ERROR@GOTPCREL(%rip), %rbx
LBB0_13:
	movq	(%rbx), %rax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, 8(%rcx)
LBB0_14:
	movq	%r12, %rdi
	callq	_ber_free_elements
LBB0_15:
	movl	$-1, %eax
LBB0_16:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_17:
	movq	_ALDAP_ERR_OPERATION_FAILED@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%r13)
	jmp	LBB0_15
	.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_SEARCH,8,3            ## @LDAP_REQ_SEARCH
	.comm	_ALDAP_ERR_OPERATION_FAILED,8,3 ## @ALDAP_ERR_OPERATION_FAILED
L_.str.1:                               ## @.str.1
	.asciz	"sEEddb"

	.comm	_LDAP_DEREF_NEVER,8,3           ## @LDAP_DEREF_NEVER
	.comm	_ALDAP_ERR_PARSER_ERROR,8,3     ## @ALDAP_ERR_PARSER_ERROR
L_.str.2:                               ## @.str.2
	.asciz	"aldap_search"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_aldap_search                   ; -- Begin function aldap_search
	.p2align	2
_aldap_search:                          ; @aldap_search
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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	x25, x7
	mov	x24, x6
	mov	x27, x5
	mov	x22, x4
	mov	x23, x3
	mov	x28, x2
	mov	x26, x1
	mov	x19, x0
	mov	x0, #0
	bl	_ber_add_sequence
	cbz	x0, LBB0_16
; %bb.1:
	mov	x20, x0
	ldr	w8, [x19]
	add	w8, w8, #1
	str	w8, [x19]
Lloh0:
	adrp	x9, _BER_CLASS_APP@GOTPAGE
Lloh1:
	ldr	x9, [x9, _BER_CLASS_APP@GOTPAGEOFF]
Lloh2:
	adrp	x10, _LDAP_REQ_SEARCH@GOTPAGE
Lloh3:
	ldr	x10, [x10, _LDAP_REQ_SEARCH@GOTPAGEOFF]
Lloh4:
	ldr	x10, [x10]
Lloh5:
	ldr	w9, [x9]
	stp	x9, x10, [sp, #8]
	str	x8, [sp]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	bl	_ber_printf_elements
	cbz	x0, LBB0_12
; %bb.2:
	mov	x21, x0
	mov	w8, w28
Lloh8:
	adrp	x9, _LDAP_DEREF_NEVER@GOTPAGE
Lloh9:
	ldr	x9, [x9, _LDAP_DEREF_NEVER@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	stp	x25, x27, [sp, #32]
	stp	x9, x24, [sp, #16]
	stp	x26, x8, [sp]
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_ber_printf_elements
Lloh13:
	adrp	x24, _ALDAP_ERR_OPERATION_FAILED@GOTPAGE
Lloh14:
	ldr	x24, [x24, _ALDAP_ERR_OPERATION_FAILED@GOTPAGEOFF]
	cbz	x0, LBB0_14
; %bb.3:
	mov	x1, x23
	bl	_ldap_parse_search_filter
	cbz	x0, LBB0_13
; %bb.4:
	bl	_ber_add_sequence
	cbz	x0, LBB0_15
; %bb.5:
	cbz	x22, LBB0_10
; %bb.6:
	ldr	x1, [x22]
	cbz	x1, LBB0_10
; %bb.7:
	add	x22, x22, #8
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	bl	_ber_add_string
	cbz	x0, LBB0_15
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	x1, [x22], #8
	cbnz	x1, LBB0_8
LBB0_10:
	ldr	x2, [x29, #16]
	mov	x0, x21
	mov	w1, #100
	bl	_aldap_create_page_control
Lloh15:
	adrp	x0, l_.str.2@PAGE
Lloh16:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x20
	bl	_LDAP_DEBUG
	add	x0, x19, #16
	mov	x1, x20
	bl	_ber_write_elements
	mov	x21, x0
	mov	x0, x20
	bl	_ber_free_elements
	cmn	w21, #1
	b.eq	LBB0_18
; %bb.11:
	ldr	w0, [x19]
	b	LBB0_17
LBB0_12:
Lloh17:
	adrp	x24, _ALDAP_ERR_OPERATION_FAILED@GOTPAGE
Lloh18:
	ldr	x24, [x24, _ALDAP_ERR_OPERATION_FAILED@GOTPAGEOFF]
	b	LBB0_14
LBB0_13:
Lloh19:
	adrp	x24, _ALDAP_ERR_PARSER_ERROR@GOTPAGE
Lloh20:
	ldr	x24, [x24, _ALDAP_ERR_PARSER_ERROR@GOTPAGEOFF]
LBB0_14:
	ldr	x8, [x24]
	str	x8, [x19, #8]
LBB0_15:
	mov	x0, x20
	bl	_ber_free_elements
LBB0_16:
	mov	w0, #-1
LBB0_17:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_18:
	ldr	x8, [x24]
	str	x8, [x19, #8]
	b	LBB0_16
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh5
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.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_SEARCH,8,3            ; @LDAP_REQ_SEARCH
	.comm	_ALDAP_ERR_OPERATION_FAILED,8,3 ; @ALDAP_ERR_OPERATION_FAILED
l_.str.1:                               ; @.str.1
	.asciz	"sEEddb"

	.comm	_LDAP_DEREF_NEVER,8,3           ; @LDAP_DEREF_NEVER
	.comm	_ALDAP_ERR_PARSER_ERROR,8,3     ; @ALDAP_ERR_PARSER_ERROR
l_.str.2:                               ; @.str.2
	.asciz	"aldap_search"

.subsections_via_symbols
