	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function show_dialog_for_selected_cert
_show_dialog_for_selected_cert:         ## @show_dialog_for_selected_cert
	.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	$136, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %r14d
	movq	_IDC_CERTPATH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_GetDlgItem
	movl	%eax, %r15d
	leaq	-168(%rbp), %rbx
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$56, %edx
	callq	_memset
	movq	_TVIF_HANDLE@GOTPCREL(%rip), %rax
	movq	_TVIF_PARAM@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movl	%ecx, -168(%rbp)
	movq	_TVM_GETNEXTITEM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_TVGN_CARET@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r15d, %edi
	xorl	%ecx, %ecx
	callq	_SendMessageW
	movq	%rax, -120(%rbp)
	movq	_TVM_GETITEMW@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r15d, %edi
	xorl	%edx, %edx
	movl	%ebx, %ecx
	callq	_SendMessageW
	movq	-120(%rbp), %rsi
	movl	%r15d, %edi
	callq	_get_hierarchy_data_from_tree_item
	movq	%rax, %r12
	movl	-128(%rbp), %esi
	movq	%rax, %rdi
	callq	_lparam_to_index
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	%rax, %rbx
	movl	%r14d, -44(%rbp)                ## 4-byte Spill
	movq	_FALSE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -56(%rbp)
	movq	(%r12), %rax
	movq	40(%rax), %rdi
	movl	36(%rax), %esi
	movl	28(%rax), %ecx
	movl	32(%rax), %edx
	callq	_WTHelperGetProvSignerFromChain
	movq	%rax, %r13
	leaq	-112(%rbp), %r14
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$56, %edx
	callq	_memset
	movl	$56, -108(%rbp)
	movq	(%r12), %rax
	movl	24(%rax), %ecx
	movl	%ecx, -76(%rbp)
	movl	20(%rax), %ecx
	movl	%ecx, -80(%rbp)
	movq	(%r13), %rcx
	movl	(%rcx,%rbx,4), %ecx
	movl	%ecx, -84(%rbp)
	movl	16(%rax), %ecx
	movl	%ecx, -88(%rbp)
	movups	(%rax), %xmm0
	movups	%xmm0, -104(%rbp)
	leaq	-56(%rbp), %rsi
	movq	%r14, %rdi
	callq	_CryptUIDlgViewCertificateW
	cmpq	$0, -56(%rbp)
	je	LBB0_3
## %bb.2:
	movq	_TVM_DELETEITEM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_TVI_ROOT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%r15d, %edi
	xorl	%edx, %edx
	callq	_SendMessageW
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movq	%r12, %rsi
	callq	_show_cert_hierarchy
LBB0_3:
	addq	$136, %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	_TVIF_HANDLE,4,2                ## @TVIF_HANDLE
	.comm	_TVIF_PARAM,4,2                 ## @TVIF_PARAM
	.comm	_TVM_GETNEXTITEM,4,2            ## @TVM_GETNEXTITEM
	.comm	_TVGN_CARET,4,2                 ## @TVGN_CARET
	.comm	_TVM_GETITEMW,4,2               ## @TVM_GETITEMW
	.comm	_FALSE,8,3                      ## @FALSE
	.comm	_TVM_DELETEITEM,4,2             ## @TVM_DELETEITEM
	.comm	_TVI_ROOT,8,3                   ## @TVI_ROOT
	.no_dead_strip	_show_dialog_for_selected_cert
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function show_dialog_for_selected_cert
_show_dialog_for_selected_cert:         ; @show_dialog_for_selected_cert
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #192
	.cfi_def_cfa_offset 192
	stp	x24, x23, [sp, #128]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #144]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #160]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #176]            ; 16-byte Folded Spill
	add	x29, sp, #176
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, _IDC_CERTPATH@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IDC_CERTPATH@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_GetDlgItem
	mov	x20, x0
	mov	w24, #56
	add	x0, sp, #72
	mov	w1, #0
	mov	w2, #56
	bl	_memset
Lloh3:
	adrp	x8, _TVIF_HANDLE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _TVIF_HANDLE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _TVIF_PARAM@GOTPAGE
Lloh7:
	ldr	x9, [x9, _TVIF_PARAM@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [sp, #72]
Lloh9:
	adrp	x8, _TVM_GETNEXTITEM@GOTPAGE
Lloh10:
	ldr	x8, [x8, _TVM_GETNEXTITEM@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
Lloh12:
	adrp	x8, _TVGN_CARET@GOTPAGE
Lloh13:
	ldr	x8, [x8, _TVGN_CARET@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
	mov	x0, x20
	mov	w3, #0
	bl	_SendMessageW
	str	x0, [sp, #120]
Lloh15:
	adrp	x8, _TVM_GETITEMW@GOTPAGE
Lloh16:
	ldr	x8, [x8, _TVM_GETITEMW@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	add	x3, sp, #72
	mov	x0, x20
	mov	w2, #0
	bl	_SendMessageW
	ldr	x1, [sp, #120]
	mov	x0, x20
	bl	_get_hierarchy_data_from_tree_item
	mov	x21, x0
	ldr	w1, [sp, #112]
	bl	_lparam_to_index
	cbz	x0, LBB0_3
; %bb.1:
	mov	x22, x0
Lloh18:
	adrp	x8, _FALSE@GOTPAGE
Lloh19:
	ldr	x8, [x8, _FALSE@GOTPAGEOFF]
Lloh20:
	ldr	x8, [x8]
	str	x8, [sp, #8]
	ldr	x8, [x21]
	ldr	x0, [x8, #40]
	ldp	w2, w1, [x8, #32]
	ldr	w3, [x8, #28]
	bl	_WTHelperGetProvSignerFromChain
	mov	x23, x0
	add	x0, sp, #16
	mov	w1, #0
	mov	w2, #56
	bl	_memset
	str	w24, [sp, #20]
	ldr	x8, [x21]
	ldur	d0, [x8, #20]
	str	d0, [sp, #48]
	ldr	x9, [x23]
	ldr	w9, [x9, x22, lsl #2]
	str	w9, [sp, #44]
	ldr	w9, [x8, #16]
	str	w9, [sp, #40]
	ldr	q0, [x8]
	stur	q0, [sp, #24]
	add	x0, sp, #16
	add	x1, sp, #8
	bl	_CryptUIDlgViewCertificateW
	ldr	x8, [sp, #8]
	cbz	x8, LBB0_3
; %bb.2:
Lloh21:
	adrp	x8, _TVM_DELETEITEM@GOTPAGE
Lloh22:
	ldr	x8, [x8, _TVM_DELETEITEM@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
Lloh24:
	adrp	x8, _TVI_ROOT@GOTPAGE
Lloh25:
	ldr	x8, [x8, _TVI_ROOT@GOTPAGEOFF]
Lloh26:
	ldr	w3, [x8]
	mov	x0, x20
	mov	w2, #0
	bl	_SendMessageW
	mov	x0, x19
	mov	x1, x21
	bl	_show_cert_hierarchy
LBB0_3:
	ldp	x29, x30, [sp, #176]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #160]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #144]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #128]            ; 16-byte Folded Reload
	add	sp, sp, #192
	ret
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_IDC_CERTPATH,4,2               ; @IDC_CERTPATH
	.comm	_TVIF_HANDLE,4,2                ; @TVIF_HANDLE
	.comm	_TVIF_PARAM,4,2                 ; @TVIF_PARAM
	.comm	_TVM_GETNEXTITEM,4,2            ; @TVM_GETNEXTITEM
	.comm	_TVGN_CARET,4,2                 ; @TVGN_CARET
	.comm	_TVM_GETITEMW,4,2               ; @TVM_GETITEMW
	.comm	_FALSE,8,3                      ; @FALSE
	.comm	_TVM_DELETEITEM,4,2             ; @TVM_DELETEITEM
	.comm	_TVI_ROOT,8,3                   ; @TVI_ROOT
	.no_dead_strip	_show_dialog_for_selected_cert
.subsections_via_symbols
