	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function setting_action_ok_video_refresh_rate_auto
_setting_action_ok_video_refresh_rate_auto: ## @setting_action_ok_video_refresh_rate_auto
	.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	$0, -32(%rbp)
	movq	$0, -40(%rbp)
	movl	$0, -24(%rbp)
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.2:
	movl	%esi, %r14d
	movq	%rdi, %rbx
	leaq	-32(%rbp), %rdi
	leaq	-40(%rbp), %rsi
	leaq	-24(%rbp), %rdx
	callq	_video_monitor_fps_statistics
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movsd	-32(%rbp), %xmm0                ## xmm0 = mem[0],zero
	cvtsd2ss	%xmm0, %xmm0
	movss	%xmm0, -20(%rbp)
	movq	_RARCH_DRIVER_CTL_SET_REFRESH_RATE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-20(%rbp), %rsi
	callq	_driver_ctl
	movq	_CMD_EVENT_VIDEO_SET_BLOCKING_STATE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	callq	_command_event
LBB0_4:
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_setting_generic_action_ok_default
	movq	%rax, %rcx
	xorl	%eax, %eax
	negq	%rcx
	sbbl	%eax, %eax
	jmp	LBB0_5
LBB0_1:
	movl	$-1, %eax
LBB0_5:
	addq	$32, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RARCH_DRIVER_CTL_SET_REFRESH_RATE,4,2 ## @RARCH_DRIVER_CTL_SET_REFRESH_RATE
	.comm	_CMD_EVENT_VIDEO_SET_BLOCKING_STATE,4,2 ## @CMD_EVENT_VIDEO_SET_BLOCKING_STATE
	.no_dead_strip	_setting_action_ok_video_refresh_rate_auto
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function setting_action_ok_video_refresh_rate_auto
_setting_action_ok_video_refresh_rate_auto: ; @setting_action_ok_video_refresh_rate_auto
	.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
	stp	xzr, xzr, [sp, #16]
	str	wzr, [sp, #12]
	cbz	x0, LBB0_4
; %bb.1:
	mov	x19, x1
	mov	x20, x0
	add	x0, sp, #24
	add	x1, sp, #16
	add	x2, sp, #12
	bl	_video_monitor_fps_statistics
	cbz	x0, LBB0_3
; %bb.2:
	ldr	d0, [sp, #24]
	fcvt	s0, d0
	str	s0, [sp, #8]
Lloh0:
	adrp	x8, _RARCH_DRIVER_CTL_SET_REFRESH_RATE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RARCH_DRIVER_CTL_SET_REFRESH_RATE@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	add	x1, sp, #8
	bl	_driver_ctl
Lloh3:
	adrp	x8, _CMD_EVENT_VIDEO_SET_BLOCKING_STATE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CMD_EVENT_VIDEO_SET_BLOCKING_STATE@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	mov	x1, #0
	bl	_command_event
LBB0_3:
	mov	x0, x20
	mov	x1, x19
	bl	_setting_generic_action_ok_default
	cmp	x0, #0
	csetm	w0, ne
	b	LBB0_5
LBB0_4:
	mov	w0, #-1
LBB0_5:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_RARCH_DRIVER_CTL_SET_REFRESH_RATE,4,2 ; @RARCH_DRIVER_CTL_SET_REFRESH_RATE
	.comm	_CMD_EVENT_VIDEO_SET_BLOCKING_STATE,4,2 ; @CMD_EVENT_VIDEO_SET_BLOCKING_STATE
	.no_dead_strip	_setting_action_ok_video_refresh_rate_auto
.subsections_via_symbols
