	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__glfwPlatformGetClipboardString ## -- Begin function _glfwPlatformGetClipboardString
	.p2align	4, 0x90
__glfwPlatformGetClipboardString:       ## @_glfwPlatformGetClipboardString
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	__glfw@GOTPCREL(%rip), %r15
	cmpl	$0, 16(%r15)
	je	LBB0_10
## %bb.1:
	movq	_O_CLOEXEC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-56(%rbp), %rdi
	callq	_pipe2
	testl	%eax, %eax
	js	LBB0_11
## %bb.2:
	movl	16(%r15), %edi
	movl	-52(%rbp), %edx
	leaq	L_.str.2(%rip), %rsi
	callq	_wl_data_offer_receive
	movl	-52(%rbp), %edi
	callq	_close
	movl	$-1, %edi
	callq	_handleEvents
	movq	_errno@GOTPCREL(%rip), %r14
	movq	_EINTR@GOTPCREL(%rip), %r12
	xorl	%r13d, %r13d
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
	leaq	4096(%r13), %rbx
	.p2align	4, 0x90
LBB0_4:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpq	(%r15), %rbx
	jbe	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=2
	xorl	%eax, %eax
	callq	_growClipboardString
	testl	%eax, %eax
	je	LBB0_17
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=2
	movl	-56(%rbp), %edi
	movq	8(%r15), %rsi
	addq	%r13, %rsi
	movl	$4096, %edx                     ## imm = 0x1000
	callq	_read
	cmpl	$-1, %eax
	jne	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=2
	movq	(%r14), %rax
	cmpq	(%r12), %rax
	je	LBB0_4
	jmp	LBB0_16
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	testl	%eax, %eax
	je	LBB0_13
## %bb.9:                               ##   in Loop: Header=BB0_3 Depth=1
	cltq
	addq	%rax, %r13
	jmp	LBB0_3
LBB0_10:
	movq	_GLFW_FORMAT_UNAVAILABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	jmp	LBB0_12
LBB0_11:
	movq	_GLFW_PLATFORM_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
LBB0_12:
	callq	__glfwInputError
	jmp	LBB0_18
LBB0_13:
	movl	-56(%rbp), %edi
	callq	_close
	leaq	1(%r13), %rax
	cmpq	(%r15), %rax
	jbe	LBB0_15
## %bb.14:
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_growClipboardString
	testl	%eax, %eax
	je	LBB0_19
LBB0_15:
	movq	8(%r15), %rax
	movb	$0, (%rax,%r13)
	movq	8(%r15), %r14
	jmp	LBB0_19
LBB0_16:
	movq	_GLFW_PLATFORM_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.3(%rip), %rsi
	callq	__glfwInputError
LBB0_17:
	movl	-56(%rbp), %edi
	callq	_close
LBB0_18:
	xorl	%r14d, %r14d
LBB0_19:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_21
## %bb.20:
	movq	%r14, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_21:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	__glfw,24,3                     ## @_glfw
	.comm	_GLFW_FORMAT_UNAVAILABLE,4,2    ## @GLFW_FORMAT_UNAVAILABLE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"No clipboard data has been sent yet"

	.comm	_O_CLOEXEC,4,2                  ## @O_CLOEXEC
	.comm	_GLFW_PLATFORM_ERROR,4,2        ## @GLFW_PLATFORM_ERROR
L_.str.1:                               ## @.str.1
	.asciz	"Wayland: Impossible to create clipboard pipe fds"

L_.str.2:                               ## @.str.2
	.asciz	"text/plain;charset=utf-8"

	.comm	_errno,8,3                      ## @errno
	.comm	_EINTR,8,3                      ## @EINTR
L_.str.3:                               ## @.str.3
	.asciz	"Wayland: Impossible to read from clipboard fd"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__glfwPlatformGetClipboardString ; -- Begin function _glfwPlatformGetClipboardString
	.p2align	2
__glfwPlatformGetClipboardString:       ; @_glfwPlatformGetClipboardString
	.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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #8]
Lloh3:
	adrp	x19, __glfw@GOTPAGE
Lloh4:
	ldr	x19, [x19, __glfw@GOTPAGEOFF]
	ldr	w8, [x19, #16]
	cbz	w8, LBB0_10
; %bb.1:
Lloh5:
	adrp	x8, _O_CLOEXEC@GOTPAGE
Lloh6:
	ldr	x8, [x8, _O_CLOEXEC@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x0, sp
	bl	_pipe2
	tbnz	w0, #31, LBB0_11
; %bb.2:
	ldr	w0, [x19, #16]
	ldr	w2, [sp, #4]
Lloh8:
	adrp	x1, l_.str.2@PAGE
Lloh9:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_wl_data_offer_receive
	ldr	w0, [sp, #4]
	bl	_close
	mov	w0, #-1
	bl	_handleEvents
	mov	x20, #0
Lloh10:
	adrp	x21, _errno@GOTPAGE
Lloh11:
	ldr	x21, [x21, _errno@GOTPAGEOFF]
Lloh12:
	adrp	x22, _EINTR@GOTPAGE
Lloh13:
	ldr	x22, [x22, _EINTR@GOTPAGEOFF]
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_4 Depth 2
	add	x23, x20, #1, lsl #12           ; =4096
LBB0_4:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x8, [x19]
	cmp	x23, x8
	b.ls	LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=2
	bl	_growClipboardString
	cbz	w0, LBB0_17
LBB0_6:                                 ;   in Loop: Header=BB0_4 Depth=2
	ldr	w0, [sp]
	ldr	x8, [x19, #8]
	add	x1, x8, x20
	mov	w2, #4096
	bl	_read
	cmn	w0, #1
	b.ne	LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=2
	ldr	x8, [x21]
	ldr	x9, [x22]
	cmp	x8, x9
	b.eq	LBB0_4
	b	LBB0_16
LBB0_8:                                 ;   in Loop: Header=BB0_3 Depth=1
	cbz	w0, LBB0_13
; %bb.9:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x20, x20, w0, sxtw
	b	LBB0_3
LBB0_10:
Lloh14:
	adrp	x8, _GLFW_FORMAT_UNAVAILABLE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _GLFW_FORMAT_UNAVAILABLE@GOTPAGEOFF]
Lloh16:
	ldr	w0, [x8]
Lloh17:
	adrp	x1, l_.str@PAGE
Lloh18:
	add	x1, x1, l_.str@PAGEOFF
	b	LBB0_12
LBB0_11:
Lloh19:
	adrp	x8, _GLFW_PLATFORM_ERROR@GOTPAGE
Lloh20:
	ldr	x8, [x8, _GLFW_PLATFORM_ERROR@GOTPAGEOFF]
Lloh21:
	ldr	w0, [x8]
Lloh22:
	adrp	x1, l_.str.1@PAGE
Lloh23:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_12:
	bl	__glfwInputError
	b	LBB0_18
LBB0_13:
	ldr	w0, [sp]
	bl	_close
	add	x8, x20, #1
	ldr	x9, [x19]
	cmp	x8, x9
	b.ls	LBB0_15
; %bb.14:
	bl	_growClipboardString
	cbz	w0, LBB0_18
LBB0_15:
	ldr	x8, [x19, #8]
	strb	wzr, [x8, x20]
	ldr	x0, [x19, #8]
	b	LBB0_19
LBB0_16:
Lloh24:
	adrp	x8, _GLFW_PLATFORM_ERROR@GOTPAGE
Lloh25:
	ldr	x8, [x8, _GLFW_PLATFORM_ERROR@GOTPAGEOFF]
Lloh26:
	ldr	w0, [x8]
Lloh27:
	adrp	x1, l_.str.3@PAGE
Lloh28:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	__glfwInputError
LBB0_17:
	ldr	w0, [sp]
	bl	_close
LBB0_18:
	mov	x0, #0
LBB0_19:
	ldr	x8, [sp, #8]
Lloh29:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh30:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh31:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_21
; %bb.20:
	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
LBB0_21:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.comm	__glfw,24,3                     ; @_glfw
	.comm	_GLFW_FORMAT_UNAVAILABLE,4,2    ; @GLFW_FORMAT_UNAVAILABLE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"No clipboard data has been sent yet"

	.comm	_O_CLOEXEC,4,2                  ; @O_CLOEXEC
	.comm	_GLFW_PLATFORM_ERROR,4,2        ; @GLFW_PLATFORM_ERROR
l_.str.1:                               ; @.str.1
	.asciz	"Wayland: Impossible to create clipboard pipe fds"

l_.str.2:                               ; @.str.2
	.asciz	"text/plain;charset=utf-8"

	.comm	_errno,8,3                      ; @errno
	.comm	_EINTR,8,3                      ; @EINTR
l_.str.3:                               ; @.str.3
	.asciz	"Wayland: Impossible to read from clipboard fd"

.subsections_via_symbols
