	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function floating_resize_window
LCPI0_0:
	.quad	2147483648                      ## 0x80000000
	.quad	2147483648                      ## 0x80000000
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_floating_resize_window
	.p2align	4, 0x90
_floating_resize_window:                ## @floating_resize_window
	.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
	movq	%rdx, %r14
	movl	%esi, %r15d
	movq	%rdi, %rbx
	leaq	L_.str(%rip), %rdi
	callq	_DLOG
	movq	_BORDER_LEFT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movdqu	(%r14), %xmm0
	movq	8(%rbx), %xmm1                  ## xmm1 = mem[0],zero
	movdqa	%xmm1, %xmm2
	psrld	$31, %xmm2
	paddd	%xmm1, %xmm2
	psrad	$1, %xmm2
	pmovsxdq	%xmm2, %xmm1
	movdqa	LCPI0_0(%rip), %xmm2            ## xmm2 = [2147483648,2147483648]
	pxor	%xmm2, %xmm0
	pxor	%xmm2, %xmm1
	movdqa	%xmm0, %xmm2
	pcmpeqd	%xmm1, %xmm2
	pcmpgtd	%xmm1, %xmm0
	pshufd	$160, %xmm0, %xmm1              ## xmm1 = xmm0[0,0,2,2]
	pand	%xmm2, %xmm1
	por	%xmm0, %xmm1
	movmskpd	%xmm1, %ecx
	movl	%eax, %edx
	testb	$1, %cl
	je	LBB0_2
## %bb.1:
	movq	_BORDER_RIGHT@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
LBB0_2:
	movq	_BORDER_TOP@GOTPCREL(%rip), %rsi
	testb	$2, %cl
	cmovneq	_BORDER_BOTTOM@GOTPCREL(%rip), %rsi
	movq	_XCURSOR_CURSOR_TOP_LEFT_CORNER@GOTPCREL(%rip), %rcx
	cmovneq	_XCURSOR_CURSOR_BOTTOM_LEFT_CORNER@GOTPCREL(%rip), %rcx
	movq	_XCURSOR_CURSOR_TOP_RIGHT_CORNER@GOTPCREL(%rip), %rdi
	cmovneq	_XCURSOR_CURSOR_BOTTOM_RIGHT_CORNER@GOTPCREL(%rip), %rdi
	orl	(%rsi), %edx
	testl	%eax, %edx
	cmovneq	%rcx, %rdi
	movl	(%rdi), %ecx
	movl	%edx, -32(%rbp)
	movl	%r15d, -28(%rbp)
	movq	8(%rbx), %r15
	movq	_XCB_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_resize_window_callback@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	leaq	-32(%rbp), %rax
	movq	%rax, (%rsp)
	movq	%rbx, %rdi
	movq	%r14, %rsi
	xorl	%r8d, %r8d
	callq	_drag_pointer
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_con_exists
	testl	%eax, %eax
	je	LBB0_3
## %bb.4:
	movq	_DRAG_REVERT@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r14
	jne	LBB0_6
## %bb.5:
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_floating_reposition
LBB0_6:
	movq	(%rbx), %rax
	movq	_SCRATCHPAD_FRESH@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_8
## %bb.7:
	movq	_SCRATCHPAD_CHANGED@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%rbx)
	jmp	LBB0_8
LBB0_3:
	leaq	L_.str.1(%rip), %rdi
	callq	_DLOG
LBB0_8:
	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	"floating_resize_window\n"

	.comm	_BORDER_LEFT,4,2                ## @BORDER_LEFT
	.comm	_BORDER_RIGHT,4,2               ## @BORDER_RIGHT
	.comm	_BORDER_TOP,4,2                 ## @BORDER_TOP
	.comm	_XCURSOR_CURSOR_TOP_LEFT_CORNER,4,2 ## @XCURSOR_CURSOR_TOP_LEFT_CORNER
	.comm	_XCURSOR_CURSOR_TOP_RIGHT_CORNER,4,2 ## @XCURSOR_CURSOR_TOP_RIGHT_CORNER
	.comm	_BORDER_BOTTOM,4,2              ## @BORDER_BOTTOM
	.comm	_XCURSOR_CURSOR_BOTTOM_LEFT_CORNER,4,2 ## @XCURSOR_CURSOR_BOTTOM_LEFT_CORNER
	.comm	_XCURSOR_CURSOR_BOTTOM_RIGHT_CORNER,4,2 ## @XCURSOR_CURSOR_BOTTOM_RIGHT_CORNER
	.comm	_XCB_NONE,4,2                   ## @XCB_NONE
	.comm	_resize_window_callback,4,2     ## @resize_window_callback
L_.str.1:                               ## @.str.1
	.asciz	"The container has been closed in the meantime.\n"

	.comm	_DRAG_REVERT,8,3                ## @DRAG_REVERT
	.comm	_SCRATCHPAD_FRESH,8,3           ## @SCRATCHPAD_FRESH
	.comm	_SCRATCHPAD_CHANGED,8,3         ## @SCRATCHPAD_CHANGED
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_floating_resize_window         ; -- Begin function floating_resize_window
	.p2align	2
_floating_resize_window:                ; @floating_resize_window
	.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	x21, x2
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DLOG
	ldr	w8, [x19, #8]
	cmp	w8, #0
	cinc	w8, w8, lt
	asr	w8, w8, #1
Lloh2:
	adrp	x9, _BORDER_RIGHT@GOTPAGE
Lloh3:
	ldr	x9, [x9, _BORDER_RIGHT@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
Lloh5:
	adrp	x10, _BORDER_LEFT@GOTPAGE
Lloh6:
	ldr	x10, [x10, _BORDER_LEFT@GOTPAGEOFF]
Lloh7:
	ldr	w10, [x10]
	ldp	x11, x12, [x21]
	cmp	x11, w8, sxtw
	csel	w8, w9, w10, gt
	ldr	w9, [x19, #12]
	cmp	w9, #0
	cinc	w9, w9, lt
	asr	w9, w9, #1
Lloh8:
	adrp	x11, _BORDER_BOTTOM@GOTPAGE
Lloh9:
	ldr	x11, [x11, _BORDER_BOTTOM@GOTPAGEOFF]
Lloh10:
	adrp	x13, _BORDER_TOP@GOTPAGE
Lloh11:
	ldr	x13, [x13, _BORDER_TOP@GOTPAGEOFF]
	cmp	x12, w9, sxtw
	csel	x9, x11, x13, gt
	ldr	w9, [x9]
	orr	w8, w9, w8
Lloh12:
	adrp	x9, _XCURSOR_CURSOR_BOTTOM_LEFT_CORNER@GOTPAGE
Lloh13:
	ldr	x9, [x9, _XCURSOR_CURSOR_BOTTOM_LEFT_CORNER@GOTPAGEOFF]
Lloh14:
	adrp	x11, _XCURSOR_CURSOR_TOP_LEFT_CORNER@GOTPAGE
Lloh15:
	ldr	x11, [x11, _XCURSOR_CURSOR_TOP_LEFT_CORNER@GOTPAGEOFF]
	csel	x9, x9, x11, gt
Lloh16:
	adrp	x11, _XCURSOR_CURSOR_BOTTOM_RIGHT_CORNER@GOTPAGE
Lloh17:
	ldr	x11, [x11, _XCURSOR_CURSOR_BOTTOM_RIGHT_CORNER@GOTPAGEOFF]
Lloh18:
	adrp	x12, _XCURSOR_CURSOR_TOP_RIGHT_CORNER@GOTPAGE
Lloh19:
	ldr	x12, [x12, _XCURSOR_CURSOR_TOP_RIGHT_CORNER@GOTPAGEOFF]
	csel	x11, x11, x12, gt
	tst	w8, w10
	csel	x9, x11, x9, eq
	ldr	w3, [x9]
	stp	w8, w20, [sp, #8]
	ldr	x20, [x19, #8]
Lloh20:
	adrp	x8, _XCB_NONE@GOTPAGE
Lloh21:
	ldr	x8, [x8, _XCB_NONE@GOTPAGEOFF]
Lloh22:
	ldr	w2, [x8]
Lloh23:
	adrp	x8, _resize_window_callback@GOTPAGE
Lloh24:
	ldr	x8, [x8, _resize_window_callback@GOTPAGEOFF]
Lloh25:
	ldr	w5, [x8]
	add	x6, sp, #8
	mov	x0, x19
	mov	x1, x21
	mov	w4, #0
	bl	_drag_pointer
	mov	x21, x0
	mov	x0, x19
	bl	_con_exists
	cbz	w0, LBB0_5
; %bb.1:
Lloh26:
	adrp	x8, _DRAG_REVERT@GOTPAGE
Lloh27:
	ldr	x8, [x8, _DRAG_REVERT@GOTPAGEOFF]
Lloh28:
	ldr	x8, [x8]
	cmp	x21, x8
	b.ne	LBB0_3
; %bb.2:
	mov	x0, x19
	mov	x1, x20
	bl	_floating_reposition
LBB0_3:
	ldr	x8, [x19]
Lloh29:
	adrp	x9, _SCRATCHPAD_FRESH@GOTPAGE
Lloh30:
	ldr	x9, [x9, _SCRATCHPAD_FRESH@GOTPAGEOFF]
Lloh31:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.4:
Lloh32:
	adrp	x8, _SCRATCHPAD_CHANGED@GOTPAGE
Lloh33:
	ldr	x8, [x8, _SCRATCHPAD_CHANGED@GOTPAGEOFF]
Lloh34:
	ldr	x8, [x8]
	str	x8, [x19]
	b	LBB0_6
LBB0_5:
Lloh35:
	adrp	x0, l_.str.1@PAGE
Lloh36:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_DLOG
LBB0_6:
	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	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpAdd	Lloh35, Lloh36
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"floating_resize_window\n"

	.comm	_BORDER_LEFT,4,2                ; @BORDER_LEFT
	.comm	_BORDER_RIGHT,4,2               ; @BORDER_RIGHT
	.comm	_BORDER_TOP,4,2                 ; @BORDER_TOP
	.comm	_XCURSOR_CURSOR_TOP_LEFT_CORNER,4,2 ; @XCURSOR_CURSOR_TOP_LEFT_CORNER
	.comm	_XCURSOR_CURSOR_TOP_RIGHT_CORNER,4,2 ; @XCURSOR_CURSOR_TOP_RIGHT_CORNER
	.comm	_BORDER_BOTTOM,4,2              ; @BORDER_BOTTOM
	.comm	_XCURSOR_CURSOR_BOTTOM_LEFT_CORNER,4,2 ; @XCURSOR_CURSOR_BOTTOM_LEFT_CORNER
	.comm	_XCURSOR_CURSOR_BOTTOM_RIGHT_CORNER,4,2 ; @XCURSOR_CURSOR_BOTTOM_RIGHT_CORNER
	.comm	_XCB_NONE,4,2                   ; @XCB_NONE
	.comm	_resize_window_callback,4,2     ; @resize_window_callback
l_.str.1:                               ; @.str.1
	.asciz	"The container has been closed in the meantime.\n"

	.comm	_DRAG_REVERT,8,3                ; @DRAG_REVERT
	.comm	_SCRATCHPAD_FRESH,8,3           ; @SCRATCHPAD_FRESH
	.comm	_SCRATCHPAD_CHANGED,8,3         ; @SCRATCHPAD_CHANGED
.subsections_via_symbols
