	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal4,4byte_literals
	.p2align	2                               ## -- Begin function crt_switch_res_core
LCPI0_0:
	.long	0x42540000                      ## float 53
LCPI0_1:
	.long	0x42f00000                      ## float 120
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_crt_switch_res_core
	.p2align	4, 0x90
_crt_switch_res_core:                   ## @crt_switch_res_core
	.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
	movl	%r8d, %r15d
	movl	%ecx, %ebx
	movl	%edx, %r14d
	cmpl	$4, %edi
	movl	$240, %ecx
	cmovnel	%esi, %ecx
	movl	$320, %eax                      ## imm = 0x140
	cmovnel	%edi, %eax
	movq	_ra_core_height@GOTPCREL(%rip), %rdx
	movl	%ecx, (%rdx)
	movq	_ra_core_hz@GOTPCREL(%rip), %rcx
	movss	%xmm0, (%rcx)
	testl	%r9d, %r9d
	je	LBB0_2
## %bb.1:
	movl	%eax, %edi
	movaps	%xmm0, -64(%rbp)                ## 16-byte Spill
	movq	%rcx, %r12
	callq	_crt_compute_dynamic_width
	movq	%r12, %rcx
	movaps	-64(%rbp), %xmm0                ## 16-byte Reload
LBB0_2:
	movq	_ra_core_width@GOTPCREL(%rip), %r13
	movl	%eax, (%r13)
	movq	_crt_center_adjust@GOTPCREL(%rip), %r12
	movl	%ebx, (%r12)
	movq	_crt_index@GOTPCREL(%rip), %rax
	movl	%r15d, (%rax)
	ucomiss	%xmm0, %xmm0
	jp	LBB0_5
## %bb.3:
	cmpl	$2, %r14d
	jne	LBB0_5
## %bb.4:
	movaps	%xmm0, %xmm2
	addss	%xmm0, %xmm2
	cmpnless	LCPI0_0(%rip), %xmm0
	andps	%xmm0, %xmm2
	movss	LCPI0_1(%rip), %xmm1            ## xmm1 = mem[0],zero,zero,zero
	andnps	%xmm1, %xmm0
	orps	%xmm2, %xmm0
	movss	%xmm0, (%rcx)
LBB0_5:
	xorl	%eax, %eax
	callq	_crt_check_first_run
	movq	_ra_tmp_height@GOTPCREL(%rip), %r15
	movl	(%r15), %eax
	movq	_ra_core_height@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movl	(%r13), %edi
	movq	_ra_tmp_width@GOTPCREL(%rip), %r14
	cmpl	%esi, %eax
	jne	LBB0_8
## %bb.6:
	cmpl	(%r14), %edi
	jne	LBB0_8
## %bb.7:
	movl	(%r12), %ecx
	movq	_crt_tmp_center_adjust@GOTPCREL(%rip), %rdx
	cmpl	(%rdx), %ecx
	je	LBB0_9
LBB0_8:
	callq	_crt_screen_setup_aspect
	movl	(%rbx), %eax
	movl	(%r13), %edi
	movl	(%r12), %ecx
LBB0_9:
	movl	%eax, (%r15)
	movl	%edi, (%r14)
	movq	_crt_tmp_center_adjust@GOTPCREL(%rip), %rax
	movl	%ecx, (%rax)
	xorl	%eax, %eax
	callq	_video_driver_get_aspect_ratio
	movq	_fly_aspect@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	%rcx, %rax
	jne	LBB0_11
## %bb.10:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	xorps	%xmm0, %xmm0
	cvtsi2ss	%rcx, %xmm0
	callq	_video_driver_set_aspect_ratio_value
	xorl	%eax, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_video_driver_apply_state_changes ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ra_core_height,4,2             ## @ra_core_height
	.comm	_ra_core_hz,4,2                 ## @ra_core_hz
	.comm	_ra_core_width,4,2              ## @ra_core_width
	.comm	_crt_center_adjust,4,2          ## @crt_center_adjust
	.comm	_crt_index,4,2                  ## @crt_index
	.comm	_ra_tmp_height,4,2              ## @ra_tmp_height
	.comm	_ra_tmp_width,4,2               ## @ra_tmp_width
	.comm	_crt_tmp_center_adjust,4,2      ## @crt_tmp_center_adjust
	.comm	_fly_aspect,8,3                 ## @fly_aspect
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_crt_switch_res_core            ; -- Begin function crt_switch_res_core
	.p2align	2
_crt_switch_res_core:                   ; @crt_switch_res_core
	.cfi_startproc
; %bb.0:
	stp	d9, d8, [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 b8, -88
	.cfi_offset b9, -96
	mov	x20, x4
	mov	x21, x3
	mov	x19, x2
	fmov	s8, s0
	mov	w8, #240
	cmp	w0, #4
	csel	w8, w8, w1, eq
	mov	w9, #320
	csel	w0, w9, w0, eq
Lloh0:
	adrp	x22, _ra_core_height@GOTPAGE
Lloh1:
	ldr	x22, [x22, _ra_core_height@GOTPAGEOFF]
	str	w8, [x22]
Lloh2:
	adrp	x25, _ra_core_hz@GOTPAGE
Lloh3:
	ldr	x25, [x25, _ra_core_hz@GOTPAGEOFF]
	str	s0, [x25]
	cbz	w5, LBB0_2
; %bb.1:
	bl	_crt_compute_dynamic_width
LBB0_2:
Lloh4:
	adrp	x23, _ra_core_width@GOTPAGE
Lloh5:
	ldr	x23, [x23, _ra_core_width@GOTPAGEOFF]
Lloh6:
	adrp	x24, _crt_center_adjust@GOTPAGE
Lloh7:
	ldr	x24, [x24, _crt_center_adjust@GOTPAGEOFF]
	str	w0, [x23]
	str	w21, [x24]
Lloh8:
	adrp	x8, _crt_index@GOTPAGE
Lloh9:
	ldr	x8, [x8, _crt_index@GOTPAGEOFF]
Lloh10:
	str	w20, [x8]
	fcmp	s8, s8
	b.vs	LBB0_5
; %bb.3:
	cmp	w19, #2
	b.ne	LBB0_5
; %bb.4:
	fadd	s0, s8, s8
	mov	w8, #1112801280
	fmov	s1, w8
	fcmp	s8, s1
	mov	w8, #1123024896
	fmov	s1, w8
	fcsel	s0, s0, s1, hi
	str	s0, [x25]
LBB0_5:
	bl	_crt_check_first_run
Lloh11:
	adrp	x19, _ra_tmp_height@GOTPAGE
Lloh12:
	ldr	x19, [x19, _ra_tmp_height@GOTPAGEOFF]
	ldr	w8, [x19]
	ldr	w1, [x22]
Lloh13:
	adrp	x20, _ra_tmp_width@GOTPAGE
Lloh14:
	ldr	x20, [x20, _ra_tmp_width@GOTPAGEOFF]
	ldr	w0, [x23]
	ldr	w9, [x20]
	cmp	w8, w1
	ccmp	w0, w9, #0, eq
Lloh15:
	adrp	x21, _crt_tmp_center_adjust@GOTPAGE
Lloh16:
	ldr	x21, [x21, _crt_tmp_center_adjust@GOTPAGEOFF]
	b.ne	LBB0_7
; %bb.6:
	ldr	w9, [x24]
	ldr	w10, [x21]
	cmp	w9, w10
	b.eq	LBB0_8
LBB0_7:
	bl	_crt_screen_setup_aspect
	ldr	w8, [x22]
	ldr	w0, [x23]
	ldr	w9, [x24]
LBB0_8:
	str	w8, [x19]
	str	w0, [x20]
	str	w9, [x21]
	bl	_video_driver_get_aspect_ratio
Lloh17:
	adrp	x8, _fly_aspect@GOTPAGE
Lloh18:
	ldr	x8, [x8, _fly_aspect@GOTPAGEOFF]
Lloh19:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_10
; %bb.9:
	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	d9, d8, [sp], #96               ; 16-byte Folded Reload
	ret
LBB0_10:
	scvtf	s0, x8
	bl	_video_driver_set_aspect_ratio_value
	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	d9, d8, [sp], #96               ; 16-byte Folded Reload
	b	_video_driver_apply_state_changes
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotStr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_ra_core_height,4,2             ; @ra_core_height
	.comm	_ra_core_hz,4,2                 ; @ra_core_hz
	.comm	_ra_core_width,4,2              ; @ra_core_width
	.comm	_crt_center_adjust,4,2          ; @crt_center_adjust
	.comm	_crt_index,4,2                  ; @crt_index
	.comm	_ra_tmp_height,4,2              ; @ra_tmp_height
	.comm	_ra_tmp_width,4,2               ; @ra_tmp_width
	.comm	_crt_tmp_center_adjust,4,2      ; @crt_tmp_center_adjust
	.comm	_fly_aspect,8,3                 ; @fly_aspect
.subsections_via_symbols
