	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_GetAdapterMode                 ## -- Begin function GetAdapterMode
	.p2align	4, 0x90
_GetAdapterMode:                        ## @GetAdapterMode
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movl	%edi, %r14d
	leaq	-64(%rbp), %r12
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	$20, %edx
	callq	_memset
	movl	$20, -64(%rbp)
	movq	_FALSE@GOTPCREL(%rip), %rbx
	movq	(%rbx), %r13
	movq	_ENUM_CURRENT_SETTINGS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%r14d, %edi
	movq	%r12, %rdx
	callq	_EnumDisplaySettingsA
	cmpq	%rax, %r13
	je	LBB0_10
## %bb.1:
	movl	-48(%rbp), %eax
	movl	%eax, 12(%r15)
	movl	-52(%rbp), %eax
	movl	%eax, 8(%r15)
	movl	-56(%rbp), %eax
	movl	%eax, 4(%r15)
	movl	-60(%rbp), %eax
	addl	$-8, %eax
	roll	$29, %eax
	cmpl	$3, %eax
	ja	LBB0_7
## %bb.2:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_3:
	movq	_D3DFMT_P8@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_7:
	movq	_D3DFMT_UNKNOWN@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_4:
	movl	%r14d, %edi
	callq	_Get16BitD3DFormat
	jmp	LBB0_9
LBB0_5:
	movq	_D3DFMT_R8G8B8@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_6:
	movq	_D3DFMT_X8R8G8B8@GOTPCREL(%rip), %rax
LBB0_8:
	movl	(%rax), %eax
LBB0_9:
	movl	%eax, (%r15)
	movq	_TRUE@GOTPCREL(%rip), %rbx
LBB0_10:
	movq	(%rbx), %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
LJTI0_0:
	.long	L0_0_set_3
	.long	L0_0_set_4
	.long	L0_0_set_5
	.long	L0_0_set_6
	.end_data_region
                                        ## -- End function
	.comm	_FALSE,8,3                      ## @FALSE
	.comm	_ENUM_CURRENT_SETTINGS,4,2      ## @ENUM_CURRENT_SETTINGS
	.comm	_D3DFMT_P8,4,2                  ## @D3DFMT_P8
	.comm	_D3DFMT_R8G8B8,4,2              ## @D3DFMT_R8G8B8
	.comm	_D3DFMT_X8R8G8B8,4,2            ## @D3DFMT_X8R8G8B8
	.comm	_D3DFMT_UNKNOWN,4,2             ## @D3DFMT_UNKNOWN
	.comm	_TRUE,8,3                       ## @TRUE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_GetAdapterMode                 ; -- Begin function GetAdapterMode
	.p2align	2
_GetAdapterMode:                        ; @GetAdapterMode
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x1
	mov	x20, x0
	mov	w21, #20
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #20
	bl	_memset
	str	w21, [sp, #8]
Lloh0:
	adrp	x21, _FALSE@GOTPAGE
Lloh1:
	ldr	x21, [x21, _FALSE@GOTPAGEOFF]
	ldr	x22, [x21]
Lloh2:
	adrp	x8, _ENUM_CURRENT_SETTINGS@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ENUM_CURRENT_SETTINGS@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	add	x2, sp, #8
	mov	x0, x20
	bl	_EnumDisplaySettingsA
	cmp	x22, x0
	b.eq	LBB0_10
; %bb.1:
	ldr	w8, [sp, #24]
	str	w8, [x19, #12]
	ldr	d0, [sp, #16]
	stur	d0, [x19, #4]
	ldr	w8, [sp, #12]
	sub	w8, w8, #8
	ror	w8, w8, #3
	cmp	w8, #3
	b.hi	LBB0_4
; %bb.2:
Lloh5:
	adrp	x9, lJTI0_0@PAGE
Lloh6:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_3
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_3:
Lloh7:
	adrp	x8, _D3DFMT_P8@GOTPAGE
Lloh8:
	ldr	x8, [x8, _D3DFMT_P8@GOTPAGEOFF]
	b	LBB0_8
LBB0_4:
Lloh9:
	adrp	x8, _D3DFMT_UNKNOWN@GOTPAGE
Lloh10:
	ldr	x8, [x8, _D3DFMT_UNKNOWN@GOTPAGEOFF]
	b	LBB0_8
LBB0_5:
	mov	x0, x20
	bl	_Get16BitD3DFormat
	b	LBB0_9
LBB0_6:
Lloh11:
	adrp	x8, _D3DFMT_R8G8B8@GOTPAGE
Lloh12:
	ldr	x8, [x8, _D3DFMT_R8G8B8@GOTPAGEOFF]
	b	LBB0_8
LBB0_7:
Lloh13:
	adrp	x8, _D3DFMT_X8R8G8B8@GOTPAGE
Lloh14:
	ldr	x8, [x8, _D3DFMT_X8R8G8B8@GOTPAGEOFF]
LBB0_8:
	ldr	w0, [x8]
LBB0_9:
	str	w0, [x19]
Lloh15:
	adrp	x21, _TRUE@GOTPAGE
Lloh16:
	ldr	x21, [x21, _TRUE@GOTPAGEOFF]
LBB0_10:
	ldr	x0, [x21]
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_5-LBB0_3)>>2
	.byte	(LBB0_6-LBB0_3)>>2
	.byte	(LBB0_7-LBB0_3)>>2
                                        ; -- End function
	.comm	_FALSE,8,3                      ; @FALSE
	.comm	_ENUM_CURRENT_SETTINGS,4,2      ; @ENUM_CURRENT_SETTINGS
	.comm	_D3DFMT_P8,4,2                  ; @D3DFMT_P8
	.comm	_D3DFMT_R8G8B8,4,2              ; @D3DFMT_R8G8B8
	.comm	_D3DFMT_X8R8G8B8,4,2            ; @D3DFMT_X8R8G8B8
	.comm	_D3DFMT_UNKNOWN,4,2             ; @D3DFMT_UNKNOWN
	.comm	_TRUE,8,3                       ; @TRUE
.subsections_via_symbols
