	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function take_screenshot_raw
_take_screenshot_raw:                   ## @take_screenshot_raw
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, %r13d
	movl	%r8d, %r12d
                                        ## kill: def $ecx killed $ecx def $rcx
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movq	%rdx, %r15
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	$0, -56(%rbp)
	leaq	-56(%rbp), %rdi
	leaq	-48(%rbp), %rsi
	leaq	-44(%rbp), %rdx
	leaq	-72(%rbp), %rcx
	callq	_video_driver_cached_frame_get
	movl	-44(%rbp), %r8d
	leal	-1(%r8), %edx
	movq	-72(%rbp), %r9
	imulq	%r9, %rdx
	shlq	$2, %rdx
	addq	-56(%rbp), %rdx
	movl	-48(%rbp), %ecx
	negl	%r9d
	movq	%r14, %rdi
	movq	%rbx, %rsi
                                        ## kill: def $r8d killed $r8d killed $r8
                                        ## kill: def $r9d killed $r9d killed $r9
	movl	32(%rbp), %eax
	pushq	%rax
	movl	24(%rbp), %eax
	pushq	%rax
	movl	16(%rbp), %eax
	pushq	%rax
	pushq	%r13
	pushq	%r12
	pushq	-64(%rbp)                       ## 8-byte Folded Reload
	pushq	%r15
	pushq	$0
	callq	_screenshot_dump
	addq	$64, %rsp
	xorl	%ecx, %ecx
	testl	%eax, %eax
	setne	%cl
	movl	%ecx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_take_screenshot_raw
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function take_screenshot_raw
_take_screenshot_raw:                   ; @take_screenshot_raw
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x7
	mov	x20, x6
	mov	x21, x5
	mov	x22, x4
	mov	x23, x3
	mov	x24, x2
	mov	x25, x1
	mov	x26, x0
	ldr	w27, [x29, #16]
	str	xzr, [sp, #24]
	add	x0, sp, #24
	add	x1, sp, #36
	add	x2, sp, #32
	add	x3, sp, #40
	bl	_video_driver_cached_frame_get
	ldr	x8, [sp, #24]
	ldp	w4, w3, [sp, #32]
	sub	w9, w4, #1
	ldr	x10, [sp, #40]
	mul	x9, x10, x9
	add	x2, x8, x9, lsl #2
	neg	w5, w10
	stp	w19, w27, [sp, #16]
	stp	w21, w20, [sp, #8]
	stp	w23, w22, [sp]
	mov	x0, x26
	mov	x1, x25
	mov	w6, #0
	mov	x7, x24
	bl	_screenshot_dump
	cmp	w0, #0
	cset	w0, ne
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_take_screenshot_raw
.subsections_via_symbols
