	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function detectEWMH
_detectEWMH:                            ## @detectEWMH
	.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	$0, -40(%rbp)
	movq	__glfw@GOTPCREL(%rip), %r14
	movq	(%r14), %rdi
	movl	124(%r14), %esi
	movq	_XA_WINDOW@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	leaq	-40(%rbp), %rcx
	callq	__glfwGetWindowPropertyX11
	testq	%rax, %rax
	je	LBB0_6
## %bb.1:
	xorl	%eax, %eax
	callq	__glfwGrabErrorHandlerX11
	movq	$0, -48(%rbp)
	movq	-40(%rbp), %rax
	movq	(%rax), %rdi
	movl	124(%r14), %esi
	movl	(%rbx), %edx
	leaq	-48(%rbp), %rcx
	callq	__glfwGetWindowPropertyX11
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	xorl	%eax, %eax
	callq	__glfwReleaseErrorHandlerX11
	movq	-40(%rbp), %rdi
	movq	(%rdi), %r15
	movq	-48(%rbp), %rax
	movq	(%rax), %rbx
	callq	_XFree
	movq	-48(%rbp), %rdi
	callq	_XFree
	cmpq	%rbx, %r15
	jne	LBB0_6
## %bb.4:
	movq	$0, -32(%rbp)
	movq	(%r14), %rdi
	movl	120(%r14), %esi
	movq	_XA_ATOM@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-32(%rbp), %rcx
	callq	__glfwGetWindowPropertyX11
	movq	%rax, %rbx
	movq	-32(%rbp), %rdi
	leaq	L_.str(%rip), %rdx
	movq	%rax, %rsi
	callq	_getSupportedAtom
	movq	%rax, 112(%r14)
	movq	-32(%rbp), %rdi
	leaq	L_.str.1(%rip), %rdx
	movq	%rbx, %rsi
	callq	_getSupportedAtom
	movq	%rax, 104(%r14)
	movq	-32(%rbp), %rdi
	leaq	L_.str.2(%rip), %rdx
	movq	%rbx, %rsi
	callq	_getSupportedAtom
	movq	%rax, 96(%r14)
	movq	-32(%rbp), %rdi
	leaq	L_.str.3(%rip), %rdx
	movq	%rbx, %rsi
	callq	_getSupportedAtom
	movq	%rax, 88(%r14)
	movq	-32(%rbp), %rdi
	leaq	L_.str.4(%rip), %rdx
	movq	%rbx, %rsi
	callq	_getSupportedAtom
	movq	%rax, 80(%r14)
	movq	-32(%rbp), %rdi
	leaq	L_.str.5(%rip), %rdx
	movq	%rbx, %rsi
	callq	_getSupportedAtom
	movq	%rax, 72(%r14)
	movq	-32(%rbp), %rdi
	leaq	L_.str.6(%rip), %rdx
	movq	%rbx, %rsi
	callq	_getSupportedAtom
	movq	%rax, 64(%r14)
	movq	-32(%rbp), %rdi
	leaq	L_.str.7(%rip), %rdx
	movq	%rbx, %rsi
	callq	_getSupportedAtom
	movq	%rax, 56(%r14)
	movq	-32(%rbp), %rdi
	leaq	L_.str.8(%rip), %rdx
	movq	%rbx, %rsi
	callq	_getSupportedAtom
	movq	%rax, 48(%r14)
	movq	-32(%rbp), %rdi
	leaq	L_.str.9(%rip), %rdx
	movq	%rbx, %rsi
	callq	_getSupportedAtom
	movq	%rax, 40(%r14)
	movq	-32(%rbp), %rdi
	leaq	L_.str.10(%rip), %rdx
	movq	%rbx, %rsi
	callq	_getSupportedAtom
	movq	%rax, 32(%r14)
	movq	-32(%rbp), %rdi
	leaq	L_.str.11(%rip), %rdx
	movq	%rbx, %rsi
	callq	_getSupportedAtom
	movq	%rax, 24(%r14)
	movq	-32(%rbp), %rdi
	leaq	L_.str.12(%rip), %rdx
	movq	%rbx, %rsi
	callq	_getSupportedAtom
	movq	%rax, 16(%r14)
	movq	-32(%rbp), %rdi
	leaq	L_.str.13(%rip), %rdx
	movq	%rbx, %rsi
	callq	_getSupportedAtom
	movq	%rax, 8(%r14)
	movq	-32(%rbp), %rdi
	testq	%rdi, %rdi
	jne	LBB0_5
	jmp	LBB0_6
LBB0_2:
	movq	-40(%rbp), %rdi
LBB0_5:
	callq	_XFree
LBB0_6:
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	__glfw,128,3                    ## @_glfw
	.comm	_XA_WINDOW,4,2                  ## @XA_WINDOW
	.comm	_XA_ATOM,4,2                    ## @XA_ATOM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"_NET_WM_STATE"

L_.str.1:                               ## @.str.1
	.asciz	"_NET_WM_STATE_ABOVE"

L_.str.2:                               ## @.str.2
	.asciz	"_NET_WM_STATE_FULLSCREEN"

L_.str.3:                               ## @.str.3
	.asciz	"_NET_WM_STATE_MAXIMIZED_VERT"

L_.str.4:                               ## @.str.4
	.asciz	"_NET_WM_STATE_MAXIMIZED_HORZ"

L_.str.5:                               ## @.str.5
	.asciz	"_NET_WM_STATE_DEMANDS_ATTENTION"

L_.str.6:                               ## @.str.6
	.asciz	"_NET_WM_FULLSCREEN_MONITORS"

L_.str.7:                               ## @.str.7
	.asciz	"_NET_WM_WINDOW_TYPE"

L_.str.8:                               ## @.str.8
	.asciz	"_NET_WM_WINDOW_TYPE_NORMAL"

L_.str.9:                               ## @.str.9
	.asciz	"_NET_WORKAREA"

L_.str.10:                              ## @.str.10
	.asciz	"_NET_CURRENT_DESKTOP"

L_.str.11:                              ## @.str.11
	.asciz	"_NET_ACTIVE_WINDOW"

L_.str.12:                              ## @.str.12
	.asciz	"_NET_FRAME_EXTENTS"

L_.str.13:                              ## @.str.13
	.asciz	"_NET_REQUEST_FRAME_EXTENTS"

	.no_dead_strip	_detectEWMH
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function detectEWMH
_detectEWMH:                            ; @detectEWMH
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
Lloh0:
	adrp	x20, __glfw@GOTPAGE
Lloh1:
	ldr	x20, [x20, __glfw@GOTPAGEOFF]
	str	xzr, [sp, #24]
	ldr	x0, [x20]
	ldr	w1, [x20, #124]
Lloh2:
	adrp	x19, _XA_WINDOW@GOTPAGE
Lloh3:
	ldr	x19, [x19, _XA_WINDOW@GOTPAGEOFF]
	ldr	w2, [x19]
	add	x3, sp, #24
	bl	__glfwGetWindowPropertyX11
	cbz	x0, LBB0_6
; %bb.1:
	bl	__glfwGrabErrorHandlerX11
	str	xzr, [sp, #16]
	ldr	x8, [sp, #24]
	ldr	x0, [x8]
	ldr	w1, [x20, #124]
	ldr	w2, [x19]
	add	x3, sp, #16
	bl	__glfwGetWindowPropertyX11
	cbz	x0, LBB0_4
; %bb.2:
	bl	__glfwReleaseErrorHandlerX11
	ldp	x8, x0, [sp, #16]
	ldr	x19, [x0]
	ldr	x21, [x8]
	bl	_XFree
	ldr	x0, [sp, #16]
	bl	_XFree
	cmp	x19, x21
	b.ne	LBB0_6
; %bb.3:
	str	xzr, [sp, #8]
	ldr	x0, [x20]
	ldr	w1, [x20, #120]
Lloh4:
	adrp	x8, _XA_ATOM@GOTPAGE
Lloh5:
	ldr	x8, [x8, _XA_ATOM@GOTPAGEOFF]
Lloh6:
	ldr	w2, [x8]
	add	x3, sp, #8
	bl	__glfwGetWindowPropertyX11
	mov	x19, x0
	ldr	x0, [sp, #8]
Lloh7:
	adrp	x2, l_.str@PAGE
Lloh8:
	add	x2, x2, l_.str@PAGEOFF
	mov	x1, x19
	bl	_getSupportedAtom
	str	x0, [x20, #112]
	ldr	x0, [sp, #8]
Lloh9:
	adrp	x2, l_.str.1@PAGE
Lloh10:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x1, x19
	bl	_getSupportedAtom
	str	x0, [x20, #104]
	ldr	x0, [sp, #8]
Lloh11:
	adrp	x2, l_.str.2@PAGE
Lloh12:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x1, x19
	bl	_getSupportedAtom
	str	x0, [x20, #96]
	ldr	x0, [sp, #8]
Lloh13:
	adrp	x2, l_.str.3@PAGE
Lloh14:
	add	x2, x2, l_.str.3@PAGEOFF
	mov	x1, x19
	bl	_getSupportedAtom
	str	x0, [x20, #88]
	ldr	x0, [sp, #8]
Lloh15:
	adrp	x2, l_.str.4@PAGE
Lloh16:
	add	x2, x2, l_.str.4@PAGEOFF
	mov	x1, x19
	bl	_getSupportedAtom
	str	x0, [x20, #80]
	ldr	x0, [sp, #8]
Lloh17:
	adrp	x2, l_.str.5@PAGE
Lloh18:
	add	x2, x2, l_.str.5@PAGEOFF
	mov	x1, x19
	bl	_getSupportedAtom
	str	x0, [x20, #72]
	ldr	x0, [sp, #8]
Lloh19:
	adrp	x2, l_.str.6@PAGE
Lloh20:
	add	x2, x2, l_.str.6@PAGEOFF
	mov	x1, x19
	bl	_getSupportedAtom
	str	x0, [x20, #64]
	ldr	x0, [sp, #8]
Lloh21:
	adrp	x2, l_.str.7@PAGE
Lloh22:
	add	x2, x2, l_.str.7@PAGEOFF
	mov	x1, x19
	bl	_getSupportedAtom
	str	x0, [x20, #56]
	ldr	x0, [sp, #8]
Lloh23:
	adrp	x2, l_.str.8@PAGE
Lloh24:
	add	x2, x2, l_.str.8@PAGEOFF
	mov	x1, x19
	bl	_getSupportedAtom
	str	x0, [x20, #48]
	ldr	x0, [sp, #8]
Lloh25:
	adrp	x2, l_.str.9@PAGE
Lloh26:
	add	x2, x2, l_.str.9@PAGEOFF
	mov	x1, x19
	bl	_getSupportedAtom
	str	x0, [x20, #40]
	ldr	x0, [sp, #8]
Lloh27:
	adrp	x2, l_.str.10@PAGE
Lloh28:
	add	x2, x2, l_.str.10@PAGEOFF
	mov	x1, x19
	bl	_getSupportedAtom
	str	x0, [x20, #32]
	ldr	x0, [sp, #8]
Lloh29:
	adrp	x2, l_.str.11@PAGE
Lloh30:
	add	x2, x2, l_.str.11@PAGEOFF
	mov	x1, x19
	bl	_getSupportedAtom
	str	x0, [x20, #24]
	ldr	x0, [sp, #8]
Lloh31:
	adrp	x2, l_.str.12@PAGE
Lloh32:
	add	x2, x2, l_.str.12@PAGEOFF
	mov	x1, x19
	bl	_getSupportedAtom
	str	x0, [x20, #16]
	ldr	x0, [sp, #8]
Lloh33:
	adrp	x2, l_.str.13@PAGE
Lloh34:
	add	x2, x2, l_.str.13@PAGEOFF
	mov	x1, x19
	bl	_getSupportedAtom
	str	x0, [x20, #8]
	ldr	x0, [sp, #8]
	cbnz	x0, LBB0_5
	b	LBB0_6
LBB0_4:
	ldr	x0, [sp, #24]
LBB0_5:
	bl	_XFree
LBB0_6:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	__glfw,128,3                    ; @_glfw
	.comm	_XA_WINDOW,4,2                  ; @XA_WINDOW
	.comm	_XA_ATOM,4,2                    ; @XA_ATOM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"_NET_WM_STATE"

l_.str.1:                               ; @.str.1
	.asciz	"_NET_WM_STATE_ABOVE"

l_.str.2:                               ; @.str.2
	.asciz	"_NET_WM_STATE_FULLSCREEN"

l_.str.3:                               ; @.str.3
	.asciz	"_NET_WM_STATE_MAXIMIZED_VERT"

l_.str.4:                               ; @.str.4
	.asciz	"_NET_WM_STATE_MAXIMIZED_HORZ"

l_.str.5:                               ; @.str.5
	.asciz	"_NET_WM_STATE_DEMANDS_ATTENTION"

l_.str.6:                               ; @.str.6
	.asciz	"_NET_WM_FULLSCREEN_MONITORS"

l_.str.7:                               ; @.str.7
	.asciz	"_NET_WM_WINDOW_TYPE"

l_.str.8:                               ; @.str.8
	.asciz	"_NET_WM_WINDOW_TYPE_NORMAL"

l_.str.9:                               ; @.str.9
	.asciz	"_NET_WORKAREA"

l_.str.10:                              ; @.str.10
	.asciz	"_NET_CURRENT_DESKTOP"

l_.str.11:                              ; @.str.11
	.asciz	"_NET_ACTIVE_WINDOW"

l_.str.12:                              ; @.str.12
	.asciz	"_NET_FRAME_EXTENTS"

l_.str.13:                              ; @.str.13
	.asciz	"_NET_REQUEST_FRAME_EXTENTS"

	.no_dead_strip	_detectEWMH
.subsections_via_symbols
