	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function add_purpose
_add_purpose:                           ## @add_purpose
	.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	%r12
	pushq	%rbx
	subq	$48, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	movq	_IDC_CERTIFICATE_USAGES@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_GetDlgItem
	movl	%eax, %r14d
	xorl	%eax, %eax
	callq	_GetProcessHeap
	movq	_HEAP_ZERO_MEMORY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	%eax, %edi
	movl	$4, %edx
	callq	_HeapAlloc
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	%rax, %r12
	xorl	%eax, %eax
	callq	_GetProcessHeap
	movl	%eax, %ebx
	movl	%r15d, %edi
	callq	_strlen
                                        ## kill: def $eax killed $eax def $rax
	leal	1(%rax), %edx
	movl	%ebx, %edi
	xorl	%esi, %esi
	callq	_HeapAlloc
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	movq	%rax, %rbx
	movq	%rax, %rdi
	movl	%r15d, %esi
	callq	_strcpy
	movl	$4, (%r12)
	movq	%rbx, 8(%r12)
	movq	_LVIF_TEXT@GOTPCREL(%rip), %rax
	movq	_LVIF_STATE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_LVIF_PARAM@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movl	%ecx, -80(%rbp)
	movq	_CheckBitmapIndexChecked@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_INDEXTOSTATEIMAGEMASK
	movl	%eax, -40(%rbp)
	movq	_LVIS_STATEIMAGEMASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -44(%rbp)
	movq	_LVM_GETITEMCOUNT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r14d, %edi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_SendMessageW
	movl	%eax, -48(%rbp)
	movq	$0, -56(%rbp)
	movq	%r12, -64(%rbp)
	movq	%rbx, -72(%rbp)
	movq	_LVM_INSERTITEMA@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-80(%rbp), %rcx
	movl	%r14d, %edi
	xorl	%edx, %edx
	callq	_SendMessageA
LBB0_3:
	addq	$48, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	xorl	%eax, %eax
	callq	_GetProcessHeap
	movl	%eax, %edi
	xorl	%esi, %esi
	movq	%r12, %rdx
	addq	$48, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_HeapFree                       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_IDC_CERTIFICATE_USAGES,4,2     ## @IDC_CERTIFICATE_USAGES
	.comm	_HEAP_ZERO_MEMORY,4,2           ## @HEAP_ZERO_MEMORY
	.comm	_LVIF_TEXT,4,2                  ## @LVIF_TEXT
	.comm	_LVIF_STATE,4,2                 ## @LVIF_STATE
	.comm	_LVIF_PARAM,4,2                 ## @LVIF_PARAM
	.comm	_CheckBitmapIndexChecked,4,2    ## @CheckBitmapIndexChecked
	.comm	_LVIS_STATEIMAGEMASK,4,2        ## @LVIS_STATEIMAGEMASK
	.comm	_LVM_GETITEMCOUNT,4,2           ## @LVM_GETITEMCOUNT
	.comm	_LVM_INSERTITEMA,4,2            ## @LVM_INSERTITEMA
	.no_dead_strip	_add_purpose
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function add_purpose
_add_purpose:                           ; @add_purpose
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
	mov	x21, x1
Lloh0:
	adrp	x8, _IDC_CERTIFICATE_USAGES@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IDC_CERTIFICATE_USAGES@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_GetDlgItem
	mov	x19, x0
	bl	_GetProcessHeap
Lloh3:
	adrp	x8, _HEAP_ZERO_MEMORY@GOTPAGE
Lloh4:
	ldr	x8, [x8, _HEAP_ZERO_MEMORY@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	w2, #4
	bl	_HeapAlloc
	cbz	x0, LBB0_3
; %bb.1:
	mov	x20, x0
	bl	_GetProcessHeap
	mov	x22, x0
	mov	x0, x21
	bl	_strlen
	add	w2, w0, #1
	mov	x0, x22
	mov	w1, #0
	bl	_HeapAlloc
	cbz	x0, LBB0_4
; %bb.2:
	mov	x22, x0
	mov	x1, x21
	bl	_strcpy
	mov	w8, #4
	str	w8, [x20]
	str	x22, [x20, #8]
Lloh6:
	adrp	x8, _LVIF_TEXT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _LVIF_TEXT@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _LVIF_STATE@GOTPAGE
Lloh10:
	ldr	x9, [x9, _LVIF_STATE@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh12:
	adrp	x9, _LVIF_PARAM@GOTPAGE
Lloh13:
	ldr	x9, [x9, _LVIF_PARAM@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	orr	w8, w8, w9
	str	w8, [sp]
Lloh15:
	adrp	x8, _CheckBitmapIndexChecked@GOTPAGE
Lloh16:
	ldr	x8, [x8, _CheckBitmapIndexChecked@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	bl	_INDEXTOSTATEIMAGEMASK
Lloh18:
	adrp	x8, _LVIS_STATEIMAGEMASK@GOTPAGE
Lloh19:
	ldr	x8, [x8, _LVIS_STATEIMAGEMASK@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	stp	w8, w0, [sp, #36]
Lloh21:
	adrp	x8, _LVM_GETITEMCOUNT@GOTPAGE
Lloh22:
	ldr	x8, [x8, _LVM_GETITEMCOUNT@GOTPAGEOFF]
Lloh23:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #0
	mov	w3, #0
	bl	_SendMessageW
	str	w0, [sp, #32]
	stp	x20, xzr, [sp, #16]
	str	x22, [sp, #8]
Lloh24:
	adrp	x8, _LVM_INSERTITEMA@GOTPAGE
Lloh25:
	ldr	x8, [x8, _LVM_INSERTITEMA@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
	mov	x3, sp
	mov	x0, x19
	mov	w2, #0
	bl	_SendMessageA
LBB0_3:
	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
	add	sp, sp, #96
	ret
LBB0_4:
	bl	_GetProcessHeap
	mov	w1, #0
	mov	x2, x20
	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
	add	sp, sp, #96
	b	_HeapFree
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_IDC_CERTIFICATE_USAGES,4,2     ; @IDC_CERTIFICATE_USAGES
	.comm	_HEAP_ZERO_MEMORY,4,2           ; @HEAP_ZERO_MEMORY
	.comm	_LVIF_TEXT,4,2                  ; @LVIF_TEXT
	.comm	_LVIF_STATE,4,2                 ; @LVIF_STATE
	.comm	_LVIF_PARAM,4,2                 ; @LVIF_PARAM
	.comm	_CheckBitmapIndexChecked,4,2    ; @CheckBitmapIndexChecked
	.comm	_LVIS_STATEIMAGEMASK,4,2        ; @LVIS_STATEIMAGEMASK
	.comm	_LVM_GETITEMCOUNT,4,2           ; @LVM_GETITEMCOUNT
	.comm	_LVM_INSERTITEMA,4,2            ; @LVM_INSERTITEMA
	.no_dead_strip	_add_purpose
.subsections_via_symbols
