	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_floating_fix_coordinates       ## -- Begin function floating_fix_coordinates
	.p2align	4, 0x90
_floating_fix_coordinates:              ## @floating_fix_coordinates
	.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	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movl	(%rdi), %edx
	movsd	8(%rdi), %xmm0                  ## xmm0 = mem[0],zero
	movl	16(%rdi), %ecx
	movl	20(%rdi), %r8d
	leaq	L_.str(%rip), %rdi
	movq	%rbx, %rsi
	movb	$1, %al
	callq	_DLOG
	movsd	(%r15), %xmm0                   ## xmm0 = mem[0],zero
	movsd	8(%r15), %xmm1                  ## xmm1 = mem[0],zero
	movsd	16(%r15), %xmm2                 ## xmm2 = mem[0],zero
	movsd	24(%r15), %xmm3                 ## xmm3 = mem[0],zero
	leaq	L_.str.1(%rip), %rdi
	movb	$4, %al
	callq	_DLOG
	movsd	(%r14), %xmm0                   ## xmm0 = mem[0],zero
	movsd	8(%r14), %xmm1                  ## xmm1 = mem[0],zero
	movsd	16(%r14), %xmm2                 ## xmm2 = mem[0],zero
	movsd	24(%r14), %xmm3                 ## xmm3 = mem[0],zero
	leaq	L_.str.2(%rip), %rdi
	movb	$4, %al
	callq	_DLOG
	xorps	%xmm1, %xmm1
	cvtsi2sdl	(%rbx), %xmm1
	subsd	(%r15), %xmm1
	movl	16(%rbx), %eax
	movl	%eax, %ecx
	shrl	$31, %ecx
	addl	%eax, %ecx
	sarl	%ecx
	xorps	%xmm0, %xmm0
	cvtsi2sd	%ecx, %xmm0
	movsd	8(%rbx), %xmm2                  ## xmm2 = mem[0],zero
	subsd	8(%r15), %xmm2
	addsd	%xmm1, %xmm0
	movsd	%xmm0, -32(%rbp)                ## 8-byte Spill
	movl	20(%rbx), %eax
	movl	%eax, %ecx
	shrl	$31, %ecx
	addl	%eax, %ecx
	sarl	%ecx
	xorps	%xmm1, %xmm1
	cvtsi2sd	%ecx, %xmm1
	addsd	%xmm2, %xmm1
	movsd	%xmm1, -40(%rbp)                ## 8-byte Spill
	movsd	16(%r15), %xmm4                 ## xmm4 = mem[0],zero
	movsd	24(%r15), %xmm5                 ## xmm5 = mem[0],zero
	movapd	%xmm0, %xmm2
	divsd	%xmm4, %xmm2
	movapd	%xmm1, %xmm3
	divsd	%xmm5, %xmm3
	leaq	L_.str.3(%rip), %rdi
	movb	$6, %al
	callq	_DLOG
	movsd	-32(%rbp), %xmm0                ## 8-byte Reload
                                        ## xmm0 = mem[0],zero
	mulsd	16(%r14), %xmm0
	divsd	16(%r15), %xmm0
	addsd	(%r14), %xmm0
	movapd	%xmm0, %xmm1
	movl	16(%rbx), %eax
	movl	20(%rbx), %ecx
	movl	%eax, %edx
	shrl	$31, %edx
	addl	%eax, %edx
	sarl	%edx
	xorps	%xmm0, %xmm0
	cvtsi2sd	%edx, %xmm0
	subsd	%xmm0, %xmm1
	cvttsd2si	%xmm1, %esi
	movl	%esi, (%rbx)
	movsd	-40(%rbp), %xmm1                ## 8-byte Reload
                                        ## xmm1 = mem[0],zero
	mulsd	24(%r14), %xmm1
	divsd	24(%r15), %xmm1
	addsd	8(%r14), %xmm1
	movl	%ecx, %eax
	shrl	$31, %eax
	addl	%ecx, %eax
	sarl	%eax
	xorps	%xmm0, %xmm0
	cvtsi2sd	%eax, %xmm0
	subsd	%xmm0, %xmm1
	movsd	%xmm1, 8(%rbx)
	movapd	%xmm1, %xmm0
	leaq	L_.str.4(%rip), %rdi
	movb	$1, %al
	addq	$24, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_DLOG                           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Fixing coordinates of floating window %p (rect (%d, %d), %d x %d)\n"

L_.str.1:                               ## @.str.1
	.asciz	"old_rect = (%d, %d), %d x %d\n"

L_.str.2:                               ## @.str.2
	.asciz	"new_rect = (%d, %d), %d x %d\n"

L_.str.3:                               ## @.str.3
	.asciz	"rel_x = %d, rel_y = %d, fraction_x = %f, fraction_y = %f, output->w = %d, output->h = %d\n"

L_.str.4:                               ## @.str.4
	.asciz	"Resulting coordinates: x = %d, y = %d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_floating_fix_coordinates       ; -- Begin function floating_fix_coordinates
	.p2align	2
_floating_fix_coordinates:              ; @floating_fix_coordinates
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	d9, d8, [sp, #48]               ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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 b8, -56
	.cfi_offset b9, -64
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	ldr	d0, [x0, #8]
	ldr	w8, [x0]
	ldp	w9, w10, [x0, #16]
	stp	x9, x10, [sp, #24]
	str	d0, [sp, #16]
	stp	x0, x8, [sp]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DLOG
	ldr	q0, [x21]
	ldp	d1, d2, [x21, #16]
	stp	d1, d2, [sp, #16]
	str	q0, [sp]
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_DLOG
	ldr	q0, [x20]
	ldp	d1, d2, [x20, #16]
	stp	d1, d2, [sp, #16]
	str	q0, [sp]
Lloh4:
	adrp	x0, l_.str.2@PAGE
Lloh5:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_DLOG
	ldp	w8, w9, [x19, #16]
	cmp	w8, #0
	cinc	w8, w8, lt
	asr	w8, w8, #1
	scvtf	d0, w8
	ldr	s1, [x19]
	sshll.2d	v1, v1, #0
	scvtf	d1, d1
	ldp	d2, d3, [x21]
	fsub	d1, d1, d2
	fadd	d8, d1, d0
	ldr	d0, [x19, #8]
	cmp	w9, #0
	cinc	w8, w9, lt
	asr	w8, w8, #1
	scvtf	d1, w8
	fsub	d0, d0, d3
	fadd	d9, d0, d1
	ldp	d0, d1, [x21, #16]
	fdiv	d2, d8, d0
	fdiv	d3, d9, d1
	stp	d0, d1, [sp, #32]
	stp	d8, d9, [sp]
	stp	d2, d3, [sp, #16]
Lloh6:
	adrp	x0, l_.str.3@PAGE
Lloh7:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_DLOG
	ldp	d0, d1, [x20, #16]
	fmul	d0, d8, d0
	ldp	d2, d3, [x21, #16]
	fdiv	d0, d0, d2
	ldp	d2, d4, [x20]
	fadd	d0, d2, d0
	ldp	w8, w9, [x19, #16]
	cmp	w8, #0
	cinc	w8, w8, lt
	asr	w8, w8, #1
	scvtf	d2, w8
	fsub	d0, d0, d2
	fcvtzs	w8, d0
	str	w8, [x19]
	fmul	d0, d9, d1
	fdiv	d0, d0, d3
	fadd	d0, d4, d0
	cmp	w9, #0
	cinc	w9, w9, lt
	asr	w9, w9, #1
	scvtf	d1, w9
	fsub	d0, d0, d1
	str	d0, [x19, #8]
	str	d0, [sp, #8]
	str	x8, [sp]
Lloh8:
	adrp	x0, l_.str.4@PAGE
Lloh9:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_DLOG
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp, #48]               ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Fixing coordinates of floating window %p (rect (%d, %d), %d x %d)\n"

l_.str.1:                               ; @.str.1
	.asciz	"old_rect = (%d, %d), %d x %d\n"

l_.str.2:                               ; @.str.2
	.asciz	"new_rect = (%d, %d), %d x %d\n"

l_.str.3:                               ; @.str.3
	.asciz	"rel_x = %d, rel_y = %d, fraction_x = %f, fraction_y = %f, output->w = %d, output->h = %d\n"

l_.str.4:                               ; @.str.4
	.asciz	"Resulting coordinates: x = %d, y = %d\n"

.subsections_via_symbols
