	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__glfwCreateCursorX11           ## -- Begin function _glfwCreateCursorX11
	.p2align	4, 0x90
__glfwCreateCursorX11:                  ## @_glfwCreateCursorX11
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	__glfw@GOTPCREL(%rip), %rbx
	cmpl	$0, 4(%rbx)
	je	LBB0_1
## %bb.2:
	movl	%edx, %r15d
	movl	%esi, %r12d
	movq	%rdi, %r13
	movl	(%rdi), %edi
	movl	4(%r13), %esi
	callq	_XcursorImageCreate
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	%rax, %r14
	movq	%rbx, %r9
	movl	%r12d, (%rax)
	movl	%r15d, 4(%rax)
	movl	4(%r13), %eax
	imull	(%r13), %eax
	testl	%eax, %eax
	jle	LBB0_6
## %bb.4:
	movq	8(%r14), %r8
	movq	8(%r13), %rcx
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	3(%rcx,%rdx,4), %esi
	movzbl	(%rcx,%rdx,4), %edi
	imull	%esi, %edi
	movzbl	1(%rcx,%rdx,4), %eax
	imull	%esi, %eax
	movzbl	2(%rcx,%rdx,4), %ebx
	imull	%esi, %ebx
	shll	$24, %esi
	imull	$32897, %edi, %edi              ## imm = 0x8081
	shrl	$7, %edi
	andl	$16711680, %edi                 ## imm = 0xFF0000
	orl	%esi, %edi
	imull	$32897, %eax, %eax              ## imm = 0x8081
	shrl	$15, %eax
	andl	$65280, %eax                    ## imm = 0xFF00
	orl	%edi, %eax
	imull	$32897, %ebx, %esi              ## imm = 0x8081
	shrl	$23, %esi
	orl	%eax, %esi
	movl	%esi, (%r8,%rdx,4)
	movl	4(%r13), %eax
	imull	(%r13), %eax
	incq	%rdx
	cmpl	%eax, %edx
	jl	LBB0_5
LBB0_6:
	movl	(%r9), %edi
	movq	%r14, %rsi
	callq	_XcursorImageLoadCursor
	movl	%eax, %ebx
	movq	%r14, %rdi
	callq	_XcursorImageDestroy
	movl	%ebx, %eax
	jmp	LBB0_7
LBB0_1:
	movq	_None@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	__glfw,8,2                      ## @_glfw
	.comm	_None,4,2                       ## @None
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__glfwCreateCursorX11           ; -- Begin function _glfwCreateCursorX11
	.p2align	2
__glfwCreateCursorX11:                  ; @_glfwCreateCursorX11
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x23, __glfw@GOTPAGE
Lloh1:
	ldr	x23, [x23, __glfw@GOTPAGEOFF]
	ldr	w8, [x23, #4]
	cbz	w8, LBB0_6
; %bb.1:
	mov	x21, x2
	mov	x22, x1
	mov	x19, x0
	ldr	w0, [x0]
	ldr	w1, [x19, #4]
	bl	_XcursorImageCreate
	cbz	x0, LBB0_6
; %bb.2:
	mov	x20, x0
	stp	w22, w21, [x0]
	ldp	w8, w9, [x19]
	mul	w8, w9, w8
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.3:
	mov	x8, #0
	ldr	x9, [x20, #8]
	ldr	x10, [x19, #8]
	add	x10, x10, #3
	mov	w11, #32897
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldrb	w12, [x10]
	ldurb	w13, [x10, #-3]
	mul	w13, w13, w12
	mul	w13, w13, w11
	lsr	w13, w13, #7
	and	w13, w13, #0xff0000
	bfi	w13, w12, #24, #8
	ldurb	w14, [x10, #-2]
	mul	w14, w14, w12
	mul	w14, w14, w11
	lsr	w14, w14, #15
	and	w14, w14, #0xff00
	orr	w13, w13, w14
	ldurb	w14, [x10, #-1]
	mul	w12, w14, w12
	mul	w12, w12, w11
	orr	w12, w13, w12, lsr #23
	str	w12, [x9, x8, lsl #2]
	ldp	w12, w13, [x19]
	mul	w12, w13, w12
	add	x8, x8, #1
	add	x10, x10, #4
	cmp	w8, w12
	b.lt	LBB0_4
LBB0_5:
	ldr	w0, [x23]
	mov	x1, x20
	bl	_XcursorImageLoadCursor
	mov	x19, x0
	mov	x0, x20
	bl	_XcursorImageDestroy
	mov	x0, x19
	b	LBB0_7
LBB0_6:
Lloh2:
	adrp	x8, _None@GOTPAGE
Lloh3:
	ldr	x8, [x8, _None@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
LBB0_7:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	__glfw,8,2                      ; @_glfw
	.comm	_None,4,2                       ; @None
.subsections_via_symbols
