	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function updateWindowMode
_updateWindowMode:                      ## @updateWindowMode
	.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	%rdi, %r15
	movq	16(%rdi), %rax
	movq	__glfw@GOTPCREL(%rip), %r14
	cmpq	$0, 40(%r14)
	setne	%bl
	movq	32(%r14), %rdx
	testq	%rdx, %rdx
	setne	%cl
	andb	%bl, %cl
	testq	%rax, %rax
	je	LBB0_9
## %bb.1:
	testb	%cl, %cl
	je	LBB0_3
## %bb.2:
	movl	(%rax), %ecx
	movl	$0, (%rsp)
	movq	%r15, %rdi
	movq	%rdx, %rsi
	movl	%ecx, %edx
	movl	%ecx, %r8d
	movl	%ecx, %r9d
	callq	_sendEventToWM
LBB0_3:
	movq	24(%r14), %rsi
	testq	%rsi, %rsi
	je	LBB0_6
## %bb.4:
	movl	(%r14), %ecx
	testl	%ecx, %ecx
	je	LBB0_6
## %bb.5:
	movq	__NET_WM_STATE_ADD@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$0, (%rsp)
	movq	%r15, %rdi
	xorl	%r8d, %r8d
	movl	$1, %r9d
	callq	_sendEventToWM
	cmpl	$0, 4(%r15)
	jne	LBB0_17
	jmp	LBB0_8
LBB0_9:
	testb	%cl, %cl
	je	LBB0_11
## %bb.10:
	movl	16(%r14), %edi
	movl	(%r15), %esi
	callq	_XDeleteProperty
LBB0_11:
	movq	24(%r14), %rsi
	testq	%rsi, %rsi
	je	LBB0_14
## %bb.12:
	movl	(%r14), %ecx
	testl	%ecx, %ecx
	je	LBB0_14
## %bb.13:
	movq	__NET_WM_STATE_REMOVE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	$0, (%rsp)
	movq	%r15, %rdi
	xorl	%r8d, %r8d
	movl	$1, %r9d
	callq	_sendEventToWM
	cmpl	$0, 4(%r15)
	jne	LBB0_17
	jmp	LBB0_16
LBB0_6:
	movq	_True@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -32(%rbp)
	movl	16(%r14), %edi
	movl	(%r15), %esi
	movq	_CWOverrideRedirect@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-32(%rbp), %rcx
	callq	_XChangeWindowAttributes
	movq	_GLFW_TRUE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r15)
	cmpl	$0, 4(%r15)
	jne	LBB0_17
LBB0_8:
	movq	$1, -32(%rbp)
	movl	16(%r14), %edi
	movl	(%r15), %esi
	movq	8(%r14), %rdx
	movq	_XA_CARDINAL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_PropModeReplace@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	leaq	-32(%rbp), %rax
	movq	%rax, (%rsp)
	movl	$1, 8(%rsp)
	movl	$32, %r8d
	callq	_XChangeProperty
	jmp	LBB0_17
LBB0_14:
	movq	_False@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -32(%rbp)
	movl	16(%r14), %edi
	movl	(%r15), %esi
	movq	_CWOverrideRedirect@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-32(%rbp), %rcx
	callq	_XChangeWindowAttributes
	movq	_GLFW_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 8(%r15)
	cmpl	$0, 4(%r15)
	jne	LBB0_17
LBB0_16:
	movl	16(%r14), %edi
	movl	(%r15), %esi
	movq	8(%r14), %rdx
	callq	_XDeleteProperty
LBB0_17:
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	__glfw,48,3                     ## @_glfw
	.comm	__NET_WM_STATE_ADD,4,2          ## @_NET_WM_STATE_ADD
	.comm	_True,4,2                       ## @True
	.comm	_CWOverrideRedirect,4,2         ## @CWOverrideRedirect
	.comm	_GLFW_TRUE,4,2                  ## @GLFW_TRUE
	.comm	_XA_CARDINAL,4,2                ## @XA_CARDINAL
	.comm	_PropModeReplace,4,2            ## @PropModeReplace
	.comm	__NET_WM_STATE_REMOVE,4,2       ## @_NET_WM_STATE_REMOVE
	.comm	_False,4,2                      ## @False
	.comm	_GLFW_FALSE,4,2                 ## @GLFW_FALSE
	.no_dead_strip	_updateWindowMode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function updateWindowMode
_updateWindowMode:                      ; @updateWindowMode
	.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, x0
Lloh0:
	adrp	x20, __glfw@GOTPAGE
Lloh1:
	ldr	x20, [x20, __glfw@GOTPAGEOFF]
	ldr	x8, [x0, #16]
	ldp	x2, x9, [x20, #32]
	cmp	x9, #0
	ccmp	x2, #0, #4, ne
	cset	w9, ne
	cbz	x8, LBB0_5
; %bb.1:
	cbz	w9, LBB0_3
; %bb.2:
	ldr	w3, [x8]
	mov	x0, x19
	mov	x1, x2
	mov	x2, x3
	mov	x4, x3
	mov	x5, x3
	mov	w6, #0
	bl	_sendEventToWM
LBB0_3:
	ldr	x1, [x20, #24]
	ldr	w3, [x20]
	cmp	x1, #0
	ccmp	w3, #0, #4, ne
	b.ne	LBB0_9
; %bb.4:
Lloh2:
	adrp	x8, _True@GOTPAGE
Lloh3:
	ldr	x8, [x8, _True@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	str	w8, [sp, #8]
	ldr	w0, [x20, #16]
	ldr	w1, [x19]
Lloh5:
	adrp	x8, _CWOverrideRedirect@GOTPAGE
Lloh6:
	ldr	x8, [x8, _CWOverrideRedirect@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	add	x3, sp, #8
	bl	_XChangeWindowAttributes
Lloh8:
	adrp	x8, _GLFW_TRUE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _GLFW_TRUE@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	str	w8, [x19, #8]
	ldr	w8, [x19, #4]
	cbnz	w8, LBB0_13
	b	LBB0_10
LBB0_5:
	cbz	w9, LBB0_7
; %bb.6:
	ldr	w0, [x20, #16]
	ldr	w1, [x19]
	bl	_XDeleteProperty
LBB0_7:
	ldr	x1, [x20, #24]
	ldr	w3, [x20]
	cmp	x1, #0
	ccmp	w3, #0, #4, ne
	b.ne	LBB0_11
; %bb.8:
Lloh11:
	adrp	x8, _False@GOTPAGE
Lloh12:
	ldr	x8, [x8, _False@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	str	w8, [sp, #8]
	ldr	w0, [x20, #16]
	ldr	w1, [x19]
Lloh14:
	adrp	x8, _CWOverrideRedirect@GOTPAGE
Lloh15:
	ldr	x8, [x8, _CWOverrideRedirect@GOTPAGEOFF]
Lloh16:
	ldr	w2, [x8]
	add	x3, sp, #8
	bl	_XChangeWindowAttributes
Lloh17:
	adrp	x8, _GLFW_FALSE@GOTPAGE
Lloh18:
	ldr	x8, [x8, _GLFW_FALSE@GOTPAGEOFF]
Lloh19:
	ldr	w8, [x8]
	str	w8, [x19, #8]
	ldr	w8, [x19, #4]
	cbnz	w8, LBB0_13
	b	LBB0_12
LBB0_9:
Lloh20:
	adrp	x8, __NET_WM_STATE_ADD@GOTPAGE
Lloh21:
	ldr	x8, [x8, __NET_WM_STATE_ADD@GOTPAGEOFF]
Lloh22:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w4, #0
	mov	w5, #1
	mov	w6, #0
	bl	_sendEventToWM
	ldr	w8, [x19, #4]
	cbnz	w8, LBB0_13
LBB0_10:
	mov	w8, #1
	str	x8, [sp, #8]
	ldr	w0, [x20, #16]
	ldr	w1, [x19]
	ldr	x2, [x20, #8]
Lloh23:
	adrp	x8, _XA_CARDINAL@GOTPAGE
Lloh24:
	ldr	x8, [x8, _XA_CARDINAL@GOTPAGEOFF]
Lloh25:
	ldr	w3, [x8]
Lloh26:
	adrp	x8, _PropModeReplace@GOTPAGE
Lloh27:
	ldr	x8, [x8, _PropModeReplace@GOTPAGEOFF]
Lloh28:
	ldr	w5, [x8]
	add	x6, sp, #8
	mov	w4, #32
	mov	w7, #1
	bl	_XChangeProperty
	b	LBB0_13
LBB0_11:
Lloh29:
	adrp	x8, __NET_WM_STATE_REMOVE@GOTPAGE
Lloh30:
	ldr	x8, [x8, __NET_WM_STATE_REMOVE@GOTPAGEOFF]
Lloh31:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w4, #0
	mov	w5, #1
	mov	w6, #0
	bl	_sendEventToWM
	ldr	w8, [x19, #4]
	cbnz	w8, LBB0_13
LBB0_12:
	ldr	w0, [x20, #16]
	ldr	w1, [x19]
	ldr	x2, [x20, #8]
	bl	_XDeleteProperty
LBB0_13:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.comm	__glfw,48,3                     ; @_glfw
	.comm	__NET_WM_STATE_ADD,4,2          ; @_NET_WM_STATE_ADD
	.comm	_True,4,2                       ; @True
	.comm	_CWOverrideRedirect,4,2         ; @CWOverrideRedirect
	.comm	_GLFW_TRUE,4,2                  ; @GLFW_TRUE
	.comm	_XA_CARDINAL,4,2                ; @XA_CARDINAL
	.comm	_PropModeReplace,4,2            ; @PropModeReplace
	.comm	__NET_WM_STATE_REMOVE,4,2       ; @_NET_WM_STATE_REMOVE
	.comm	_False,4,2                      ; @False
	.comm	_GLFW_FALSE,4,2                 ; @GLFW_FALSE
	.no_dead_strip	_updateWindowMode
.subsections_via_symbols
