	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ldap_ExtendedResponse_parse
_ldap_ExtendedResponse_parse:           ## @ldap_ExtendedResponse_parse
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	%rdi, -40(%rbp)
	leaq	-40(%rbp), %rdi
	leaq	-56(%rbp), %rsi
	leaq	-28(%rbp), %rdx
	leaq	-44(%rbp), %rcx
	movq	%rbx, %r8
	callq	_ASN1_get_object
	movq	_V_ASN1_CONSTRUCTED@GOTPCREL(%rip), %r15
	leaq	L_.str(%rip), %rsi
	cmpl	(%r15), %eax
	jne	LBB0_24
## %bb.1:
	movl	-28(%rbp), %eax
	movq	_V_ASN1_SEQUENCE@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_24
## %bb.2:
	addq	%rbx, %r14
	movq	%r14, %rax
	subq	-40(%rbp), %rax
	movq	-56(%rbp), %r8
	cmpq	%rax, %r8
	jg	LBB0_24
## %bb.3:
	leaq	-40(%rbp), %rdi
	leaq	-56(%rbp), %rsi
	leaq	-28(%rbp), %rdx
	leaq	-44(%rbp), %rcx
	callq	_ASN1_get_object
	movq	_V_ASN1_UNIVERSAL@GOTPCREL(%rip), %rbx
	leaq	L_.str.1(%rip), %rsi
	cmpl	(%rbx), %eax
	jne	LBB0_24
## %bb.4:
	movl	-28(%rbp), %eax
	movq	_V_ASN1_INTEGER@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_24
## %bb.5:
	movq	-40(%rbp), %rax
	movq	%r14, %rdx
	subq	%rax, %rdx
	movq	-56(%rbp), %rcx
	cmpq	%rdx, %rcx
	jg	LBB0_24
## %bb.6:
	addq	%rcx, %rax
	movq	%rax, -40(%rbp)
	movq	%r14, %r8
	subq	%rax, %r8
	leaq	-40(%rbp), %rdi
	leaq	-56(%rbp), %rsi
	leaq	-28(%rbp), %rdx
	leaq	-44(%rbp), %rcx
	callq	_ASN1_get_object
	leaq	L_.str.2(%rip), %rsi
	cmpl	(%r15), %eax
	jne	LBB0_24
## %bb.7:
	movl	-44(%rbp), %eax
	movq	_V_ASN1_APPLICATION@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_24
## %bb.8:
	cmpl	$24, -28(%rbp)
	jne	LBB0_24
## %bb.9:
	movq	%r14, %r8
	subq	-40(%rbp), %r8
	leaq	-40(%rbp), %rdi
	leaq	-56(%rbp), %rsi
	leaq	-28(%rbp), %rdx
	leaq	-44(%rbp), %rcx
	callq	_ASN1_get_object
	leaq	L_.str.3(%rip), %rsi
	cmpl	(%rbx), %eax
	jne	LBB0_24
## %bb.10:
	movl	-28(%rbp), %eax
	movq	_V_ASN1_ENUMERATED@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_24
## %bb.11:
	movq	-56(%rbp), %rax
	testq	%rax, %rax
	je	LBB0_24
## %bb.12:
	movq	-40(%rbp), %rcx
	subq	%rcx, %r14
	cmpq	%r14, %rax
	jle	LBB0_13
LBB0_24:
	movq	_bio_err@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_BIO_printf
	movl	$-1, %eax
LBB0_23:
	addq	$40, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	testq	%rax, %rax
	jle	LBB0_14
## %bb.15:
	leaq	-1(%rax), %rsi
	movl	%eax, %edx
	andl	$3, %edx
	cmpq	$3, %rsi
	jae	LBB0_17
## %bb.16:
	xorl	%esi, %esi
	xorl	%eax, %eax
	jmp	LBB0_20
LBB0_14:
	xorl	%eax, %eax
	jmp	LBB0_23
LBB0_17:
	andq	$-4, %rax
	xorl	%esi, %esi
LBB0_18:                                ## =>This Inner Loop Header: Depth=1
	addq	$4, %rsi
	cmpq	%rsi, %rax
	jne	LBB0_18
## %bb.19:
	movl	-4(%rcx,%rsi), %eax
	bswapl	%eax
LBB0_20:
	testq	%rdx, %rdx
	je	LBB0_23
## %bb.21:
	addq	%rsi, %rcx
	xorl	%esi, %esi
LBB0_22:                                ## =>This Inner Loop Header: Depth=1
	shll	$8, %eax
	movzbl	(%rcx,%rsi), %edi
	orl	%edi, %eax
	incq	%rsi
	cmpq	%rsi, %rdx
	jne	LBB0_22
	jmp	LBB0_23
	.cfi_endproc
                                        ## -- End function
	.comm	_V_ASN1_CONSTRUCTED,4,2         ## @V_ASN1_CONSTRUCTED
	.comm	_V_ASN1_SEQUENCE,4,2            ## @V_ASN1_SEQUENCE
	.comm	_bio_err,4,2                    ## @bio_err
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unexpected LDAP response\n"

	.comm	_V_ASN1_UNIVERSAL,4,2           ## @V_ASN1_UNIVERSAL
	.comm	_V_ASN1_INTEGER,4,2             ## @V_ASN1_INTEGER
L_.str.1:                               ## @.str.1
	.asciz	"No MessageID\n"

	.comm	_V_ASN1_APPLICATION,4,2         ## @V_ASN1_APPLICATION
L_.str.2:                               ## @.str.2
	.asciz	"Not ExtendedResponse\n"

	.comm	_V_ASN1_ENUMERATED,4,2          ## @V_ASN1_ENUMERATED
L_.str.3:                               ## @.str.3
	.asciz	"Not LDAPResult\n"

	.no_dead_strip	_ldap_ExtendedResponse_parse
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ldap_ExtendedResponse_parse
_ldap_ExtendedResponse_parse:           ; @ldap_ExtendedResponse_parse
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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, x1
	mov	x20, x0
	str	x0, [sp, #24]
	add	x0, sp, #24
	add	x1, sp, #16
	add	x2, sp, #12
	add	x3, sp, #8
	mov	x4, x19
	bl	_ASN1_get_object
Lloh0:
	adrp	x21, _V_ASN1_CONSTRUCTED@GOTPAGE
Lloh1:
	ldr	x21, [x21, _V_ASN1_CONSTRUCTED@GOTPAGEOFF]
	ldr	w8, [x21]
	cmp	w0, w8
	b.ne	LBB0_3
; %bb.1:
	ldr	w8, [sp, #12]
Lloh2:
	adrp	x9, _V_ASN1_SEQUENCE@GOTPAGE
Lloh3:
	ldr	x9, [x9, _V_ASN1_SEQUENCE@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_3
; %bb.2:
	ldp	x4, x8, [sp, #16]
	add	x19, x20, x19
	sub	x8, x19, x8
	cmp	x4, x8
	b.le	LBB0_6
LBB0_3:
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
LBB0_4:
Lloh7:
	adrp	x8, _bio_err@GOTPAGE
Lloh8:
	ldr	x8, [x8, _bio_err@GOTPAGEOFF]
Lloh9:
	ldr	w0, [x8]
	bl	_BIO_printf
	mov	w0, #-1
LBB0_5:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_6:
	add	x0, sp, #24
	add	x1, sp, #16
	add	x2, sp, #12
	add	x3, sp, #8
	bl	_ASN1_get_object
Lloh10:
	adrp	x20, _V_ASN1_UNIVERSAL@GOTPAGE
Lloh11:
	ldr	x20, [x20, _V_ASN1_UNIVERSAL@GOTPAGEOFF]
	ldr	w8, [x20]
	cmp	w0, w8
	b.ne	LBB0_9
; %bb.7:
	ldr	w8, [sp, #12]
Lloh12:
	adrp	x9, _V_ASN1_INTEGER@GOTPAGE
Lloh13:
	ldr	x9, [x9, _V_ASN1_INTEGER@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	cmp	w8, w9
	b.ne	LBB0_9
; %bb.8:
	ldp	x9, x8, [sp, #16]
	sub	x10, x19, x8
	cmp	x9, x10
	b.le	LBB0_10
LBB0_9:
Lloh15:
	adrp	x1, l_.str.1@PAGE
Lloh16:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_4
LBB0_10:
	add	x8, x8, x9
	sub	x4, x19, x8
	str	x8, [sp, #24]
	add	x0, sp, #24
	add	x1, sp, #16
	add	x2, sp, #12
	add	x3, sp, #8
	bl	_ASN1_get_object
	ldr	w8, [x21]
	cmp	w0, w8
	b.ne	LBB0_18
; %bb.11:
	ldr	w8, [sp, #8]
Lloh17:
	adrp	x9, _V_ASN1_APPLICATION@GOTPAGE
Lloh18:
	ldr	x9, [x9, _V_ASN1_APPLICATION@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
Lloh20:
	adrp	x1, l_.str.2@PAGE
Lloh21:
	add	x1, x1, l_.str.2@PAGEOFF
	cmp	w8, w9
	b.ne	LBB0_4
; %bb.12:
	ldr	w8, [sp, #12]
	cmp	w8, #24
	b.ne	LBB0_4
; %bb.13:
	ldr	x8, [sp, #24]
	sub	x4, x19, x8
	add	x0, sp, #24
	add	x1, sp, #16
	add	x2, sp, #12
	add	x3, sp, #8
	bl	_ASN1_get_object
	ldr	w8, [x20]
	cmp	w0, w8
	b.ne	LBB0_17
; %bb.14:
	ldr	w8, [sp, #12]
Lloh22:
	adrp	x9, _V_ASN1_ENUMERATED@GOTPAGE
Lloh23:
	ldr	x9, [x9, _V_ASN1_ENUMERATED@GOTPAGEOFF]
Lloh24:
	ldr	w9, [x9]
Lloh25:
	adrp	x1, l_.str.3@PAGE
Lloh26:
	add	x1, x1, l_.str.3@PAGEOFF
	cmp	w8, w9
	b.ne	LBB0_4
; %bb.15:
	ldr	x8, [sp, #16]
	cbz	x8, LBB0_4
; %bb.16:
	ldr	x9, [sp, #24]
	sub	x10, x19, x9
	cmp	x8, x10
	b.le	LBB0_19
LBB0_17:
Lloh27:
	adrp	x1, l_.str.3@PAGE
Lloh28:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_4
LBB0_18:
Lloh29:
	adrp	x1, l_.str.2@PAGE
Lloh30:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_4
LBB0_19:
	cmp	x8, #1
	b.lt	LBB0_22
; %bb.20:
	mov	w10, #0
LBB0_21:                                ; =>This Inner Loop Header: Depth=1
	ldrb	w0, [x9], #1
	bfi	w0, w10, #8, #24
	mov	x10, x0
	subs	x8, x8, #1
	b.ne	LBB0_21
	b	LBB0_5
LBB0_22:
	mov	w0, #0
	b	LBB0_5
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_V_ASN1_CONSTRUCTED,4,2         ; @V_ASN1_CONSTRUCTED
	.comm	_V_ASN1_SEQUENCE,4,2            ; @V_ASN1_SEQUENCE
	.comm	_bio_err,4,2                    ; @bio_err
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unexpected LDAP response\n"

	.comm	_V_ASN1_UNIVERSAL,4,2           ; @V_ASN1_UNIVERSAL
	.comm	_V_ASN1_INTEGER,4,2             ; @V_ASN1_INTEGER
l_.str.1:                               ; @.str.1
	.asciz	"No MessageID\n"

	.comm	_V_ASN1_APPLICATION,4,2         ; @V_ASN1_APPLICATION
l_.str.2:                               ; @.str.2
	.asciz	"Not ExtendedResponse\n"

	.comm	_V_ASN1_ENUMERATED,4,2          ; @V_ASN1_ENUMERATED
l_.str.3:                               ; @.str.3
	.asciz	"Not LDAPResult\n"

	.no_dead_strip	_ldap_ExtendedResponse_parse
.subsections_via_symbols
