	.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_polled
_setting_action_ok_video_refresh_rate_polled: ## @setting_action_ok_video_refresh_rate_polled
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	$-1, %ebx
	testq	%rdi, %rdi
	je	LBB0_3
## %bb.1:
	movl	%esi, %r14d
	movq	%rdi, %r15
	xorl	%r12d, %r12d
	xorl	%eax, %eax
	callq	_video_driver_get_refresh_rate
	movss	%xmm0, -36(%rbp)
	xorps	%xmm1, %xmm1
	ucomiss	%xmm1, %xmm0
	jne	LBB0_2
	jnp	LBB0_3
LBB0_2:
	movq	_RARCH_DRIVER_CTL_SET_REFRESH_RATE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	-36(%rbp), %rsi
	callq	_driver_ctl
	movq	_CMD_EVENT_VIDEO_SET_BLOCKING_STATE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	xorl	%esi, %esi
	callq	_command_event
	movq	%r15, %rdi
	movl	%r14d, %esi
	callq	_setting_generic_action_ok_default
	negq	%rax
	sbbl	%r12d, %r12d
	movl	%r12d, %ebx
LBB0_3:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	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_polled
.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_polled
_setting_action_ok_video_refresh_rate_polled: ; @setting_action_ok_video_refresh_rate_polled
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	cbz	x0, LBB0_2
; %bb.1:
	mov	x19, x1
	mov	x20, x0
	bl	_video_driver_get_refresh_rate
	str	s0, [sp, #12]
	fcmp	s0, #0.0
	b.ne	LBB0_3
LBB0_2:
	mov	w0, #-1
	b	LBB0_4
LBB0_3:
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, #12
	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
	mov	x0, x20
	mov	x1, x19
	bl	_setting_generic_action_ok_default
	cmp	x0, #0
	csetm	w0, ne
LBB0_4:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	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_polled
.subsections_via_symbols
