	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__glfwPlatformGetMonitorWorkarea ## -- Begin function _glfwPlatformGetMonitorWorkarea
	.p2align	4, 0x90
__glfwPlatformGetMonitorWorkarea:       ## @_glfwPlatformGetMonitorWorkarea
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, %r15
	movq	%rcx, %r13
	movq	%rdx, -104(%rbp)                ## 8-byte Spill
	movq	%rsi, %r14
	movq	%rdi, %rbx
	movq	__glfw@GOTPCREL(%rip), %r12
	cmpq	$0, 40(%r12)
	movl	28(%r12), %edi
	je	LBB0_3
## %bb.1:
	cmpl	$0, 32(%r12)
	jne	LBB0_3
## %bb.2:
	movl	8(%r12), %esi
	callq	_XRRGetScreenResourcesCurrent
	movq	%r13, -48(%rbp)                 ## 8-byte Spill
	movq	%r15, %r13
	movq	%rax, %r15
	movl	28(%r12), %edi
	movl	(%rbx), %edx
	movq	%rax, %rsi
	callq	_XRRGetCrtcInfo
	movq	%r14, %rbx
	movq	%rax, %r14
	movl	16(%rax), %esi
	movsd	(%rax), %xmm0                   ## xmm0 = mem[0],zero
	movaps	%xmm0, -64(%rbp)                ## 16-byte Spill
	movq	%r15, %rdi
	callq	_getModeInfo
	movq	8(%r14), %rcx
	movq	_RR_Rotate_90@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	sete	%dl
	movq	_RR_Rotate_270@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rcx
	sete	%cl
	orb	%dl, %cl
	movzbl	%cl, %ecx
	movl	%ecx, %edx
	xorb	$1, %dl
	movzbl	%dl, %edx
	movd	(%rax,%rdx,4), %xmm0            ## xmm0 = mem[0],zero,zero,zero
	pinsrd	$1, (%rax,%rcx,4), %xmm0
	movdqa	%xmm0, -96(%rbp)                ## 16-byte Spill
	movq	%r14, %rdi
	movq	%rbx, %r14
	callq	_XRRFreeCrtcInfo
	movq	%r15, %rdi
	movq	%r13, %r15
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	callq	_XRRFreeScreenResources
	movdqa	-64(%rbp), %xmm0                ## 16-byte Reload
	jmp	LBB0_4
LBB0_3:
	movl	24(%r12), %esi
	callq	_DisplayWidth
	movl	%eax, %ebx
	movl	24(%r12), %esi
	movl	28(%r12), %edi
	callq	_DisplayHeight
	movd	%ebx, %xmm0
	pinsrd	$1, %eax, %xmm0
	movdqa	%xmm0, -96(%rbp)                ## 16-byte Spill
	pxor	%xmm0, %xmm0
LBB0_4:
	movq	16(%r12), %rsi
	movd	%xmm0, %ecx
	pextrd	$1, %xmm0, %eax
	testq	%rsi, %rsi
	je	LBB0_17
## %bb.5:
	cmpq	$0, (%r12)
	je	LBB0_17
## %bb.6:
	movdqa	%xmm0, -64(%rbp)                ## 16-byte Spill
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	movq	$0, -80(%rbp)
	movq	$0, -72(%rbp)
	movl	8(%r12), %edi
	movq	_XA_CARDINAL@GOTPCREL(%rip), %r14
	movl	(%r14), %edx
	leaq	-80(%rbp), %rcx
	callq	__glfwGetWindowPropertyX11
	movq	%rax, %rbx
	movl	8(%r12), %edi
	movq	(%r12), %rsi
	movl	(%r14), %edx
	leaq	-72(%rbp), %rcx
	callq	__glfwGetWindowPropertyX11
	testq	%rax, %rax
	je	LBB0_7
## %bb.8:
	cmpq	$4, %rbx
	movdqa	-64(%rbp), %xmm5                ## 16-byte Reload
	jb	LBB0_9
## %bb.10:
	movq	-72(%rbp), %rax
	movq	(%rax), %rax
	shrq	$2, %rbx
	cmpq	%rbx, %rax
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	jae	LBB0_12
## %bb.11:
	movq	-80(%rbp), %rcx
	shlq	$5, %rax
	movdqu	(%rcx,%rax), %xmm0
	movdqu	16(%rcx,%rax), %xmm1
	pshufd	$232, %xmm0, %xmm2              ## xmm2 = xmm0[0,2,2,3]
	pshufd	$232, %xmm1, %xmm1              ## xmm1 = xmm1[0,2,2,3]
	movdqa	%xmm2, %xmm0
	pcmpgtd	%xmm5, %xmm0
	movdqa	%xmm5, %xmm3
	psubd	%xmm2, %xmm3
	pand	%xmm0, %xmm3
	paddd	-96(%rbp), %xmm3                ## 16-byte Folded Reload
	pmaxsd	%xmm2, %xmm5
	movdqa	%xmm3, %xmm0
	paddd	%xmm5, %xmm0
	movdqa	%xmm1, %xmm4
	paddd	%xmm2, %xmm4
	pcmpgtd	%xmm4, %xmm0
	psubd	%xmm5, %xmm2
	paddd	%xmm1, %xmm2
	blendvps	%xmm0, %xmm2, %xmm3
	movaps	%xmm3, -96(%rbp)                ## 16-byte Spill
	jmp	LBB0_12
LBB0_7:
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movdqa	-64(%rbp), %xmm5                ## 16-byte Reload
	jmp	LBB0_12
LBB0_9:
	movq	-48(%rbp), %r14                 ## 8-byte Reload
LBB0_12:
	movq	-80(%rbp), %rdi
	testq	%rdi, %rdi
	movdqa	%xmm5, -64(%rbp)                ## 16-byte Spill
	je	LBB0_14
## %bb.13:
	callq	_XFree
	movdqa	-64(%rbp), %xmm5                ## 16-byte Reload
LBB0_14:
	movq	-72(%rbp), %rdi
	testq	%rdi, %rdi
	je	LBB0_16
## %bb.15:
	callq	_XFree
	movdqa	-64(%rbp), %xmm5                ## 16-byte Reload
LBB0_16:
	movd	%xmm5, %ecx
	pextrd	$1, %xmm5, %eax
LBB0_17:
	testq	%r14, %r14
	je	LBB0_19
## %bb.18:
	movl	%ecx, (%r14)
LBB0_19:
	movq	-104(%rbp), %rcx                ## 8-byte Reload
	testq	%rcx, %rcx
	je	LBB0_21
## %bb.20:
	movl	%eax, (%rcx)
LBB0_21:
	testq	%r13, %r13
	je	LBB0_23
## %bb.22:
	movdqa	-96(%rbp), %xmm0                ## 16-byte Reload
	movd	%xmm0, (%r13)
LBB0_23:
	testq	%r15, %r15
	je	LBB0_25
## %bb.24:
	movdqa	-96(%rbp), %xmm0                ## 16-byte Reload
	pextrd	$1, %xmm0, (%r15)
LBB0_25:
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	__glfw,48,3                     ## @_glfw
	.comm	_RR_Rotate_90,8,3               ## @RR_Rotate_90
	.comm	_RR_Rotate_270,8,3              ## @RR_Rotate_270
	.comm	_XA_CARDINAL,4,2                ## @XA_CARDINAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__glfwPlatformGetMonitorWorkarea ; -- Begin function _glfwPlatformGetMonitorWorkarea
	.p2align	2
__glfwPlatformGetMonitorWorkarea:       ; @_glfwPlatformGetMonitorWorkarea
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x4
	mov	x20, x3
	mov	x21, x2
	mov	x22, x1
	mov	x23, x0
Lloh0:
	adrp	x24, __glfw@GOTPAGE
Lloh1:
	ldr	x24, [x24, __glfw@GOTPAGEOFF]
	ldr	x8, [x24, #40]
	ldp	w0, w9, [x24, #28]
	cmp	x8, #0
	ccmp	w9, #0, #0, ne
	b.eq	LBB0_2
; %bb.1:
	ldr	w1, [x24, #24]
	bl	_DisplayWidth
	str	w0, [sp, #12]                   ; 4-byte Folded Spill
	ldp	w1, w0, [x24, #24]
	bl	_DisplayHeight
	mov	x23, x0
	mov	w27, #0
	mov	w28, #0
	ldr	x1, [x24, #16]
	cbnz	x1, LBB0_3
	b	LBB0_12
LBB0_2:
	ldr	w1, [x24, #8]
	bl	_XRRGetScreenResourcesCurrent
	mov	x25, x0
	ldr	w0, [x24, #28]
	ldr	w2, [x23]
	mov	x1, x25
	bl	_XRRGetCrtcInfo
	mov	x26, x0
	ldp	w28, w27, [x0]
	ldr	w1, [x0, #16]
	mov	x0, x25
	bl	_getModeInfo
	ldr	x8, [x26, #8]
Lloh2:
	adrp	x9, _RR_Rotate_90@GOTPAGE
Lloh3:
	ldr	x9, [x9, _RR_Rotate_90@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
Lloh5:
	adrp	x9, _RR_Rotate_270@GOTPAGE
Lloh6:
	ldr	x9, [x9, _RR_Rotate_270@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	ccmp	x8, x9, #4, ne
	mov	w8, #4
	csel	x9, x8, xzr, eq
	csel	x8, xzr, x8, eq
	ldr	w8, [x0, x8]
	str	w8, [sp, #12]                   ; 4-byte Folded Spill
	ldr	w23, [x0, x9]
	mov	x0, x26
	bl	_XRRFreeCrtcInfo
	mov	x0, x25
	bl	_XRRFreeScreenResources
	ldr	x1, [x24, #16]
	cbz	x1, LBB0_12
LBB0_3:
	ldr	x8, [x24]
	cbz	x8, LBB0_12
; %bb.4:
	stp	xzr, xzr, [sp, #16]
	ldr	w0, [x24, #8]
Lloh8:
	adrp	x26, _XA_CARDINAL@GOTPAGE
Lloh9:
	ldr	x26, [x26, _XA_CARDINAL@GOTPAGEOFF]
	ldr	w2, [x26]
	add	x3, sp, #24
	bl	__glfwGetWindowPropertyX11
	mov	x25, x0
	ldr	w0, [x24, #8]
	ldr	x1, [x24]
	ldr	w2, [x26]
	add	x3, sp, #16
	bl	__glfwGetWindowPropertyX11
	cbz	x0, LBB0_8
; %bb.5:
	cmp	x25, #4
	b.lo	LBB0_8
; %bb.6:
	ldr	x8, [sp, #16]
	ldr	x8, [x8]
	cmp	x8, x25, lsr #2
	b.hs	LBB0_8
; %bb.7:
	ldr	x9, [sp, #24]
	add	x8, x9, x8, lsl #5
	ldr	w9, [x8]
	ldr	w10, [x8, #8]
	ldr	w11, [x8, #16]
	subs	w12, w28, w9
	csel	w12, w12, wzr, lt
	csel	w28, w28, w9, gt
	subs	w13, w27, w10
	ldr	w8, [x8, #24]
	csel	w13, w13, wzr, lt
	csel	w27, w27, w10, gt
	ldr	w14, [sp, #12]                  ; 4-byte Folded Reload
	add	w12, w12, w14
	add	w14, w12, w28
	sub	w15, w9, w28
	add	w15, w15, w11
	add	w9, w11, w9
	cmp	w14, w9
	csel	w9, w15, w12, gt
	str	w9, [sp, #12]                   ; 4-byte Folded Spill
	add	w9, w13, w23
	add	w11, w9, w27
	sub	w12, w10, w27
	add	w12, w12, w8
	add	w8, w8, w10
	cmp	w11, w8
	csel	w23, w12, w9, gt
LBB0_8:
	ldr	x0, [sp, #24]
	cbz	x0, LBB0_10
; %bb.9:
	bl	_XFree
LBB0_10:
	ldr	x0, [sp, #16]
	cbz	x0, LBB0_12
; %bb.11:
	bl	_XFree
LBB0_12:
	cbz	x22, LBB0_14
; %bb.13:
	str	w28, [x22]
LBB0_14:
	cbz	x21, LBB0_16
; %bb.15:
	str	w27, [x21]
LBB0_16:
	cbz	x20, LBB0_18
; %bb.17:
	ldr	w8, [sp, #12]                   ; 4-byte Folded Reload
	str	w8, [x20]
LBB0_18:
	cbz	x19, LBB0_20
; %bb.19:
	str	w23, [x19]
LBB0_20:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	__glfw,48,3                     ; @_glfw
	.comm	_RR_Rotate_90,8,3               ; @RR_Rotate_90
	.comm	_RR_Rotate_270,8,3              ; @RR_Rotate_270
	.comm	_XA_CARDINAL,4,2                ; @XA_CARDINAL
.subsections_via_symbols
