	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_drag_pointer                   ## -- Begin function drag_pointer
	.p2align	4, 0x90
_drag_pointer:                          ## @drag_pointer
	.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
	subq	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, -56(%rbp)                 ## 4-byte Spill
	movl	%r8d, %ebx
	movl	%edx, %r14d
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	testl	%ecx, %ecx
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	je	LBB0_3
## %bb.1:
	movq	_xcursor_supported@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_3
## %bb.2:
	movl	%ecx, %edi
	callq	_xcursor_get_cursor
	movl	%eax, %r13d
	movq	_XCB_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_4
LBB0_3:
	movq	_XCB_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, %r13d
LBB0_4:
	movq	_conn@GOTPCREL(%rip), %r10
	movl	(%r10), %edi
	movq	_root@GOTPCREL(%rip), %rsi
	movq	_XCB_EVENT_MASK_BUTTON_RELEASE@GOTPCREL(%rip), %rdx
	movq	_XCB_EVENT_MASK_POINTER_MOTION@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rdx), %ecx
	movl	(%rsi), %edx
	movq	_XCB_GRAB_MODE_ASYNC@GOTPCREL(%rip), %r15
	movl	(%r15), %r8d
	movl	%ebx, -52(%rbp)                 ## 4-byte Spill
	testl	%ebx, %ebx
	cmovel	%r13d, %eax
	movq	_XCB_CURRENT_TIME@GOTPCREL(%rip), %r12
	movl	(%r12), %ebx
	subq	$8, %rsp
	xorl	%esi, %esi
	movl	%r8d, %r9d
	pushq	%rbx
	movq	%r10, %rbx
	pushq	%rax
	pushq	%r14
	callq	_xcb_grab_pointer
	addq	$32, %rsp
	movl	(%rbx), %edi
	leaq	-48(%rbp), %rdx
	movl	%eax, %esi
	callq	_xcb_grab_pointer_reply
	testq	%rax, %rax
	je	LBB0_5
## %bb.7:
	movq	%rax, %rdi
	callq	_free
	movl	(%rbx), %edi
	movq	_root@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	(%r12), %ecx
	movl	(%r15), %r8d
	xorl	%esi, %esi
	movl	%r8d, %r9d
	callq	_xcb_grab_keyboard
	movl	(%rbx), %edi
	leaq	-48(%rbp), %rdx
	movl	%eax, %esi
	callq	_xcb_grab_keyboard_reply
	testq	%rax, %rax
	je	LBB0_8
## %bb.9:
	movq	%rbx, %r15
	movq	16(%rbp), %r14
	xorl	%ebx, %ebx
	cmpl	$0, -52(%rbp)                   ## 4-byte Folded Reload
	sete	%bl
	movq	%rax, %rdi
	callq	_free
	movl	%ebx, -128(%rbp)
	movq	%r14, -120(%rbp)
	movq	_DRAGGING@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -112(%rbp)
	movl	$0, -108(%rbp)
	leaq	-104(%rbp), %r14
	movq	$0, -104(%rbp)
	movl	%r13d, -96(%rbp)
	movl	-56(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, -92(%rbp)
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, -88(%rbp)
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, -80(%rbp)
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:
	movl	(%rax), %eax
	movl	%eax, -108(%rbp)
LBB0_11:
	movq	_xcb_drag_prepare_cb@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_ev_prepare_init
	leaq	-128(%rbp), %rax
	movq	%rax, -104(%rbp)
	xorl	%edi, %edi
	callq	_main_set_x11_cb
	movq	_main_loop@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	movq	%r14, %rsi
	callq	_ev_prepare_start
	movl	(%rbx), %edi
	xorl	%esi, %esi
	callq	_ev_loop
	movl	(%rbx), %edi
	movq	%r14, %rsi
	callq	_ev_prepare_stop
	movl	$1, %edi
	callq	_main_set_x11_cb
	movl	(%r15), %edi
	movl	(%r12), %esi
	callq	_xcb_ungrab_keyboard
	movl	(%r15), %edi
	movl	(%r12), %esi
	callq	_xcb_ungrab_pointer
	movl	(%r15), %edi
	callq	_xcb_flush
	movl	-112(%rbp), %eax
	jmp	LBB0_12
LBB0_5:
	movq	-48(%rbp), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdi
	callq	_ELOG
	movq	-48(%rbp), %rdi
	callq	_free
	jmp	LBB0_6
LBB0_8:
	movq	-48(%rbp), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdi
	callq	_ELOG
	movq	-48(%rbp), %rdi
	callq	_free
	movl	(%rbx), %edi
	movl	(%r12), %esi
	callq	_xcb_ungrab_pointer
LBB0_6:
	movq	_DRAG_ABORT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_12:
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_xcursor_supported,8,3          ## @xcursor_supported
	.comm	_XCB_NONE,4,2                   ## @XCB_NONE
	.comm	_conn,4,2                       ## @conn
	.comm	_root,4,2                       ## @root
	.comm	_XCB_EVENT_MASK_BUTTON_RELEASE,4,2 ## @XCB_EVENT_MASK_BUTTON_RELEASE
	.comm	_XCB_EVENT_MASK_POINTER_MOTION,4,2 ## @XCB_EVENT_MASK_POINTER_MOTION
	.comm	_XCB_GRAB_MODE_ASYNC,4,2        ## @XCB_GRAB_MODE_ASYNC
	.comm	_XCB_CURRENT_TIME,4,2           ## @XCB_CURRENT_TIME
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Could not grab pointer (error_code = %d)\n"

	.comm	_DRAG_ABORT,4,2                 ## @DRAG_ABORT
L_.str.1:                               ## @.str.1
	.asciz	"Could not grab keyboard (error_code = %d)\n"

	.comm	_DRAGGING,4,2                   ## @DRAGGING
	.comm	_xcb_drag_prepare_cb,4,2        ## @xcb_drag_prepare_cb
	.comm	_main_loop,4,2                  ## @main_loop
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_drag_pointer                   ; -- Begin function drag_pointer
	.p2align	2
_drag_pointer:                          ; @drag_pointer
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #176
	.cfi_def_cfa_offset 176
	stp	x28, x27, [sp, #80]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #96]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #112]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #128]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #144]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #160]            ; 16-byte Folded Spill
	add	x29, sp, #160
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x22, x6
	str	w5, [sp, #12]                   ; 4-byte Folded Spill
	mov	x23, x4
	mov	x25, x2
	mov	x21, x1
	mov	x19, x0
	cbz	w3, LBB0_3
; %bb.1:
Lloh0:
	adrp	x8, _xcursor_supported@GOTPAGE
Lloh1:
	ldr	x8, [x8, _xcursor_supported@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cbz	x8, LBB0_3
; %bb.2:
	mov	x0, x3
	bl	_xcursor_get_cursor
	mov	x24, x0
Lloh3:
	adrp	x8, _XCB_NONE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _XCB_NONE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	b	LBB0_4
LBB0_3:
Lloh6:
	adrp	x8, _XCB_NONE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _XCB_NONE@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	mov	x24, x8
LBB0_4:
Lloh9:
	adrp	x26, _conn@GOTPAGE
Lloh10:
	ldr	x26, [x26, _conn@GOTPAGEOFF]
	ldr	w0, [x26]
Lloh11:
	adrp	x28, _root@GOTPAGE
Lloh12:
	ldr	x28, [x28, _root@GOTPAGEOFF]
	ldr	w2, [x28]
Lloh13:
	adrp	x9, _XCB_EVENT_MASK_BUTTON_RELEASE@GOTPAGE
Lloh14:
	ldr	x9, [x9, _XCB_EVENT_MASK_BUTTON_RELEASE@GOTPAGEOFF]
Lloh15:
	ldr	w9, [x9]
Lloh16:
	adrp	x10, _XCB_EVENT_MASK_POINTER_MOTION@GOTPAGE
Lloh17:
	ldr	x10, [x10, _XCB_EVENT_MASK_POINTER_MOTION@GOTPAGEOFF]
Lloh18:
	ldr	w10, [x10]
	orr	w3, w10, w9
Lloh19:
	adrp	x20, _XCB_GRAB_MODE_ASYNC@GOTPAGE
Lloh20:
	ldr	x20, [x20, _XCB_GRAB_MODE_ASYNC@GOTPAGEOFF]
	ldr	w4, [x20]
	cmp	w23, #0
	csel	w7, w24, w8, eq
Lloh21:
	adrp	x27, _XCB_CURRENT_TIME@GOTPAGE
Lloh22:
	ldr	x27, [x27, _XCB_CURRENT_TIME@GOTPAGEOFF]
	ldr	w8, [x27]
	str	w8, [sp]
	mov	w1, #0
	mov	x5, x4
	mov	x6, x25
	bl	_xcb_grab_pointer
	mov	x1, x0
	ldr	w0, [x26]
	add	x2, sp, #72
	bl	_xcb_grab_pointer_reply
	cbz	x0, LBB0_9
; %bb.5:
	bl	_free
	ldr	w0, [x26]
	ldr	w2, [x28]
	ldr	w3, [x27]
	ldr	w4, [x20]
	mov	w1, #0
	mov	x5, x4
	bl	_xcb_grab_keyboard
	mov	x1, x0
	ldr	w0, [x26]
	add	x2, sp, #72
	bl	_xcb_grab_keyboard_reply
	cbz	x0, LBB0_10
; %bb.6:
	cmp	w23, #0
	cset	w20, eq
	bl	_free
	str	w20, [sp, #16]
	str	x22, [sp, #24]
Lloh23:
	adrp	x8, _DRAGGING@GOTPAGE
Lloh24:
	ldr	x8, [x8, _DRAGGING@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	stp	w8, wzr, [sp, #32]
	add	x20, sp, #16
	add	x22, x20, #24
	str	xzr, [sp, #40]
	ldr	w8, [sp, #12]                   ; 4-byte Folded Reload
	stp	w24, w8, [sp, #48]
	stp	x21, x19, [sp, #56]
	cbz	x19, LBB0_8
; %bb.7:
	ldr	w8, [x19]
	str	w8, [sp, #36]
LBB0_8:
Lloh26:
	adrp	x8, _xcb_drag_prepare_cb@GOTPAGE
Lloh27:
	ldr	x8, [x8, _xcb_drag_prepare_cb@GOTPAGEOFF]
Lloh28:
	ldr	w1, [x8]
	mov	x0, x22
	bl	_ev_prepare_init
	str	x20, [sp, #40]
	mov	w0, #0
	bl	_main_set_x11_cb
Lloh29:
	adrp	x19, _main_loop@GOTPAGE
Lloh30:
	ldr	x19, [x19, _main_loop@GOTPAGEOFF]
	ldr	w0, [x19]
	mov	x1, x22
	bl	_ev_prepare_start
	ldr	w0, [x19]
	mov	w1, #0
	bl	_ev_loop
	ldr	w0, [x19]
	mov	x1, x22
	bl	_ev_prepare_stop
	mov	w0, #1
	bl	_main_set_x11_cb
	ldr	w0, [x26]
	ldr	w1, [x27]
	bl	_xcb_ungrab_keyboard
	ldr	w0, [x26]
	ldr	w1, [x27]
	bl	_xcb_ungrab_pointer
	ldr	w0, [x26]
	bl	_xcb_flush
	ldr	w0, [sp, #32]
	b	LBB0_12
LBB0_9:
	ldr	x8, [sp, #72]
	ldr	w1, [x8]
Lloh31:
	adrp	x0, l_.str@PAGE
Lloh32:
	add	x0, x0, l_.str@PAGEOFF
	bl	_ELOG
	ldr	x0, [sp, #72]
	bl	_free
	b	LBB0_11
LBB0_10:
	ldr	x8, [sp, #72]
	ldr	w1, [x8]
Lloh33:
	adrp	x0, l_.str.1@PAGE
Lloh34:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_ELOG
	ldr	x0, [sp, #72]
	bl	_free
	ldr	w0, [x26]
	ldr	w1, [x27]
	bl	_xcb_ungrab_pointer
LBB0_11:
Lloh35:
	adrp	x8, _DRAG_ABORT@GOTPAGE
Lloh36:
	ldr	x8, [x8, _DRAG_ABORT@GOTPAGEOFF]
Lloh37:
	ldr	w0, [x8]
LBB0_12:
	ldp	x29, x30, [sp, #160]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #144]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #128]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #112]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #96]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #80]             ; 16-byte Folded Reload
	add	sp, sp, #176
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.cfi_endproc
                                        ; -- End function
	.comm	_xcursor_supported,8,3          ; @xcursor_supported
	.comm	_XCB_NONE,4,2                   ; @XCB_NONE
	.comm	_conn,4,2                       ; @conn
	.comm	_root,4,2                       ; @root
	.comm	_XCB_EVENT_MASK_BUTTON_RELEASE,4,2 ; @XCB_EVENT_MASK_BUTTON_RELEASE
	.comm	_XCB_EVENT_MASK_POINTER_MOTION,4,2 ; @XCB_EVENT_MASK_POINTER_MOTION
	.comm	_XCB_GRAB_MODE_ASYNC,4,2        ; @XCB_GRAB_MODE_ASYNC
	.comm	_XCB_CURRENT_TIME,4,2           ; @XCB_CURRENT_TIME
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Could not grab pointer (error_code = %d)\n"

	.comm	_DRAG_ABORT,4,2                 ; @DRAG_ABORT
l_.str.1:                               ; @.str.1
	.asciz	"Could not grab keyboard (error_code = %d)\n"

	.comm	_DRAGGING,4,2                   ; @DRAGGING
	.comm	_xcb_drag_prepare_cb,4,2        ; @xcb_drag_prepare_cb
	.comm	_main_loop,4,2                  ; @main_loop
.subsections_via_symbols
