	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function InitListAllModesDialog
_InitListAllModesDialog:                ## @InitListAllModesDialog
	.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	$1064, %rsp                     ## imm = 0x428
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	%rdi, -1088(%rbp)               ## 8-byte Spill
	cmpq	$0, (%rdi)
	je	LBB0_9
## %bb.1:
	movl	%esi, %r13d
	movq	_hInstance@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_IDS_MODEFMT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-304(%rbp), %rdx
	movl	$64, %ecx
	callq	_LoadString
	testl	%eax, %eax
	jne	LBB0_3
## %bb.2:
	xorl	%edi, %edi
	callq	_TEXT
	movl	%eax, -304(%rbp)
LBB0_3:
	movq	-1088(%rbp), %rbx               ## 8-byte Reload
	movq	(%rbx), %rax
	movl	(%rax), %edi
	callq	*16(%rax)
	movq	%rax, -1096(%rbp)               ## 8-byte Spill
	movq	(%rbx), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	callq	*8(%rax)
	testq	%rax, %rax
	je	LBB0_9
## %bb.4:
	movq	%rax, %r12
	movl	$1, %ebx
	movq	_IDC_ALLVALIDMODES@GOTPCREL(%rip), %r14
	movl	%r13d, -1076(%rbp)              ## 4-byte Spill
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	-1088(%rbp), %rax               ## 8-byte Reload
	movq	(%rax), %rax
	movl	(%rax), %edi
	movl	%ebx, %esi
	callq	*8(%rax)
	movq	%rax, %r12
	incl	%ebx
	testq	%rax, %rax
	je	LBB0_9
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	movq	%r14, %r13
	leaq	-816(%rbp), %r14
	movq	%r14, %rsi
	movl	$64, %edx
	callq	_GetColorDescription
	movq	%r12, %rdi
	leaq	-1072(%rbp), %r15
	movq	%r15, %rsi
	movl	$64, %edx
	callq	_GetRefreshRateDescription
	movl	(%r12), %r8d
	movl	4(%r12), %ecx
	movq	%r15, (%rsp)
	leaq	-560(%rbp), %r15
	movq	%r15, %rdi
	movl	$64, %esi
	leaq	-304(%rbp), %rdx
	movq	%r14, %r9
	movq	%r13, %r14
	movl	-1076(%rbp), %r13d              ## 4-byte Reload
	callq	__sntprintf
	movl	(%r14), %esi
	movq	_LB_ADDSTRING@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r13d, %edi
	xorl	%ecx, %ecx
	movl	%r15d, %r8d
	callq	_SendDlgItemMessage
	testq	%rax, %rax
	js	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%rax, %r15
	movl	(%r14), %esi
	movq	_LB_SETITEMDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r13d, %edi
	movl	%r15d, %ecx
	movl	%r12d, %r8d
	callq	_SendDlgItemMessage
	cmpq	-1096(%rbp), %r12               ## 8-byte Folded Reload
	jne	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	(%r14), %esi
	movq	_LB_SETCURSEL@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r13d, %edi
	movl	%r15d, %ecx
	xorl	%r8d, %r8d
	callq	_SendDlgItemMessage
	jmp	LBB0_8
LBB0_9:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_11
## %bb.10:
	addq	$1064, %rsp                     ## imm = 0x428
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_hInstance,4,2                  ## @hInstance
	.comm	_IDS_MODEFMT,4,2                ## @IDS_MODEFMT
	.comm	_IDC_ALLVALIDMODES,4,2          ## @IDC_ALLVALIDMODES
	.comm	_LB_ADDSTRING,4,2               ## @LB_ADDSTRING
	.comm	_LB_SETITEMDATA,4,2             ## @LB_SETITEMDATA
	.comm	_LB_SETCURSEL,4,2               ## @LB_SETCURSEL
	.no_dead_strip	_InitListAllModesDialog
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function InitListAllModesDialog
_InitListAllModesDialog:                ; @InitListAllModesDialog
	.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
	sub	sp, sp, #1040
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-96]
	ldr	x8, [x0]
	cbz	x8, LBB0_9
; %bb.1:
	mov	x19, x1
	mov	x20, x0
Lloh3:
	adrp	x8, _hInstance@GOTPAGE
Lloh4:
	ldr	x8, [x8, _hInstance@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
Lloh6:
	adrp	x8, _IDS_MODEFMT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _IDS_MODEFMT@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	add	x2, sp, #768
	mov	w3, #64
	bl	_LoadString
	cbnz	w0, LBB0_3
; %bb.2:
	bl	_TEXT
	str	w0, [sp, #768]
LBB0_3:
	ldr	x8, [x20]
	ldr	x9, [x8, #16]
	ldr	w0, [x8]
	blr	x9
	mov	x21, x0
	ldr	x8, [x20]
	ldr	x9, [x8, #8]
	ldr	w0, [x8]
	mov	w1, #0
	blr	x9
	cbz	x0, LBB0_9
; %bb.4:
	mov	x23, x0
	mov	w22, #1
Lloh9:
	adrp	x25, _IDC_ALLVALIDMODES@GOTPAGE
Lloh10:
	ldr	x25, [x25, _IDC_ALLVALIDMODES@GOTPAGEOFF]
Lloh11:
	adrp	x26, _LB_ADDSTRING@GOTPAGE
Lloh12:
	ldr	x26, [x26, _LB_ADDSTRING@GOTPAGEOFF]
Lloh13:
	adrp	x27, _LB_SETITEMDATA@GOTPAGE
Lloh14:
	ldr	x27, [x27, _LB_SETITEMDATA@GOTPAGEOFF]
Lloh15:
	adrp	x28, _LB_SETCURSEL@GOTPAGE
Lloh16:
	ldr	x28, [x28, _LB_SETCURSEL@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x20]
	ldr	x9, [x8, #8]
	ldr	w0, [x8]
	mov	x1, x22
	blr	x9
	mov	x23, x0
	add	w22, w22, #1
	cbz	x0, LBB0_9
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	add	x1, sp, #256
	mov	x0, x23
	mov	w2, #64
	bl	_GetColorDescription
	mov	x1, sp
	mov	x0, x23
	mov	w2, #64
	bl	_GetRefreshRateDescription
	ldp	w4, w3, [x23]
	add	x0, sp, #512
	add	x2, sp, #768
	add	x5, sp, #256
	mov	x6, sp
	mov	w1, #64
	bl	__sntprintf
	ldr	w1, [x25]
	ldr	w2, [x26]
	add	x4, sp, #512
	mov	x0, x19
	mov	w3, #0
	bl	_SendDlgItemMessage
	tbnz	x0, #63, LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	mov	x24, x0
	ldr	w1, [x25]
	ldr	w2, [x27]
	mov	x0, x19
	mov	x3, x24
	mov	x4, x23
	bl	_SendDlgItemMessage
	cmp	x23, x21
	b.ne	LBB0_5
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w1, [x25]
	ldr	w2, [x28]
	mov	x0, x19
	mov	x3, x24
	mov	w4, #0
	bl	_SendDlgItemMessage
	b	LBB0_5
LBB0_9:
	ldur	x8, [x29, #-96]
Lloh17:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh18:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_11
; %bb.10:
	add	sp, sp, #1040
	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
LBB0_11:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_hInstance,4,2                  ; @hInstance
	.comm	_IDS_MODEFMT,4,2                ; @IDS_MODEFMT
	.comm	_IDC_ALLVALIDMODES,4,2          ; @IDC_ALLVALIDMODES
	.comm	_LB_ADDSTRING,4,2               ; @LB_ADDSTRING
	.comm	_LB_SETITEMDATA,4,2             ; @LB_SETITEMDATA
	.comm	_LB_SETCURSEL,4,2               ; @LB_SETCURSEL
	.no_dead_strip	_InitListAllModesDialog
.subsections_via_symbols
