	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function CRYPT_CopyChainToElement
_CRYPT_CopyChainToElement:              ## @CRYPT_CopyChainToElement
	.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
	movl	%edx, %r15d
	movl	%esi, %r14d
	movq	%rdi, %r12
	movl	$72, %edi
	callq	_CryptMemAlloc
	testq	%rax, %rax
	je	LBB0_16
## %bb.1:
	movq	%rax, %rbx
	movl	$1, (%rax)
	movl	64(%r12), %edi
	callq	_CertDuplicateStore
	movl	%eax, 64(%rbx)
	movl	$4, 8(%rbx)
	movq	%rbx, %rdi
	addq	$56, %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	xorps	%xmm0, %xmm0
	movups	%xmm0, 40(%rbx)
	movq	_FALSE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 32(%rbx)
	movq	$0, 24(%rbx)
	leal	4(,%r14,4), %r13d
	movl	%r13d, %edi
	callq	_CryptMemAlloc
	movq	%rax, 16(%rbx)
	testq	%rax, %rax
	je	LBB0_15
## %bb.2:
	movl	%r15d, -44(%rbp)                ## 4-byte Spill
	movq	_TRUE@GOTPCREL(%rip), %rcx
	movq	(%rcx), %r15
	movq	%rax, %rdi
	xorl	%esi, %esi
	movl	%r13d, %edx
	callq	_memset
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	testl	%r14d, %r14d
	je	LBB0_9
## %bb.3:
	testq	%r15, %r15
	je	LBB0_13
## %bb.4:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	leal	-1(%rax), %r13d
	xorl	%r14d, %r14d
	testl	%r13d, %r13d
	cmovlel	%r14d, %r13d
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_5 Depth=1
	incq	%r14
	testq	%r15, %r15
	je	LBB0_13
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%r14, %r13
	je	LBB0_11
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	16(%r12), %rax
	movq	(%rax,%r14,8), %rdi
	movl	(%rdi), %esi
	decl	%esi
	callq	_CRYPT_CopySimpleChainToElement
	movq	16(%rbx), %rcx
	movq	%rax, (%rcx,%r14,8)
	movq	16(%rbx), %rax
	cmpq	$0, (%rax,%r14,8)
	jne	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	_FALSE@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	jmp	LBB0_8
LBB0_15:
	movq	%rbx, %rdi
	callq	_CryptMemFree
	jmp	LBB0_16
LBB0_9:
	testq	%r15, %r15
	je	LBB0_13
## %bb.10:
	xorl	%r13d, %r13d
LBB0_11:
	movq	16(%r12), %rax
	movq	(%rax,%r13,8), %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	callq	_CRYPT_CopySimpleChainToElement
	movq	16(%rbx), %rcx
	movq	%rax, (%rcx,%r13,8)
	movq	16(%rbx), %rax
	cmpq	$0, (%rax,%r13,8)
	jne	LBB0_14
## %bb.12:
	movq	_FALSE@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	jne	LBB0_14
LBB0_13:
	movq	%rbx, %rdi
	callq	_CRYPT_FreeChainContext
LBB0_16:
	xorl	%ebx, %ebx
LBB0_17:
	movq	%rbx, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	incl	%eax
	movl	%eax, 12(%rbx)
	jmp	LBB0_17
	.cfi_endproc
                                        ## -- End function
	.comm	_FALSE,8,3                      ## @FALSE
	.comm	_TRUE,8,3                       ## @TRUE
	.no_dead_strip	_CRYPT_CopyChainToElement
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function CRYPT_CopyChainToElement
_CRYPT_CopyChainToElement:              ; @CRYPT_CopyChainToElement
	.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
	mov	x20, x2
	mov	x22, x1
	mov	x21, x0
	mov	w0, #72
	bl	_CryptMemAlloc
	mov	x19, x0
	cbz	x0, LBB0_14
; %bb.1:
	mov	w8, #1
	str	w8, [x19]
	ldr	w0, [x21, #64]
	bl	_CertDuplicateStore
	str	w0, [x19, #64]
	mov	w8, #4
	str	w8, [x19, #8]
	add	x0, x19, #56
	mov	w1, #0
	mov	w2, #4
	bl	_memset
Lloh0:
	adrp	x25, _FALSE@GOTPAGE
Lloh1:
	ldr	x25, [x25, _FALSE@GOTPAGEOFF]
	stp	xzr, xzr, [x19, #40]
	ldr	x8, [x25]
	stp	xzr, x8, [x19, #24]
	add	w24, w22, #1
	lsl	w23, w24, #2
	mov	x0, x23
	bl	_CryptMemAlloc
	str	x0, [x19, #16]
	cbz	x0, LBB0_7
; %bb.2:
Lloh2:
	adrp	x8, _TRUE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh4:
	ldr	x26, [x8]
	mov	w1, #0
	mov	x2, x23
	bl	_memset
	cbz	w22, LBB0_8
; %bb.3:
	cbz	x26, LBB0_12
; %bb.4:
	mov	x23, #0
	sub	w8, w22, #1
	cmp	w8, #0
	csel	w22, w8, wzr, gt
	lsl	x27, x22, #3
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	cmp	x27, x23
	b.eq	LBB0_10
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x21, #16]
	ldr	x0, [x8, x23]
	ldr	w8, [x0]
	sub	w1, w8, #1
	bl	_CRYPT_CopySimpleChainToElement
	ldr	x8, [x19, #16]
	str	x0, [x8, x23]
	ldr	x8, [x19, #16]
	ldr	x8, [x8, x23]
	ldr	x9, [x25]
	cmp	x8, #0
	csel	x26, x9, x26, eq
	add	x23, x23, #8
	cbnz	x26, LBB0_5
	b	LBB0_12
LBB0_7:
	mov	x0, x19
	bl	_CryptMemFree
	b	LBB0_13
LBB0_8:
	cbz	x26, LBB0_12
; %bb.9:
	mov	x22, #0
LBB0_10:
	ldr	x8, [x21, #16]
	lsl	x21, x22, #3
	ldr	x0, [x8, x21]
	mov	x1, x20
	bl	_CRYPT_CopySimpleChainToElement
	ldr	x8, [x19, #16]
	str	x0, [x8, x21]
	ldr	x8, [x19, #16]
	ldr	x8, [x8, x21]
	ldr	x9, [x25]
	cmp	x8, #0
	ccmp	x9, #0, #0, eq
	b.eq	LBB0_12
; %bb.11:
	str	w24, [x19, #12]
	b	LBB0_14
LBB0_12:
	mov	x0, x19
	bl	_CRYPT_FreeChainContext
LBB0_13:
	mov	x19, #0
LBB0_14:
	mov	x0, x19
	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
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_FALSE,8,3                      ; @FALSE
	.comm	_TRUE,8,3                       ; @TRUE
	.no_dead_strip	_CRYPT_CopyChainToElement
.subsections_via_symbols
