	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function take_screenshot_choice
_take_screenshot_choice:                ## @take_screenshot_choice
	.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	%r8d, %ebx
	movl	%ecx, %r15d
	movl	%edx, %r12d
	movq	%rsi, %r13
	movq	%rdi, %r14
	movl	48(%rbp), %r11d
	movl	24(%rbp), %eax
	movl	16(%rbp), %r10d
	movq	$0, -64(%rbp)
	cmpl	$0, 32(%rbp)
	je	LBB0_4
## %bb.1:
	xorl	%edi, %edi
	xorl	%esi, %esi
	callq	_video_driver_set_texture_enable
	testl	%ebx, %ebx
	jne	LBB0_3
## %bb.2:
	xorl	%eax, %eax
	callq	_video_driver_cached_frame
LBB0_3:
	movq	%r14, %rdi
	movq	%r13, %rsi
	movl	%r12d, %edx
	movl	%ebx, %ecx
	movl	%r15d, %r8d
	movl	16(%rbp), %r9d
                                        ## kill: def $r9d killed $r9d killed $r9
	movl	48(%rbp), %eax
	pushq	%rax
	movl	24(%rbp), %eax
	pushq	%rax
	callq	_take_screenshot_viewport
	addq	$56, %rsp
	jmp	LBB0_11
LBB0_4:
	testl	%r9d, %r9d
	je	LBB0_5
## %bb.6:
	xorl	%eax, %eax
	cmpl	$0, 40(%rbp)
	je	LBB0_10
## %bb.7:
	leaq	-64(%rbp), %rdi
	leaq	-48(%rbp), %rsi
	leaq	-44(%rbp), %rdx
	leaq	-72(%rbp), %rcx
	callq	_video_driver_cached_frame_get
	leaq	-48(%rbp), %rdi
	leaq	-44(%rbp), %rsi
	leaq	-72(%rbp), %rdx
	callq	_video_driver_read_frame_raw
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	-64(%rbp), %rdi
	movl	-48(%rbp), %esi
	movl	-44(%rbp), %edx
	movq	-72(%rbp), %rcx
	callq	_video_driver_cached_frame_set
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	testq	%rcx, %rcx
	je	LBB0_9
## %bb.8:
	movq	%rcx, %rdi
	callq	_video_driver_set_cached_frame_ptr
	subq	$8, %rsp
	movq	%r14, %rdi
	movq	%r13, %rsi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movl	%r12d, %ecx
	movl	%ebx, %r8d
	movl	%r15d, %r9d
	movl	48(%rbp), %eax
	pushq	%rax
	movl	24(%rbp), %eax
	pushq	%rax
	movl	16(%rbp), %eax
	pushq	%rax
	callq	_take_screenshot_raw
	addq	$32, %rsp
	movl	%eax, %ecx
	movl	$1, %eax
	testl	%ecx, %ecx
	jne	LBB0_10
LBB0_9:
	xorl	%eax, %eax
LBB0_10:
	addq	$40, %rsp
	jmp	LBB0_11
LBB0_5:
	subq	$8, %rsp
	movq	%r14, %rdi
	movq	%r13, %rsi
	xorl	%edx, %edx
	movl	%r12d, %ecx
	movl	%ebx, %r8d
	movl	%r15d, %r9d
	pushq	%r11
	pushq	%rax
	pushq	%r10
	callq	_take_screenshot_raw
	addq	$72, %rsp
LBB0_11:
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_take_screenshot_choice
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function take_screenshot_choice
_take_screenshot_choice:                ; @take_screenshot_choice
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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	x22, x4
	mov	x21, x3
	mov	x23, x2
	mov	x24, x1
	mov	x26, x0
	ldp	w8, w25, [x29, #20]
	ldr	w9, [x29, #16]
	str	xzr, [sp, #8]
	cbz	w9, LBB0_4
; %bb.1:
	mov	w0, #0
	mov	w1, #0
	bl	_video_driver_set_texture_enable
	cbnz	w22, LBB0_3
; %bb.2:
	bl	_video_driver_cached_frame
LBB0_3:
	mov	x0, x26
	mov	x1, x24
	mov	x2, x23
	mov	x3, x22
	mov	x4, x21
	mov	x5, x20
	mov	x6, x19
	mov	x7, x25
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	b	_take_screenshot_viewport
LBB0_4:
	cbz	w5, LBB0_11
; %bb.5:
	cbz	w8, LBB0_9
; %bb.6:
	add	x0, sp, #8
	add	x1, sp, #20
	add	x2, sp, #16
	add	x3, sp, #24
	bl	_video_driver_cached_frame_get
	add	x0, sp, #20
	add	x1, sp, #16
	add	x2, sp, #24
	bl	_video_driver_read_frame_raw
	mov	x27, x0
	ldr	x0, [sp, #8]
	ldp	w2, w1, [sp, #16]
	ldr	x3, [sp, #24]
	bl	_video_driver_cached_frame_set
	cbz	x27, LBB0_9
; %bb.7:
	mov	x0, x27
	bl	_video_driver_set_cached_frame_ptr
	str	w25, [sp]
	mov	x0, x26
	mov	x1, x24
	mov	x2, x27
	mov	x3, x23
	mov	x4, x22
	mov	x5, x21
	mov	x6, x20
	mov	x7, x19
	bl	_take_screenshot_raw
	cbz	w0, LBB0_9
; %bb.8:
	mov	w0, #1
	b	LBB0_10
LBB0_9:
	mov	w0, #0
LBB0_10:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_11:
	str	w25, [x29, #16]
	mov	x0, x26
	mov	x1, x24
	mov	x2, #0
	mov	x3, x23
	mov	x4, x22
	mov	x5, x21
	mov	x6, x20
	mov	x7, x19
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	b	_take_screenshot_raw
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_take_screenshot_choice
.subsections_via_symbols
