	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_drm_mode_vrefresh              ## -- Begin function drm_mode_vrefresh
	.p2align	4, 0x90
_drm_mode_vrefresh:                     ## @drm_mode_vrefresh
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	(%rdi), %eax
	testl	%eax, %eax
	jle	LBB0_1
LBB0_3:
	popq	%rbp
	retq
LBB0_1:
	movl	4(%rdi), %ecx
	xorl	%eax, %eax
	testl	%ecx, %ecx
	je	LBB0_3
## %bb.2:
	movl	8(%rdi), %edx
	testl	%edx, %edx
	je	LBB0_3
## %bb.4:
	imull	%ecx, %edx
	movq	_DRM_MODE_FLAG_INTERLACE@GOTPCREL(%rip), %rax
	movl	16(%rdi), %ecx
	movl	20(%rdi), %r8d
	movl	(%rax), %eax
	andl	%ecx, %eax
	movl	$1000, %esi                     ## imm = 0x3E8
	movl	$2000, %eax                     ## imm = 0x7D0
	cmovel	%esi, %eax
	imull	12(%rdi), %eax
	movq	_DRM_MODE_FLAG_DBLSCAN@GOTPCREL(%rip), %rsi
	andl	(%rsi), %ecx
	setne	%cl
	shll	%cl, %edx
	cmpl	$2, %r8d
	movl	$1, %esi
	cmovgel	%r8d, %esi
	imull	%edx, %esi
	movl	%eax, %edi
	popq	%rbp
	jmp	_DIV_ROUND_CLOSEST              ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_DRM_MODE_FLAG_INTERLACE,4,2    ## @DRM_MODE_FLAG_INTERLACE
	.comm	_DRM_MODE_FLAG_DBLSCAN,4,2      ## @DRM_MODE_FLAG_DBLSCAN
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_drm_mode_vrefresh              ; -- Begin function drm_mode_vrefresh
	.p2align	2
_drm_mode_vrefresh:                     ; @drm_mode_vrefresh
	.cfi_startproc
; %bb.0:
	ldr	w8, [x0]
	cmp	w8, #0
	b.le	LBB0_2
LBB0_1:
	mov	x0, x8
	ret
LBB0_2:
	ldr	w8, [x0, #4]
	cbz	w8, LBB0_1
; %bb.3:
	ldr	w9, [x0, #8]
	cbz	w9, LBB0_5
; %bb.4:
	mul	w9, w9, w8
	ldp	w8, w10, [x0, #12]
Lloh0:
	adrp	x11, _DRM_MODE_FLAG_INTERLACE@GOTPAGE
Lloh1:
	ldr	x11, [x11, _DRM_MODE_FLAG_INTERLACE@GOTPAGEOFF]
Lloh2:
	ldr	w11, [x11]
	tst	w11, w10
	mov	w11, #2000
	mov	w12, #1000
	csel	w11, w12, w11, eq
	mul	w8, w11, w8
Lloh3:
	adrp	x11, _DRM_MODE_FLAG_DBLSCAN@GOTPAGE
Lloh4:
	ldr	x11, [x11, _DRM_MODE_FLAG_DBLSCAN@GOTPAGEOFF]
Lloh5:
	ldr	w11, [x11]
	tst	w11, w10
	cset	w10, ne
	lsl	w9, w9, w10
	ldr	w10, [x0, #20]
	cmp	w10, #1
	csinc	w10, w10, wzr, gt
	mul	w1, w9, w10
	mov	x0, x8
	b	_DIV_ROUND_CLOSEST
LBB0_5:
	mov	w8, #0
	mov	x0, x8
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_DRM_MODE_FLAG_INTERLACE,4,2    ; @DRM_MODE_FLAG_INTERLACE
	.comm	_DRM_MODE_FLAG_DBLSCAN,4,2      ; @DRM_MODE_FLAG_DBLSCAN
.subsections_via_symbols
