	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function recording_dump_frame
_recording_dump_frame:                  ## @recording_dump_frame
	.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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r15
	movq	%rdi, %rbx
	movq	%rdi, -48(%rbp)
	movl	%esi, -64(%rbp)
	movl	%edx, -60(%rbp)
	movl	%r15d, -56(%rbp)
	movl	$0, -52(%rbp)
	movq	_video_driver_record_gpu_buffer@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_9
## %bb.1:
	movl	%r8d, %r14d
	movl	%edx, %r12d
	movl	%esi, %r13d
	movl	$0, -112(%rbp)
	xorps	%xmm0, %xmm0
	movups	%xmm0, -104(%rbp)
	movups	%xmm0, -88(%rbp)
	movq	$0, -72(%rbp)
	leaq	-112(%rbp), %rdi
	callq	_video_driver_get_viewport_info
	movl	-112(%rbp), %eax
	testl	%eax, %eax
	je	LBB0_3
## %bb.2:
	movq	-104(%rbp), %rcx
	testq	%rcx, %rcx
	je	LBB0_3
## %bb.4:
	movq	_recording_gpu_width@GOTPCREL(%rip), %rbx
	cmpl	(%rbx), %eax
	jne	LBB0_6
## %bb.5:
	movq	_recording_gpu_height@GOTPCREL(%rip), %r15
	cmpq	(%r15), %rcx
	jne	LBB0_6
## %bb.7:
	movq	_video_driver_record_gpu_buffer@GOTPCREL(%rip), %r12
	movq	(%r12), %rdi
	movl	%r14d, %esi
	callq	_video_driver_read_viewport
	testl	%eax, %eax
	je	LBB0_11
## %bb.8:
	movl	(%rbx), %eax
	leal	(%rax,%rax,2), %ecx
	movl	%eax, -64(%rbp)
	movl	(%r15), %eax
	movl	%eax, -60(%rbp)
	decl	%eax
	imull	%ecx, %eax
	addq	(%r12), %rax
	movq	%rax, -48(%rbp)
	negl	%ecx
	movl	%ecx, -56(%rbp)
	jmp	LBB0_10
LBB0_9:
	xorl	%eax, %eax
	testq	%rbx, %rbx
	sete	%al
	movl	%eax, -52(%rbp)
LBB0_10:
	movq	_recording_driver@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	_recording_data@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	leaq	-64(%rbp), %rsi
	callq	*(%rax)
	jmp	LBB0_11
LBB0_3:
	movq	_MSG_VIEWPORT_SIZE_CALCULATION_FAILED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_msg_hash_to_str
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	callq	_RARCH_WARN
	xorl	%eax, %eax
	callq	_video_driver_gpu_record_deinit
	movq	%rbx, %rdi
	movl	%r13d, %esi
	movl	%r12d, %edx
	movq	%r15, %rcx
	movl	%r14d, %r8d
	callq	_recording_dump_frame
	jmp	LBB0_11
LBB0_6:
	movq	_MSG_RECORDING_TERMINATED_DUE_TO_RESIZE@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	callq	_msg_hash_to_str
	leaq	L_.str.1(%rip), %rdi
	movl	%eax, %esi
	callq	_RARCH_WARN
	movl	(%rbx), %edi
	callq	_msg_hash_to_str
	movq	_MESSAGE_QUEUE_ICON_DEFAULT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r9d
	movq	_MESSAGE_QUEUE_CATEGORY_INFO@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, (%rsp)
	movl	%eax, %edi
	movl	$1, %esi
	movl	$180, %edx
	movl	$1, %ecx
	xorl	%r8d, %r8d
	callq	_runloop_msg_queue_push
	movq	_CMD_EVENT_RECORD_DEINIT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	callq	_command_event
LBB0_11:
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_video_driver_record_gpu_buffer,8,3 ## @video_driver_record_gpu_buffer
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"[recording] %s \n"

	.comm	_MSG_VIEWPORT_SIZE_CALCULATION_FAILED,4,2 ## @MSG_VIEWPORT_SIZE_CALCULATION_FAILED
	.comm	_recording_gpu_width,4,2        ## @recording_gpu_width
	.comm	_recording_gpu_height,8,3       ## @recording_gpu_height
L_.str.1:                               ## @.str.1
	.asciz	"[recording] %s\n"

	.comm	_MSG_RECORDING_TERMINATED_DUE_TO_RESIZE,4,2 ## @MSG_RECORDING_TERMINATED_DUE_TO_RESIZE
	.comm	_MESSAGE_QUEUE_ICON_DEFAULT,4,2 ## @MESSAGE_QUEUE_ICON_DEFAULT
	.comm	_MESSAGE_QUEUE_CATEGORY_INFO,4,2 ## @MESSAGE_QUEUE_CATEGORY_INFO
	.comm	_CMD_EVENT_RECORD_DEINIT,4,2    ## @CMD_EVENT_RECORD_DEINIT
	.comm	_recording_driver,8,3           ## @recording_driver
	.comm	_recording_data,4,2             ## @recording_data
	.no_dead_strip	_recording_dump_frame
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function recording_dump_frame
_recording_dump_frame:                  ; @recording_dump_frame
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	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
	mov	x20, x3
	mov	x23, x0
	str	x0, [sp, #72]
	stp	w1, w2, [sp, #56]
	stp	w20, wzr, [sp, #64]
Lloh0:
	adrp	x24, _video_driver_record_gpu_buffer@GOTPAGE
Lloh1:
	ldr	x24, [x24, _video_driver_record_gpu_buffer@GOTPAGEOFF]
	ldr	x8, [x24]
	cbz	x8, LBB0_5
; %bb.1:
	mov	x19, x4
	mov	x21, x2
	mov	x22, x1
	str	wzr, [sp, #8]
	movi.2d	v0, #0000000000000000
	stp	q0, q0, [sp, #16]
	str	xzr, [sp, #48]
	add	x0, sp, #8
	bl	_video_driver_get_viewport_info
	ldr	w8, [sp, #8]
	cbz	w8, LBB0_6
; %bb.2:
	ldr	x9, [sp, #16]
	cbz	x9, LBB0_6
; %bb.3:
Lloh2:
	adrp	x21, _recording_gpu_width@GOTPAGE
Lloh3:
	ldr	x21, [x21, _recording_gpu_width@GOTPAGEOFF]
	ldr	w10, [x21]
Lloh4:
	adrp	x20, _recording_gpu_height@GOTPAGE
Lloh5:
	ldr	x20, [x20, _recording_gpu_height@GOTPAGEOFF]
	ldr	x11, [x20]
	cmp	w8, w10
	ccmp	x9, x11, #0, eq
	b.eq	LBB0_7
; %bb.4:
Lloh6:
	adrp	x19, _MSG_RECORDING_TERMINATED_DUE_TO_RESIZE@GOTPAGE
Lloh7:
	ldr	x19, [x19, _MSG_RECORDING_TERMINATED_DUE_TO_RESIZE@GOTPAGEOFF]
	ldr	w0, [x19]
	bl	_msg_hash_to_str
	mov	x1, x0
Lloh8:
	adrp	x0, l_.str.1@PAGE
Lloh9:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_RARCH_WARN
	ldr	w0, [x19]
	bl	_msg_hash_to_str
Lloh10:
	adrp	x8, _MESSAGE_QUEUE_ICON_DEFAULT@GOTPAGE
Lloh11:
	ldr	x8, [x8, _MESSAGE_QUEUE_ICON_DEFAULT@GOTPAGEOFF]
Lloh12:
	ldr	w5, [x8]
Lloh13:
	adrp	x8, _MESSAGE_QUEUE_CATEGORY_INFO@GOTPAGE
Lloh14:
	ldr	x8, [x8, _MESSAGE_QUEUE_CATEGORY_INFO@GOTPAGEOFF]
Lloh15:
	ldr	w6, [x8]
	mov	w1, #1
	mov	w2, #180
	mov	w3, #1
	mov	x4, #0
	bl	_runloop_msg_queue_push
Lloh16:
	adrp	x8, _CMD_EVENT_RECORD_DEINIT@GOTPAGE
Lloh17:
	ldr	x8, [x8, _CMD_EVENT_RECORD_DEINIT@GOTPAGEOFF]
Lloh18:
	ldr	w0, [x8]
	mov	x1, #0
	bl	_command_event
	b	LBB0_10
LBB0_5:
	cmp	x23, #0
	cset	w8, eq
	str	w8, [sp, #68]
	b	LBB0_9
LBB0_6:
Lloh19:
	adrp	x8, _MSG_VIEWPORT_SIZE_CALCULATION_FAILED@GOTPAGE
Lloh20:
	ldr	x8, [x8, _MSG_VIEWPORT_SIZE_CALCULATION_FAILED@GOTPAGEOFF]
Lloh21:
	ldr	w0, [x8]
	bl	_msg_hash_to_str
	mov	x1, x0
Lloh22:
	adrp	x0, l_.str@PAGE
Lloh23:
	add	x0, x0, l_.str@PAGEOFF
	bl	_RARCH_WARN
	bl	_video_driver_gpu_record_deinit
	mov	x0, x23
	mov	x1, x22
	mov	x2, x21
	mov	x3, x20
	mov	x4, x19
	bl	_recording_dump_frame
	b	LBB0_10
LBB0_7:
	ldr	x0, [x24]
	mov	x1, x19
	bl	_video_driver_read_viewport
	cbz	w0, LBB0_10
; %bb.8:
	ldr	w8, [x21]
	add	w9, w8, w8, lsl #1
	ldr	w10, [x20]
	stp	w8, w10, [sp, #56]
	ldr	x8, [x24]
	sub	w10, w10, #1
	mul	w10, w10, w9
	add	x8, x8, x10
	str	x8, [sp, #72]
	neg	w8, w9
	str	w8, [sp, #64]
LBB0_9:
Lloh24:
	adrp	x8, _recording_driver@GOTPAGE
Lloh25:
	ldr	x8, [x8, _recording_driver@GOTPAGEOFF]
Lloh26:
	ldr	x8, [x8]
	ldr	x8, [x8]
Lloh27:
	adrp	x9, _recording_data@GOTPAGE
Lloh28:
	ldr	x9, [x9, _recording_data@GOTPAGEOFF]
Lloh29:
	ldr	w0, [x9]
	add	x1, sp, #56
	blr	x8
LBB0_10:
	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
	add	sp, sp, #144
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_video_driver_record_gpu_buffer,8,3 ; @video_driver_record_gpu_buffer
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"[recording] %s \n"

	.comm	_MSG_VIEWPORT_SIZE_CALCULATION_FAILED,4,2 ; @MSG_VIEWPORT_SIZE_CALCULATION_FAILED
	.comm	_recording_gpu_width,4,2        ; @recording_gpu_width
	.comm	_recording_gpu_height,8,3       ; @recording_gpu_height
l_.str.1:                               ; @.str.1
	.asciz	"[recording] %s\n"

	.comm	_MSG_RECORDING_TERMINATED_DUE_TO_RESIZE,4,2 ; @MSG_RECORDING_TERMINATED_DUE_TO_RESIZE
	.comm	_MESSAGE_QUEUE_ICON_DEFAULT,4,2 ; @MESSAGE_QUEUE_ICON_DEFAULT
	.comm	_MESSAGE_QUEUE_CATEGORY_INFO,4,2 ; @MESSAGE_QUEUE_CATEGORY_INFO
	.comm	_CMD_EVENT_RECORD_DEINIT,4,2    ; @CMD_EVENT_RECORD_DEINIT
	.comm	_recording_driver,8,3           ; @recording_driver
	.comm	_recording_data,4,2             ; @recording_data
	.no_dead_strip	_recording_dump_frame
.subsections_via_symbols
