	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function createIcon
LCPI0_0:
	.long	1                               ## 0x1
	.long	32                              ## 0x20
	.long	16711680                        ## 0xff0000
	.long	65280                           ## 0xff00
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_createIcon:                            ## @createIcon
	.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	$184, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movl	%edx, -56(%rbp)                 ## 4-byte Spill
	movl	%esi, -52(%rbp)                 ## 4-byte Spill
	movq	%rdi, %rbx
	movq	$0, -48(%rbp)
	movq	(%rdi), %r12
	leaq	-144(%rbp), %r14
	movq	%r14, %rdi
	movl	$80, %esi
	callq	_ZeroMemory
	movl	$80, -144(%rbp)
	movl	8(%rbx), %eax
	movl	%eax, -140(%rbp)
	xorl	%eax, %eax
	subl	12(%rbx), %eax
	movl	%eax, -136(%rbp)
	movq	_BI_BITFIELDS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -72(%rbp)
	movaps	LCPI0_0(%rip), %xmm0            ## xmm0 = [1,32,16711680,65280]
	movups	%xmm0, -132(%rbp)
	movabsq	$-72057594037927681, %rax       ## imm = 0xFF000000000000FF
	movq	%rax, -116(%rbp)
	xorl	%edi, %edi
	callq	_GetDC
	movl	%eax, %r15d
	movq	_DIB_RGB_COLORS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-48(%rbp), %rcx
	movl	%r15d, %edi
	movq	%r14, %rsi
	xorl	%r8d, %r8d
	xorl	%r9d, %r9d
	callq	_CreateDIBSection
	movq	%rax, %r13
	xorl	%edi, %edi
	movl	%r15d, %esi
	callq	_ReleaseDC
	testq	%r13, %r13
	je	LBB0_1
## %bb.2:
	movl	8(%rbx), %edi
	movl	12(%rbx), %esi
	movl	$1, %edx
	movl	$1, %ecx
	xorl	%r8d, %r8d
	callq	_CreateBitmap
	testq	%rax, %rax
	je	LBB0_13
## %bb.3:
	movq	%rax, %r14
	movl	12(%rbx), %eax
	imull	8(%rbx), %eax
	testl	%eax, %eax
	jle	LBB0_6
## %bb.4:
	movq	-48(%rbp), %rcx
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movzbl	2(%r12,%rax,4), %edx
	movb	%dl, (%rcx)
	movzbl	1(%r12,%rax,4), %ecx
	movq	-48(%rbp), %rdx
	movb	%cl, 1(%rdx)
	movzbl	(%r12,%rax,4), %ecx
	movq	-48(%rbp), %rdx
	movb	%cl, 2(%rdx)
	movzbl	3(%r12,%rax,4), %ecx
	movq	-48(%rbp), %rdx
	movb	%cl, 3(%rdx)
	movq	-48(%rbp), %rcx
	addq	$4, %rcx
	movq	%rcx, -48(%rbp)
	movl	12(%rbx), %edx
	imull	8(%rbx), %edx
	incq	%rax
	cmpl	%edx, %eax
	jl	LBB0_5
LBB0_6:
	leaq	-224(%rbp), %rbx
	movq	%rbx, %rdi
	movl	$80, %esi
	callq	_ZeroMemory
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, -160(%rbp)
	movl	-52(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, -188(%rbp)
	movl	-56(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, -184(%rbp)
	movq	%r14, -168(%rbp)
	movq	%r13, -176(%rbp)
	movq	%rbx, %rdi
	callq	_CreateIconIndirect
	movq	%rax, %rbx
	movq	%r13, %rdi
	callq	_DeleteObject
	movq	%r14, %rdi
	callq	_DeleteObject
	testq	%rbx, %rbx
	jne	LBB0_12
## %bb.7:
	movq	_GLFW_PLATFORM_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	testq	%r15, %r15
	je	LBB0_9
## %bb.8:
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_10
LBB0_1:
	movq	_GLFW_PLATFORM_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
LBB0_10:
	callq	__glfwInputErrorWin32
	jmp	LBB0_11
LBB0_13:
	movq	_GLFW_PLATFORM_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	__glfwInputErrorWin32
	movq	%r13, %rdi
	callq	_DeleteObject
LBB0_11:
	xorl	%ebx, %ebx
LBB0_12:
	movq	%rbx, %rax
	addq	$184, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	leaq	L_.str.3(%rip), %rsi
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_BI_BITFIELDS,4,2               ## @BI_BITFIELDS
	.comm	_DIB_RGB_COLORS,4,2             ## @DIB_RGB_COLORS
	.comm	_GLFW_PLATFORM_ERROR,4,2        ## @GLFW_PLATFORM_ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Win32: Failed to create RGBA bitmap"

L_.str.1:                               ## @.str.1
	.asciz	"Win32: Failed to create mask bitmap"

L_.str.2:                               ## @.str.2
	.asciz	"Win32: Failed to create icon"

L_.str.3:                               ## @.str.3
	.asciz	"Win32: Failed to create cursor"

	.no_dead_strip	_createIcon
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ; -- Begin function createIcon
lCPI0_0:
	.long	1                               ; 0x1
	.long	32                              ; 0x20
	.long	16711680                        ; 0xff0000
	.long	65280                           ; 0xff00
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	2
_createIcon:                            ; @createIcon
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #256
	.cfi_def_cfa_offset 256
	stp	x26, x25, [sp, #176]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #192]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #208]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #224]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #240]            ; 16-byte Folded Spill
	add	x29, sp, #240
	.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, x3
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
	str	xzr, [sp, #8]
	ldr	x25, [x0]
	mov	w23, #80
	add	x0, sp, #96
	mov	w1, #80
	bl	_ZeroMemory
	ldp	w8, w9, [x22, #8]
	stp	w23, w8, [sp, #96]
	neg	w8, w9
	str	w8, [sp, #104]
Lloh0:
	adrp	x8, _BI_BITFIELDS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BI_BITFIELDS@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [sp, #168]
Lloh3:
	adrp	x8, lCPI0_0@PAGE
Lloh4:
	ldr	q0, [x8, lCPI0_0@PAGEOFF]
	stur	q0, [sp, #108]
	movi	d0, #0xff000000000000ff
	stur	d0, [sp, #124]
	mov	x0, #0
	bl	_GetDC
	mov	x24, x0
Lloh5:
	adrp	x8, _DIB_RGB_COLORS@GOTPAGE
Lloh6:
	ldr	x8, [x8, _DIB_RGB_COLORS@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	add	x1, sp, #96
	add	x3, sp, #8
	mov	x4, #0
	mov	w5, #0
	bl	_CreateDIBSection
	mov	x23, x0
	mov	x0, #0
	mov	x1, x24
	bl	_ReleaseDC
	cbz	x23, LBB0_8
; %bb.1:
	ldp	w0, w1, [x22, #8]
	mov	w2, #1
	mov	w3, #1
	mov	x4, #0
	bl	_CreateBitmap
	cbz	x0, LBB0_10
; %bb.2:
	mov	x24, x0
	ldp	w8, w9, [x22, #8]
	mul	w8, w9, w8
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.3:
	mov	w8, #0
	ldr	x10, [sp, #8]
	add	x9, x25, #3
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldurb	w11, [x9, #-1]
	strb	w11, [x10]
	ldurb	w10, [x9, #-2]
	ldr	x11, [sp, #8]
	strb	w10, [x11, #1]
	ldurb	w10, [x9, #-3]
	ldr	x11, [sp, #8]
	strb	w10, [x11, #2]
	ldrb	w10, [x9], #4
	ldr	x11, [sp, #8]
	strb	w10, [x11, #3]
	ldr	x10, [sp, #8]
	add	x10, x10, #4
	str	x10, [sp, #8]
	add	w8, w8, #1
	ldp	w11, w12, [x22, #8]
	mul	w11, w12, w11
	cmp	w8, w11
	b.lt	LBB0_4
LBB0_5:
	add	x0, sp, #16
	mov	w1, #80
	bl	_ZeroMemory
	stp	x24, x19, [sp, #72]
	stp	w21, w20, [sp, #52]
	str	x23, [sp, #64]
	add	x0, sp, #16
	bl	_CreateIconIndirect
	mov	x20, x0
	mov	x0, x23
	bl	_DeleteObject
	mov	x0, x24
	bl	_DeleteObject
	cbnz	x20, LBB0_12
; %bb.6:
Lloh8:
	adrp	x8, _GLFW_PLATFORM_ERROR@GOTPAGE
Lloh9:
	ldr	x8, [x8, _GLFW_PLATFORM_ERROR@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	cbz	x19, LBB0_13
; %bb.7:
Lloh11:
	adrp	x1, l_.str.2@PAGE
Lloh12:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_9
LBB0_8:
Lloh13:
	adrp	x8, _GLFW_PLATFORM_ERROR@GOTPAGE
Lloh14:
	ldr	x8, [x8, _GLFW_PLATFORM_ERROR@GOTPAGEOFF]
Lloh15:
	ldr	w0, [x8]
Lloh16:
	adrp	x1, l_.str@PAGE
Lloh17:
	add	x1, x1, l_.str@PAGEOFF
LBB0_9:
	bl	__glfwInputErrorWin32
	b	LBB0_11
LBB0_10:
Lloh18:
	adrp	x8, _GLFW_PLATFORM_ERROR@GOTPAGE
Lloh19:
	ldr	x8, [x8, _GLFW_PLATFORM_ERROR@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
Lloh21:
	adrp	x1, l_.str.1@PAGE
Lloh22:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	__glfwInputErrorWin32
	mov	x0, x23
	bl	_DeleteObject
LBB0_11:
	mov	x20, #0
LBB0_12:
	mov	x0, x20
	ldp	x29, x30, [sp, #240]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #224]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #208]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #192]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #176]            ; 16-byte Folded Reload
	add	sp, sp, #256
	ret
LBB0_13:
Lloh23:
	adrp	x1, l_.str.3@PAGE
Lloh24:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdr	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_BI_BITFIELDS,4,2               ; @BI_BITFIELDS
	.comm	_DIB_RGB_COLORS,4,2             ; @DIB_RGB_COLORS
	.comm	_GLFW_PLATFORM_ERROR,4,2        ; @GLFW_PLATFORM_ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Win32: Failed to create RGBA bitmap"

l_.str.1:                               ; @.str.1
	.asciz	"Win32: Failed to create mask bitmap"

l_.str.2:                               ; @.str.2
	.asciz	"Win32: Failed to create icon"

l_.str.3:                               ; @.str.3
	.asciz	"Win32: Failed to create cursor"

	.no_dead_strip	_createIcon
.subsections_via_symbols
