	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function OnTopicChange
_OnTopicChange:                         ## @OnTopicChange
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testq	%rdi, %rdi
	je	LBB0_23
## %bb.1:
	movq	%rsi, %r13
	testq	%rsi, %rsi
	je	LBB0_23
## %bb.2:
	movq	%rdi, %r14
	movl	(%rdi), %eax
	cmpl	$128, %eax
	je	LBB0_17
## %bb.3:
	cmpl	$129, %eax
	je	LBB0_8
## %bb.4:
	cmpl	$130, %eax
	jne	LBB0_18
## %bb.5:
	movq	16(%r13), %r15
	movq	24(%r13), %rdi
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r13), %rbx
	testq	%rbx, %rbx
	jne	LBB0_22
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	(%r13), %r13
	testq	%r13, %r13
	jne	LBB0_6
	jmp	LBB0_21
LBB0_17:
	movq	(%r13), %r15
	movq	8(%r14), %r13
	movq	%r15, %rdi
	jmp	LBB0_20
LBB0_8:
	movl	(%r13), %eax
	testl	%eax, %eax
	je	LBB0_9
## %bb.10:
	cmpl	$2, %eax
	jl	LBB0_19
## %bb.11:
	movl	20(%r14), %edi
	movq	_LVM_DELETEALLITEMS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_SendMessageW
	cmpl	$0, (%r13)
	jle	LBB0_16
## %bb.12:
	xorl	%ebx, %ebx
	xorl	%r15d, %r15d
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_13 Depth=1
	testq	%rax, %rax
	cmovneq	%rax, %r12
	leaq	-80(%rbp), %rdi
	xorl	%esi, %esi
	movl	$32, %edx
	callq	_memset
	movl	%r15d, -80(%rbp)
	movq	_LVIF_PARAM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_LVIF_TEXT@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, -76(%rbp)
	movq	%r12, %rdi
	callq	_lstrlenW
	incl	%eax
	movl	%eax, -56(%rbp)
	movq	%r12, -64(%rbp)
	addl	%ebx, %r14d
	movl	%r14d, -72(%rbp)
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movl	20(%r14), %edi
	movq	_LVM_INSERTITEMW@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	xorl	%edx, %edx
	leaq	-80(%rbp), %rcx
                                        ## kill: def $ecx killed $ecx killed $rcx
	callq	_SendMessageW
	incq	%r15
	movslq	(%r13), %rax
	addq	$16, %rbx
	cmpq	%rax, %r15
	jge	LBB0_16
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movq	16(%r13), %r14
	movq	24(%r13), %r12
	movq	8(%r14,%rbx), %rax
	testq	%rax, %rax
	jne	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_13 Depth=1
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rdi
	movq	(%r14,%rbx), %rsi
	callq	_GetDocumentTitle
	movq	%rax, 8(%r14,%rbx)
	jmp	LBB0_15
LBB0_18:
	leaq	L_.str.1(%rip), %rdi
	callq	_FIXME
	jmp	LBB0_23
LBB0_9:
	leaq	L_.str(%rip), %rdi
	callq	_FIXME
	jmp	LBB0_23
LBB0_19:
	movq	16(%r13), %rax
	movq	(%rax), %r15
	movq	8(%rax), %rdi
	addq	$8, %r13
LBB0_20:
	movq	(%r13), %rbx
	testq	%rbx, %rbx
	je	LBB0_21
LBB0_22:
	callq	_debugstr_w
	movl	%eax, %r12d
	movq	%r15, %rdi
	callq	_debugstr_w
	leaq	L_.str.3(%rip), %rdi
	movl	%r12d, %esi
	movl	%eax, %edx
	callq	_TRACE
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movq	%r15, %rdx
	callq	_NavigateToChm
	jmp	LBB0_23
LBB0_21:
	leaq	L_.str.2(%rip), %rdi
	callq	_FIXME
	jmp	LBB0_23
LBB0_16:
	movl	16(%r14), %edi
	movq	_SW_SHOW@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_ShowWindow
LBB0_23:
	xorl	%eax, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"No entries for this item!\n"

	.comm	_LVM_DELETEALLITEMS,4,2         ## @LVM_DELETEALLITEMS
	.comm	_LVIF_TEXT,4,2                  ## @LVIF_TEXT
	.comm	_LVIF_PARAM,4,2                 ## @LVIF_PARAM
	.comm	_LVM_INSERTITEMW,4,2            ## @LVM_INSERTITEMW
	.comm	_SW_SHOW,4,2                    ## @SW_SHOW
L_.str.1:                               ## @.str.1
	.asciz	"Unhandled operation for this tab!\n"

L_.str.2:                               ## @.str.2
	.asciz	"No help file found for this item!\n"

L_.str.3:                               ## @.str.3
	.asciz	"name %s loal %s\n"

	.no_dead_strip	_OnTopicChange
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function OnTopicChange
_OnTopicChange:                         ; @OnTopicChange
	.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
	cbz	x0, LBB0_22
; %bb.1:
	mov	x20, x1
	cbz	x1, LBB0_22
; %bb.2:
	mov	x19, x0
	ldr	w8, [x0]
	cmp	w8, #128
	b.eq	LBB0_8
; %bb.3:
	cmp	w8, #129
	b.eq	LBB0_10
; %bb.4:
	cmp	w8, #130
	b.ne	LBB0_17
; %bb.5:
	ldp	x21, x0, [x20, #16]
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x22, [x20, #8]
	cbnz	x22, LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x20, [x20]
	cbnz	x20, LBB0_6
	b	LBB0_20
LBB0_8:
	ldr	x21, [x20]
	ldr	x8, [x19, #8]
	mov	x0, x21
	ldr	x22, [x8]
	cbz	x22, LBB0_20
LBB0_9:
	bl	_debugstr_w
	mov	x20, x0
	mov	x0, x21
	bl	_debugstr_w
	mov	x2, x0
Lloh0:
	adrp	x0, l_.str.3@PAGE
Lloh1:
	add	x0, x0, l_.str.3@PAGEOFF
	mov	x1, x20
	bl	_TRACE
	mov	x0, x19
	mov	x1, x22
	mov	x2, x21
	bl	_NavigateToChm
	b	LBB0_22
LBB0_10:
	ldr	w8, [x20]
	cbz	w8, LBB0_18
; %bb.11:
	cmp	w8, #2
	b.lt	LBB0_19
; %bb.12:
	ldr	w0, [x19, #20]
Lloh2:
	adrp	x8, _LVM_DELETEALLITEMS@GOTPAGE
Lloh3:
	ldr	x8, [x8, _LVM_DELETEALLITEMS@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	w2, #0
	mov	w3, #0
	bl	_SendMessageW
	ldr	w8, [x20]
	cmp	w8, #1
	b.lt	LBB0_21
; %bb.13:
	mov	x22, #0
	mov	x23, #0
Lloh5:
	adrp	x24, _LVIF_TEXT@GOTPAGE
Lloh6:
	ldr	x24, [x24, _LVIF_TEXT@GOTPAGEOFF]
Lloh7:
	adrp	x25, _LVIF_PARAM@GOTPAGE
Lloh8:
	ldr	x25, [x25, _LVIF_PARAM@GOTPAGEOFF]
Lloh9:
	adrp	x26, _LVM_INSERTITEMW@GOTPAGE
Lloh10:
	ldr	x26, [x26, _LVM_INSERTITEMW@GOTPAGEOFF]
	b	LBB0_15
LBB0_14:                                ;   in Loop: Header=BB0_15 Depth=1
	cmp	x0, #0
	csel	x21, x21, x0, eq
	mov	x0, sp
	mov	w1, #0
	mov	w2, #32
	bl	_memset
	ldr	w8, [x24]
	ldr	w9, [x25]
	orr	w8, w9, w8
	stp	w23, w8, [sp]
	mov	x0, x21
	bl	_lstrlenW
	add	w8, w0, #1
	str	w8, [sp, #24]
	str	x21, [sp, #16]
	add	w8, w22, w27
	str	w8, [sp, #8]
	ldr	w0, [x19, #20]
	ldr	w1, [x26]
	mov	x3, sp
	mov	w2, #0
	bl	_SendMessageW
	add	x23, x23, #1
	ldrsw	x8, [x20]
	add	x22, x22, #16
	cmp	x23, x8
	b.ge	LBB0_21
LBB0_15:                                ; =>This Inner Loop Header: Depth=1
	ldp	x27, x21, [x20, #16]
	add	x28, x27, x22
	ldr	x0, [x28, #8]
	cbnz	x0, LBB0_14
; %bb.16:                               ;   in Loop: Header=BB0_15 Depth=1
	ldr	x0, [x19, #8]
	ldr	x1, [x27, x22]
	bl	_GetDocumentTitle
	str	x0, [x28, #8]
	b	LBB0_14
LBB0_17:
Lloh11:
	adrp	x0, l_.str.1@PAGE
Lloh12:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_FIXME
	b	LBB0_22
LBB0_18:
Lloh13:
	adrp	x0, l_.str@PAGE
Lloh14:
	add	x0, x0, l_.str@PAGEOFF
	bl	_FIXME
	b	LBB0_22
LBB0_19:
	ldr	x8, [x20, #16]
	ldp	x21, x0, [x8]
	add	x8, x20, #8
	ldr	x22, [x8]
	cbnz	x22, LBB0_9
LBB0_20:
Lloh15:
	adrp	x0, l_.str.2@PAGE
Lloh16:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_FIXME
	b	LBB0_22
LBB0_21:
	ldr	w0, [x19, #16]
Lloh17:
	adrp	x8, _SW_SHOW@GOTPAGE
Lloh18:
	ldr	x8, [x8, _SW_SHOW@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	bl	_ShowWindow
LBB0_22:
	mov	w0, #0
	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
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"No entries for this item!\n"

	.comm	_LVM_DELETEALLITEMS,4,2         ; @LVM_DELETEALLITEMS
	.comm	_LVIF_TEXT,4,2                  ; @LVIF_TEXT
	.comm	_LVIF_PARAM,4,2                 ; @LVIF_PARAM
	.comm	_LVM_INSERTITEMW,4,2            ; @LVM_INSERTITEMW
	.comm	_SW_SHOW,4,2                    ; @SW_SHOW
l_.str.1:                               ; @.str.1
	.asciz	"Unhandled operation for this tab!\n"

l_.str.2:                               ; @.str.2
	.asciz	"No help file found for this item!\n"

l_.str.3:                               ; @.str.3
	.asciz	"name %s loal %s\n"

	.no_dead_strip	_OnTopicChange
.subsections_via_symbols
