	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_TreeView_Set3StateCheck        ## -- Begin function TreeView_Set3StateCheck
	.p2align	4, 0x90
_TreeView_Set3StateCheck:               ## @TreeView_Set3StateCheck
	.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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %ebx
	leaq	-36(%rbp), %rdi
	leaq	-32(%rbp), %rsi
	leaq	-28(%rbp), %rdx
	callq	_GetComCtl32Version
	cmpl	$6, -36(%rbp)
	jg	LBB0_3
## %bb.1:
	jne	LBB0_4
## %bb.2:
	cmpl	$10, -32(%rbp)
	jl	LBB0_4
LBB0_3:
	movl	%ebx, %edi
	callq	_TreeView_GetExtendedStyle
	movq	_TVS_EX_PARTIALCHECKBOXES@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%ebx, %edi
	movl	%eax, %esi
	xorl	%edx, %edx
	callq	_TreeView_SetExtendedStyle
	movq	_GWL_STYLE@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movl	%ebx, %edi
	callq	_GetWindowLongPtr
	movl	(%r14), %esi
	movq	_TVS_CHECKBOXES@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%ebx, %edi
	movl	%eax, %edx
	callq	_SetWindowLongPtr
	jmp	LBB0_8
LBB0_4:
	movq	_GWL_STYLE@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movl	%ebx, %edi
	callq	_GetWindowLongPtr
	movl	(%r14), %esi
	movq	_TVS_CHECKBOXES@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%ebx, %edi
	movl	%eax, %edx
	callq	_SetWindowLongPtr
	movq	_hInst@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	cmpl	$6000, -28(%rbp)                ## imm = 0x1770
	jl	LBB0_5
## %bb.6:
	movq	_IDB_V7CHECK@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_5:
	movq	_IDB_2K3CHECK@GOTPCREL(%rip), %rax
LBB0_7:
	movl	(%rax), %edi
	callq	_MAKEINTRESOURCEW
	movl	%eax, %r15d
	movl	$255, %edi
	movl	$255, %esi
	movl	$255, %edx
	callq	_RGB
	movl	%r14d, %edi
	movl	%r15d, %esi
	movl	$16, %edx
	movl	$4, %ecx
	movl	%eax, %r8d
	callq	_ImageList_LoadBitmap
	movq	_TVSIL_STATE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_TreeView_SetImageList
LBB0_8:
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TVS_EX_PARTIALCHECKBOXES,4,2   ## @TVS_EX_PARTIALCHECKBOXES
	.comm	_GWL_STYLE,4,2                  ## @GWL_STYLE
	.comm	_TVS_CHECKBOXES,4,2             ## @TVS_CHECKBOXES
	.comm	_hInst,4,2                      ## @hInst
	.comm	_IDB_V7CHECK,4,2                ## @IDB_V7CHECK
	.comm	_IDB_2K3CHECK,4,2               ## @IDB_2K3CHECK
	.comm	_TVSIL_STATE,4,2                ## @TVSIL_STATE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_TreeView_Set3StateCheck        ; -- Begin function TreeView_Set3StateCheck
	.p2align	2
_TreeView_Set3StateCheck:               ; @TreeView_Set3StateCheck
	.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	x19, x0
	add	x0, sp, #12
	add	x1, sp, #8
	add	x2, sp, #4
	bl	_GetComCtl32Version
	ldr	w8, [sp, #12]
	cmp	w8, #6
	b.gt	LBB0_3
; %bb.1:
	ldr	w8, [sp, #8]
	ccmp	w8, #10, #8, eq
	b.ge	LBB0_3
; %bb.2:
Lloh0:
	adrp	x20, _GWL_STYLE@GOTPAGE
Lloh1:
	ldr	x20, [x20, _GWL_STYLE@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	x0, x19
	bl	_GetWindowLongPtr
	ldr	w1, [x20]
Lloh2:
	adrp	x8, _TVS_CHECKBOXES@GOTPAGE
Lloh3:
	ldr	x8, [x8, _TVS_CHECKBOXES@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	orr	w2, w8, w0
	mov	x0, x19
	bl	_SetWindowLongPtr
Lloh5:
	adrp	x8, _hInst@GOTPAGE
Lloh6:
	ldr	x8, [x8, _hInst@GOTPAGEOFF]
Lloh7:
	ldr	w20, [x8]
	ldr	w8, [sp, #4]
Lloh8:
	adrp	x9, _IDB_V7CHECK@GOTPAGE
Lloh9:
	ldr	x9, [x9, _IDB_V7CHECK@GOTPAGEOFF]
Lloh10:
	adrp	x10, _IDB_2K3CHECK@GOTPAGE
Lloh11:
	ldr	x10, [x10, _IDB_2K3CHECK@GOTPAGEOFF]
	mov	w11, #5999
	cmp	w8, w11
	csel	x8, x9, x10, gt
	ldr	w0, [x8]
	bl	_MAKEINTRESOURCEW
	mov	x21, x0
	mov	w0, #255
	mov	w1, #255
	mov	w2, #255
	bl	_RGB
	mov	x4, x0
	mov	x0, x20
	mov	x1, x21
	mov	w2, #16
	mov	w3, #4
	bl	_ImageList_LoadBitmap
	mov	x1, x0
Lloh12:
	adrp	x8, _TVSIL_STATE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _TVSIL_STATE@GOTPAGEOFF]
Lloh14:
	ldr	w2, [x8]
	mov	x0, x19
	bl	_TreeView_SetImageList
	b	LBB0_4
LBB0_3:
	mov	x0, x19
	bl	_TreeView_GetExtendedStyle
Lloh15:
	adrp	x8, _TVS_EX_PARTIALCHECKBOXES@GOTPAGE
Lloh16:
	ldr	x8, [x8, _TVS_EX_PARTIALCHECKBOXES@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	orr	w1, w8, w0
	mov	x0, x19
	mov	w2, #0
	bl	_TreeView_SetExtendedStyle
Lloh18:
	adrp	x20, _GWL_STYLE@GOTPAGE
Lloh19:
	ldr	x20, [x20, _GWL_STYLE@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	x0, x19
	bl	_GetWindowLongPtr
	ldr	w1, [x20]
Lloh20:
	adrp	x8, _TVS_CHECKBOXES@GOTPAGE
Lloh21:
	ldr	x8, [x8, _TVS_CHECKBOXES@GOTPAGEOFF]
Lloh22:
	ldr	w8, [x8]
	orr	w2, w8, w0
	mov	x0, x19
	bl	_SetWindowLongPtr
LBB0_4:
	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 AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_TVS_EX_PARTIALCHECKBOXES,4,2   ; @TVS_EX_PARTIALCHECKBOXES
	.comm	_GWL_STYLE,4,2                  ; @GWL_STYLE
	.comm	_TVS_CHECKBOXES,4,2             ; @TVS_CHECKBOXES
	.comm	_hInst,4,2                      ; @hInst
	.comm	_IDB_V7CHECK,4,2                ; @IDB_V7CHECK
	.comm	_IDB_2K3CHECK,4,2               ; @IDB_2K3CHECK
	.comm	_TVSIL_STATE,4,2                ; @TVSIL_STATE
.subsections_via_symbols
