	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_CreateDisplayModeList          ## -- Begin function CreateDisplayModeList
	.p2align	4, 0x90
_CreateDisplayModeList:                 ## @CreateDisplayModeList
	.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
	movq	%r8, -80(%rbp)                  ## 8-byte Spill
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movq	%rsi, %rbx
	movl	%edi, %r13d
	movq	_TRUE@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	xorl	%r12d, %r12d
	leaq	-72(%rbp), %rdx
	xorl	%esi, %esi
	callq	_EnumDisplaySettingsA
	cmpq	%rax, %r14
	jne	LBB0_12
## %bb.1:
	movl	$1, %r14d
	xorl	%r12d, %r12d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	xorl	%ebx, %ebx
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	_TRUE@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	movl	%r13d, %edi
	movq	%r14, %rsi
	leaq	-72(%rbp), %rdx
	callq	_EnumDisplaySettingsA
	incq	%r14
	cmpq	%rax, %r15
	jne	LBB0_12
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	-72(%rbp), %eax
	cmpq	$32, %rax
	ja	LBB0_11
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movabsq	$4295065600, %rcx               ## imm = 0x100018000
	btq	%rax, %rcx
	jae	LBB0_11
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	incq	%r12
	addl	$-15, %eax
	cmpl	$1, %eax
	ja	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	cmpq	$0, -80(%rbp)                   ## 8-byte Folded Reload
	je	LBB0_11
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	testq	%rbx, %rbx
	jne	LBB0_9
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	_D3DFMT_X8R8G8B8@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testq	%rbx, %rbx
	je	LBB0_8
LBB0_9:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	cmpq	(%rcx), %r12
	je	LBB0_12
## %bb.10:                              ##   in Loop: Header=BB0_2 Depth=1
	movl	-60(%rbp), %ecx
	movl	%ecx, 12(%rbx)
	movl	-64(%rbp), %ecx
	movl	%ecx, 8(%rbx)
	movl	-68(%rbp), %ecx
	movl	%ecx, 4(%rbx)
	movl	%eax, (%rbx)
	addq	$16, %rbx
	jmp	LBB0_11
LBB0_12:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	%r12, (%rax)
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TRUE,8,3                       ## @TRUE
	.comm	_D3DFMT_X8R8G8B8,4,2            ## @D3DFMT_X8R8G8B8
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_CreateDisplayModeList          ; -- Begin function CreateDisplayModeList
	.p2align	2
_CreateDisplayModeList:                 ; @CreateDisplayModeList
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	str	x4, [sp, #8]                    ; 8-byte Folded Spill
	mov	x21, x3
	mov	x19, x2
	mov	x23, x1
	mov	x22, x0
Lloh0:
	adrp	x25, _TRUE@GOTPAGE
Lloh1:
	ldr	x25, [x25, _TRUE@GOTPAGEOFF]
	ldr	x24, [x25]
	add	x2, sp, #16
	mov	x1, #0
	bl	_EnumDisplaySettingsA
	mov	x26, #0
	cmp	x24, x0
	b.ne	LBB0_10
; %bb.1:
	mov	x26, #0
	mov	w27, #1
	mov	x28, #8589901824
	movk	x28, #1, lsl #16
	mov	w24, #1
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x20, [x25]
	add	x2, sp, #16
	mov	x0, x22
	mov	x1, x24
	bl	_EnumDisplaySettingsA
	add	x24, x24, #1
	cmp	x20, x0
	b.ne	LBB0_10
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [sp, #16]
	cmp	w8, #32
	lsl	x9, x27, x8
	and	x9, x9, x28
	ccmp	x9, #0, #4, ls
	b.eq	LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x26, x26, #1
	sub	w8, w8, #15
	cmp	w8, #1
	b.hi	LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x8, x21
	ldr	x9, [sp, #8]                    ; 8-byte Folded Reload
	cbz	x9, LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	cbnz	x23, LBB0_8
	b	LBB0_2
LBB0_7:                                 ;   in Loop: Header=BB0_3 Depth=1
Lloh2:
	adrp	x8, _D3DFMT_X8R8G8B8@GOTPAGE
Lloh3:
	ldr	x8, [x8, _D3DFMT_X8R8G8B8@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	cbz	x23, LBB0_2
LBB0_8:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	x9, [x19]
	cmp	x26, x9
	b.eq	LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w9, [sp, #28]
	str	w9, [x23, #12]
	ldur	d0, [sp, #20]
	stur	d0, [x23, #4]
	str	w8, [x23], #16
	b	LBB0_2
LBB0_10:
	str	x26, [x19]
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_TRUE,8,3                       ; @TRUE
	.comm	_D3DFMT_X8R8G8B8,4,2            ; @D3DFMT_X8R8G8B8
.subsections_via_symbols
