	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function REBAR_SetCursor
_REBAR_SetCursor:                       ## @REBAR_SetCursor
	.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	%esi, %ebx
	movq	%rdi, %r14
	movl	%esi, %edi
	callq	_LOWORD
	movl	%eax, %r15d
	movl	%ebx, %edi
	callq	_HIWORD
	leaq	L_.str(%rip), %rdi
	movl	%r15d, %esi
	movl	%eax, %edx
	callq	_TRACE
	leaq	-36(%rbp), %rbx
	movq	%rbx, %rdi
	callq	_GetCursorPos
	movl	16(%r14), %edi
	movq	%rbx, %rsi
	callq	_ScreenToClient
	leaq	-32(%rbp), %rdx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	xorl	%ecx, %ecx
	callq	_REBAR_InternalHitTest
	movq	-32(%rbp), %rax
	movq	_RBHT_GRABBER@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.1:
	movl	(%r14), %eax
	movq	_CCS_VERT@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_4
## %bb.2:
	movq	_RBS_VERTICALGRIPPER@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_3
LBB0_4:
	addq	$8, %r14
	jmp	LBB0_7
LBB0_5:
	movq	_RBHT_CLIENT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_8
## %bb.6:
	addq	$4, %r14
	jmp	LBB0_7
LBB0_3:
	addq	$12, %r14
LBB0_7:
	movl	(%r14), %edi
	callq	_SetCursor
LBB0_8:
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"code=0x%X  id=0x%X\n"

	.comm	_RBHT_GRABBER,8,3               ## @RBHT_GRABBER
	.comm	_CCS_VERT,4,2                   ## @CCS_VERT
	.comm	_RBS_VERTICALGRIPPER,4,2        ## @RBS_VERTICALGRIPPER
	.comm	_RBHT_CLIENT,8,3                ## @RBHT_CLIENT
	.no_dead_strip	_REBAR_SetCursor
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function REBAR_SetCursor
_REBAR_SetCursor:                       ; @REBAR_SetCursor
	.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	x0, x1
	bl	_LOWORD
	mov	x21, x0
	mov	x0, x20
	bl	_HIWORD
	mov	x2, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x21
	bl	_TRACE
	add	x0, sp, #12
	bl	_GetCursorPos
	ldr	w0, [x19, #16]
	add	x1, sp, #12
	bl	_ScreenToClient
	add	x1, sp, #12
	mov	x2, sp
	mov	x0, x19
	mov	x3, #0
	bl	_REBAR_InternalHitTest
	ldr	x8, [sp]
Lloh2:
	adrp	x9, _RBHT_GRABBER@GOTPAGE
Lloh3:
	ldr	x9, [x9, _RBHT_GRABBER@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.1:
	ldr	w8, [x19]
Lloh5:
	adrp	x9, _CCS_VERT@GOTPAGE
Lloh6:
	ldr	x9, [x9, _CCS_VERT@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_3
; %bb.2:
Lloh8:
	adrp	x9, _RBS_VERTICALGRIPPER@GOTPAGE
Lloh9:
	ldr	x9, [x9, _RBS_VERTICALGRIPPER@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_6
LBB0_3:
	add	x8, x19, #8
	b	LBB0_7
LBB0_4:
Lloh11:
	adrp	x9, _RBHT_CLIENT@GOTPAGE
Lloh12:
	ldr	x9, [x9, _RBHT_CLIENT@GOTPAGEOFF]
Lloh13:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_8
; %bb.5:
	add	x8, x19, #4
	b	LBB0_7
LBB0_6:
	add	x8, x19, #12
LBB0_7:
	ldr	w0, [x8]
	bl	_SetCursor
LBB0_8:
	mov	w0, #0
	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	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"code=0x%X  id=0x%X\n"

	.comm	_RBHT_GRABBER,8,3               ; @RBHT_GRABBER
	.comm	_CCS_VERT,4,2                   ; @CCS_VERT
	.comm	_RBS_VERTICALGRIPPER,4,2        ; @RBS_VERTICALGRIPPER
	.comm	_RBHT_CLIENT,8,3                ; @RBHT_CLIENT
	.no_dead_strip	_REBAR_SetCursor
.subsections_via_symbols
