	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	__glfw@GOTPCREL(%rip), %r13
	movl	24(%r13), %r12d
	movl	%r12d, -60(%rbp)
	movl	20(%r13), %eax
	movl	%eax, -56(%rbp)
	movq	_XA_STRING@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -52(%rbp)
	movl	8(%r13), %edi
	movl	16(%r13), %esi
	callq	_XGetSelectionOwner
	movl	%eax, %edi
	callq	_findWindowByHandle
	testq	%rax, %rax
	jne	LBB0_15
## %bb.1:
	movq	%rbx, -88(%rbp)                 ## 8-byte Spill
	movq	(%r13), %rdi
	callq	_free
	movq	$0, (%r13)
	xorl	%r15d, %r15d
	movq	_SelectionNotify@GOTPCREL(%rip), %r14
	leaq	-80(%rbp), %rbx
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%r15
	cmpq	$3, %r15
	jae	LBB0_7
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	-60(%rbp,%r15,4), %r12d
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_4 Depth 2
	movl	16(%r13), %esi
	movl	8(%r13), %edi
	movl	12(%r13), %ecx
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %r8d
	movq	_CurrentTime@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movl	%r12d, %edx
	callq	_XConvertSelection
	.p2align	4, 0x90
LBB0_4:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	8(%r13), %edi
	movl	(%r14), %esi
	movq	%rbx, %rdx
	callq	_XCheckTypedEvent
	testl	%eax, %eax
	jne	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_4 Depth=2
	xorl	%edi, %edi
	callq	_selectDisplayConnection
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	-80(%rbp), %rsi
	movq	_None@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rsi
	je	LBB0_6
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	-72(%rbp), %edi
	movl	-68(%rbp), %edx
	leaq	-96(%rbp), %rcx
	callq	__glfwGetWindowProperty
	movq	-96(%rbp), %r12
	testq	%rax, %rax
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	%r12, %rdi
	callq	_strdup
	movq	%rax, (%r13)
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	%r12, %rdi
	callq	_XFree
	movl	8(%r13), %edi
	movl	-72(%rbp), %esi
	movq	-80(%rbp), %rdx
	callq	_XDeleteProperty
	movq	(%r13), %rax
	testq	%rax, %rax
	jne	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_2 Depth=1
	incq	%r15
	cmpq	$3, %r15
	jb	LBB0_8
LBB0_13:
	testq	%rax, %rax
	je	LBB0_14
LBB0_15:
	movq	(%r13), %rax
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_17
## %bb.16:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	(%r13), %rax
	testq	%rax, %rax
	jne	LBB0_15
LBB0_14:
	movq	_GLFW_FORMAT_UNAVAILABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	__glfwInputError
	jmp	LBB0_15
LBB0_17:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	__glfw,32,3                     ## @_glfw
	.comm	_XA_STRING,4,2                  ## @XA_STRING
	.comm	_CurrentTime,4,2                ## @CurrentTime
	.comm	_SelectionNotify,4,2            ## @SelectionNotify
	.comm	_None,8,3                       ## @None
	.comm	_GLFW_FORMAT_UNAVAILABLE,4,2    ## @GLFW_FORMAT_UNAVAILABLE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"X11: Failed to convert clipboard to string"

.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, #128
	.cfi_def_cfa_offset 128
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #40]
Lloh3:
	adrp	x21, __glfw@GOTPAGE
Lloh4:
	ldr	x21, [x21, __glfw@GOTPAGEOFF]
	ldp	w8, w20, [x21, #20]
	ldr	w1, [x21, #16]
	stp	w20, w8, [sp, #28]
Lloh5:
	adrp	x8, _XA_STRING@GOTPAGE
Lloh6:
	ldr	x8, [x8, _XA_STRING@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	str	w8, [sp, #36]
	ldr	w0, [x21, #8]
	bl	_XGetSelectionOwner
	bl	_findWindowByHandle
	cbnz	x0, LBB0_13
; %bb.1:
	ldr	x0, [x21]
	bl	_free
	mov	x22, #0
Lloh8:
	adrp	x23, _CurrentTime@GOTPAGE
Lloh9:
	ldr	x23, [x23, _CurrentTime@GOTPAGEOFF]
	str	xzr, [x21]
Lloh10:
	adrp	x24, _SelectionNotify@GOTPAGE
Lloh11:
	ldr	x24, [x24, _SelectionNotify@GOTPAGEOFF]
	add	x25, sp, #28
Lloh12:
	adrp	x26, _None@GOTPAGE
Lloh13:
	ldr	x26, [x26, _None@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x22, x22, #1
	cmp	x22, #3
	b.hs	LBB0_15
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w20, [x25, x22, lsl #2]
LBB0_4:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_5 Depth 2
	ldp	w3, w1, [x21, #12]
	ldr	w0, [x21, #8]
	ldr	w4, [x19]
	ldr	w5, [x23]
	mov	x2, x20
	bl	_XConvertSelection
LBB0_5:                                 ;   Parent Loop BB0_4 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w0, [x21, #8]
	ldr	w1, [x24]
	mov	x2, sp
	bl	_XCheckTypedEvent
	cbnz	w0, LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=2
	mov	x0, #0
	bl	_selectDisplayConnection
	b	LBB0_5
LBB0_7:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	x1, [sp]
	ldr	x8, [x26]
	cmp	x1, x8
	b.eq	LBB0_2
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	ldp	w0, w2, [sp, #8]
	add	x3, sp, #16
	bl	__glfwGetWindowProperty
	ldr	x20, [sp, #16]
	cbz	x0, LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x20
	bl	_strdup
	str	x0, [x21]
LBB0_10:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x20
	bl	_XFree
	ldr	w0, [x21, #8]
	ldr	w1, [sp, #8]
	ldr	x2, [sp]
	bl	_XDeleteProperty
	ldr	x8, [x21]
	cbnz	x8, LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_4 Depth=1
	add	x22, x22, #1
	cmp	x22, #3
	b.lo	LBB0_3
LBB0_12:
	cbz	x8, LBB0_16
LBB0_13:
	ldr	x0, [x21]
	ldr	x8, [sp, #40]
Lloh14:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh15:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh16:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_17
; %bb.14:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_15:
	ldr	x8, [x21]
	cbnz	x8, LBB0_13
LBB0_16:
Lloh17:
	adrp	x8, _GLFW_FORMAT_UNAVAILABLE@GOTPAGE
Lloh18:
	ldr	x8, [x8, _GLFW_FORMAT_UNAVAILABLE@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
Lloh20:
	adrp	x1, l_.str@PAGE
Lloh21:
	add	x1, x1, l_.str@PAGEOFF
	bl	__glfwInputError
	b	LBB0_13
LBB0_17:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	__glfw,32,3                     ; @_glfw
	.comm	_XA_STRING,4,2                  ; @XA_STRING
	.comm	_CurrentTime,4,2                ; @CurrentTime
	.comm	_SelectionNotify,4,2            ; @SelectionNotify
	.comm	_None,8,3                       ; @None
	.comm	_GLFW_FORMAT_UNAVAILABLE,4,2    ; @GLFW_FORMAT_UNAVAILABLE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"X11: Failed to convert clipboard to string"

.subsections_via_symbols
