	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function set_default_window_size
_set_default_window_size:               ## @set_default_window_size
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	subq	$16, %rsp
	movl	%edx, %r10d
	movl	%esi, %eax
	movl	%edi, %r9d
	movq	_screen_width@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, %ecx
	movq	_INT_MAX@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	cmovel	%edx, %ecx
	movq	_screen_height@GOTPCREL(%rip), %rsi
	movl	(%rsi), %r8d
	testl	%r8d, %r8d
	cmovel	%edx, %r8d
	movl	%ecx, %esi
	xorl	%edx, %esi
	xorl	%r8d, %edx
	orl	%esi, %edx
	cmovel	%eax, %r8d
	leaq	-8(%rbp), %rdi
	xorl	%esi, %esi
	xorl	%edx, %edx
	pushq	%r10
	pushq	%rax
	callq	_calculate_display_rect
	addq	$16, %rsp
	movl	-8(%rbp), %eax
	movl	-4(%rbp), %ecx
	movq	_default_width@GOTPCREL(%rip), %rdx
	movl	%ecx, (%rdx)
	movq	_default_height@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	addq	$16, %rsp
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_screen_width,4,2               ## @screen_width
	.comm	_INT_MAX,4,2                    ## @INT_MAX
	.comm	_screen_height,4,2              ## @screen_height
	.comm	_default_width,4,2              ## @default_width
	.comm	_default_height,4,2             ## @default_height
	.no_dead_strip	_set_default_window_size
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function set_default_window_size
_set_default_window_size:               ; @set_default_window_size
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #32
	.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
	mov	x7, x2
	mov	x6, x1
	mov	x5, x0
Lloh0:
	adrp	x8, _screen_width@GOTPAGE
Lloh1:
	ldr	x8, [x8, _screen_width@GOTPAGEOFF]
Lloh2:
	adrp	x9, _INT_MAX@GOTPAGE
Lloh3:
	ldr	x9, [x9, _INT_MAX@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	ldr	w9, [x9]
	cmp	w8, #0
	csel	w3, w9, w8, eq
Lloh6:
	adrp	x8, _screen_height@GOTPAGE
Lloh7:
	ldr	x8, [x8, _screen_height@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	cmp	w8, #0
	csel	w8, w9, w8, eq
	cmp	w8, w9
	ccmp	w3, w9, #0, eq
	csel	w4, w1, w8, eq
	add	x0, sp, #8
	mov	w1, #0
	mov	w2, #0
	bl	_calculate_display_rect
Lloh9:
	adrp	x8, _default_width@GOTPAGE
Lloh10:
	ldr	x8, [x8, _default_width@GOTPAGEOFF]
	ldp	w10, w9, [sp, #8]
Lloh11:
	str	w9, [x8]
Lloh12:
	adrp	x8, _default_height@GOTPAGE
Lloh13:
	ldr	x8, [x8, _default_height@GOTPAGEOFF]
Lloh14:
	str	w10, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #32
	ret
	.loh AdrpLdrGotStr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotStr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_screen_width,4,2               ; @screen_width
	.comm	_INT_MAX,4,2                    ; @INT_MAX
	.comm	_screen_height,4,2              ; @screen_height
	.comm	_default_width,4,2              ; @default_width
	.comm	_default_height,4,2             ; @default_height
	.no_dead_strip	_set_default_window_size
.subsections_via_symbols
