	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function preview_set_render_size
LCPI0_0:
	.long	4294967292                      ## 0xfffffffc
	.long	4                               ## 0x4
	.space	4
	.space	4
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_preview_set_render_size
	.p2align	4, 0x90
_preview_set_render_size:               ## @preview_set_render_size
	.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	%edx, %r14d
	movl	%esi, %r12d
	movq	%rdi, %r15
	movl	8(%rdi), %edi
	leaq	L_.str(%rip), %rsi
	callq	_GHB_WIDGET
	movq	%rax, %rdi
	movl	%r12d, %esi
	movl	%r14d, %edx
	callq	_gtk_widget_set_size_request
	movl	8(%r15), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_GHB_WIDGET
	movq	%rax, %rdi
	callq	_GTK_WINDOW
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_GTK_WIDGET
	movl	%eax, %edi
	callq	_ghb_widget_get_surface
	movq	%rax, %r13
	movq	%rbx, %rdi
	callq	_gtk_window_unmaximize
	testq	%r13, %r13
	je	LBB0_2
## %bb.1:
	movd	%r12d, %xmm0
	pshufd	$80, %xmm0, %xmm0               ## xmm0 = xmm0[0,0,1,1]
	paddd	LCPI0_0(%rip), %xmm0
	cvtsi2sd	%r14d, %xmm1
	cvtdq2pd	%xmm0, %xmm0
	movddup	%xmm1, %xmm1                    ## xmm1 = xmm1[0,0]
	divpd	%xmm1, %xmm0
	movapd	%xmm0, -64(%rbp)
	movabsq	$8589934594, %rax               ## imm = 0x200000002
	movq	%rax, -48(%rbp)
	movq	_GDK_HINT_ASPECT@GOTPCREL(%rip), %rax
	movq	_GDK_HINT_RESIZE_INC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	leaq	-64(%rbp), %rsi
	movq	%r13, %rdi
	callq	_ghb_surface_set_geometry_hints
LBB0_2:
	movq	%rbx, %rdi
	movl	%r12d, %esi
	movl	%r14d, %edx
	callq	_gtk_window_resize
	movq	(%r15), %rax
	movl	%r12d, (%rax)
	movl	%r14d, 4(%rax)
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"preview_image"

L_.str.1:                               ## @.str.1
	.asciz	"preview_window"

	.comm	_GDK_HINT_ASPECT,4,2            ## @GDK_HINT_ASPECT
	.comm	_GDK_HINT_RESIZE_INC,4,2        ## @GDK_HINT_RESIZE_INC
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function preview_set_render_size
lCPI0_0:
	.long	4294967292                      ; 0xfffffffc
	.long	4                               ; 0x4
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_preview_set_render_size
	.p2align	2
_preview_set_render_size:               ; @preview_set_render_size
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	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
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	ldr	w0, [x0, #8]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_GHB_WIDGET
	mov	x1, x20
	mov	x2, x19
	bl	_gtk_widget_set_size_request
	ldr	w0, [x21, #8]
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_GHB_WIDGET
	bl	_GTK_WINDOW
	mov	x22, x0
	bl	_GTK_WIDGET
	bl	_ghb_widget_get_surface
	mov	x23, x0
	mov	x0, x22
	bl	_gtk_window_unmaximize
	cbz	x23, LBB0_2
; %bb.1:
	dup.2s	v0, w20
Lloh4:
	adrp	x8, lCPI0_0@PAGE
Lloh5:
	ldr	d1, [x8, lCPI0_0@PAGEOFF]
	add.2s	v0, v0, v1
	scvtf	d1, w19
	sshll.2d	v0, v0, #0
	dup.2d	v1, v1[0]
	scvtf.2d	v0, v0
	fdiv.2d	v0, v0, v1
	str	q0, [sp]
	movi.2s	v0, #2
Lloh6:
	adrp	x8, _GDK_HINT_ASPECT@GOTPAGE
Lloh7:
	ldr	x8, [x8, _GDK_HINT_ASPECT@GOTPAGEOFF]
	str	d0, [sp, #16]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x9, _GDK_HINT_RESIZE_INC@GOTPAGE
Lloh10:
	ldr	x9, [x9, _GDK_HINT_RESIZE_INC@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	orr	w2, w9, w8
	mov	x1, sp
	mov	x0, x23
	bl	_ghb_surface_set_geometry_hints
LBB0_2:
	mov	x0, x22
	mov	x1, x20
	mov	x2, x19
	bl	_gtk_window_resize
	ldr	x8, [x21]
	stp	w20, w19, [x8]
	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
	add	sp, sp, #96
	ret
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdrp	Lloh4, Lloh6
	.loh AdrpLdr	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"preview_image"

l_.str.1:                               ; @.str.1
	.asciz	"preview_window"

	.comm	_GDK_HINT_ASPECT,4,2            ; @GDK_HINT_ASPECT
	.comm	_GDK_HINT_RESIZE_INC,4,2        ; @GDK_HINT_RESIZE_INC
.subsections_via_symbols
