	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	$0, -56(%rbp)
	movq	$0, -64(%rbp)
	movq	__glfw@GOTPCREL(%rip), %r15
	movl	96(%r15), %edi
	movq	_False@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edx
	leaq	L_.str(%rip), %rsi
	callq	_XInternAtom
	movq	%rax, %r13
	movl	96(%r15), %edi
	movl	(%rbx), %edx
	leaq	L_.str.1(%rip), %rsi
	callq	_XInternAtom
	movq	%rax, %r14
	movq	(%r15), %rdi
	movq	_XA_WINDOW@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	leaq	-56(%rbp), %rcx
	movq	%r13, %rsi
	callq	__glfwGetWindowPropertyX11
	cmpl	$1, %eax
	jne	LBB0_1
## %bb.3:
	xorl	%eax, %eax
	callq	__glfwGrabErrorHandlerX11
	movq	-56(%rbp), %rax
	movq	(%rax), %rdi
	movl	(%r12), %edx
	leaq	-64(%rbp), %rcx
	movq	%r13, %rsi
	callq	__glfwGetWindowPropertyX11
	cmpl	$1, %eax
	jne	LBB0_4
## %bb.5:
	xorl	%eax, %eax
	callq	__glfwReleaseErrorHandlerX11
	movq	-56(%rbp), %rdi
	movq	(%rdi), %r12
	movq	-64(%rbp), %rax
	movq	(%rax), %rbx
	callq	_XFree
	movq	-64(%rbp), %rdi
	callq	_XFree
	cmpq	%rbx, %r12
	jne	LBB0_8
## %bb.6:
	movq	(%r15), %rdi
	movq	_XA_ATOM@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-48(%rbp), %rcx
	movq	%r14, %rsi
	callq	__glfwGetWindowPropertyX11
	movslq	%eax, %rbx
	movq	-48(%rbp), %rdi
	leaq	L_.str.2(%rip), %rdx
	movq	%rbx, %rsi
	callq	_getSupportedAtom
	movq	%rax, 88(%r15)
	movq	-48(%rbp), %rdi
	leaq	L_.str.3(%rip), %rdx
	movq	%rbx, %rsi
	callq	_getSupportedAtom
	movq	%rax, 80(%r15)
	movq	-48(%rbp), %rdi
	leaq	L_.str.4(%rip), %rdx
	movq	%rbx, %rsi
	callq	_getSupportedAtom
	movq	%rax, 72(%r15)
	movq	-48(%rbp), %rdi
	leaq	L_.str.5(%rip), %rdx
	movq	%rbx, %rsi
	callq	_getSupportedAtom
	movq	%rax, 64(%r15)
	movq	-48(%rbp), %rdi
	leaq	L_.str.6(%rip), %rdx
	movq	%rbx, %rsi
	callq	_getSupportedAtom
	movq	%rax, 56(%r15)
	movq	-48(%rbp), %rdi
	leaq	L_.str.7(%rip), %rdx
	movq	%rbx, %rsi
	callq	_getSupportedAtom
	movq	%rax, 48(%r15)
	movq	-48(%rbp), %rdi
	leaq	L_.str.8(%rip), %rdx
	movq	%rbx, %rsi
	callq	_getSupportedAtom
	movq	%rax, 40(%r15)
	movq	-48(%rbp), %rdi
	leaq	L_.str.9(%rip), %rdx
	movq	%rbx, %rsi
	callq	_getSupportedAtom
	movq	%rax, 32(%r15)
	movq	-48(%rbp), %rdi
	leaq	L_.str.10(%rip), %rdx
	movq	%rbx, %rsi
	callq	_getSupportedAtom
	movq	%rax, 24(%r15)
	movq	-48(%rbp), %rdi
	leaq	L_.str.11(%rip), %rdx
	movq	%rbx, %rsi
	callq	_getSupportedAtom
	movq	%rax, 16(%r15)
	movq	-48(%rbp), %rdi
	leaq	L_.str.12(%rip), %rdx
	movq	%rbx, %rsi
	callq	_getSupportedAtom
	movq	%rax, 8(%r15)
	movq	-48(%rbp), %rdi
	jmp	LBB0_7
LBB0_1:
	movq	-56(%rbp), %rdi
	jmp	LBB0_2
LBB0_4:
	movq	-56(%rbp), %rdi
	callq	_XFree
	movq	-64(%rbp), %rdi
LBB0_2:
	testq	%rdi, %rdi
	je	LBB0_8
LBB0_7:
	callq	_XFree
LBB0_8:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	__glfw,104,3                    ## @_glfw
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"_NET_SUPPORTING_WM_CHECK"

	.comm	_False,4,2                      ## @False
L_.str.1:                               ## @.str.1
	.asciz	"_NET_SUPPORTED"

	.comm	_XA_WINDOW,4,2                  ## @XA_WINDOW
	.comm	_XA_ATOM,4,2                    ## @XA_ATOM
L_.str.2:                               ## @.str.2
	.asciz	"_NET_WM_STATE"

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

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

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

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

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

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

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

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

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

L_.str.12:                              ## @.str.12
	.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
	stp	xzr, xzr, [sp, #16]
Lloh0:
	adrp	x21, __glfw@GOTPAGE
Lloh1:
	ldr	x21, [x21, __glfw@GOTPAGEOFF]
	ldr	w0, [x21, #96]
Lloh2:
	adrp	x19, _False@GOTPAGE
Lloh3:
	ldr	x19, [x19, _False@GOTPAGEOFF]
	ldr	w2, [x19]
Lloh4:
	adrp	x1, l_.str@PAGE
Lloh5:
	add	x1, x1, l_.str@PAGEOFF
	bl	_XInternAtom
	mov	x20, x0
	ldr	w0, [x21, #96]
	ldr	w2, [x19]
Lloh6:
	adrp	x1, l_.str.1@PAGE
Lloh7:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_XInternAtom
	mov	x19, x0
	ldr	x0, [x21]
Lloh8:
	adrp	x22, _XA_WINDOW@GOTPAGE
Lloh9:
	ldr	x22, [x22, _XA_WINDOW@GOTPAGEOFF]
	ldr	w2, [x22]
	add	x3, sp, #24
	mov	x1, x20
	bl	__glfwGetWindowPropertyX11
	cmp	w0, #1
	b.ne	LBB0_4
; %bb.1:
	bl	__glfwGrabErrorHandlerX11
	ldr	x8, [sp, #24]
	ldr	x0, [x8]
	ldr	w2, [x22]
	add	x3, sp, #16
	mov	x1, x20
	bl	__glfwGetWindowPropertyX11
	cmp	w0, #1
	b.ne	LBB0_7
; %bb.2:
	bl	__glfwReleaseErrorHandlerX11
	ldp	x8, x0, [sp, #16]
	ldr	x20, [x0]
	ldr	x22, [x8]
	bl	_XFree
	ldr	x0, [sp, #16]
	bl	_XFree
	cmp	x20, x22
	b.ne	LBB0_6
; %bb.3:
	ldr	x0, [x21]
Lloh10:
	adrp	x8, _XA_ATOM@GOTPAGE
Lloh11:
	ldr	x8, [x8, _XA_ATOM@GOTPAGEOFF]
Lloh12:
	ldr	w2, [x8]
	add	x3, sp, #8
	mov	x1, x19
	bl	__glfwGetWindowPropertyX11
                                        ; kill: def $w0 killed $w0 def $x0
	sxtw	x19, w0
	ldr	x0, [sp, #8]
Lloh13:
	adrp	x2, l_.str.2@PAGE
Lloh14:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x1, x19
	bl	_getSupportedAtom
	str	x0, [x21, #88]
	ldr	x0, [sp, #8]
Lloh15:
	adrp	x2, l_.str.3@PAGE
Lloh16:
	add	x2, x2, l_.str.3@PAGEOFF
	mov	x1, x19
	bl	_getSupportedAtom
	str	x0, [x21, #80]
	ldr	x0, [sp, #8]
Lloh17:
	adrp	x2, l_.str.4@PAGE
Lloh18:
	add	x2, x2, l_.str.4@PAGEOFF
	mov	x1, x19
	bl	_getSupportedAtom
	str	x0, [x21, #72]
	ldr	x0, [sp, #8]
Lloh19:
	adrp	x2, l_.str.5@PAGE
Lloh20:
	add	x2, x2, l_.str.5@PAGEOFF
	mov	x1, x19
	bl	_getSupportedAtom
	str	x0, [x21, #64]
	ldr	x0, [sp, #8]
Lloh21:
	adrp	x2, l_.str.6@PAGE
Lloh22:
	add	x2, x2, l_.str.6@PAGEOFF
	mov	x1, x19
	bl	_getSupportedAtom
	str	x0, [x21, #56]
	ldr	x0, [sp, #8]
Lloh23:
	adrp	x2, l_.str.7@PAGE
Lloh24:
	add	x2, x2, l_.str.7@PAGEOFF
	mov	x1, x19
	bl	_getSupportedAtom
	str	x0, [x21, #48]
	ldr	x0, [sp, #8]
Lloh25:
	adrp	x2, l_.str.8@PAGE
Lloh26:
	add	x2, x2, l_.str.8@PAGEOFF
	mov	x1, x19
	bl	_getSupportedAtom
	str	x0, [x21, #40]
	ldr	x0, [sp, #8]
Lloh27:
	adrp	x2, l_.str.9@PAGE
Lloh28:
	add	x2, x2, l_.str.9@PAGEOFF
	mov	x1, x19
	bl	_getSupportedAtom
	str	x0, [x21, #32]
	ldr	x0, [sp, #8]
Lloh29:
	adrp	x2, l_.str.10@PAGE
Lloh30:
	add	x2, x2, l_.str.10@PAGEOFF
	mov	x1, x19
	bl	_getSupportedAtom
	str	x0, [x21, #24]
	ldr	x0, [sp, #8]
Lloh31:
	adrp	x2, l_.str.11@PAGE
Lloh32:
	add	x2, x2, l_.str.11@PAGEOFF
	mov	x1, x19
	bl	_getSupportedAtom
	str	x0, [x21, #16]
	ldr	x0, [sp, #8]
Lloh33:
	adrp	x2, l_.str.12@PAGE
Lloh34:
	add	x2, x2, l_.str.12@PAGEOFF
	mov	x1, x19
	bl	_getSupportedAtom
	str	x0, [x21, #8]
	ldr	x0, [sp, #8]
	b	LBB0_5
LBB0_4:
	ldr	x0, [sp, #24]
	cbz	x0, LBB0_6
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
LBB0_7:
	ldr	x0, [sp, #24]
	bl	_XFree
	ldr	x0, [sp, #16]
	cbnz	x0, LBB0_5
	b	LBB0_6
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.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 AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	__glfw,104,3                    ; @_glfw
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"_NET_SUPPORTING_WM_CHECK"

	.comm	_False,4,2                      ; @False
l_.str.1:                               ; @.str.1
	.asciz	"_NET_SUPPORTED"

	.comm	_XA_WINDOW,4,2                  ; @XA_WINDOW
	.comm	_XA_ATOM,4,2                    ; @XA_ATOM
l_.str.2:                               ; @.str.2
	.asciz	"_NET_WM_STATE"

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

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

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

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

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

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

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

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

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

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

	.no_dead_strip	_detectEWMH
.subsections_via_symbols
