	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__glfwAddOutputWayland          ## -- Begin function _glfwAddOutputWayland
	.p2align	4, 0x90
__glfwAddOutputWayland:                 ## @_glfwAddOutputWayland
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	cmpl	$1, %esi
	jg	LBB0_1
## %bb.3:
	movq	_GLFW_PLATFORM_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	__glfwInputError                ## TAILCALL
LBB0_1:
	movl	%edi, %r14d
	xorl	%edi, %edi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	__glfwAllocMonitor
	movq	%rax, %rbx
	movq	__glfw@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_wl_output_interface@GOTPCREL(%rip), %rdx
	movl	%r14d, %esi
	movl	$2, %ecx
	callq	_wl_registry_bind
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	movl	$1, (%rbx)
	movq	%rax, 8(%rbx)
	movl	%r14d, 4(%rbx)
	movq	_outputListener@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	movq	%rbx, %rdx
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_wl_output_add_listener         ## TAILCALL
LBB0_4:
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	__glfwFreeMonitor               ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_GLFW_PLATFORM_ERROR,4,2        ## @GLFW_PLATFORM_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Wayland: Unsupported output interface version"

	.comm	__glfw,4,2                      ## @_glfw
	.comm	_wl_output_interface,4,2        ## @wl_output_interface
	.comm	_outputListener,4,2             ## @outputListener
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__glfwAddOutputWayland          ; -- Begin function _glfwAddOutputWayland
	.p2align	2
__glfwAddOutputWayland:                 ; @_glfwAddOutputWayland
	.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
	cmp	w1, #1
	b.gt	LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _GLFW_PLATFORM_ERROR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GLFW_PLATFORM_ERROR@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	__glfwInputError
LBB0_2:
	mov	x19, x0
	mov	x0, #0
	mov	w1, #0
	mov	w2, #0
	bl	__glfwAllocMonitor
	mov	x20, x0
Lloh5:
	adrp	x8, __glfw@GOTPAGE
Lloh6:
	ldr	x8, [x8, __glfw@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x8]
Lloh8:
	adrp	x2, _wl_output_interface@GOTPAGE
Lloh9:
	ldr	x2, [x2, _wl_output_interface@GOTPAGEOFF]
	mov	x1, x19
	mov	w3, #2
	bl	_wl_registry_bind
	cbz	x0, LBB0_4
; %bb.3:
	mov	w8, #1
	str	x0, [x20, #8]
	stp	w8, w19, [x20]
Lloh10:
	adrp	x1, _outputListener@GOTPAGE
Lloh11:
	ldr	x1, [x1, _outputListener@GOTPAGEOFF]
	mov	x2, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_wl_output_add_listener
LBB0_4:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	__glfwFreeMonitor
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_GLFW_PLATFORM_ERROR,4,2        ; @GLFW_PLATFORM_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Wayland: Unsupported output interface version"

	.comm	__glfw,4,2                      ; @_glfw
	.comm	_wl_output_interface,4,2        ; @wl_output_interface
	.comm	_outputListener,4,2             ; @outputListener
.subsections_via_symbols
