	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function window_supports_protocol
LCPI0_0:
	.long	1                               ## 0x1
	.long	1                               ## 0x1
	.space	4
	.space	4
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_window_supports_protocol
	.p2align	4, 0x90
_window_supports_protocol:              ## @window_supports_protocol
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movl	%edi, %esi
	movq	_conn@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	movq	_A_WM_PROTOCOLS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_xcb_icccm_get_wm_protocols
	movl	(%rbx), %edi
	xorl	%ebx, %ebx
	leaq	-32(%rbp), %rdx
	movl	%eax, %esi
	xorl	%ecx, %ecx
	callq	_xcb_icccm_get_wm_protocols_reply
	cmpl	$1, %eax
	jne	LBB0_15
## %bb.1:
	movq	-32(%rbp), %rax
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movq	-24(%rbp), %rcx
	cmpq	$4, %rax
	jae	LBB0_5
## %bb.4:
	xorl	%edx, %edx
	xorl	%ebx, %ebx
	jmp	LBB0_12
LBB0_2:
	xorl	%ebx, %ebx
	jmp	LBB0_14
LBB0_5:
	movq	%rax, %rdx
	andq	$-4, %rdx
	movq	%r14, %xmm0
	pshufd	$68, %xmm0, %xmm1               ## xmm1 = xmm0[0,1,0,1]
	leaq	-4(%rdx), %rsi
	movq	%rsi, %rbx
	shrq	$2, %rbx
	incq	%rbx
	testq	%rsi, %rsi
	je	LBB0_6
## %bb.7:
	movq	%rbx, %rsi
	andq	$-2, %rsi
	xorps	%xmm2, %xmm2
	xorl	%edi, %edi
	movaps	LCPI0_0(%rip), %xmm4            ## xmm4 = <1,1,u,u>
	xorps	%xmm3, %xmm3
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movdqu	(%rcx,%rdi,8), %xmm0
	movdqu	16(%rcx,%rdi,8), %xmm5
	movdqu	32(%rcx,%rdi,8), %xmm6
	movdqu	48(%rcx,%rdi,8), %xmm7
	pcmpeqq	%xmm1, %xmm0
	pcmpeqq	%xmm1, %xmm5
	pcmpeqq	%xmm1, %xmm6
	por	%xmm0, %xmm6
	pcmpeqq	%xmm1, %xmm7
	por	%xmm5, %xmm7
	pshufd	$232, %xmm6, %xmm0              ## xmm0 = xmm6[0,2,2,3]
	blendvps	%xmm0, %xmm4, %xmm2
	pshufd	$232, %xmm7, %xmm0              ## xmm0 = xmm7[0,2,2,3]
	blendvps	%xmm0, %xmm4, %xmm3
	addq	$8, %rdi
	addq	$-2, %rsi
	jne	LBB0_8
## %bb.9:
	testb	$1, %bl
	je	LBB0_11
LBB0_10:
	movdqu	(%rcx,%rdi,8), %xmm0
	movdqu	16(%rcx,%rdi,8), %xmm4
	pcmpeqq	%xmm1, %xmm0
	pshufd	$232, %xmm0, %xmm0              ## xmm0 = xmm0[0,2,2,3]
	pcmpeqq	%xmm1, %xmm4
	pshufd	$232, %xmm4, %xmm1              ## xmm1 = xmm4[0,2,2,3]
	movaps	LCPI0_0(%rip), %xmm4            ## xmm4 = <1,1,u,u>
	blendvps	%xmm0, %xmm4, %xmm2
	movdqa	%xmm1, %xmm0
	blendvps	%xmm0, %xmm4, %xmm3
LBB0_11:
	pxor	%xmm0, %xmm0
	pcmpeqd	%xmm2, %xmm0
	blendvps	%xmm0, %xmm3, %xmm2
	movq	%xmm2, %rsi
	xorl	%ebx, %ebx
	testq	%rsi, %rsi
	setne	%bl
	cmpq	%rdx, %rax
	je	LBB0_14
LBB0_12:
	movl	$1, %esi
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	cmpq	%r14, (%rcx,%rdx,8)
	cmovel	%esi, %ebx
	incq	%rdx
	cmpq	%rdx, %rax
	jne	LBB0_13
LBB0_14:
	leaq	-32(%rbp), %rdi
	callq	_xcb_icccm_get_wm_protocols_reply_wipe
LBB0_15:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_6:
	xorps	%xmm2, %xmm2
	xorl	%edi, %edi
	xorps	%xmm3, %xmm3
	testb	$1, %bl
	jne	LBB0_10
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.comm	_conn,4,2                       ## @conn
	.comm	_A_WM_PROTOCOLS,4,2             ## @A_WM_PROTOCOLS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_window_supports_protocol       ; -- Begin function window_supports_protocol
	.p2align	2
_window_supports_protocol:              ; @window_supports_protocol
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	mov	x1, x0
Lloh0:
	adrp	x20, _conn@GOTPAGE
Lloh1:
	ldr	x20, [x20, _conn@GOTPAGEOFF]
	ldr	w0, [x20]
Lloh2:
	adrp	x8, _A_WM_PROTOCOLS@GOTPAGE
Lloh3:
	ldr	x8, [x8, _A_WM_PROTOCOLS@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	bl	_xcb_icccm_get_wm_protocols
	mov	x1, x0
	ldr	w0, [x20]
	mov	x2, sp
	mov	x3, #0
	bl	_xcb_icccm_get_wm_protocols_reply
	cmp	w0, #1
	b.ne	LBB0_4
; %bb.1:
	ldr	x8, [sp]
	cbz	x8, LBB0_5
; %bb.2:
	ldr	x9, [sp, #8]
	cmp	x8, #8
	b.hs	LBB0_6
; %bb.3:
	mov	x10, #0
	mov	w20, #0
	b	LBB0_9
LBB0_4:
	mov	w20, #0
	b	LBB0_12
LBB0_5:
	mov	w20, #0
	b	LBB0_11
LBB0_6:
	and	x10, x8, #0xfffffffffffffff8
	dup.2d	v1, x19
	movi.2d	v0, #0000000000000000
	add	x11, x9, #32
	movi.2s	v3, #1
	mov	x12, x10
	movi.2d	v5, #0000000000000000
	movi.2d	v4, #0000000000000000
	movi.2d	v2, #0000000000000000
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldp	q6, q7, [x11, #-32]
	ldp	q16, q17, [x11], #64
	cmeq.2d	v6, v6, v1
	xtn.2s	v6, v6
	cmeq.2d	v7, v7, v1
	xtn.2s	v7, v7
	cmeq.2d	v16, v16, v1
	xtn.2s	v16, v16
	cmeq.2d	v17, v17, v1
	xtn.2s	v17, v17
	bit.8b	v0, v3, v6
	bit.8b	v5, v3, v7
	bit.8b	v4, v3, v16
	bit.8b	v2, v3, v17
	subs	x12, x12, #8
	b.ne	LBB0_7
; %bb.8:
	cmeq.2s	v1, v0, #0
	bit.8b	v0, v5, v1
	cmeq.2s	v1, v0, #0
	bit.8b	v0, v4, v1
	cmeq.2s	v1, v0, #0
	bit.8b	v0, v2, v1
	fmov	x11, d0
	cmp	x11, #0
	cset	w20, ne
	cmp	x8, x10
	b.eq	LBB0_11
LBB0_9:
	sub	x8, x8, x10
	add	x9, x9, x10, lsl #3
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	ldr	x10, [x9], #8
	cmp	x10, x19
	csinc	w20, w20, wzr, ne
	subs	x8, x8, #1
	b.ne	LBB0_10
LBB0_11:
	mov	x0, sp
	bl	_xcb_icccm_get_wm_protocols_reply_wipe
LBB0_12:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_conn,4,2                       ; @conn
	.comm	_A_WM_PROTOCOLS,4,2             ; @A_WM_PROTOCOLS
.subsections_via_symbols
