	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function show_cert_chain
_show_cert_chain:                       ## @show_cert_chain
	.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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	_IDC_CERTPATH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_GetDlgItem
	movl	%eax, %r14d
	movq	8(%r15), %rax
	movq	16(%rax), %rdi
	movl	8(%rax), %esi
	movl	(%rax), %ecx
	movl	4(%rax), %edx
	callq	_WTHelperGetProvSignerFromChain
	movq	%rax, %rbx
	movq	_TVM_SETIMAGELIST@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_TVSIL_NORMAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, -64(%rbp)                 ## 8-byte Spill
	movl	(%r15), %ecx
	movl	%r14d, -52(%rbp)                ## 4-byte Spill
	movl	%r14d, %edi
	callq	_SendMessageW
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movslq	(%rbx), %r13
	testq	%r13, %r13
	je	LBB0_10
## %bb.1:
	leaq	-1(%r13), %rbx
	movq	%r13, %r15
	shlq	$4, %r15
	xorl	%r14d, %r14d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_3:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	%ebx, %eax
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	decq	%rbx
	addq	$-16, %r15
	testl	%eax, %eax
	je	LBB0_10
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rax
	decq	%r13
	movl	-8(%rax,%r15), %edi
	callq	_get_cert_display_name
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rax, %r12
	movq	%r14, -72(%rbp)
	movq	_TVI_LAST@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -80(%rbp)
	movq	_TVIF_STATE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_TVIF_TEXT@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	_TVIF_IMAGE@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	_TVIF_SELECTEDIMAGE@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movq	_TVIF_PARAM@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, -120(%rbp)
	movq	%r12, -88(%rbp)
	movq	_TVIS_EXPANDED@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -96(%rbp)
	movq	%rax, -104(%rbp)
	testq	%rbx, %rbx
	je	LBB0_5
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rax
	movq	-16(%rax,%r15), %rcx
	xorl	%eax, %eax
	cmpq	$0, (%rcx)
	setne	%al
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	%eax, -116(%rbp)
	movl	%eax, -112(%rbp)
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movl	%ebx, %esi
	callq	_index_to_lparam
	movl	%eax, -108(%rbp)
	movq	_TVM_INSERTITEMW@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	-52(%rbp), %edi                 ## 4-byte Reload
	xorl	%edx, %edx
	leaq	-120(%rbp), %rcx
                                        ## kill: def $ecx killed $ecx killed $rcx
	callq	_SendMessageW
	movq	%rax, %r14
	xorl	%eax, %eax
	callq	_GetProcessHeap
	movl	%eax, %edi
	xorl	%esi, %esi
	movq	%r12, %rdx
	callq	_HeapFree
	movl	%r13d, %eax
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	16(%rax), %rcx
	movl	$2, %eax
	testq	%rcx, %rcx
	je	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_CERT_TRUST_IS_PARTIAL_CHAIN@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	testl	%edx, (%rcx)
	jne	LBB0_8
	jmp	LBB0_7
LBB0_10:
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IDC_CERTPATH,4,2               ## @IDC_CERTPATH
	.comm	_TVM_SETIMAGELIST,4,2           ## @TVM_SETIMAGELIST
	.comm	_TVSIL_NORMAL,4,2               ## @TVSIL_NORMAL
	.comm	_TVI_LAST,4,2                   ## @TVI_LAST
	.comm	_TVIF_TEXT,4,2                  ## @TVIF_TEXT
	.comm	_TVIF_STATE,4,2                 ## @TVIF_STATE
	.comm	_TVIF_IMAGE,4,2                 ## @TVIF_IMAGE
	.comm	_TVIF_SELECTEDIMAGE,4,2         ## @TVIF_SELECTEDIMAGE
	.comm	_TVIF_PARAM,4,2                 ## @TVIF_PARAM
	.comm	_TVIS_EXPANDED,8,3              ## @TVIS_EXPANDED
	.comm	_CERT_TRUST_IS_PARTIAL_CHAIN,4,2 ## @CERT_TRUST_IS_PARTIAL_CHAIN
	.comm	_TVM_INSERTITEMW,4,2            ## @TVM_INSERTITEMW
	.no_dead_strip	_show_cert_chain
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function show_cert_chain
_show_cert_chain:                       ; @show_cert_chain
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x28, x27, [sp, #64]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.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
Lloh0:
	adrp	x8, _IDC_CERTPATH@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IDC_CERTPATH@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_GetDlgItem
	mov	x20, x0
	ldr	x8, [x19, #8]
	ldr	x0, [x8, #16]
	ldp	w2, w1, [x8, #4]
	ldr	w3, [x8]
	bl	_WTHelperGetProvSignerFromChain
	mov	x21, x0
Lloh3:
	adrp	x8, _TVM_SETIMAGELIST@GOTPAGE
Lloh4:
	ldr	x8, [x8, _TVM_SETIMAGELIST@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x8, _TVSIL_NORMAL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _TVSIL_NORMAL@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	ldr	w3, [x19]
	mov	x0, x20
	bl	_SendMessageW
	ldrsw	x25, [x21]
	cbz	w25, LBB0_11
; %bb.1:
	mov	x24, #0
	sub	x22, x25, #1
	lsl	x26, x25, #4
Lloh9:
	adrp	x27, _TVIS_EXPANDED@GOTPAGE
Lloh10:
	ldr	x27, [x27, _TVIS_EXPANDED@GOTPAGEOFF]
Lloh11:
	adrp	x28, _TVM_INSERTITEMW@GOTPAGE
Lloh12:
	ldr	x28, [x28, _TVM_INSERTITEMW@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x8, x22
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	sub	x22, x22, #1
	sub	x26, x26, #16
	cbz	w8, LBB0_11
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21, #8]
	sub	x25, x25, #1
	add	x8, x8, x26
	ldur	w0, [x8, #-8]
	bl	_get_cert_display_name
	cbz	x0, LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x23, x0
	str	x24, [sp, #56]
Lloh13:
	adrp	x8, _TVI_LAST@GOTPAGE
Lloh14:
	ldr	x8, [x8, _TVI_LAST@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	str	w8, [sp, #48]
Lloh16:
	adrp	x8, _TVIF_TEXT@GOTPAGE
Lloh17:
	ldr	x8, [x8, _TVIF_TEXT@GOTPAGEOFF]
Lloh18:
	ldr	w8, [x8]
Lloh19:
	adrp	x9, _TVIF_STATE@GOTPAGE
Lloh20:
	ldr	x9, [x9, _TVIF_STATE@GOTPAGEOFF]
Lloh21:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh22:
	adrp	x9, _TVIF_IMAGE@GOTPAGE
Lloh23:
	ldr	x9, [x9, _TVIF_IMAGE@GOTPAGEOFF]
Lloh24:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh25:
	adrp	x9, _TVIF_SELECTEDIMAGE@GOTPAGE
Lloh26:
	ldr	x9, [x9, _TVIF_SELECTEDIMAGE@GOTPAGEOFF]
Lloh27:
	ldr	w9, [x9]
	orr	w8, w8, w9
Lloh28:
	adrp	x9, _TVIF_PARAM@GOTPAGE
Lloh29:
	ldr	x9, [x9, _TVIF_PARAM@GOTPAGEOFF]
Lloh30:
	ldr	w9, [x9]
	orr	w8, w8, w9
	str	w8, [sp, #8]
	ldr	x8, [x27]
	stp	x8, x0, [sp, #32]
	str	x8, [sp, #24]
	cbz	x22, LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x21, #8]
	add	x8, x8, x26
	ldur	x8, [x8, #-16]
	ldr	x8, [x8]
	cmp	x8, #0
	cset	w8, ne
	b	LBB0_10
LBB0_7:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x21, #16]
	cbz	x8, LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x8]
Lloh31:
	adrp	x9, _CERT_TRUST_IS_PARTIAL_CHAIN@GOTPAGE
Lloh32:
	ldr	x9, [x9, _CERT_TRUST_IS_PARTIAL_CHAIN@GOTPAGEOFF]
Lloh33:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_6
LBB0_9:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	w8, #2
LBB0_10:                                ;   in Loop: Header=BB0_4 Depth=1
	stp	w8, w8, [sp, #12]
	mov	x0, x19
	mov	x1, x22
	bl	_index_to_lparam
	str	w0, [sp, #20]
	ldr	w1, [x28]
	add	x3, sp, #8
	mov	x0, x20
	mov	w2, #0
	bl	_SendMessageW
	mov	x24, x0
	bl	_GetProcessHeap
	mov	w1, #0
	mov	x2, x23
	bl	_HeapFree
	mov	x8, x25
	b	LBB0_3
LBB0_11:
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.cfi_endproc
                                        ; -- End function
	.comm	_IDC_CERTPATH,4,2               ; @IDC_CERTPATH
	.comm	_TVM_SETIMAGELIST,4,2           ; @TVM_SETIMAGELIST
	.comm	_TVSIL_NORMAL,4,2               ; @TVSIL_NORMAL
	.comm	_TVI_LAST,4,2                   ; @TVI_LAST
	.comm	_TVIF_TEXT,4,2                  ; @TVIF_TEXT
	.comm	_TVIF_STATE,4,2                 ; @TVIF_STATE
	.comm	_TVIF_IMAGE,4,2                 ; @TVIF_IMAGE
	.comm	_TVIF_SELECTEDIMAGE,4,2         ; @TVIF_SELECTEDIMAGE
	.comm	_TVIF_PARAM,4,2                 ; @TVIF_PARAM
	.comm	_TVIS_EXPANDED,8,3              ; @TVIS_EXPANDED
	.comm	_CERT_TRUST_IS_PARTIAL_CHAIN,4,2 ; @CERT_TRUST_IS_PARTIAL_CHAIN
	.comm	_TVM_INSERTITEMW,4,2            ; @TVM_INSERTITEMW
	.no_dead_strip	_show_cert_chain
.subsections_via_symbols
