	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function createShellSurface
_createShellSurface:                    ## @createShellSurface
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	__glfw@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	24(%rbx), %esi
	callq	_wl_shell_get_shell_surface
	movl	%eax, (%rbx)
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	_shellSurfaceListener@GOTPCREL(%rip), %rsi
	movl	%eax, %edi
	movq	%rbx, %rdx
	callq	_wl_shell_surface_add_listener
	movq	16(%rbx), %rsi
	testq	%rsi, %rsi
	je	LBB0_4
## %bb.3:
	movl	(%rbx), %edi
	callq	_wl_shell_surface_set_title
LBB0_4:
	movq	32(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movl	(%rbx), %edi
	movq	_WL_SHELL_SURFACE_FULLSCREEN_METHOD_DEFAULT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movl	(%rax), %ecx
	xorl	%edx, %edx
	callq	_wl_shell_surface_set_fullscreen
	jmp	LBB0_9
LBB0_1:
	movq	_GLFW_FALSE@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_6:
	cmpq	$0, 8(%rbx)
	movl	(%rbx), %edi
	je	LBB0_8
## %bb.7:
	xorl	%esi, %esi
	callq	_wl_shell_surface_set_maximized
	jmp	LBB0_9
LBB0_8:
	callq	_wl_shell_surface_set_toplevel
LBB0_9:
	movq	_GLFW_TRUE@GOTPCREL(%rip), %rax
LBB0_10:
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	__glfw,4,2                      ## @_glfw
	.comm	_GLFW_FALSE,4,2                 ## @GLFW_FALSE
	.comm	_shellSurfaceListener,4,2       ## @shellSurfaceListener
	.comm	_WL_SHELL_SURFACE_FULLSCREEN_METHOD_DEFAULT,4,2 ## @WL_SHELL_SURFACE_FULLSCREEN_METHOD_DEFAULT
	.comm	_GLFW_TRUE,4,2                  ## @GLFW_TRUE
	.no_dead_strip	_createShellSurface
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function createShellSurface
_createShellSurface:                    ; @createShellSurface
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.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	x8, __glfw@GOTPAGE
Lloh1:
	ldr	x8, [x8, __glfw@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	ldr	w1, [x19, #24]
	bl	_wl_shell_get_shell_surface
	str	w0, [x19]
	cbz	w0, LBB0_5
; %bb.1:
Lloh3:
	adrp	x1, _shellSurfaceListener@GOTPAGE
Lloh4:
	ldr	x1, [x1, _shellSurfaceListener@GOTPAGEOFF]
	mov	x2, x19
	bl	_wl_shell_surface_add_listener
	ldr	x1, [x19, #16]
	cbz	x1, LBB0_3
; %bb.2:
	ldr	w0, [x19]
	bl	_wl_shell_surface_set_title
LBB0_3:
	ldr	x8, [x19, #32]
	cbz	x8, LBB0_6
; %bb.4:
	ldr	w0, [x19]
Lloh5:
	adrp	x9, _WL_SHELL_SURFACE_FULLSCREEN_METHOD_DEFAULT@GOTPAGE
Lloh6:
	ldr	x9, [x9, _WL_SHELL_SURFACE_FULLSCREEN_METHOD_DEFAULT@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x9]
	ldr	w3, [x8]
	mov	w2, #0
	bl	_wl_shell_surface_set_fullscreen
	b	LBB0_9
LBB0_5:
Lloh8:
	adrp	x8, _GLFW_FALSE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _GLFW_FALSE@GOTPAGEOFF]
	b	LBB0_10
LBB0_6:
	ldr	x8, [x19, #8]
	ldr	w0, [x19]
	cbz	x8, LBB0_8
; %bb.7:
	mov	x1, #0
	bl	_wl_shell_surface_set_maximized
	b	LBB0_9
LBB0_8:
	bl	_wl_shell_surface_set_toplevel
LBB0_9:
Lloh10:
	adrp	x8, _GLFW_TRUE@GOTPAGE
Lloh11:
	ldr	x8, [x8, _GLFW_TRUE@GOTPAGEOFF]
LBB0_10:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	__glfw,4,2                      ; @_glfw
	.comm	_GLFW_FALSE,4,2                 ; @GLFW_FALSE
	.comm	_shellSurfaceListener,4,2       ; @shellSurfaceListener
	.comm	_WL_SHELL_SURFACE_FULLSCREEN_METHOD_DEFAULT,4,2 ; @WL_SHELL_SURFACE_FULLSCREEN_METHOD_DEFAULT
	.comm	_GLFW_TRUE,4,2                  ; @GLFW_TRUE
	.no_dead_strip	_createShellSurface
.subsections_via_symbols
