	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function context_get_rt_size
_context_get_rt_size:                   ## @context_get_rt_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	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	8(%rdi), %rbx
	cmpq	$0, 8(%rbx)
	je	LBB0_2
## %bb.1:
	movl	16(%rdi), %edi
	leaq	-56(%rbp), %rsi
	callq	_GetClientRect
	movq	-32(%rbp), %rax
	subq	-40(%rbp), %rax
	movq	%rax, 8(%r14)
	movq	-48(%rbp), %rax
	subq	-56(%rbp), %rax
	jmp	LBB0_3
LBB0_2:
	movl	(%rdi), %eax
	xorl	%edx, %edx
	divl	(%rbx)
	movl	%edx, %r15d
	movq	%rbx, %rdi
	movl	%edx, %esi
	callq	_wined3d_texture_get_level_width
	movq	%rax, 8(%r14)
	movq	%rbx, %rdi
	movl	%r15d, %esi
	callq	_wined3d_texture_get_level_height
LBB0_3:
	movq	%rax, (%r14)
	addq	$40, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_context_get_rt_size
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function context_get_rt_size
_context_get_rt_size:                   ; @context_get_rt_size
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x1
	ldr	x20, [x0, #8]
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_2
; %bb.1:
	ldr	w0, [x0, #16]
	mov	x1, sp
	bl	_GetClientRect
	ldp	x9, x8, [sp, #16]
	sub	x8, x8, x9
	str	x8, [x19, #8]
	ldp	x9, x8, [sp]
	sub	x0, x8, x9
	b	LBB0_3
LBB0_2:
	ldr	w8, [x0]
	ldr	w9, [x20]
	udiv	w10, w8, w9
	msub	w21, w10, w9, w8
	mov	x0, x20
	mov	x1, x21
	bl	_wined3d_texture_get_level_width
	str	x0, [x19, #8]
	mov	x0, x20
	mov	x1, x21
	bl	_wined3d_texture_get_level_height
LBB0_3:
	str	x0, [x19]
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_context_get_rt_size
.subsections_via_symbols
