	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__glfwPlatformCreateCursor      ## -- Begin function _glfwPlatformCreateCursor
	.p2align	4, 0x90
__glfwPlatformCreateCursor:             ## @_glfwPlatformCreateCursor
	.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
	movl	%ecx, %r15d
	movl	%edx, -48(%rbp)                 ## 4-byte Spill
	movq	%rsi, %rbx
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	movl	(%rsi), %r14d
	shll	$2, %r14d
	movl	4(%rsi), %r13d
	imull	%r14d, %r13d
	movl	%r13d, %edi
	callq	_createAnonymousFile
	testl	%eax, %eax
	js	LBB0_6
## %bb.1:
	movl	%eax, %r12d
	movl	%r15d, -44(%rbp)                ## 4-byte Spill
	movq	_PROT_READ@GOTPCREL(%rip), %rax
	movq	_PROT_WRITE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movq	_MAP_SHARED@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%edi, %edi
	movl	%r13d, %esi
	movl	%r12d, %r8d
	xorl	%r9d, %r9d
	callq	_mmap
	movq	%rax, %r15
	movq	_MAP_FAILED@GOTPCREL(%rip), %rax
	cmpq	(%rax), %r15
	je	LBB0_7
## %bb.2:
	movq	__glfw@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%r12d, %esi
	movl	%r13d, %edx
	callq	_wl_shm_create_pool
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	%r12d, %edi
	callq	_close
	movl	(%rbx), %edx
	movl	4(%rbx), %ecx
	movl	%ecx, %eax
	imull	%edx, %eax
	testl	%eax, %eax
	jle	LBB0_5
## %bb.3:
	movq	8(%rbx), %rax
	xorl	%esi, %esi
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	2(%rax,%rsi,4), %ecx
	movb	%cl, (%r15,%rsi,4)
	movzbl	1(%rax,%rsi,4), %ecx
	movb	%cl, 1(%r15,%rsi,4)
	movzbl	(%rax,%rsi,4), %ecx
	movb	%cl, 2(%r15,%rsi,4)
	movzbl	3(%rax,%rsi,4), %ecx
	movb	%cl, 3(%r15,%rsi,4)
	movl	(%rbx), %edx
	movl	4(%rbx), %ecx
	movl	%ecx, %edi
	imull	%edx, %edi
	incq	%rsi
	cmpl	%edi, %esi
	jl	LBB0_4
LBB0_5:
	movq	_WL_SHM_FORMAT_ARGB8888@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	%r14d, %r8d
	callq	_wl_shm_pool_create_buffer
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	movl	%eax, 16(%r14)
	movq	%r15, %rdi
	movl	%r13d, %esi
	callq	_munmap
	movq	%r12, %rdi
	callq	_wl_shm_pool_destroy
	movl	(%rbx), %eax
	movl	%eax, (%r14)
	movl	4(%rbx), %eax
	movl	%eax, 4(%r14)
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, 8(%r14)
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, 12(%r14)
	movq	_GL_TRUE@GOTPCREL(%rip), %rax
	jmp	LBB0_9
LBB0_6:
	movq	_GLFW_PLATFORM_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	movl	%r13d, %edx
	xorl	%eax, %eax
	callq	__glfwInputError
	jmp	LBB0_8
LBB0_7:
	movq	_GLFW_PLATFORM_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	xorl	%eax, %eax
	callq	__glfwInputError
	movl	%r12d, %edi
	callq	_close
LBB0_8:
	movq	_GL_FALSE@GOTPCREL(%rip), %rax
LBB0_9:
	movl	(%rax), %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GLFW_PLATFORM_ERROR,4,2        ## @GLFW_PLATFORM_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Wayland: Creating a buffer file for %d B failed: %m\n"

	.comm	_GL_FALSE,4,2                   ## @GL_FALSE
	.comm	_PROT_READ,4,2                  ## @PROT_READ
	.comm	_PROT_WRITE,4,2                 ## @PROT_WRITE
	.comm	_MAP_SHARED,4,2                 ## @MAP_SHARED
	.comm	_MAP_FAILED,8,3                 ## @MAP_FAILED
L_.str.1:                               ## @.str.1
	.asciz	"Wayland: Cursor mmap failed: %m\n"

	.comm	__glfw,4,2                      ## @_glfw
	.comm	_WL_SHM_FORMAT_ARGB8888,4,2     ## @WL_SHM_FORMAT_ARGB8888
	.comm	_GL_TRUE,4,2                    ## @GL_TRUE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__glfwPlatformCreateCursor      ; -- Begin function _glfwPlatformCreateCursor
	.p2align	2
__glfwPlatformCreateCursor:             ; @_glfwPlatformCreateCursor
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x3
	mov	x20, x2
	mov	x22, x1
	mov	x21, x0
	ldp	w8, w9, [x1]
	lsl	w24, w8, #2
	mul	w23, w24, w9
	mov	x0, x23
	bl	_createAnonymousFile
	tbnz	w0, #31, LBB0_6
; %bb.1:
	mov	x27, x0
Lloh0:
	adrp	x8, _PROT_READ@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PROT_READ@GOTPAGEOFF]
Lloh2:
	adrp	x9, _PROT_WRITE@GOTPAGE
Lloh3:
	ldr	x9, [x9, _PROT_WRITE@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	ldr	w9, [x9]
	orr	w2, w9, w8
Lloh6:
	adrp	x8, _MAP_SHARED@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MAP_SHARED@GOTPAGEOFF]
Lloh8:
	ldr	w3, [x8]
	mov	x0, #0
	mov	x1, x23
	mov	x4, x27
	mov	w5, #0
	bl	_mmap
Lloh9:
	adrp	x8, _MAP_FAILED@GOTPAGE
Lloh10:
	ldr	x8, [x8, _MAP_FAILED@GOTPAGEOFF]
Lloh11:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_7
; %bb.2:
	mov	x25, x0
Lloh12:
	adrp	x8, __glfw@GOTPAGE
Lloh13:
	ldr	x8, [x8, __glfw@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	mov	x1, x27
	mov	x2, x23
	bl	_wl_shm_create_pool
	mov	x26, x0
	mov	x0, x27
	bl	_close
	ldp	w2, w3, [x22]
	mul	w8, w3, w2
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.3:
	mov	w8, #0
	ldr	x9, [x22, #8]
	add	x9, x9, #3
	mov	x10, x25
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldurb	w11, [x9, #-1]
	strb	w11, [x10]
	ldurb	w11, [x9, #-2]
	strb	w11, [x10, #1]
	ldurb	w11, [x9, #-3]
	strb	w11, [x10, #2]
	ldrb	w11, [x9], #4
	strb	w11, [x10, #3]
	add	w8, w8, #1
	ldp	w2, w3, [x22]
	mul	w11, w3, w2
	add	x10, x10, #4
	cmp	w8, w11
	b.lt	LBB0_4
LBB0_5:
Lloh15:
	adrp	x8, _WL_SHM_FORMAT_ARGB8888@GOTPAGE
Lloh16:
	ldr	x8, [x8, _WL_SHM_FORMAT_ARGB8888@GOTPAGEOFF]
Lloh17:
	ldr	w5, [x8]
	mov	x0, x26
	mov	w1, #0
	mov	x4, x24
	bl	_wl_shm_pool_create_buffer
	str	w0, [x21, #16]
	mov	x0, x25
	mov	x1, x23
	bl	_munmap
	mov	x0, x26
	bl	_wl_shm_pool_destroy
	ldr	d0, [x22]
	str	d0, [x21]
	stp	w20, w19, [x21, #8]
Lloh18:
	adrp	x8, _GL_TRUE@GOTPAGE
Lloh19:
	ldr	x8, [x8, _GL_TRUE@GOTPAGEOFF]
	b	LBB0_9
LBB0_6:
Lloh20:
	adrp	x8, _GLFW_PLATFORM_ERROR@GOTPAGE
Lloh21:
	ldr	x8, [x8, _GLFW_PLATFORM_ERROR@GOTPAGEOFF]
Lloh22:
	ldr	w0, [x8]
	str	x23, [sp]
Lloh23:
	adrp	x1, l_.str@PAGE
Lloh24:
	add	x1, x1, l_.str@PAGEOFF
	bl	__glfwInputError
	b	LBB0_8
LBB0_7:
Lloh25:
	adrp	x8, _GLFW_PLATFORM_ERROR@GOTPAGE
Lloh26:
	ldr	x8, [x8, _GLFW_PLATFORM_ERROR@GOTPAGEOFF]
Lloh27:
	ldr	w0, [x8]
Lloh28:
	adrp	x1, l_.str.1@PAGE
Lloh29:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	__glfwInputError
	mov	x0, x27
	bl	_close
LBB0_8:
Lloh30:
	adrp	x8, _GL_FALSE@GOTPAGE
Lloh31:
	ldr	x8, [x8, _GL_FALSE@GOTPAGEOFF]
LBB0_9:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.comm	_GLFW_PLATFORM_ERROR,4,2        ; @GLFW_PLATFORM_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Wayland: Creating a buffer file for %d B failed: %m\n"

	.comm	_GL_FALSE,4,2                   ; @GL_FALSE
	.comm	_PROT_READ,4,2                  ; @PROT_READ
	.comm	_PROT_WRITE,4,2                 ; @PROT_WRITE
	.comm	_MAP_SHARED,4,2                 ; @MAP_SHARED
	.comm	_MAP_FAILED,8,3                 ; @MAP_FAILED
l_.str.1:                               ; @.str.1
	.asciz	"Wayland: Cursor mmap failed: %m\n"

	.comm	__glfw,4,2                      ; @_glfw
	.comm	_WL_SHM_FORMAT_ARGB8888,4,2     ; @WL_SHM_FORMAT_ARGB8888
	.comm	_GL_TRUE,4,2                    ; @GL_TRUE
.subsections_via_symbols
