	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function createXdgSurface
_createXdgSurface:                      ## @createXdgSurface
	.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
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	__glfw@GOTPCREL(%rip), %r14
	movl	4(%r14), %edi
	movl	32(%rbx), %esi
	callq	_xdg_wm_base_get_xdg_surface
	movl	%eax, 40(%rbx)
	testl	%eax, %eax
	je	LBB0_1
## %bb.3:
	movq	_xdgSurfaceListener@GOTPCREL(%rip), %rsi
	movl	%eax, %edi
	movq	%rbx, %rdx
	callq	_xdg_surface_add_listener
	movl	40(%rbx), %edi
	callq	_xdg_surface_get_toplevel
	movl	%eax, 36(%rbx)
	testl	%eax, %eax
	je	LBB0_4
## %bb.5:
	movq	_xdgToplevelListener@GOTPCREL(%rip), %rsi
	movl	%eax, %edi
	movq	%rbx, %rdx
	callq	_xdg_toplevel_add_listener
	movq	56(%rbx), %rsi
	testq	%rsi, %rsi
	je	LBB0_7
## %bb.6:
	movl	36(%rbx), %edi
	callq	_xdg_toplevel_set_title
LBB0_7:
	movq	(%rbx), %rsi
	movq	_GLFW_DONT_CARE@GOTPCREL(%rip), %r15
	movq	(%r15), %rax
	cmpq	%rax, %rsi
	jne	LBB0_9
## %bb.8:
	movq	%rsi, %rax
	jmp	LBB0_11
LBB0_1:
	movq	_GLFW_PLATFORM_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_2
LBB0_4:
	movq	_GLFW_PLATFORM_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
LBB0_2:
	callq	__glfwInputError
	movq	_GLFW_FALSE@GOTPCREL(%rip), %rax
	jmp	LBB0_20
LBB0_9:
	movq	8(%rbx), %rdx
	cmpq	%rax, %rdx
	je	LBB0_11
## %bb.10:
	movl	36(%rbx), %edi
	callq	_xdg_toplevel_set_min_size
	movq	(%r15), %rax
LBB0_11:
	movq	16(%rbx), %rsi
	cmpq	%rax, %rsi
	je	LBB0_14
## %bb.12:
	movq	24(%rbx), %rdx
	cmpq	%rax, %rdx
	je	LBB0_14
## %bb.13:
	movl	36(%rbx), %edi
	callq	_xdg_toplevel_set_max_size
LBB0_14:
	movq	64(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_16
## %bb.15:
	movl	36(%rbx), %edi
	movl	(%rax), %esi
	callq	_xdg_toplevel_set_fullscreen
	movq	_GLFW_TRUE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_setIdleInhibitor
	jmp	LBB0_19
LBB0_16:
	cmpq	$0, 48(%rbx)
	je	LBB0_18
## %bb.17:
	movl	36(%rbx), %edi
	callq	_xdg_toplevel_set_maximized
LBB0_18:
	movq	_GLFW_FALSE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_setIdleInhibitor
	movq	%rbx, %rdi
	callq	_setXdgDecorations
LBB0_19:
	movl	32(%rbx), %edi
	callq	_wl_surface_commit
	movl	(%r14), %edi
	callq	_wl_display_roundtrip
	movq	_GLFW_TRUE@GOTPCREL(%rip), %rax
LBB0_20:
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	__glfw,8,2                      ## @_glfw
	.comm	_GLFW_PLATFORM_ERROR,4,2        ## @GLFW_PLATFORM_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Wayland: xdg-surface creation failed"

	.comm	_GLFW_FALSE,4,2                 ## @GLFW_FALSE
	.comm	_xdgSurfaceListener,4,2         ## @xdgSurfaceListener
L_.str.1:                               ## @.str.1
	.asciz	"Wayland: xdg-toplevel creation failed"

	.comm	_xdgToplevelListener,4,2        ## @xdgToplevelListener
	.comm	_GLFW_DONT_CARE,8,3             ## @GLFW_DONT_CARE
	.comm	_GLFW_TRUE,4,2                  ## @GLFW_TRUE
	.no_dead_strip	_createXdgSurface
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function createXdgSurface
_createXdgSurface:                      ; @createXdgSurface
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x0
Lloh0:
	adrp	x20, __glfw@GOTPAGE
Lloh1:
	ldr	x20, [x20, __glfw@GOTPAGEOFF]
	ldr	w0, [x20, #4]
	ldr	w1, [x19, #32]
	bl	_xdg_wm_base_get_xdg_surface
	str	w0, [x19, #40]
	cbz	w0, LBB0_6
; %bb.1:
Lloh2:
	adrp	x1, _xdgSurfaceListener@GOTPAGE
Lloh3:
	ldr	x1, [x1, _xdgSurfaceListener@GOTPAGEOFF]
	mov	x2, x19
	bl	_xdg_surface_add_listener
	ldr	w0, [x19, #40]
	bl	_xdg_surface_get_toplevel
	str	w0, [x19, #36]
	cbz	w0, LBB0_7
; %bb.2:
Lloh4:
	adrp	x1, _xdgToplevelListener@GOTPAGE
Lloh5:
	ldr	x1, [x1, _xdgToplevelListener@GOTPAGEOFF]
	mov	x2, x19
	bl	_xdg_toplevel_add_listener
	ldr	x1, [x19, #56]
	cbz	x1, LBB0_4
; %bb.3:
	ldr	w0, [x19, #36]
	bl	_xdg_toplevel_set_title
LBB0_4:
	ldr	x1, [x19]
Lloh6:
	adrp	x21, _GLFW_DONT_CARE@GOTPAGE
Lloh7:
	ldr	x21, [x21, _GLFW_DONT_CARE@GOTPAGEOFF]
	ldr	x8, [x21]
	cmp	x1, x8
	b.ne	LBB0_9
; %bb.5:
	mov	x8, x1
	b	LBB0_11
LBB0_6:
Lloh8:
	adrp	x8, _GLFW_PLATFORM_ERROR@GOTPAGE
Lloh9:
	ldr	x8, [x8, _GLFW_PLATFORM_ERROR@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
Lloh11:
	adrp	x1, l_.str@PAGE
Lloh12:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_8
LBB0_7:
Lloh13:
	adrp	x8, _GLFW_PLATFORM_ERROR@GOTPAGE
Lloh14:
	ldr	x8, [x8, _GLFW_PLATFORM_ERROR@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
Lloh16:
	adrp	x1, l_.str.1@PAGE
Lloh17:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_8:
	bl	__glfwInputError
Lloh18:
	adrp	x8, _GLFW_FALSE@GOTPAGE
Lloh19:
	ldr	x8, [x8, _GLFW_FALSE@GOTPAGEOFF]
	b	LBB0_20
LBB0_9:
	ldr	x2, [x19, #8]
	cmp	x2, x8
	b.eq	LBB0_11
; %bb.10:
	ldr	w0, [x19, #36]
	bl	_xdg_toplevel_set_min_size
	ldr	x8, [x21]
LBB0_11:
	ldr	x1, [x19, #16]
	cmp	x1, x8
	b.eq	LBB0_14
; %bb.12:
	ldr	x2, [x19, #24]
	cmp	x2, x8
	b.eq	LBB0_14
; %bb.13:
	ldr	w0, [x19, #36]
	bl	_xdg_toplevel_set_max_size
LBB0_14:
	ldr	x8, [x19, #64]
	cbz	x8, LBB0_16
; %bb.15:
	ldr	w0, [x19, #36]
	ldr	w1, [x8]
	bl	_xdg_toplevel_set_fullscreen
Lloh20:
	adrp	x8, _GLFW_TRUE@GOTPAGE
Lloh21:
	ldr	x8, [x8, _GLFW_TRUE@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_setIdleInhibitor
	b	LBB0_19
LBB0_16:
	ldr	x8, [x19, #48]
	cbz	x8, LBB0_18
; %bb.17:
	ldr	w0, [x19, #36]
	bl	_xdg_toplevel_set_maximized
LBB0_18:
Lloh23:
	adrp	x8, _GLFW_FALSE@GOTPAGE
Lloh24:
	ldr	x8, [x8, _GLFW_FALSE@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_setIdleInhibitor
	mov	x0, x19
	bl	_setXdgDecorations
LBB0_19:
	ldr	w0, [x19, #32]
	bl	_wl_surface_commit
	ldr	w0, [x20]
	bl	_wl_display_roundtrip
Lloh26:
	adrp	x8, _GLFW_TRUE@GOTPAGE
Lloh27:
	ldr	x8, [x8, _GLFW_TRUE@GOTPAGEOFF]
LBB0_20:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	__glfw,8,2                      ; @_glfw
	.comm	_GLFW_PLATFORM_ERROR,4,2        ; @GLFW_PLATFORM_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Wayland: xdg-surface creation failed"

	.comm	_GLFW_FALSE,4,2                 ; @GLFW_FALSE
	.comm	_xdgSurfaceListener,4,2         ; @xdgSurfaceListener
l_.str.1:                               ; @.str.1
	.asciz	"Wayland: xdg-toplevel creation failed"

	.comm	_xdgToplevelListener,4,2        ; @xdgToplevelListener
	.comm	_GLFW_DONT_CARE,8,3             ; @GLFW_DONT_CARE
	.comm	_GLFW_TRUE,4,2                  ; @GLFW_TRUE
	.no_dead_strip	_createXdgSurface
.subsections_via_symbols
