	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vidmodeFromModeInfo
_vidmodeFromModeInfo:                   ## @vidmodeFromModeInfo
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	(%rdx), %rax
	movq	_RR_Rotate_90@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	sete	%cl
	movq	_RR_Rotate_270@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rax
	sete	%al
	orb	%cl, %al
	movzbl	%al, %ecx
	xorb	$1, %al
	movzbl	%al, %eax
	movl	(%rsi,%rcx,4), %ecx
	movl	(%rsi,%rax,4), %eax
	movl	%eax, 20(%rdi)
	movl	%ecx, 16(%rdi)
	movq	%rsi, %rdi
	callq	_calculateRefreshRate
	movl	%eax, 12(%rbx)
	movq	__glfw@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	4(%rax), %edi
	callq	_DefaultDepth
	leaq	8(%rbx), %rsi
	leaq	4(%rbx), %rdx
	movl	%eax, %edi
	movq	%rbx, %rcx
	callq	__glfwSplitBPP
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RR_Rotate_90,8,3               ## @RR_Rotate_90
	.comm	_RR_Rotate_270,8,3              ## @RR_Rotate_270
	.comm	__glfw,8,2                      ## @_glfw
	.no_dead_strip	_vidmodeFromModeInfo
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vidmodeFromModeInfo
_vidmodeFromModeInfo:                   ; @vidmodeFromModeInfo
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x8
	ldr	x8, [x1]
Lloh0:
	adrp	x9, _RR_Rotate_90@GOTPAGE
Lloh1:
	ldr	x9, [x9, _RR_Rotate_90@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
Lloh3:
	adrp	x10, _RR_Rotate_270@GOTPAGE
Lloh4:
	ldr	x10, [x10, _RR_Rotate_270@GOTPAGEOFF]
	cmp	x8, x9
Lloh5:
	ldr	x9, [x10]
	ccmp	x8, x9, #4, ne
	mov	w8, #4
	csel	x9, xzr, x8, eq
	csel	x8, x8, xzr, eq
	ldr	w8, [x0, x8]
	ldr	w9, [x0, x9]
	stp	w8, w9, [x19, #16]
	bl	_calculateRefreshRate
	str	w0, [x19, #12]
Lloh6:
	adrp	x8, __glfw@GOTPAGE
Lloh7:
	ldr	x8, [x8, __glfw@GOTPAGEOFF]
	ldp	w1, w0, [x8]
	bl	_DefaultDepth
	add	x1, x19, #8
	add	x2, x19, #4
	mov	x3, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	__glfwSplitBPP
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_RR_Rotate_90,8,3               ; @RR_Rotate_90
	.comm	_RR_Rotate_270,8,3              ; @RR_Rotate_270
	.comm	__glfw,8,2                      ; @_glfw
	.no_dead_strip	_vidmodeFromModeInfo
.subsections_via_symbols
