	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function AppearancePage_UpdateThemePreview
_AppearancePage_UpdateThemePreview:     ## @AppearancePage_UpdateThemePreview
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movl	%edi, %r14d
	cmpq	$0, 16(%rsi)
	je	LBB0_3
## %bb.1:
	leaq	16(%rbx), %r15
	movq	_IDC_APPEARANCE_PREVIEW@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movl	%r14d, %edi
	callq	_GetDlgItem
	leaq	-44(%rbp), %r12
	movl	%eax, %edi
	movq	%r12, %rsi
	callq	_GetClientRect
	movq	8(%rbx), %rdi
	movq	%rbx, %rsi
	movq	%r15, %rdx
	movq	%r12, %rcx
	callq	_DrawThemePreview
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movl	(%r13), %esi
	movq	_PVM_SET_HDC_PREVIEW@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	8(%rbx), %r8d
	movl	%r14d, %edi
	xorl	%ecx, %ecx
	jmp	LBB0_4
LBB0_3:
	movq	_IDC_APPEARANCE_PREVIEW@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	_PVM_UPDATETHEME@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r14d, %edi
	xorl	%ecx, %ecx
	movl	%ebx, %r8d
	callq	_SendDlgItemMessage
	movl	(%r15), %esi
	movq	_PVM_SET_HDC_PREVIEW@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r14d, %edi
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
LBB0_4:
	callq	_SendDlgItemMessage
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IDC_APPEARANCE_PREVIEW,4,2     ## @IDC_APPEARANCE_PREVIEW
	.comm	_PVM_SET_HDC_PREVIEW,4,2        ## @PVM_SET_HDC_PREVIEW
	.comm	_PVM_UPDATETHEME,4,2            ## @PVM_UPDATETHEME
	.no_dead_strip	_AppearancePage_UpdateThemePreview
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function AppearancePage_UpdateThemePreview
_AppearancePage_UpdateThemePreview:     ; @AppearancePage_UpdateThemePreview
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x20, x1
	mov	x19, x0
	mov	x21, x1
	ldr	x8, [x21, #16]!
Lloh0:
	adrp	x22, _IDC_APPEARANCE_PREVIEW@GOTPAGE
Lloh1:
	ldr	x22, [x22, _IDC_APPEARANCE_PREVIEW@GOTPAGEOFF]
	cbz	x8, LBB0_3
; %bb.1:
	ldr	w1, [x22]
	mov	x0, x19
	bl	_GetDlgItem
	add	x1, sp, #12
	bl	_GetClientRect
	ldr	x0, [x20, #8]
	add	x3, sp, #12
	mov	x1, x20
	mov	x2, x21
	bl	_DrawThemePreview
	cbz	x0, LBB0_3
; %bb.2:
	ldr	w1, [x22]
Lloh2:
	adrp	x8, _PVM_SET_HDC_PREVIEW@GOTPAGE
Lloh3:
	ldr	x8, [x8, _PVM_SET_HDC_PREVIEW@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	ldr	w4, [x20, #8]
	mov	x0, x19
	mov	w3, #0
	b	LBB0_4
LBB0_3:
	ldr	w1, [x22]
Lloh5:
	adrp	x8, _PVM_UPDATETHEME@GOTPAGE
Lloh6:
	ldr	x8, [x8, _PVM_UPDATETHEME@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w3, #0
	mov	x4, x20
	bl	_SendDlgItemMessage
	ldr	w1, [x22]
Lloh8:
	adrp	x8, _PVM_SET_HDC_PREVIEW@GOTPAGE
Lloh9:
	ldr	x8, [x8, _PVM_SET_HDC_PREVIEW@GOTPAGEOFF]
Lloh10:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w3, #0
	mov	w4, #0
LBB0_4:
	bl	_SendDlgItemMessage
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_IDC_APPEARANCE_PREVIEW,4,2     ; @IDC_APPEARANCE_PREVIEW
	.comm	_PVM_SET_HDC_PREVIEW,4,2        ; @PVM_SET_HDC_PREVIEW
	.comm	_PVM_UPDATETHEME,4,2            ; @PVM_UPDATETHEME
	.no_dead_strip	_AppearancePage_UpdateThemePreview
.subsections_via_symbols
