	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function idmap_query_attrs
_idmap_query_attrs:                     ## @idmap_query_attrs
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, -64(%rbp)                 ## 4-byte Spill
	movq	%r8, -96(%rbp)                  ## 8-byte Spill
	movl	%ecx, -60(%rbp)                 ## 4-byte Spill
	movl	%edx, -68(%rbp)                 ## 4-byte Spill
	movq	%rsi, %r14
	movq	%rdi, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_FILTER_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%rbx, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r15
	leaq	8(%r12), %r13
	movq	$0, -56(%rbp)
	movq	%r13, %rdi
	movq	%r14, %rsi
	movq	%r15, %rdx
	movl	%ebx, %ecx
	callq	_idmap_filter
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_14
## %bb.1:
	movl	-64(%rbp), %ebx                 ## 4-byte Reload
	movq	%r13, -88(%rbp)                 ## 8-byte Spill
	movq	-96(%rbp), %r13                 ## 8-byte Reload
	movl	(%r12), %edi
	movl	16(%r12), %esi
	movq	_LDAP_SCOPE_SUBTREE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-56(%rbp), %rax
	movq	%r15, %rcx
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	pushq	%rax
	pushq	$0
	callq	_ldap_search_st
	addq	$16, %rsp
	testl	%eax, %eax
	je	LBB0_4
## %bb.2:
	movl	%eax, %r14d
LBB0_3:
	movl	%r14d, %edi
	callq	_ldap_err2stringA
	leaq	L_.str(%rip), %rdi
	movq	%r15, %rsi
	movl	%r14d, %edx
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_eprintf
LBB0_11:
	movl	%r14d, %edi
	callq	_LdapMapErrorToWin32
	movl	%eax, %ebx
	jmp	LBB0_14
LBB0_4:
	movl	(%r12), %edi
	movq	-56(%rbp), %rsi
	callq	_ldap_first_entry
	testq	%rax, %rax
	je	LBB0_18
## %bb.5:
	testl	%ebx, %ebx
	jle	LBB0_13
## %bb.6:
	movq	%rax, %r14
	movq	%r15, -80(%rbp)                 ## 8-byte Spill
	movl	%ebx, %ebx
	xorl	%r15d, %r15d
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_7 Depth=1
	incq	%r15
	cmpq	%r15, %rbx
	je	LBB0_13
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movl	-68(%rbp), %edi                 ## 4-byte Reload
	movl	%r15d, %esi
	callq	_ATTR_ISSET
	testq	%rax, %rax
	je	LBB0_12
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	movl	(%r12), %edi
	movq	8(%r12), %rax
	movl	(%rax,%r15,4), %edx
	movq	%r14, %rsi
	callq	_ldap_get_values
	movq	%rax, (%r13,%r15,8)
	testq	%rax, %rax
	jne	LBB0_12
## %bb.9:                               ##   in Loop: Header=BB0_7 Depth=1
	movl	-60(%rbp), %edi                 ## 4-byte Reload
	movl	%r15d, %esi
	callq	_ATTR_ISSET
	testq	%rax, %rax
	jne	LBB0_12
## %bb.10:
	movq	_LDAP_NO_SUCH_ATTRIBUTE@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movl	(%rax,%r15,4), %ebx
	movl	%r14d, %edi
	callq	_ldap_err2stringA
	leaq	L_.str.1(%rip), %rdi
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	movl	%ebx, %edx
	movl	%r14d, %ecx
	movl	%eax, %r8d
	xorl	%eax, %eax
	callq	_eprintf
	jmp	LBB0_11
LBB0_13:
	xorl	%ebx, %ebx
LBB0_14:
	movq	-56(%rbp), %rdi
	testq	%rdi, %rdi
	je	LBB0_16
## %bb.15:
	callq	_ldap_msgfree
LBB0_16:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_17
## %bb.19:
	movl	%ebx, %eax
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_18:
	movq	_LDAP_NO_RESULTS_RETURNED@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	jmp	LBB0_3
LBB0_17:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_FILTER_LEN,4,2                 ## @FILTER_LEN
	.comm	_LDAP_SCOPE_SUBTREE,4,2         ## @LDAP_SCOPE_SUBTREE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ldap search for '%s' failed with %d: %s\n"

	.comm	_LDAP_NO_RESULTS_RETURNED,4,2   ## @LDAP_NO_RESULTS_RETURNED
	.comm	_LDAP_NO_SUCH_ATTRIBUTE,4,2     ## @LDAP_NO_SUCH_ATTRIBUTE
L_.str.1:                               ## @.str.1
	.asciz	"ldap entry for '%s' missing required attribute '%s', returning %d: %s\n"

	.no_dead_strip	_idmap_query_attrs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function idmap_query_attrs
_idmap_query_attrs:                     ; @idmap_query_attrs
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	sub	sp, sp, #16
	mov	x25, x5
	mov	x20, x4
	mov	x21, x3
	mov	x22, x2
	mov	x23, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh3:
	adrp	x8, _FILTER_LEN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _FILTER_LEN@GOTPAGEOFF]
Lloh5:
	ldr	w3, [x8]
	mov	x9, x3
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x8, sp
	add	x9, x3, #15
	and	x9, x9, #0x1fffffff0
	sub	x19, x8, x9
	mov	sp, x19
	add	x24, x0, #8
	stur	xzr, [x29, #-96]
	mov	x0, x24
	mov	x2, x19
                                        ; kill: def $w3 killed $w3 killed $x3
	bl	_idmap_filter
	mov	x26, x0
	cbnz	w0, LBB0_5
; %bb.1:
	ldr	w0, [x23]
	ldr	w1, [x23, #16]
Lloh8:
	adrp	x8, _LDAP_SCOPE_SUBTREE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _LDAP_SCOPE_SUBTREE@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
	sub	x7, x29, #96
	mov	x3, x19
	mov	x4, #0
	mov	w5, #0
	mov	x6, #0
	bl	_ldap_search_st
	cbz	w0, LBB0_9
; %bb.2:
	mov	x26, x0
LBB0_3:
	mov	x0, x26
	bl	_ldap_err2stringA
	mov	x3, x0
Lloh11:
	adrp	x0, l_.str@PAGE
Lloh12:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	mov	x2, x26
	bl	_eprintf
LBB0_4:
	mov	x0, x26
	bl	_LdapMapErrorToWin32
	mov	x26, x0
LBB0_5:
	ldur	x0, [x29, #-96]
	cbz	x0, LBB0_7
LBB0_6:
	bl	_ldap_msgfree
LBB0_7:
	ldur	x8, [x29, #-88]
Lloh13:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh14:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_19
; %bb.8:
	mov	x0, x26
	sub	sp, x29, #80
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_9:
	ldr	w0, [x23]
	ldur	x1, [x29, #-96]
	bl	_ldap_first_entry
	cbz	x0, LBB0_18
; %bb.10:
	cmp	w25, #1
	b.lt	LBB0_17
; %bb.11:
	mov	x26, x0
	mov	x27, #0
	mov	w25, w25
	b	LBB0_13
LBB0_12:                                ;   in Loop: Header=BB0_13 Depth=1
	add	x27, x27, #1
	cmp	x25, x27
	b.eq	LBB0_17
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x22
	mov	x1, x27
	bl	_ATTR_ISSET
	cbz	x0, LBB0_12
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=1
	ldr	w0, [x23]
	ldr	x8, [x23, #8]
	ldr	w2, [x8, x27, lsl #2]
	mov	x1, x26
	bl	_ldap_get_values
	str	x0, [x20, x27, lsl #3]
	cbnz	x0, LBB0_12
; %bb.15:                               ;   in Loop: Header=BB0_13 Depth=1
	mov	x0, x21
	mov	x1, x27
	bl	_ATTR_ISSET
	cbnz	x0, LBB0_12
; %bb.16:
Lloh16:
	adrp	x8, _LDAP_NO_SUCH_ATTRIBUTE@GOTPAGE
Lloh17:
	ldr	x8, [x8, _LDAP_NO_SUCH_ATTRIBUTE@GOTPAGEOFF]
Lloh18:
	ldr	w26, [x8]
	ldr	x8, [x24]
	ldr	w20, [x8, x27, lsl #2]
	mov	x0, x26
	bl	_ldap_err2stringA
                                        ; kill: def $w0 killed $w0 def $x0
	str	x0, [sp, #-16]!
Lloh19:
	adrp	x0, l_.str.1@PAGE
Lloh20:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x19
	mov	x2, x20
	mov	x3, x26
	bl	_eprintf
	add	sp, sp, #16
	b	LBB0_4
LBB0_17:
	mov	w26, #0
	ldur	x0, [x29, #-96]
	cbnz	x0, LBB0_6
	b	LBB0_7
LBB0_18:
Lloh21:
	adrp	x8, _LDAP_NO_RESULTS_RETURNED@GOTPAGE
Lloh22:
	ldr	x8, [x8, _LDAP_NO_RESULTS_RETURNED@GOTPAGEOFF]
Lloh23:
	ldr	w26, [x8]
	b	LBB0_3
LBB0_19:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_FILTER_LEN,4,2                 ; @FILTER_LEN
	.comm	_LDAP_SCOPE_SUBTREE,4,2         ; @LDAP_SCOPE_SUBTREE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ldap search for '%s' failed with %d: %s\n"

	.comm	_LDAP_NO_RESULTS_RETURNED,4,2   ; @LDAP_NO_RESULTS_RETURNED
	.comm	_LDAP_NO_SUCH_ATTRIBUTE,4,2     ; @LDAP_NO_SUCH_ATTRIBUTE
l_.str.1:                               ; @.str.1
	.asciz	"ldap entry for '%s' missing required attribute '%s', returning %d: %s\n"

	.no_dead_strip	_idmap_query_attrs
.subsections_via_symbols
