	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Sys_GetClipboardData           ## -- Begin function Sys_GetClipboardData
	.p2align	4, 0x90
_Sys_GetClipboardData:                  ## @Sys_GetClipboardData
	.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
	xorl	%ebx, %ebx
	xorl	%edi, %edi
	callq	_OpenClipboard
	testq	%rax, %rax
	je	LBB0_7
## %bb.1:
	movq	_CF_TEXT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_GetClipboardData
	testl	%eax, %eax
	je	LBB0_5
## %bb.2:
	movl	%eax, %r14d
	movl	%eax, %edi
	callq	_GlobalLock
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	movq	%rax, %r15
	movl	%r14d, %edi
	callq	_GlobalSize
	leaq	1(%rax), %rdi
	callq	_Z_Malloc
	movq	%rax, %rbx
	movl	%r14d, %edi
	callq	_GlobalSize
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movq	%rax, %rdx
	callq	_Q_strncpyz
	movl	%r14d, %edi
	callq	_GlobalUnlock
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	callq	_strtok
	jmp	LBB0_6
LBB0_5:
	xorl	%ebx, %ebx
LBB0_6:
	xorl	%eax, %eax
	callq	_CloseClipboard
LBB0_7:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CF_TEXT,4,2                    ## @CF_TEXT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"\n\r\b"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_Sys_GetClipboardData           ; -- Begin function Sys_GetClipboardData
	.p2align	2
_Sys_GetClipboardData:                  ; @Sys_GetClipboardData
	.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	x0, #0
	bl	_OpenClipboard
	cbz	x0, LBB0_4
; %bb.1:
Lloh0:
	adrp	x8, _CF_TEXT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CF_TEXT@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_GetClipboardData
	cbz	w0, LBB0_5
; %bb.2:
	mov	x20, x0
	bl	_GlobalLock
	cbz	x0, LBB0_5
; %bb.3:
	mov	x21, x0
	mov	x0, x20
	bl	_GlobalSize
	add	x0, x0, #1
	bl	_Z_Malloc
	mov	x19, x0
	mov	x0, x20
	bl	_GlobalSize
	mov	x2, x0
	mov	x0, x19
	mov	x1, x21
	bl	_Q_strncpyz
	mov	x0, x20
	bl	_GlobalUnlock
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_strtok
	b	LBB0_6
LBB0_4:
	mov	x19, #0
	b	LBB0_7
LBB0_5:
	mov	x19, #0
LBB0_6:
	bl	_CloseClipboard
LBB0_7:
	mov	x0, x19
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_CF_TEXT,4,2                    ; @CF_TEXT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"\n\r\b"

.subsections_via_symbols
