	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function _glfwPlatformSetWindowIcon
LCPI0_0:
	.long	2                               ## 0x2
	.long	2                               ## 0x2
	.long	2                               ## 0x2
	.long	2                               ## 0x2
	.section	__TEXT,__text,regular,pure_instructions
	.globl	__glfwPlatformSetWindowIcon
	.p2align	4, 0x90
__glfwPlatformSetWindowIcon:            ## @_glfwPlatformSetWindowIcon
	.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	%rdi, %rbx
	testl	%esi, %esi
	je	LBB0_23
## %bb.1:
	jle	LBB0_2
## %bb.3:
	movq	%rdx, %r15
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movl	%esi, %r13d
	cmpl	$9, %esi
	jae	LBB0_5
## %bb.4:
	xorl	%eax, %eax
	xorl	%r14d, %r14d
	jmp	LBB0_8
LBB0_23:
	movq	__glfw@GOTPCREL(%rip), %rax
	movl	(%rbx), %esi
	movl	(%rax), %edi
	movl	4(%rax), %edx
	callq	_XDeleteProperty
	jmp	LBB0_24
LBB0_2:
	xorl	%r14d, %r14d
	xorl	%edi, %edi
	movl	$8, %esi
	callq	_calloc
	movq	%rax, %r12
	jmp	LBB0_22
LBB0_5:
	movl	%r13d, %eax
	andl	$7, %eax
	testq	%rax, %rax
	movl	$8, %ecx
	cmovneq	%rax, %rcx
	movq	%r13, %rax
	subq	%rcx, %rax
	leaq	116(%r15), %rcx
	pxor	%xmm0, %xmm0
	movdqa	LCPI0_0(%rip), %xmm2            ## xmm2 = [2,2,2,2]
	movq	%rax, %rdx
	pxor	%xmm1, %xmm1
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movd	-116(%rcx), %xmm3               ## xmm3 = mem[0],zero,zero,zero
	pinsrd	$1, -100(%rcx), %xmm3
	pinsrd	$2, -84(%rcx), %xmm3
	pinsrd	$3, -68(%rcx), %xmm3
	movd	-52(%rcx), %xmm4                ## xmm4 = mem[0],zero,zero,zero
	pinsrd	$1, -36(%rcx), %xmm4
	pinsrd	$2, -20(%rcx), %xmm4
	pinsrd	$3, -4(%rcx), %xmm4
	movd	-112(%rcx), %xmm5               ## xmm5 = mem[0],zero,zero,zero
	pinsrd	$1, -96(%rcx), %xmm5
	pinsrd	$2, -80(%rcx), %xmm5
	pinsrd	$3, -64(%rcx), %xmm5
	movd	-48(%rcx), %xmm6                ## xmm6 = mem[0],zero,zero,zero
	pinsrd	$1, -32(%rcx), %xmm6
	pinsrd	$2, -16(%rcx), %xmm6
	pinsrd	$3, (%rcx), %xmm6
	pmulld	%xmm3, %xmm5
	pmulld	%xmm4, %xmm6
	paddd	%xmm2, %xmm0
	paddd	%xmm5, %xmm0
	paddd	%xmm2, %xmm1
	paddd	%xmm6, %xmm1
	subq	$-128, %rcx
	addq	$-8, %rdx
	jne	LBB0_6
## %bb.7:
	paddd	%xmm0, %xmm1
	pshufd	$238, %xmm1, %xmm0              ## xmm0 = xmm1[2,3,2,3]
	paddd	%xmm1, %xmm0
	pshufd	$85, %xmm0, %xmm1               ## xmm1 = xmm0[1,1,1,1]
	paddd	%xmm0, %xmm1
	movd	%xmm1, %r14d
LBB0_8:
	movq	%r13, %rcx
	subq	%rax, %rcx
	shlq	$4, %rax
	addq	%r15, %rax
	addq	$4, %rax
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rax), %edx
	imull	-4(%rax), %edx
	addl	%edx, %r14d
	addl	$2, %r14d
	addq	$16, %rax
	decq	%rcx
	jne	LBB0_9
## %bb.10:
	movl	%r14d, %edi
	movl	$8, %esi
	callq	_calloc
	movq	%rax, %r12
	xorl	%r9d, %r9d
	movq	%rax, %rcx
	jmp	LBB0_11
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_11 Depth=1
	movq	%rdi, %rcx
LBB0_20:                                ##   in Loop: Header=BB0_11 Depth=1
	incq	%r9
	cmpq	%r13, %r9
	je	LBB0_21
LBB0_11:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_16 Depth 2
                                        ##     Child Loop BB0_19 Depth 2
	movq	%r9, %rax
	shlq	$4, %rax
	movslq	(%r15,%rax), %rdx
	movq	%rdx, (%rcx)
	movslq	4(%r15,%rax), %rsi
	movq	%rsi, 8(%rcx)
	movq	%rcx, %rdi
	addq	$16, %rdi
	imull	%edx, %esi
	testl	%esi, %esi
	jle	LBB0_12
## %bb.13:                              ##   in Loop: Header=BB0_11 Depth=1
	movq	8(%r15,%rax), %r8
	movl	%esi, %edx
	cmpl	$1, %esi
	jne	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_11 Depth=1
	xorl	%esi, %esi
	movq	%rdi, %rcx
	jmp	LBB0_18
	.p2align	4, 0x90
LBB0_15:                                ##   in Loop: Header=BB0_11 Depth=1
	movl	%edx, %esi
	andl	$-2, %esi
	leaq	(%rdi,%rsi,8), %rcx
	movq	%r8, %rbx
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_16:                                ##   Parent Loop BB0_11 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movdqu	(%rbx), %xmm0
	movdqu	16(%rbx), %xmm1
	movdqa	%xmm0, %xmm2
	punpckldq	%xmm1, %xmm2            ## xmm2 = xmm2[0],xmm1[0],xmm2[1],xmm1[1]
	pshufd	$85, %xmm0, %xmm3               ## xmm3 = xmm0[1,1,1,1]
	pblendw	$12, %xmm1, %xmm3               ## xmm3 = xmm3[0,1],xmm1[2,3],xmm3[4,5,6,7]
	punpckhdq	%xmm1, %xmm0            ## xmm0 = xmm0[2],xmm1[2],xmm0[3],xmm1[3]
	pshufd	$238, %xmm0, %xmm1              ## xmm1 = xmm0[2,3,2,3]
	pslld	$16, %xmm2
	pslld	$8, %xmm3
	por	%xmm0, %xmm2
	por	%xmm3, %xmm2
	pslld	$24, %xmm1
	por	%xmm2, %xmm1
	pmovsxdq	%xmm1, %xmm0
	movdqu	%xmm0, (%rdi,%rax,8)
	addq	$2, %rax
	addq	$32, %rbx
	cmpq	%rax, %rsi
	jne	LBB0_16
## %bb.17:                              ##   in Loop: Header=BB0_11 Depth=1
	cmpq	%rdx, %rsi
	je	LBB0_20
LBB0_18:                                ##   in Loop: Header=BB0_11 Depth=1
	subq	%rsi, %rdx
	shlq	$4, %rsi
	leaq	(%r8,%rsi), %rax
	addq	$12, %rax
	.p2align	4, 0x90
LBB0_19:                                ##   Parent Loop BB0_11 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	-12(%rax), %esi
	movl	-8(%rax), %edi
	shll	$16, %esi
	shll	$8, %edi
	orl	%esi, %edi
	orl	-4(%rax), %edi
	movl	(%rax), %esi
	shll	$24, %esi
	orl	%edi, %esi
	movslq	%esi, %rsi
	movq	%rsi, (%rcx)
	addq	$8, %rcx
	addq	$16, %rax
	decq	%rdx
	jne	LBB0_19
	jmp	LBB0_20
LBB0_21:
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
LBB0_22:
	movq	__glfw@GOTPCREL(%rip), %rax
	movl	(%rbx), %esi
	movl	(%rax), %edi
	movl	4(%rax), %edx
	movq	_XA_CARDINAL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_PropModeReplace@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movl	$32, %r8d
	pushq	%r14
	pushq	%r12
	callq	_XChangeProperty
	addq	$16, %rsp
	movq	%r12, %rdi
	callq	_free
LBB0_24:
	movq	__glfw@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_XFlush                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	__glfw,8,2                      ## @_glfw
	.comm	_XA_CARDINAL,4,2                ## @XA_CARDINAL
	.comm	_PropModeReplace,4,2            ## @PropModeReplace
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__glfwPlatformSetWindowIcon     ; -- Begin function _glfwPlatformSetWindowIcon
	.p2align	2
__glfwPlatformSetWindowIcon:            ; @_glfwPlatformSetWindowIcon
	.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
	mov	x19, x0
Lloh0:
	adrp	x23, __glfw@GOTPAGE
Lloh1:
	ldr	x23, [x23, __glfw@GOTPAGEOFF]
	cbz	w1, LBB0_4
; %bb.1:
	cmp	w1, #0
	b.le	LBB0_5
; %bb.2:
	mov	x20, x2
	mov	w24, w1
	cmp	w1, #17
	b.hs	LBB0_8
; %bb.3:
	mov	x8, #0
	mov	w21, #0
	b	LBB0_11
LBB0_4:
	ldr	w1, [x19]
	ldp	w0, w2, [x23]
	bl	_XDeleteProperty
	b	LBB0_7
LBB0_5:
	mov	w0, #0
	mov	w1, #8
	bl	_calloc
	mov	x22, x0
	mov	w21, #0
LBB0_6:
	ldr	w1, [x19]
	ldp	w0, w2, [x23]
Lloh2:
	adrp	x8, _XA_CARDINAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _XA_CARDINAL@GOTPAGEOFF]
Lloh4:
	ldr	w3, [x8]
Lloh5:
	adrp	x8, _PropModeReplace@GOTPAGE
Lloh6:
	ldr	x8, [x8, _PropModeReplace@GOTPAGEOFF]
Lloh7:
	ldr	w5, [x8]
	mov	w4, #32
	mov	x6, x22
	mov	x7, x21
	bl	_XChangeProperty
	mov	x0, x22
	bl	_free
LBB0_7:
	ldr	w0, [x23]
	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
	b	_XFlush
LBB0_8:
	ands	x8, x24, #0xf
	mov	w9, #16
	csel	x8, x9, x8, eq
	sub	x8, x24, x8
	add	x9, x20, #128
	movi.2d	v0, #0000000000000000
	movi.4s	v1, #2
	mov	x10, x8
	movi.2d	v2, #0000000000000000
	movi.2d	v3, #0000000000000000
	movi.2d	v4, #0000000000000000
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	sub	x11, x9, #128
	sub	x12, x9, #64
	ld4.4s	{ v16, v17, v18, v19 }, [x11]
	ld4.4s	{ v20, v21, v22, v23 }, [x12]
	mov	x11, x9
	ld4.4s	{ v24, v25, v26, v27 }, [x11], #64
	ld4.4s	{ v28, v29, v30, v31 }, [x11]
	mla.4s	v0, v17, v16
	mla.4s	v2, v21, v20
	mla.4s	v3, v25, v24
	mla.4s	v4, v29, v28
	add.4s	v0, v0, v1
	add.4s	v2, v2, v1
	add.4s	v3, v3, v1
	add.4s	v4, v4, v1
	add	x9, x9, #256
	subs	x10, x10, #16
	b.ne	LBB0_9
; %bb.10:
	add.4s	v0, v2, v0
	add.4s	v0, v3, v0
	add.4s	v0, v4, v0
	addv.4s	s0, v0
	fmov	w21, s0
LBB0_11:
	add	x9, x20, x8, lsl #4
	add	x9, x9, #4
	sub	x8, x24, x8
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	ldp	w10, w11, [x9, #-4]
	madd	w10, w11, w10, w21
	add	w21, w10, #2
	add	x9, x9, #16
	subs	x8, x8, #1
	b.ne	LBB0_12
; %bb.13:
	mov	x0, x21
	mov	w1, #8
	bl	_calloc
	mov	x22, x0
	mov	x8, #0
	mov	x13, x0
	b	LBB0_15
LBB0_14:                                ;   in Loop: Header=BB0_15 Depth=1
	add	x8, x8, #1
	mov	x13, x9
	cmp	x8, x24
	b.eq	LBB0_6
LBB0_15:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_19 Depth 2
                                        ;     Child Loop BB0_22 Depth 2
	add	x11, x20, x8, lsl #4
	ldpsw	x10, x12, [x11]
	add	x9, x13, #16
	stp	x10, x12, [x13]
	mul	w10, w12, w10
	cmp	w10, #1
	b.lt	LBB0_14
; %bb.16:                               ;   in Loop: Header=BB0_15 Depth=1
	ldr	x11, [x11, #8]
	cmp	w10, #8
	b.hs	LBB0_18
; %bb.17:                               ;   in Loop: Header=BB0_15 Depth=1
	mov	x12, #0
	b	LBB0_21
LBB0_18:                                ;   in Loop: Header=BB0_15 Depth=1
	and	x12, x10, #0xfffffff8
	add	x9, x9, x12, lsl #3
	add	x13, x13, #64
	add	x14, x11, #64
	mov	x15, x12
LBB0_19:                                ;   Parent Loop BB0_15 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	sub	x16, x14, #64
	sub	x17, x14, #32
	ld4.2s	{ v0, v1, v2, v3 }, [x16]
	ld4.2s	{ v4, v5, v6, v7 }, [x17]
	mov	x16, x14
	ld4.2s	{ v16, v17, v18, v19 }, [x16], #32
	ld4.2s	{ v20, v21, v22, v23 }, [x16]
	shl.2s	v24, v0, #16
	shl.2s	v25, v4, #16
	shl.2s	v26, v16, #16
	shl.2s	v27, v20, #16
	shl.2s	v28, v1, #8
	shl.2s	v29, v5, #8
	shl.2s	v30, v17, #8
	shl.2s	v31, v21, #8
	orr.8b	v24, v28, v24
	orr.8b	v25, v29, v25
	orr.8b	v26, v30, v26
	orr.8b	v27, v31, v27
	orr.8b	v24, v24, v2
	orr.8b	v25, v25, v6
	orr.8b	v26, v26, v18
	orr.8b	v27, v27, v22
	shl.2s	v0, v3, #24
	shl.2s	v1, v7, #24
	shl.2s	v2, v19, #24
	shl.2s	v3, v23, #24
	orr.8b	v0, v24, v0
	orr.8b	v1, v25, v1
	orr.8b	v2, v26, v2
	orr.8b	v3, v27, v3
	sshll.2d	v0, v0, #0
	sshll.2d	v1, v1, #0
	sshll.2d	v2, v2, #0
	stp	q0, q1, [x13, #-48]
	sshll.2d	v0, v3, #0
	stp	q2, q0, [x13, #-16]
	add	x13, x13, #64
	add	x14, x14, #128
	subs	x15, x15, #8
	b.ne	LBB0_19
; %bb.20:                               ;   in Loop: Header=BB0_15 Depth=1
	cmp	x12, x10
	b.eq	LBB0_14
LBB0_21:                                ;   in Loop: Header=BB0_15 Depth=1
	sub	x10, x10, x12
	add	x11, x11, x12, lsl #4
	add	x11, x11, #8
LBB0_22:                                ;   Parent Loop BB0_15 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldp	w12, w13, [x11, #-8]
	lsl	w13, w13, #8
	orr	w12, w13, w12, lsl #16
	ldp	w13, w14, [x11], #16
	orr	w12, w12, w13
	orr	w12, w12, w14, lsl #24
	sxtw	x12, w12
	str	x12, [x9], #8
	subs	x10, x10, #1
	b.ne	LBB0_22
	b	LBB0_14
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	__glfw,8,2                      ; @_glfw
	.comm	_XA_CARDINAL,4,2                ; @XA_CARDINAL
	.comm	_PropModeReplace,4,2            ; @PropModeReplace
.subsections_via_symbols
