	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vino_set_scaling
_vino_set_scaling:                      ## @vino_set_scaling
	.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, %ecx
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movl	8(%rdi), %eax
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movl	12(%rdi), %edx
	movl	%edx, -48(%rbp)                 ## 4-byte Spill
	movl	16(%rdi), %r12d
	subl	%eax, %r12d
	movl	20(%rdi), %r13d
	subl	%edx, %r13d
	movl	%r12d, %eax
	xorl	%edx, %edx
	divl	%esi
	movl	%eax, %edi
	movl	%r13d, %eax
	xorl	%edx, %edx
	divl	%ecx
	movl	%eax, %esi
	callq	_max
	movl	%eax, %r15d
	leaq	L_.str(%rip), %rdi
	movl	%r14d, %esi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movl	%r12d, %ecx
	movl	%r13d, %r8d
	movl	%eax, %r9d
	xorl	%eax, %eax
	callq	_dprintk
	cmpl	$8, %r15d
	movl	$8, %eax
	cmovbl	%r15d, %eax
	testl	%r15d, %r15d
	movl	$1, %r8d
	cmovnel	%eax, %r8d
	movl	%r8d, (%rbx)
	imull	%r8d, %r14d
	imull	-44(%rbp), %r8d                 ## 4-byte Folded Reload
	movq	%rbx, %rdi
	movl	-52(%rbp), %esi                 ## 4-byte Reload
	movl	-48(%rbp), %edx                 ## 4-byte Reload
	movl	%r14d, %ecx
	callq	_vino_set_clipping
	movl	8(%rbx), %esi
	movl	12(%rbx), %edx
	movl	16(%rbx), %ecx
	movl	20(%rbx), %r8d
	movl	(%rbx), %r9d
	movl	4(%rbx), %eax
	movl	%eax, (%rsp)
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_dprintk
	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	"scaling w: %d, h: %d, curw: %d, curh: %d, d: %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"scaling %d, %d, %d, %d / %d - %d\n"

	.no_dead_strip	_vino_set_scaling
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vino_set_scaling
_vino_set_scaling:                      ; @vino_set_scaling
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.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
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	ldp	w22, w23, [x0, #8]
	ldp	w8, w9, [x0, #16]
	sub	w24, w8, w22
	sub	w25, w9, w23
	udiv	w0, w24, w1
	udiv	w1, w25, w2
	bl	_max
	mov	x26, x0
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
	mov	x2, x19
	mov	x3, x24
	mov	x4, x25
	mov	x5, x26
	bl	_dprintk
	mov	w8, #8
	cmp	w26, #8
	csel	w8, w26, w8, lo
	cmp	w26, #0
	csinc	w8, w8, wzr, ne
	str	w8, [x21]
	mul	w3, w8, w20
	mul	w4, w8, w19
	mov	x0, x21
	mov	x1, x22
	mov	x2, x23
	bl	_vino_set_clipping
	ldp	w1, w2, [x21, #8]
	ldp	w3, w4, [x21, #16]
	ldp	w5, w8, [x21]
	str	x8, [sp]
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_dprintk
	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
	add	sp, sp, #96
	ret
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"scaling w: %d, h: %d, curw: %d, curh: %d, d: %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"scaling %d, %d, %d, %d / %d - %d\n"

	.no_dead_strip	_vino_set_scaling
.subsections_via_symbols
