	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__glfwPlatformSetClipboardString ## -- Begin function _glfwPlatformSetClipboardString
	.p2align	4, 0x90
__glfwPlatformSetClipboardString:       ## @_glfwPlatformSetClipboardString
	.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
	movq	%rdi, %rbx
	movq	__glfw@GOTPCREL(%rip), %r14
	movq	8(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.1:
	callq	_wl_data_source_destroy
	movq	$0, 8(%r14)
LBB0_2:
	movq	24(%r14), %rdi
	testq	%rdi, %rdi
	je	LBB0_4
## %bb.3:
	callq	_free
	movq	$0, 24(%r14)
LBB0_4:
	movq	%rbx, %rdi
	callq	_strdup
	movq	%rax, 24(%r14)
	testq	%rax, %rax
	je	LBB0_7
## %bb.5:
	movq	%rbx, %rdi
	callq	_strlen
	movl	%eax, 36(%r14)
	movl	32(%r14), %edi
	callq	_wl_data_device_manager_create_data_source
	movq	%rax, 8(%r14)
	testq	%rax, %rax
	je	LBB0_8
## %bb.6:
	movq	_dataSourceListener@GOTPCREL(%rip), %rsi
	movq	%rax, %rdi
	xorl	%edx, %edx
	callq	_wl_data_source_add_listener
	movq	8(%r14), %rdi
	leaq	L_.str.2(%rip), %rsi
	callq	_wl_data_source_offer
	movl	16(%r14), %edi
	movq	8(%r14), %rsi
	movl	(%r14), %edx
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_wl_data_device_set_selection   ## TAILCALL
LBB0_7:
	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_8:
	movq	_GLFW_PLATFORM_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	__glfwInputError
	movq	24(%r14), %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_free                           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	__glfw,40,3                     ## @_glfw
	.comm	_GLFW_PLATFORM_ERROR,4,2        ## @GLFW_PLATFORM_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Wayland: Impossible to allocate clipboard string"

L_.str.1:                               ## @.str.1
	.asciz	"Wayland: Impossible to create clipboard source"

	.comm	_dataSourceListener,4,2         ## @dataSourceListener
L_.str.2:                               ## @.str.2
	.asciz	"text/plain;charset=utf-8"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__glfwPlatformSetClipboardString ; -- Begin function _glfwPlatformSetClipboardString
	.p2align	2
__glfwPlatformSetClipboardString:       ; @_glfwPlatformSetClipboardString
	.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	x20, __glfw@GOTPAGE
Lloh1:
	ldr	x20, [x20, __glfw@GOTPAGEOFF]
	ldr	x0, [x20, #8]
	cbz	x0, LBB0_2
; %bb.1:
	bl	_wl_data_source_destroy
	str	xzr, [x20, #8]
LBB0_2:
	ldr	x0, [x20, #24]
	cbz	x0, LBB0_4
; %bb.3:
	bl	_free
	str	xzr, [x20, #24]
LBB0_4:
	mov	x0, x19
	bl	_strdup
	str	x0, [x20, #24]
	cbz	x0, LBB0_7
; %bb.5:
	mov	x0, x19
	bl	_strlen
	str	w0, [x20, #36]
	ldr	w0, [x20, #32]
	bl	_wl_data_device_manager_create_data_source
	str	x0, [x20, #8]
	cbz	x0, LBB0_8
; %bb.6:
Lloh2:
	adrp	x1, _dataSourceListener@GOTPAGE
Lloh3:
	ldr	x1, [x1, _dataSourceListener@GOTPAGEOFF]
	mov	x2, #0
	bl	_wl_data_source_add_listener
	ldr	x0, [x20, #8]
Lloh4:
	adrp	x1, l_.str.2@PAGE
Lloh5:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_wl_data_source_offer
	ldr	w0, [x20, #16]
	ldr	x1, [x20, #8]
	ldr	w2, [x20]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_wl_data_device_set_selection
LBB0_7:
Lloh6:
	adrp	x8, _GLFW_PLATFORM_ERROR@GOTPAGE
Lloh7:
	ldr	x8, [x8, _GLFW_PLATFORM_ERROR@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	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_8:
Lloh11:
	adrp	x8, _GLFW_PLATFORM_ERROR@GOTPAGE
Lloh12:
	ldr	x8, [x8, _GLFW_PLATFORM_ERROR@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
Lloh14:
	adrp	x1, l_.str.1@PAGE
Lloh15:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	__glfwInputError
	ldr	x0, [x20, #24]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_free
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	__glfw,40,3                     ; @_glfw
	.comm	_GLFW_PLATFORM_ERROR,4,2        ; @GLFW_PLATFORM_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Wayland: Impossible to allocate clipboard string"

l_.str.1:                               ; @.str.1
	.asciz	"Wayland: Impossible to create clipboard source"

	.comm	_dataSourceListener,4,2         ; @dataSourceListener
l_.str.2:                               ; @.str.2
	.asciz	"text/plain;charset=utf-8"

.subsections_via_symbols
