	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function TRACKBAR_AlignBuddies
_TRACKBAR_AlignBuddies:                 ## @TRACKBAR_AlignBuddies
	.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
	movq	%rdi, %rbx
	movq	40(%rdi), %rdi
	callq	_GetParent
	movl	%eax, %r14d
	movq	40(%rbx), %rdi
	leaq	-64(%rbp), %r15
	movq	%r15, %rsi
	callq	_GetWindowRect
	movq	_HWND_DESKTOP@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	movl	%r14d, %esi
	movl	%r15d, %edx
	movl	$2, %ecx
	callq	_MapWindowPoints
	movq	32(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_5
## %bb.1:
	leaq	-48(%rbp), %r15
	movq	%r15, %rsi
	callq	_GetWindowRect
	movl	(%r12), %edi
	movl	%r14d, %esi
	movl	%r15d, %edx
	movl	$2, %ecx
	callq	_MapWindowPoints
	movq	_TBS_VERT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	je	LBB0_3
## %bb.2:
	movl	20(%rbx), %eax
	addl	16(%rbx), %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%eax, %edx
	movl	-48(%rbp), %eax
	subl	-44(%rbp), %eax
	sarl	%edx
	movl	%eax, %ecx
	shrl	$31, %ecx
	addl	%eax, %ecx
	sarl	%ecx
	addl	-60(%rbp), %edx
	subl	%ecx, %edx
	movl	-56(%rbp), %ecx
	subl	-36(%rbp), %ecx
	addl	-40(%rbp), %ecx
	jmp	LBB0_4
LBB0_3:
	movl	-60(%rbp), %edx
	subl	-48(%rbp), %edx
	addl	-44(%rbp), %edx
	movl	28(%rbx), %eax
	addl	24(%rbx), %eax
	movl	%eax, %ecx
	shrl	$31, %ecx
	addl	%eax, %ecx
	sarl	%ecx
	movl	-36(%rbp), %eax
	subl	-40(%rbp), %eax
	movl	%eax, %esi
	shrl	$31, %esi
	addl	%eax, %esi
	sarl	%esi
	addl	-56(%rbp), %ecx
	subl	%esi, %ecx
LBB0_4:
	movq	32(%rbx), %rdi
	movq	_SWP_NOZORDER@GOTPCREL(%rip), %rax
	movq	_SWP_NOSIZE@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	orl	(%rax), %esi
	movl	%esi, (%rsp)
	xorl	%esi, %esi
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_SetWindowPos
LBB0_5:
	movq	8(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_10
## %bb.6:
	leaq	-48(%rbp), %r15
	movq	%r15, %rsi
	callq	_GetWindowRect
	movl	(%r12), %edi
	movl	%r14d, %esi
	movl	%r15d, %edx
	movl	$2, %ecx
	callq	_MapWindowPoints
	movq	_TBS_VERT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	je	LBB0_8
## %bb.7:
	movl	20(%rbx), %eax
	addl	16(%rbx), %eax
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%eax, %edx
	movl	-48(%rbp), %eax
	subl	-44(%rbp), %eax
	sarl	%edx
	movl	%eax, %ecx
	shrl	$31, %ecx
	addl	%eax, %ecx
	sarl	%ecx
	addl	-60(%rbp), %edx
	subl	%ecx, %edx
	movl	-52(%rbp), %ecx
	jmp	LBB0_9
LBB0_8:
	movl	-64(%rbp), %edx
	movl	28(%rbx), %eax
	addl	24(%rbx), %eax
	movl	%eax, %ecx
	shrl	$31, %ecx
	addl	%eax, %ecx
	sarl	%ecx
	movl	-36(%rbp), %eax
	subl	-40(%rbp), %eax
	movl	%eax, %esi
	shrl	$31, %esi
	addl	%eax, %esi
	sarl	%esi
	addl	-56(%rbp), %ecx
	subl	%esi, %ecx
LBB0_9:
	movq	8(%rbx), %rdi
	movq	_SWP_NOZORDER@GOTPCREL(%rip), %rax
	movq	_SWP_NOSIZE@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	orl	(%rax), %esi
	movl	%esi, (%rsp)
	xorl	%esi, %esi
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_SetWindowPos
LBB0_10:
	addq	$48, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HWND_DESKTOP,4,2               ## @HWND_DESKTOP
	.comm	_TBS_VERT,4,2                   ## @TBS_VERT
	.comm	_SWP_NOZORDER,4,2               ## @SWP_NOZORDER
	.comm	_SWP_NOSIZE,4,2                 ## @SWP_NOSIZE
	.no_dead_strip	_TRACKBAR_AlignBuddies
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function TRACKBAR_AlignBuddies
_TRACKBAR_AlignBuddies:                 ; @TRACKBAR_AlignBuddies
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
	ldr	x0, [x0, #40]
	bl	_GetParent
	mov	x20, x0
	ldr	x0, [x19, #40]
	add	x1, sp, #16
	bl	_GetWindowRect
Lloh0:
	adrp	x23, _HWND_DESKTOP@GOTPAGE
Lloh1:
	ldr	x23, [x23, _HWND_DESKTOP@GOTPAGEOFF]
	ldr	w0, [x23]
	add	x2, sp, #16
	mov	x1, x20
	mov	w3, #2
	bl	_MapWindowPoints
	ldr	x0, [x19, #32]
Lloh2:
	adrp	x24, _TBS_VERT@GOTPAGE
Lloh3:
	ldr	x24, [x24, _TBS_VERT@GOTPAGEOFF]
Lloh4:
	adrp	x21, _SWP_NOZORDER@GOTPAGE
Lloh5:
	ldr	x21, [x21, _SWP_NOZORDER@GOTPAGEOFF]
Lloh6:
	adrp	x22, _SWP_NOSIZE@GOTPAGE
Lloh7:
	ldr	x22, [x22, _SWP_NOSIZE@GOTPAGEOFF]
	cbz	x0, LBB0_5
; %bb.1:
	mov	x1, sp
	bl	_GetWindowRect
	ldr	w0, [x23]
	mov	x2, sp
	mov	x1, x20
	mov	w3, #2
	bl	_MapWindowPoints
	ldr	w8, [x19]
	ldr	w9, [x24]
	tst	w9, w8
	b.eq	LBB0_3
; %bb.2:
	ldp	w8, w9, [x19, #16]
	add	w8, w9, w8
	cmp	w8, #0
	cinc	w8, w8, lt
	ldp	w9, w10, [sp]
	sub	w9, w9, w10
	cmp	w9, #0
	cinc	w9, w9, lt
	ldp	w10, w11, [sp, #20]
	add	w8, w10, w8, asr #1
	sub	w2, w8, w9, asr #1
	ldp	w9, w8, [sp, #8]
	sub	w8, w11, w8
	add	w3, w8, w9
	b	LBB0_4
LBB0_3:
	ldp	w8, w9, [sp]
	ldp	w10, w11, [sp, #20]
	sub	w8, w10, w8
	add	w2, w8, w9
	ldp	w8, w9, [x19, #24]
	add	w8, w9, w8
	ldp	w10, w9, [sp, #8]
	sub	w9, w9, w10
	cmp	w8, #0
	cinc	w8, w8, lt
	cmp	w9, #0
	cinc	w9, w9, lt
	add	w8, w11, w8, asr #1
	sub	w3, w8, w9, asr #1
LBB0_4:
	ldr	x0, [x19, #32]
	ldr	w8, [x21]
	ldr	w9, [x22]
	orr	w6, w9, w8
	mov	w1, #0
	mov	w4, #0
	mov	w5, #0
	bl	_SetWindowPos
LBB0_5:
	ldr	x0, [x19, #8]
	cbz	x0, LBB0_10
; %bb.6:
	mov	x1, sp
	bl	_GetWindowRect
	ldr	w0, [x23]
	mov	x2, sp
	mov	x1, x20
	mov	w3, #2
	bl	_MapWindowPoints
	ldr	w8, [x19]
	ldr	w9, [x24]
	tst	w9, w8
	b.eq	LBB0_8
; %bb.7:
	ldp	w8, w9, [x19, #16]
	add	w8, w9, w8
	cmp	w8, #0
	cinc	w8, w8, lt
	ldp	w9, w10, [sp]
	sub	w9, w9, w10
	cmp	w9, #0
	cinc	w9, w9, lt
	ldr	w10, [sp, #20]
	ldr	w3, [sp, #28]
	add	w8, w10, w8, asr #1
	sub	w2, w8, w9, asr #1
	b	LBB0_9
LBB0_8:
	ldp	w8, w9, [x19, #24]
	add	w8, w9, w8
	cmp	w8, #0
	cinc	w8, w8, lt
	ldp	w10, w9, [sp, #8]
	sub	w9, w9, w10
	cmp	w9, #0
	cinc	w9, w9, lt
	ldr	w2, [sp, #16]
	ldr	w10, [sp, #24]
	add	w8, w10, w8, asr #1
	sub	w3, w8, w9, asr #1
LBB0_9:
	ldr	x0, [x19, #8]
	ldr	w8, [x21]
	ldr	w9, [x22]
	orr	w6, w9, w8
	mov	w1, #0
	mov	w4, #0
	mov	w5, #0
	bl	_SetWindowPos
LBB0_10:
	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
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_HWND_DESKTOP,4,2               ; @HWND_DESKTOP
	.comm	_TBS_VERT,4,2                   ; @TBS_VERT
	.comm	_SWP_NOZORDER,4,2               ; @SWP_NOZORDER
	.comm	_SWP_NOSIZE,4,2                 ; @SWP_NOSIZE
	.no_dead_strip	_TRACKBAR_AlignBuddies
.subsections_via_symbols
