	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_surface_translate_drawable_coords ## -- Begin function surface_translate_drawable_coords
	.p2align	4, 0x90
_surface_translate_drawable_coords:     ## @surface_translate_drawable_coords
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	subq	$32, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	(%rdi), %rax
	pxor	%xmm0, %xmm0
	movdqa	%xmm0, -32(%rbp)
	movq	(%rax), %rcx
	testq	%rcx, %rcx
	je	LBB0_4
## %bb.1:
	movq	%rdx, %rbx
	movl	%esi, %r14d
	cmpq	(%rcx), %rax
	jne	LBB0_3
## %bb.2:
	leaq	-32(%rbp), %rsi
	movl	%r14d, %edi
	callq	_ScreenToClient
	movl	-32(%rbp), %edx
	movl	-28(%rbp), %esi
	movq	%rbx, %rdi
	callq	_OffsetRect
LBB0_3:
	leaq	-48(%rbp), %rsi
	movl	%r14d, %edi
	callq	_GetClientRect
	movq	-48(%rbp), %rax
	subq	-40(%rbp), %rax
	movdqu	(%rbx), %xmm0
	movq	%rax, %xmm1
	pshufd	$68, %xmm1, %xmm1               ## xmm1 = xmm1[0,1,0,1]
	psubq	%xmm0, %xmm1
	movdqu	%xmm1, (%rbx)
LBB0_4:
	addq	$32, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_surface_translate_drawable_coords ; -- Begin function surface_translate_drawable_coords
	.p2align	2
_surface_translate_drawable_coords:     ; @surface_translate_drawable_coords
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	ldr	x8, [x0]
	stp	xzr, xzr, [sp, #16]
	ldr	x9, [x8]
	cbz	x9, LBB0_4
; %bb.1:
	mov	x19, x2
	mov	x20, x1
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.2:
	add	x1, sp, #16
	mov	x0, x20
	bl	_ScreenToClient
	ldp	w2, w1, [sp, #16]
	mov	x0, x19
	bl	_OffsetRect
LBB0_3:
	mov	x1, sp
	mov	x0, x20
	bl	_GetClientRect
	ldp	x8, x9, [sp]
	ldp	x11, x10, [x19]
	sub	x8, x8, x9
	sub	x9, x8, x10
	sub	x8, x8, x11
	stp	x8, x9, [x19]
LBB0_4:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
