	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__glfwPlatformSetWindowSize     ## -- Begin function _glfwPlatformSetWindowSize
	.p2align	4, 0x90
__glfwPlatformSetWindowSize:            ## @_glfwPlatformSetWindowSize
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	8(%rdi), %rdi
	testq	%rdi, %rdi
	je	LBB0_4
## %bb.1:
	leaq	16(%rbx), %rsi
	callq	__glfwSetVideoMode
	movq	__glfw@GOTPCREL(%rip), %r14
	cmpl	$0, 8(%r14)
	je	LBB0_3
## %bb.2:
	cmpl	$0, 4(%r14)
	jne	LBB0_8
LBB0_3:
	movq	8(%rbx), %rdi
	leaq	-40(%rbp), %rsi
	callq	__glfwPlatformGetVideoMode
	movl	(%r14), %edi
	movl	(%rbx), %esi
	movl	-40(%rbp), %edx
	movl	-36(%rbp), %ecx
	jmp	LBB0_7
LBB0_4:
	movl	%edx, %r14d
	movl	%esi, %r15d
	cmpl	$0, 4(%rbx)
	jne	LBB0_6
## %bb.5:
	xorl	%eax, %eax
	callq	_XAllocSizeHints
	movq	_PMinSize@GOTPCREL(%rip), %rcx
	movq	_PMaxSize@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	movq	%rax, %r12
	orl	%edx, (%rax)
	movl	%r15d, 8(%rax)
	movl	%r15d, 4(%rax)
	movl	%r14d, 16(%rax)
	movl	%r14d, 12(%rax)
	movq	__glfw@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%rbx), %esi
	movq	%r12, %rdx
	callq	_XSetWMNormalHints
	movq	%r12, %rdi
	callq	_XFree
LBB0_6:
	movq	__glfw@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	(%rbx), %esi
	movl	%r15d, %edx
	movl	%r14d, %ecx
LBB0_7:
	callq	_XResizeWindow
LBB0_8:
	movq	__glfw@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_XFlush
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	__glfw,12,2                     ## @_glfw
	.comm	_PMinSize,4,2                   ## @PMinSize
	.comm	_PMaxSize,4,2                   ## @PMaxSize
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__glfwPlatformSetWindowSize     ; -- Begin function _glfwPlatformSetWindowSize
	.p2align	2
__glfwPlatformSetWindowSize:            ; @_glfwPlatformSetWindowSize
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
	ldr	x0, [x0, #8]
Lloh0:
	adrp	x23, __glfw@GOTPAGE
Lloh1:
	ldr	x23, [x23, __glfw@GOTPAGEOFF]
	cbz	x0, LBB0_3
; %bb.1:
	add	x1, x19, #16
	bl	__glfwSetVideoMode
	ldp	w9, w8, [x23, #4]
	cmp	w8, #0
	ccmp	w9, #0, #4, ne
	b.ne	LBB0_7
; %bb.2:
	ldr	x0, [x19, #8]
	add	x1, sp, #8
	bl	__glfwPlatformGetVideoMode
	ldr	w0, [x23]
	ldr	w1, [x19]
	ldp	w2, w3, [sp, #8]
	b	LBB0_6
LBB0_3:
	mov	x20, x2
	mov	x21, x1
	ldr	w8, [x19, #4]
	cbnz	w8, LBB0_5
; %bb.4:
	bl	_XAllocSizeHints
	mov	x22, x0
Lloh2:
	adrp	x8, _PMinSize@GOTPAGE
Lloh3:
	ldr	x8, [x8, _PMinSize@GOTPAGEOFF]
Lloh4:
	adrp	x9, _PMaxSize@GOTPAGE
Lloh5:
	ldr	x9, [x9, _PMaxSize@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
Lloh7:
	ldr	w9, [x9]
	orr	w8, w9, w8
	ldr	w9, [x0]
	orr	w8, w8, w9
	stp	w8, w21, [x0]
	stp	w20, w20, [x0, #12]
	str	w21, [x0, #8]
	ldr	w0, [x23]
	ldr	w1, [x19]
	mov	x2, x22
	bl	_XSetWMNormalHints
	mov	x0, x22
	bl	_XFree
LBB0_5:
	ldr	w0, [x23]
	ldr	w1, [x19]
	mov	x2, x21
	mov	x3, x20
LBB0_6:
	bl	_XResizeWindow
LBB0_7:
	ldr	w0, [x23]
	bl	_XFlush
	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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	__glfw,12,2                     ; @_glfw
	.comm	_PMinSize,4,2                   ; @PMinSize
	.comm	_PMaxSize,4,2                   ; @PMaxSize
.subsections_via_symbols
