	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__glfwPlatformSetWindowMonitor  ## -- Begin function _glfwPlatformSetWindowMonitor
	.p2align	4, 0x90
__glfwPlatformSetWindowMonitor:         ## @_glfwPlatformSetWindowMonitor
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, %r14d
	movl	%r8d, %r15d
	movl	%edx, %r13d
	movq	%rsi, %r12
	movq	%rdi, %rbx
	movq	8(%rdi), %rax
	cmpq	%rsi, %rax
	je	LBB0_1
## %bb.5:
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	%rbx, %rdi
	callq	_releaseMonitor
LBB0_7:
	movq	%rbx, %rdi
	movq	%r12, %rsi
	callq	__glfwInputWindowMonitorChange
	movq	%rbx, %rdi
	movl	%r15d, %esi
	movl	%r14d, %edx
	callq	_updateNormalHints
	movq	%rbx, %rdi
	callq	_updateWindowMode
	cmpq	$0, 8(%rbx)
	movq	__glfw@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	movl	(%rbx), %esi
	je	LBB0_10
## %bb.8:
	callq	_XMapRaised
	movq	%rbx, %rdi
	callq	_waitForVisibilityNotify
	testq	%rax, %rax
	je	LBB0_11
## %bb.9:
	movq	%rbx, %rdi
	callq	_acquireMonitor
	jmp	LBB0_11
LBB0_1:
	testq	%r12, %r12
	je	LBB0_4
## %bb.2:
	cmpq	%rbx, (%r12)
	je	LBB0_3
## %bb.12:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movl	%r13d, %edx
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movl	%r15d, %r8d
	movl	%r14d, %r9d
	callq	_XMoveResizeWindow
LBB0_11:
	movl	(%r12), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_XFlush                         ## TAILCALL
LBB0_4:
	movq	__glfw@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%rbx), %esi
	movl	%r13d, %edx
	movl	%r15d, %r8d
	movl	%r14d, %r9d
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_XMoveResizeWindow              ## TAILCALL
LBB0_3:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_acquireMonitor                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	__glfw,4,2                      ## @_glfw
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__glfwPlatformSetWindowMonitor  ; -- Begin function _glfwPlatformSetWindowMonitor
	.p2align	2
__glfwPlatformSetWindowMonitor:         ; @_glfwPlatformSetWindowMonitor
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x20, x5
	mov	x21, x4
	mov	x22, x3
	mov	x23, x2
	mov	x24, x1
	mov	x19, x0
	ldr	x8, [x0, #8]
	cmp	x8, x1
	b.eq	LBB0_6
; %bb.1:
	cbz	x8, LBB0_3
; %bb.2:
	mov	x0, x19
	bl	_releaseMonitor
LBB0_3:
	mov	x0, x19
	mov	x1, x24
	bl	__glfwInputWindowMonitorChange
	mov	x0, x19
	mov	x1, x21
	mov	x2, x20
	bl	_updateNormalHints
	mov	x0, x19
	bl	_updateWindowMode
	ldr	x8, [x19, #8]
Lloh0:
	adrp	x24, __glfw@GOTPAGE
Lloh1:
	ldr	x24, [x24, __glfw@GOTPAGEOFF]
	ldr	w0, [x24]
	ldr	w1, [x19]
	cbz	x8, LBB0_9
; %bb.4:
	bl	_XMapRaised
	mov	x0, x19
	bl	_waitForVisibilityNotify
	cbz	x0, LBB0_10
; %bb.5:
	mov	x0, x19
	bl	_acquireMonitor
	b	LBB0_10
LBB0_6:
	cbz	x24, LBB0_11
; %bb.7:
	ldr	x8, [x24]
	cmp	x8, x19
	b.eq	LBB0_12
; %bb.8:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_9:
	mov	x2, x23
	mov	x3, x22
	mov	x4, x21
	mov	x5, x20
	bl	_XMoveResizeWindow
LBB0_10:
	ldr	w0, [x24]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_XFlush
LBB0_11:
Lloh2:
	adrp	x8, __glfw@GOTPAGE
Lloh3:
	ldr	x8, [x8, __glfw@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	ldr	w1, [x19]
	mov	x2, x23
	mov	x3, x22
	mov	x4, x21
	mov	x5, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_XMoveResizeWindow
LBB0_12:
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_acquireMonitor
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	__glfw,4,2                      ; @_glfw
.subsections_via_symbols
