	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_InitImageList                  ## -- Begin function InitImageList
	.p2align	4, 0x90
_InitImageList:                         ## @InitImageList
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, -52(%rbp)                 ## 4-byte Spill
	movq	%rcx, %r8
	movq	%rdx, %rax
	movq	%rsi, %r12
	movq	%rdi, %r14
	movq	_ILC_MASK@GOTPCREL(%rip), %rsi
	movq	_ILC_COLOR32@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rsi), %edx
	movq	%r12, %rcx
	subq	%rdi, %rcx
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	%rax, %rdi
	movq	%r8, -72(%rbp)                  ## 8-byte Spill
	movq	%r8, %rsi
	xorl	%r8d, %r8d
	callq	_ImageList_Create
	testq	%rax, %rax
	je	LBB0_14
## %bb.1:
	cmpq	%r14, %r12
	jl	LBB0_15
## %bb.2:
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	_hInstance@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	%r14, %rdi
	callq	_MAKEINTRESOURCEW
	movq	_LR_LOADTRANSPARENT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r9d
	movl	%ebx, %edi
	movl	%eax, %esi
	movl	-52(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %edx
	movq	-64(%rbp), %rcx                 ## 8-byte Reload
	movq	-72(%rbp), %r8                  ## 8-byte Reload
	callq	_LoadImageW
	testq	%rax, %rax
	je	LBB0_13
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%rax, %r13
	movq	_IMAGE_BITMAP@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	jne	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	$255, %edi
	xorl	%esi, %esi
	movl	$128, %edx
	callq	_RGB
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r13, %rsi
	movl	%eax, %edx
	callq	_ImageList_AddMasked
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	_IMAGE_ICON@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	jne	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r13, %rsi
	callq	_ImageList_AddIcon
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	%eax, %r15d
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	%r13, %rdi
	callq	_DeleteObject
	cmpq	%r12, %r14
	jge	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_3 Depth=1
	incq	%r14
	cmpl	$-1, %r15d
	jne	LBB0_3
LBB0_11:
	cmpl	$-1, %r15d
	je	LBB0_13
## %bb.12:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	jmp	LBB0_15
LBB0_13:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_ImageList_Destroy
LBB0_14:
	xorl	%eax, %eax
LBB0_15:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ILC_MASK,4,2                   ## @ILC_MASK
	.comm	_ILC_COLOR32,4,2                ## @ILC_COLOR32
	.comm	_hInstance,4,2                  ## @hInstance
	.comm	_LR_LOADTRANSPARENT,4,2         ## @LR_LOADTRANSPARENT
	.comm	_IMAGE_BITMAP,4,2               ## @IMAGE_BITMAP
	.comm	_IMAGE_ICON,4,2                 ## @IMAGE_ICON
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_InitImageList                  ; -- Begin function InitImageList
	.p2align	2
_InitImageList:                         ; @InitImageList
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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, x4
	mov	x20, x3
	mov	x21, x2
	mov	x22, x1
	mov	x23, x0
	sub	x3, x1, x0
Lloh0:
	adrp	x8, _ILC_MASK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ILC_MASK@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _ILC_COLOR32@GOTPAGE
Lloh4:
	ldr	x9, [x9, _ILC_COLOR32@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	orr	w2, w9, w8
	mov	x0, x21
	mov	x1, x20
	mov	w4, #0
	bl	_ImageList_Create
	mov	x24, x0
	cbz	x0, LBB0_13
; %bb.1:
	cmp	x22, x23
	b.lt	LBB0_13
; %bb.2:
	mov	w25, #0
Lloh6:
	adrp	x27, _hInstance@GOTPAGE
Lloh7:
	ldr	x27, [x27, _hInstance@GOTPAGEOFF]
Lloh8:
	adrp	x28, _LR_LOADTRANSPARENT@GOTPAGE
Lloh9:
	ldr	x28, [x28, _LR_LOADTRANSPARENT@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w26, [x27]
	mov	x0, x23
	bl	_MAKEINTRESOURCEW
	mov	x1, x0
	ldr	w5, [x28]
	mov	x0, x26
	mov	x2, x19
	mov	x3, x21
	mov	x4, x20
	bl	_LoadImageW
	cbz	x0, LBB0_12
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x26, x0
Lloh10:
	adrp	x8, _IMAGE_BITMAP@GOTPAGE
Lloh11:
	ldr	x8, [x8, _IMAGE_BITMAP@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	cmp	w8, w19
	b.ne	LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	w0, #255
	mov	w1, #0
	mov	w2, #128
	bl	_RGB
	mov	x2, x0
	mov	x0, x24
	mov	x1, x26
	bl	_ImageList_AddMasked
	b	LBB0_8
LBB0_6:                                 ;   in Loop: Header=BB0_3 Depth=1
Lloh13:
	adrp	x8, _IMAGE_ICON@GOTPAGE
Lloh14:
	ldr	x8, [x8, _IMAGE_ICON@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	cmp	w8, w19
	b.ne	LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x24
	mov	x1, x26
	bl	_ImageList_AddIcon
LBB0_8:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x25, x0
LBB0_9:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x26
	bl	_DeleteObject
	cmp	x23, x22
	b.ge	LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_3 Depth=1
	add	x23, x23, #1
	cmn	w25, #1
	b.ne	LBB0_3
LBB0_11:
	cmn	w25, #1
	b.ne	LBB0_13
LBB0_12:
	mov	x0, x24
	bl	_ImageList_Destroy
	mov	x24, #0
LBB0_13:
	mov	x0, x24
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_ILC_MASK,4,2                   ; @ILC_MASK
	.comm	_ILC_COLOR32,4,2                ; @ILC_COLOR32
	.comm	_hInstance,4,2                  ; @hInstance
	.comm	_LR_LOADTRANSPARENT,4,2         ; @LR_LOADTRANSPARENT
	.comm	_IMAGE_BITMAP,4,2               ; @IMAGE_BITMAP
	.comm	_IMAGE_ICON,4,2                 ; @IMAGE_ICON
.subsections_via_symbols
