	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function restart_flicker
_restart_flicker:                       ## @restart_flicker
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movl	$1, %edi
	movl	$2, %esi
	callq	_FIRMWARE_VERSION
	testl	%eax, %eax
	je	LBB0_7
## %bb.1:
	leaq	24(%rbx), %rdi
	callq	_atomic_read
	cmpq	$0, (%rbx)
	je	LBB0_7
## %bb.2:
	testl	%eax, %eax
	je	LBB0_7
## %bb.3:
	movl	8(%rbx), %ecx
	movl	20(%rbx), %esi
	shll	$8, %esi
	addl	16(%rbx), %esi
	cmpl	$0, 12(%rbx)
	jne	LBB0_6
## %bb.4:
	cltd
	idivl	%ecx
	leal	-3(%rcx), %eax
	cmpl	%eax, %edx
	jg	LBB0_7
## %bb.5:
	movl	$1, 12(%rbx)
LBB0_6:
	movq	_ROUND_UP_EXP_FOR_FLICKER@GOTPCREL(%rip), %rax
	addl	(%rax), %ecx
	cmpl	%ecx, %esi
	jle	LBB0_7
## %bb.8:
	movq	%rbx, %rdi
	movl	$1, %esi
	movl	$1, %edx
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_set_flicker                    ## TAILCALL
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ROUND_UP_EXP_FOR_FLICKER,4,2   ## @ROUND_UP_EXP_FOR_FLICKER
	.no_dead_strip	_restart_flicker
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function restart_flicker
_restart_flicker:                       ; @restart_flicker
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	mov	w0, #1
	mov	w1, #2
	bl	_FIRMWARE_VERSION
	cbz	w0, LBB0_7
; %bb.1:
	add	x0, x19, #24
	bl	_atomic_read
	ldr	x8, [x19]
	cmp	x8, #0
	ccmp	w0, #0, #4, ne
	b.eq	LBB0_7
; %bb.2:
	ldp	w8, w10, [x19, #16]
	ldp	w9, w11, [x19, #8]
	cbnz	w11, LBB0_5
; %bb.3:
	sdiv	w11, w0, w9
	msub	w11, w11, w9, w0
	sub	w12, w9, #3
	cmp	w11, w12
	b.gt	LBB0_7
; %bb.4:
	mov	w11, #1
	str	w11, [x19, #12]
LBB0_5:
	add	w8, w8, w10, lsl #8
Lloh0:
	adrp	x10, _ROUND_UP_EXP_FOR_FLICKER@GOTPAGE
Lloh1:
	ldr	x10, [x10, _ROUND_UP_EXP_FOR_FLICKER@GOTPAGEOFF]
Lloh2:
	ldr	w10, [x10]
	add	w9, w10, w9
	cmp	w8, w9
	b.le	LBB0_7
; %bb.6:
	mov	x0, x19
	mov	w1, #1
	mov	w2, #1
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_set_flicker
LBB0_7:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ROUND_UP_EXP_FOR_FLICKER,4,2   ; @ROUND_UP_EXP_FOR_FLICKER
	.no_dead_strip	_restart_flicker
.subsections_via_symbols
