	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function GraphicsOptions_FindBuiltinResolution
_GraphicsOptions_FindBuiltinResolution: ## @GraphicsOptions_FindBuiltinResolution
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %ebx
	movq	_resolutionsDetected@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	je	LBB0_7
## %bb.1:
	testl	%ebx, %ebx
	js	LBB0_6
## %bb.2:
	movq	_builtinResolutions@GOTPCREL(%rip), %r14
	movq	(%r14), %rax
	movq	(%rax), %rdi
	testq	%rdi, %rdi
	je	LBB0_6
## %bb.3:
	movl	%ebx, %r15d
	xorl	%ebx, %ebx
	movq	_detectedResolutions@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rax
	movl	(%rax,%r15,4), %esi
	callq	_Q_stricmp
	testl	%eax, %eax
	je	LBB0_7
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	(%r14), %rax
	movq	8(%rax,%rbx,8), %rdi
	incq	%rbx
	testq	%rdi, %rdi
	jne	LBB0_4
LBB0_6:
	movl	$-1, %ebx
LBB0_7:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_resolutionsDetected,4,2        ## @resolutionsDetected
	.comm	_builtinResolutions,8,3         ## @builtinResolutions
	.comm	_detectedResolutions,8,3        ## @detectedResolutions
	.no_dead_strip	_GraphicsOptions_FindBuiltinResolution
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function GraphicsOptions_FindBuiltinResolution
_GraphicsOptions_FindBuiltinResolution: ; @GraphicsOptions_FindBuiltinResolution
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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, x0
Lloh0:
	adrp	x8, _resolutionsDetected@GOTPAGE
Lloh1:
	ldr	x8, [x8, _resolutionsDetected@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cbz	w8, LBB0_7
; %bb.1:
	tbnz	w19, #31, LBB0_6
; %bb.2:
Lloh3:
	adrp	x20, _builtinResolutions@GOTPAGE
Lloh4:
	ldr	x20, [x20, _builtinResolutions@GOTPAGEOFF]
	ldr	x8, [x20]
	ldr	x0, [x8]
	cbz	x0, LBB0_6
; %bb.3:
	mov	w21, w19
Lloh5:
	adrp	x22, _detectedResolutions@GOTPAGE
Lloh6:
	ldr	x22, [x22, _detectedResolutions@GOTPAGEOFF]
	mov	x19, #0
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x22]
	ldr	w1, [x8, x21, lsl #2]
	bl	_Q_stricmp
	cbz	w0, LBB0_7
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x20]
	add	x8, x8, x19, lsl #3
	add	x19, x19, #1
	ldr	x0, [x8, #8]
	cbnz	x0, LBB0_4
LBB0_6:
	mov	w19, #-1
LBB0_7:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_resolutionsDetected,4,2        ; @resolutionsDetected
	.comm	_builtinResolutions,8,3         ; @builtinResolutions
	.comm	_detectedResolutions,8,3        ; @detectedResolutions
	.no_dead_strip	_GraphicsOptions_FindBuiltinResolution
.subsections_via_symbols
