	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function set_cert_info
_set_cert_info:                         ## @set_cert_info
	.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
	movq	%rsi, %r15
	movl	%edi, %ebx
	movq	_IDC_CERTIFICATE_ICON@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_GetDlgItem
	movl	%eax, %r13d
	movq	_IDC_CERTIFICATE_INFO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	movl	%ebx, %edi
	callq	_GetDlgItem
	movl	%eax, %r12d
	movq	16(%r15), %rdi
	movl	8(%r15), %esi
	movl	(%r15), %ecx
	movl	4(%r15), %edx
	callq	_WTHelperGetProvSignerFromChain
	movq	%rax, %rbx
	movq	16(%rax), %rcx
	movq	24(%rax), %rsi
	movslq	(%rax), %rdi
	decq	%rdi
	movq	_IDB_CERT_WARNING@GOTPCREL(%rip), %rax
	testq	%rcx, %rcx
	je	LBB0_5
## %bb.1:
	movq	_CERT_TRUST_IS_PARTIAL_CHAIN@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	testl	%edx, (%rcx)
	jne	LBB0_5
## %bb.2:
	movq	%rdi, %rax
	shlq	$4, %rax
	cmpl	$0, 8(%rsi,%rax)
	jne	LBB0_3
## %bb.4:
	movq	_IDB_CERT_ERROR@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_3:
	movq	_IDB_CERT@GOTPCREL(%rip), %rax
LBB0_5:
	movq	%rdi, -80(%rbp)                 ## 8-byte Spill
	movq	%rsi, -88(%rbp)                 ## 8-byte Spill
	movl	(%rax), %esi
	movl	%r13d, %edi
	callq	_add_icon_to_control
	leaq	-72(%rbp), %r13
	movq	%r13, %rdi
	xorl	%esi, %esi
	movl	$12, %edx
	callq	_memset
	movl	$12, -72(%rbp)
	movq	_CFM_BOLD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -64(%rbp)
	movq	_CFE_BOLD@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -68(%rbp)
	movq	_EM_SETCHARFORMAT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_SCF_SELECTION@GOTPCREL(%rip), %r14
	movl	(%r14), %edx
	movl	%r12d, %edi
	movl	%r13d, %ecx
	callq	_SendMessageW
	movl	$12, -56(%rbp)
	movq	_PFM_STARTINDENT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)
	movq	_MY_INDENT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -52(%rbp)
	movq	_IDS_CERTIFICATEINFORMATION@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-56(%rbp), %rdx
	movl	%r12d, %edi
	callq	_add_string_resource_with_paraformat_to_control
	movq	_IDC_CERTIFICATE_STATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_GetDlgItem
	movl	%eax, %r12d
	movq	_EM_SETCHARFORMAT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r14), %edx
	movl	%r12d, %edi
	movl	%r13d, %ecx
	callq	_SendMessageW
	movq	8(%rbx), %rax
	movq	_TRUST_E_CERT_SIGNATURE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_8
## %bb.6:
	movq	_IDS_CERT_INFO_BAD_SIG@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_8:
	movq	16(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	movq	_CERT_TRUST_IS_PARTIAL_CHAIN@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_11
LBB0_10:
	movq	_IDS_CERT_INFO_PARTIAL_CHAIN@GOTPCREL(%rip), %rax
LBB0_7:
	movl	(%rax), %esi
	leaq	-56(%rbp), %rdx
	movl	%r12d, %edi
	callq	_add_string_resource_with_paraformat_to_control
LBB0_17:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	shlq	$4, %rcx
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	cmpl	$0, 8(%rax,%rcx)
	je	LBB0_12
## %bb.16:
	movl	%r12d, %edi
	movq	%r15, %rsi
	callq	_set_policy_text
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movq	%r15, %rsi
	callq	_set_issuer_statement
	jmp	LBB0_17
LBB0_12:
	cmpl	$1, (%rbx)
	jne	LBB0_15
## %bb.13:
	cmpq	$0, (%rax,%rcx)
	je	LBB0_15
## %bb.14:
	movq	_IDS_CERT_INFO_UNTRUSTED_CA@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_15:
	movq	_IDS_CERT_INFO_UNTRUSTED_ROOT@GOTPCREL(%rip), %rax
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_IDC_CERTIFICATE_ICON,4,2       ## @IDC_CERTIFICATE_ICON
	.comm	_IDC_CERTIFICATE_INFO,4,2       ## @IDC_CERTIFICATE_INFO
	.comm	_CERT_TRUST_IS_PARTIAL_CHAIN,4,2 ## @CERT_TRUST_IS_PARTIAL_CHAIN
	.comm	_IDB_CERT_WARNING,4,2           ## @IDB_CERT_WARNING
	.comm	_IDB_CERT_ERROR,4,2             ## @IDB_CERT_ERROR
	.comm	_IDB_CERT,4,2                   ## @IDB_CERT
	.comm	_CFM_BOLD,4,2                   ## @CFM_BOLD
	.comm	_CFE_BOLD,4,2                   ## @CFE_BOLD
	.comm	_EM_SETCHARFORMAT,4,2           ## @EM_SETCHARFORMAT
	.comm	_SCF_SELECTION,4,2              ## @SCF_SELECTION
	.comm	_PFM_STARTINDENT,4,2            ## @PFM_STARTINDENT
	.comm	_MY_INDENT,4,2                  ## @MY_INDENT
	.comm	_IDS_CERTIFICATEINFORMATION,4,2 ## @IDS_CERTIFICATEINFORMATION
	.comm	_IDC_CERTIFICATE_STATUS,4,2     ## @IDC_CERTIFICATE_STATUS
	.comm	_TRUST_E_CERT_SIGNATURE,8,3     ## @TRUST_E_CERT_SIGNATURE
	.comm	_IDS_CERT_INFO_BAD_SIG,4,2      ## @IDS_CERT_INFO_BAD_SIG
	.comm	_IDS_CERT_INFO_PARTIAL_CHAIN,4,2 ## @IDS_CERT_INFO_PARTIAL_CHAIN
	.comm	_IDS_CERT_INFO_UNTRUSTED_CA,4,2 ## @IDS_CERT_INFO_UNTRUSTED_CA
	.comm	_IDS_CERT_INFO_UNTRUSTED_ROOT,4,2 ## @IDS_CERT_INFO_UNTRUSTED_ROOT
	.no_dead_strip	_set_cert_info
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function set_cert_info
_set_cert_info:                         ; @set_cert_info
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _IDC_CERTIFICATE_ICON@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IDC_CERTIFICATE_ICON@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_GetDlgItem
	mov	x23, x0
Lloh3:
	adrp	x8, _IDC_CERTIFICATE_INFO@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IDC_CERTIFICATE_INFO@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_GetDlgItem
	mov	x22, x0
	ldr	x0, [x19, #16]
	ldp	w2, w1, [x19, #4]
	ldr	w3, [x19]
	bl	_WTHelperGetProvSignerFromChain
	mov	x21, x0
	ldrsw	x8, [x0]
	sub	x25, x8, #1
	ldp	x8, x24, [x0, #16]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _CERT_TRUST_IS_PARTIAL_CHAIN@GOTPAGE
Lloh7:
	ldr	x9, [x9, _CERT_TRUST_IS_PARTIAL_CHAIN@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_3
LBB0_2:
Lloh9:
	adrp	x8, _IDB_CERT_WARNING@GOTPAGE
Lloh10:
	ldr	x8, [x8, _IDB_CERT_WARNING@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:
	add	x8, x24, x25, lsl #4
	ldr	w8, [x8, #8]
Lloh11:
	adrp	x9, _IDB_CERT@GOTPAGE
Lloh12:
	ldr	x9, [x9, _IDB_CERT@GOTPAGEOFF]
Lloh13:
	adrp	x10, _IDB_CERT_ERROR@GOTPAGE
Lloh14:
	ldr	x10, [x10, _IDB_CERT_ERROR@GOTPAGEOFF]
	cmp	w8, #0
	csel	x8, x10, x9, eq
LBB0_4:
	ldr	w1, [x8]
	mov	x0, x23
	bl	_add_icon_to_control
	mov	w23, #12
	add	x0, sp, #16
	mov	w1, #0
	mov	w2, #12
	bl	_memset
Lloh15:
	adrp	x8, _CFM_BOLD@GOTPAGE
Lloh16:
	ldr	x8, [x8, _CFM_BOLD@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	str	w8, [sp, #24]
Lloh18:
	adrp	x8, _CFE_BOLD@GOTPAGE
Lloh19:
	ldr	x8, [x8, _CFE_BOLD@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	stp	w23, w8, [sp, #16]
Lloh21:
	adrp	x26, _EM_SETCHARFORMAT@GOTPAGE
Lloh22:
	ldr	x26, [x26, _EM_SETCHARFORMAT@GOTPAGEOFF]
	ldr	w1, [x26]
Lloh23:
	adrp	x27, _SCF_SELECTION@GOTPAGE
Lloh24:
	ldr	x27, [x27, _SCF_SELECTION@GOTPAGEOFF]
	ldr	w2, [x27]
	add	x3, sp, #16
	mov	x0, x22
	bl	_SendMessageW
Lloh25:
	adrp	x8, _PFM_STARTINDENT@GOTPAGE
Lloh26:
	ldr	x8, [x8, _PFM_STARTINDENT@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	str	w8, [sp, #8]
Lloh28:
	adrp	x8, _MY_INDENT@GOTPAGE
Lloh29:
	ldr	x8, [x8, _MY_INDENT@GOTPAGEOFF]
Lloh30:
	ldr	w8, [x8]
	stp	w23, w8, [sp]
Lloh31:
	adrp	x8, _IDS_CERTIFICATEINFORMATION@GOTPAGE
Lloh32:
	ldr	x8, [x8, _IDS_CERTIFICATEINFORMATION@GOTPAGEOFF]
Lloh33:
	ldr	w1, [x8]
	mov	x2, sp
	mov	x0, x22
	bl	_add_string_resource_with_paraformat_to_control
Lloh34:
	adrp	x8, _IDC_CERTIFICATE_STATUS@GOTPAGE
Lloh35:
	ldr	x8, [x8, _IDC_CERTIFICATE_STATUS@GOTPAGEOFF]
Lloh36:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_GetDlgItem
	mov	x22, x0
	ldr	w1, [x26]
	ldr	w2, [x27]
	add	x3, sp, #16
	bl	_SendMessageW
	ldr	x8, [x21, #8]
Lloh37:
	adrp	x9, _TRUST_E_CERT_SIGNATURE@GOTPAGE
Lloh38:
	ldr	x9, [x9, _TRUST_E_CERT_SIGNATURE@GOTPAGEOFF]
Lloh39:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.5:
Lloh40:
	adrp	x8, _IDS_CERT_INFO_BAD_SIG@GOTPAGE
Lloh41:
	ldr	x8, [x8, _IDS_CERT_INFO_BAD_SIG@GOTPAGEOFF]
	b	LBB0_9
LBB0_6:
	ldr	x8, [x21, #16]
	cbz	x8, LBB0_8
; %bb.7:
	ldr	w8, [x8]
Lloh42:
	adrp	x9, _CERT_TRUST_IS_PARTIAL_CHAIN@GOTPAGE
Lloh43:
	ldr	x9, [x9, _CERT_TRUST_IS_PARTIAL_CHAIN@GOTPAGEOFF]
Lloh44:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_11
LBB0_8:
Lloh45:
	adrp	x8, _IDS_CERT_INFO_PARTIAL_CHAIN@GOTPAGE
Lloh46:
	ldr	x8, [x8, _IDS_CERT_INFO_PARTIAL_CHAIN@GOTPAGEOFF]
LBB0_9:
	ldr	w1, [x8]
	mov	x2, sp
	mov	x0, x22
	bl	_add_string_resource_with_paraformat_to_control
LBB0_10:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_11:
	add	x8, x24, x25, lsl #4
	ldr	w8, [x8, #8]
	cbz	w8, LBB0_13
; %bb.12:
	mov	x0, x22
	mov	x1, x19
	bl	_set_policy_text
	mov	x0, x20
	mov	x1, x19
	bl	_set_issuer_statement
	b	LBB0_10
LBB0_13:
	ldr	w8, [x21]
	cmp	w8, #1
	b.ne	LBB0_16
; %bb.14:
	lsl	x8, x25, #4
	ldr	x8, [x24, x8]
	cbz	x8, LBB0_16
; %bb.15:
Lloh47:
	adrp	x8, _IDS_CERT_INFO_UNTRUSTED_CA@GOTPAGE
Lloh48:
	ldr	x8, [x8, _IDS_CERT_INFO_UNTRUSTED_CA@GOTPAGEOFF]
	b	LBB0_9
LBB0_16:
Lloh49:
	adrp	x8, _IDS_CERT_INFO_UNTRUSTED_ROOT@GOTPAGE
Lloh50:
	ldr	x8, [x8, _IDS_CERT_INFO_UNTRUSTED_ROOT@GOTPAGEOFF]
	b	LBB0_9
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGot	Lloh45, Lloh46
	.loh AdrpLdrGot	Lloh47, Lloh48
	.loh AdrpLdrGot	Lloh49, Lloh50
	.cfi_endproc
                                        ; -- End function
	.comm	_IDC_CERTIFICATE_ICON,4,2       ; @IDC_CERTIFICATE_ICON
	.comm	_IDC_CERTIFICATE_INFO,4,2       ; @IDC_CERTIFICATE_INFO
	.comm	_CERT_TRUST_IS_PARTIAL_CHAIN,4,2 ; @CERT_TRUST_IS_PARTIAL_CHAIN
	.comm	_IDB_CERT_WARNING,4,2           ; @IDB_CERT_WARNING
	.comm	_IDB_CERT_ERROR,4,2             ; @IDB_CERT_ERROR
	.comm	_IDB_CERT,4,2                   ; @IDB_CERT
	.comm	_CFM_BOLD,4,2                   ; @CFM_BOLD
	.comm	_CFE_BOLD,4,2                   ; @CFE_BOLD
	.comm	_EM_SETCHARFORMAT,4,2           ; @EM_SETCHARFORMAT
	.comm	_SCF_SELECTION,4,2              ; @SCF_SELECTION
	.comm	_PFM_STARTINDENT,4,2            ; @PFM_STARTINDENT
	.comm	_MY_INDENT,4,2                  ; @MY_INDENT
	.comm	_IDS_CERTIFICATEINFORMATION,4,2 ; @IDS_CERTIFICATEINFORMATION
	.comm	_IDC_CERTIFICATE_STATUS,4,2     ; @IDC_CERTIFICATE_STATUS
	.comm	_TRUST_E_CERT_SIGNATURE,8,3     ; @TRUST_E_CERT_SIGNATURE
	.comm	_IDS_CERT_INFO_BAD_SIG,4,2      ; @IDS_CERT_INFO_BAD_SIG
	.comm	_IDS_CERT_INFO_PARTIAL_CHAIN,4,2 ; @IDS_CERT_INFO_PARTIAL_CHAIN
	.comm	_IDS_CERT_INFO_UNTRUSTED_CA,4,2 ; @IDS_CERT_INFO_UNTRUSTED_CA
	.comm	_IDS_CERT_INFO_UNTRUSTED_ROOT,4,2 ; @IDS_CERT_INFO_UNTRUSTED_ROOT
	.no_dead_strip	_set_cert_info
.subsections_via_symbols
