	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function add_cert_to_store
_add_cert_to_store:                     ## @add_cert_to_store
	.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	$168, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, -144(%rbp)                 ## 8-byte Spill
	movq	%rcx, -152(%rbp)                ## 8-byte Spill
                                        ## kill: def $edx killed $edx def $rdx
	movq	%rsi, %r14
	movq	%rdi, %r13
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_FALSE@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rax
	movq	$0, -160(%rbp)
	leal	-128(%rdx), %r15d
	cmpl	$6, %r15d
	jae	LBB0_10
## %bb.1:
	movq	%rax, -136(%rbp)                ## 8-byte Spill
	movl	$80, -164(%rbp)
	movq	_CERT_HASH_PROP_ID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-128(%rbp), %rbx
	leaq	-164(%rbp), %rcx
	movq	%r14, %rdi
	movq	%rbx, %rdx
	callq	_CertGetCertificateContextProperty
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movl	$80, -200(%rbp)
	movq	%rbx, -192(%rbp)
	movl	8(%r14), %esi
	movq	_CERT_FIND_SHA1_HASH@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-200(%rbp), %r8
	movq	%r13, %rdi
	xorl	%edx, %edx
	xorl	%r9d, %r9d
	callq	_CertFindCertificateInStore
	movq	%rax, %rbx
	cmpl	$5, %r15d
	jbe	LBB0_4
	jmp	LBB0_28
LBB0_3:
	xorl	%ebx, %ebx
	cmpl	$5, %r15d
	ja	LBB0_28
LBB0_4:
	leaq	LJTI0_0(%rip), %rax
	movslq	(%rax,%r15,4), %rcx
	addq	%rax, %rcx
	jmpq	*%rcx
LBB0_5:
	cmpq	$0, -152(%rbp)                  ## 8-byte Folded Reload
	je	LBB0_7
## %bb.6:
	leaq	L_.str.3(%rip), %rdi
	xorl	%eax, %eax
	callq	_FIXME
LBB0_7:
	testq	%rbx, %rbx
	je	LBB0_41
## %bb.8:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_Context_CopyProperties
	movq	-144(%rbp), %r14                ## 8-byte Reload
	testq	%r14, %r14
	je	LBB0_44
## %bb.9:
	movq	%rbx, %rdi
	callq	_CertDuplicateCertificateContext
	movq	%rax, (%r14)
	jmp	LBB0_44
LBB0_10:
	cmpl	$134, %edx
	jne	LBB0_14
## %bb.11:
	movq	%rax, -136(%rbp)                ## 8-byte Spill
	jmp	LBB0_41
LBB0_12:
	testq	%rbx, %rbx
	je	LBB0_41
## %bb.13:
	movq	(%rbx), %rdi
	movq	(%r14), %rsi
	callq	_CompareFileTime
	testl	%eax, %eax
	jns	LBB0_21
	jmp	LBB0_18
LBB0_14:
	leaq	L_.str(%rip), %rdi
	movl	%edx, %esi
	xorl	%eax, %eax
	callq	_FIXME
	movq	_E_INVALIDARG@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_SetLastError
	movq	(%rbx), %rbx
	jmp	LBB0_46
LBB0_15:
	cmpq	$0, -152(%rbp)                  ## 8-byte Folded Reload
	je	LBB0_17
## %bb.16:
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_FIXME
LBB0_17:
	testq	%rbx, %rbx
	je	LBB0_28
LBB0_18:
	movq	_TRUE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -136(%rbp)                ## 8-byte Spill
	testq	%r13, %r13
	jne	LBB0_29
	jmp	LBB0_42
LBB0_19:
	testq	%rbx, %rbx
	je	LBB0_27
## %bb.20:
	movq	(%rbx), %rdi
	movq	(%r14), %rsi
	callq	_CompareFileTime
	testl	%eax, %eax
	js	LBB0_28
LBB0_21:
	leaq	L_.str.4(%rip), %rdi
	jmp	LBB0_24
LBB0_22:
	testq	%rbx, %rbx
	je	LBB0_41
## %bb.23:
	leaq	L_.str.1(%rip), %rdi
LBB0_24:
	xorl	%eax, %eax
	callq	_TRACE
	movq	_CRYPT_E_EXISTS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_SetLastError
	jmp	LBB0_37
LBB0_41:
	xorl	%ebx, %ebx
	testq	%r13, %r13
	jne	LBB0_29
LBB0_42:
	movq	-144(%rbp), %rbx                ## 8-byte Reload
	testq	%rbx, %rbx
	je	LBB0_44
## %bb.43:
	movq	%r14, %rdi
	callq	_CertDuplicateCertificateContext
	movq	%rax, (%rbx)
LBB0_44:
	movq	_TRUE@GOTPCREL(%rip), %rax
	jmp	LBB0_45
LBB0_27:
	xorl	%ebx, %ebx
LBB0_28:
	testq	%r13, %r13
	je	LBB0_42
LBB0_29:
	movq	(%r13), %rax
	movq	(%rax), %rax
	movq	%rax, -184(%rbp)                ## 8-byte Spill
	movq	%r14, %rdi
	callq	_context_from_ptr
	movq	%rax, %r15
	testq	%rbx, %rbx
	movq	%rbx, -176(%rbp)                ## 8-byte Spill
	je	LBB0_31
## %bb.30:
	movq	%rbx, %rdi
	callq	_context_from_ptr
	movq	%rax, %rdx
	jmp	LBB0_32
LBB0_31:
	xorl	%edx, %edx
LBB0_32:
	movq	-144(%rbp), %r14                ## 8-byte Reload
	xorl	%eax, %eax
	movq	%r14, %rcx
	movq	-136(%rbp), %r12                ## 8-byte Reload
	orq	%r12, %rcx
	leaq	-160(%rbp), %rcx
	cmoveq	%rax, %rcx
	movq	%r13, %rdi
	movq	%r15, %rsi
	movq	-152(%rbp), %r8                 ## 8-byte Reload
	callq	*-184(%rbp)                     ## 8-byte Folded Reload
	testq	%rax, %rax
	je	LBB0_37
## %bb.33:
	movq	%rax, %rbx
	testq	%r12, %r12
	je	LBB0_35
## %bb.34:
	movq	-160(%rbp), %rdi
	callq	_context_ptr
	movq	%rax, %rdi
	movq	-176(%rbp), %rsi                ## 8-byte Reload
	callq	_Context_CopyProperties
LBB0_35:
	movq	-160(%rbp), %rdi
	testq	%r14, %r14
	je	LBB0_38
## %bb.36:
	callq	_context_ptr
	movq	%rax, (%r14)
	jmp	LBB0_40
LBB0_37:
	movq	_FALSE@GOTPCREL(%rip), %rax
LBB0_45:
	movq	(%rax), %rbx
	jmp	LBB0_46
LBB0_38:
	testq	%rdi, %rdi
	je	LBB0_40
## %bb.39:
	callq	_Context_Release
LBB0_40:
	leaq	L_.str.5(%rip), %rdi
	movq	%rbx, %rsi
	xorl	%eax, %eax
	callq	_TRACE
LBB0_46:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_48
## %bb.47:
	movq	%rbx, %rax
	addq	$168, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_48:
	callq	___stack_chk_fail
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_15, LBB0_15-LJTI0_0
.set L0_0_set_28, LBB0_28-LJTI0_0
.set L0_0_set_12, LBB0_12-LJTI0_0
.set L0_0_set_19, LBB0_19-LJTI0_0
.set L0_0_set_22, LBB0_22-LJTI0_0
LJTI0_0:
	.long	L0_0_set_5
	.long	L0_0_set_15
	.long	L0_0_set_28
	.long	L0_0_set_12
	.long	L0_0_set_19
	.long	L0_0_set_22
	.end_data_region
                                        ## -- End function
	.comm	_TRUE,8,3                       ## @TRUE
	.comm	_FALSE,8,3                      ## @FALSE
	.comm	_CERT_HASH_PROP_ID,4,2          ## @CERT_HASH_PROP_ID
	.comm	_CERT_FIND_SHA1_HASH,4,2        ## @CERT_FIND_SHA1_HASH
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unimplemented add disposition %d\n"

	.comm	_E_INVALIDARG,4,2               ## @E_INVALIDARG
L_.str.1:                               ## @.str.1
	.asciz	"found matching certificate, not adding\n"

	.comm	_CRYPT_E_EXISTS,4,2             ## @CRYPT_E_EXISTS
L_.str.2:                               ## @.str.2
	.asciz	"CERT_STORE_ADD_REPLACE_EXISTING_INHERIT_PROPERTIES: semi-stub for links\n"

L_.str.3:                               ## @.str.3
	.asciz	"CERT_STORE_ADD_USE_EXISTING: semi-stub for links\n"

L_.str.4:                               ## @.str.4
	.asciz	"existing certificate is newer, not adding\n"

L_.str.5:                               ## @.str.5
	.asciz	"returning %d\n"

	.no_dead_strip	_add_cert_to_store
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function add_cert_to_store
_add_cert_to_store:                     ; @add_cert_to_store
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #224
	.cfi_def_cfa_offset 224
	stp	x28, x27, [sp, #128]            ; 16-byte Folded Spill
	stp	x26, x25, [sp, #144]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #160]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #176]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #192]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #208]            ; 16-byte Folded Spill
	add	x29, sp, #208
	.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	x19, x4
	mov	x20, x3
                                        ; kill: def $w2 killed $w2 def $x2
	mov	x22, x1
	mov	x21, 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	x24, _FALSE@GOTPAGE
Lloh4:
	ldr	x24, [x24, _FALSE@GOTPAGEOFF]
	ldr	x25, [x24]
	str	xzr, [sp, #32]
	sub	w26, w2, #128
	cmp	w26, #6
	b.hs	LBB0_10
; %bb.1:
	mov	w23, #80
	str	w23, [sp, #28]
Lloh5:
	adrp	x8, _CERT_HASH_PROP_ID@GOTPAGE
Lloh6:
	ldr	x8, [x8, _CERT_HASH_PROP_ID@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	add	x27, sp, #40
	add	x2, sp, #40
	add	x3, sp, #28
	mov	x0, x22
	bl	_CertGetCertificateContextProperty
	cbz	x0, LBB0_3
; %bb.2:
	str	w23, [sp, #8]
	str	x27, [sp, #16]
	ldr	w1, [x22, #8]
Lloh8:
	adrp	x8, _CERT_FIND_SHA1_HASH@GOTPAGE
Lloh9:
	ldr	x8, [x8, _CERT_FIND_SHA1_HASH@GOTPAGEOFF]
Lloh10:
	ldr	w3, [x8]
	add	x4, sp, #8
	mov	x0, x21
	mov	w2, #0
	mov	x5, #0
	bl	_CertFindCertificateInStore
	mov	x23, x0
	cmp	w26, #5
	b.ls	LBB0_4
	b	LBB0_25
LBB0_3:
	mov	x23, #0
	cmp	w26, #5
	b.hi	LBB0_25
LBB0_4:
Lloh11:
	adrp	x8, lJTI0_0@PAGE
Lloh12:
	add	x8, x8, lJTI0_0@PAGEOFF
	adr	x9, LBB0_5
	ldrb	w10, [x8, x26]
	add	x9, x9, x10, lsl #2
	br	x9
LBB0_5:
	cbz	x20, LBB0_7
; %bb.6:
Lloh13:
	adrp	x0, l_.str.3@PAGE
Lloh14:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_FIXME
LBB0_7:
	cbz	x23, LBB0_25
; %bb.8:
	mov	x0, x23
	mov	x1, x22
	bl	_Context_CopyProperties
	cbz	x19, LBB0_31
; %bb.9:
	mov	x0, x23
	b	LBB0_30
LBB0_10:
	mov	x23, #0
	cmp	w2, #134
	b.eq	LBB0_25
; %bb.11:
	str	x2, [sp]
Lloh15:
	adrp	x0, l_.str@PAGE
Lloh16:
	add	x0, x0, l_.str@PAGEOFF
	bl	_FIXME
Lloh17:
	adrp	x8, _E_INVALIDARG@GOTPAGE
Lloh18:
	ldr	x8, [x8, _E_INVALIDARG@GOTPAGEOFF]
	b	LBB0_24
LBB0_12:
	cbz	x23, LBB0_25
; %bb.13:
	ldr	x0, [x23]
	ldr	x1, [x22]
	bl	_CompareFileTime
	tbz	w0, #31, LBB0_20
; %bb.14:
Lloh19:
	adrp	x8, _TRUE@GOTPAGE
Lloh20:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh21:
	ldr	x25, [x8]
	b	LBB0_25
LBB0_15:
	cbz	x20, LBB0_17
; %bb.16:
Lloh22:
	adrp	x0, l_.str.2@PAGE
Lloh23:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_FIXME
LBB0_17:
Lloh24:
	adrp	x8, _TRUE@GOTPAGE
Lloh25:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh26:
	ldr	x8, [x8]
	cmp	x23, #0
	csel	x25, x25, x8, eq
	b	LBB0_25
LBB0_18:
	cbz	x23, LBB0_25
; %bb.19:
	ldr	x0, [x23]
	ldr	x1, [x22]
	bl	_CompareFileTime
	tbnz	w0, #31, LBB0_25
LBB0_20:
Lloh27:
	adrp	x0, l_.str.4@PAGE
Lloh28:
	add	x0, x0, l_.str.4@PAGEOFF
	b	LBB0_23
LBB0_21:
	cbz	x23, LBB0_25
; %bb.22:
Lloh29:
	adrp	x0, l_.str.1@PAGE
Lloh30:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_23:
	bl	_TRACE
Lloh31:
	adrp	x8, _CRYPT_E_EXISTS@GOTPAGE
Lloh32:
	ldr	x8, [x8, _CRYPT_E_EXISTS@GOTPAGEOFF]
LBB0_24:
	ldr	w0, [x8]
	bl	_SetLastError
	ldr	x20, [x24]
	b	LBB0_42
LBB0_25:
	cbz	x21, LBB0_28
; %bb.26:
	ldr	x8, [x21]
	ldr	x26, [x8]
	mov	x0, x22
	bl	_context_from_ptr
	mov	x22, x0
	cbz	x23, LBB0_32
; %bb.27:
	mov	x0, x23
	bl	_context_from_ptr
	mov	x2, x0
	b	LBB0_33
LBB0_28:
	cbz	x19, LBB0_31
; %bb.29:
	mov	x0, x22
LBB0_30:
	bl	_CertDuplicateCertificateContext
	str	x0, [x19]
LBB0_31:
Lloh33:
	adrp	x8, _TRUE@GOTPAGE
Lloh34:
	ldr	x8, [x8, _TRUE@GOTPAGEOFF]
Lloh35:
	ldr	x20, [x8]
	b	LBB0_42
LBB0_32:
	mov	x2, #0
LBB0_33:
	orr	x8, x19, x25
	add	x9, sp, #32
	cmp	x8, #0
	csel	x3, x9, xzr, ne
	mov	x0, x21
	mov	x1, x22
	mov	x4, x20
	blr	x26
	cbz	x0, LBB0_38
; %bb.34:
	mov	x20, x0
	cbz	x25, LBB0_36
; %bb.35:
	ldr	x0, [sp, #32]
	bl	_context_ptr
	mov	x1, x23
	bl	_Context_CopyProperties
LBB0_36:
	ldr	x0, [sp, #32]
	cbz	x19, LBB0_39
; %bb.37:
	bl	_context_ptr
	str	x0, [x19]
	b	LBB0_41
LBB0_38:
	ldr	x20, [x24]
	b	LBB0_42
LBB0_39:
	cbz	x0, LBB0_41
; %bb.40:
	bl	_Context_Release
LBB0_41:
	str	x20, [sp]
Lloh36:
	adrp	x0, l_.str.5@PAGE
Lloh37:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_TRACE
LBB0_42:
	ldur	x8, [x29, #-88]
Lloh38:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh39:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh40:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_44
; %bb.43:
	mov	x0, x20
	ldp	x29, x30, [sp, #208]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #192]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #176]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #160]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #144]            ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #128]            ; 16-byte Folded Reload
	add	sp, sp, #224
	ret
LBB0_44:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_5-LBB0_5)>>2
	.byte	(LBB0_15-LBB0_5)>>2
	.byte	(LBB0_25-LBB0_5)>>2
	.byte	(LBB0_12-LBB0_5)>>2
	.byte	(LBB0_18-LBB0_5)>>2
	.byte	(LBB0_21-LBB0_5)>>2
                                        ; -- End function
	.comm	_TRUE,8,3                       ; @TRUE
	.comm	_FALSE,8,3                      ; @FALSE
	.comm	_CERT_HASH_PROP_ID,4,2          ; @CERT_HASH_PROP_ID
	.comm	_CERT_FIND_SHA1_HASH,4,2        ; @CERT_FIND_SHA1_HASH
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unimplemented add disposition %d\n"

	.comm	_E_INVALIDARG,4,2               ; @E_INVALIDARG
l_.str.1:                               ; @.str.1
	.asciz	"found matching certificate, not adding\n"

	.comm	_CRYPT_E_EXISTS,4,2             ; @CRYPT_E_EXISTS
l_.str.2:                               ; @.str.2
	.asciz	"CERT_STORE_ADD_REPLACE_EXISTING_INHERIT_PROPERTIES: semi-stub for links\n"

l_.str.3:                               ; @.str.3
	.asciz	"CERT_STORE_ADD_USE_EXISTING: semi-stub for links\n"

l_.str.4:                               ; @.str.4
	.asciz	"existing certificate is newer, not adding\n"

l_.str.5:                               ; @.str.5
	.asciz	"returning %d\n"

	.no_dead_strip	_add_cert_to_store
.subsections_via_symbols
