	.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_7:
	popq	%rbp
	retq
LBB0_1:
	movl	4(%rdi), %esi
	xorl	%eax, %eax
	testl	%esi, %esi
	je	LBB0_7
## %bb.2:
	movl	8(%rdi), %ecx
	testl	%ecx, %ecx
	jle	LBB0_7
## %bb.3:
	imull	$1000, 12(%rdi), %eax           ## imm = 0x3E8
	xorl	%edx, %edx
	divl	%esi
	movl	%ecx, %edx
	shrl	%edx
	addl	%edx, %eax
	xorl	%edx, %edx
	divl	%ecx
	movl	16(%rdi), %edx
	movq	_DRM_MODE_FLAG_INTERLACE@GOTPCREL(%rip), %rcx
	testl	%edx, (%rcx)
	setne	%cl
	shll	%cl, %eax
	movq	_DRM_MODE_FLAG_DBLSCAN@GOTPCREL(%rip), %rcx
	testl	%edx, (%rcx)
	je	LBB0_5
## %bb.4:
	movl	%eax, %ecx
	shrl	$31, %ecx
	addl	%eax, %ecx
	sarl	%ecx
	movl	%ecx, %eax
LBB0_5:
	movl	20(%rdi), %ecx
	cmpl	$2, %ecx
	jl	LBB0_7
## %bb.6:
	cltd
	idivl	%ecx
	popq	%rbp
	retq
	.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]
	cmp	w9, #1
	b.lt	LBB0_6
; %bb.4:
	mov	w10, #1000
	ldp	w11, w12, [x0, #12]
	mul	w10, w11, w10
	udiv	w8, w10, w8
	add	w8, w8, w9, lsr #1
	udiv	w8, w8, w9
Lloh0:
	adrp	x9, _DRM_MODE_FLAG_INTERLACE@GOTPAGE
Lloh1:
	ldr	x9, [x9, _DRM_MODE_FLAG_INTERLACE@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w12
	cset	w9, ne
	lsl	w8, w8, w9
Lloh3:
	adrp	x9, _DRM_MODE_FLAG_DBLSCAN@GOTPAGE
Lloh4:
	ldr	x9, [x9, _DRM_MODE_FLAG_DBLSCAN@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	w8, #0
	cinc	w10, w8, lt
	asr	w10, w10, #1
	tst	w9, w12
	csel	w8, w8, w10, eq
	ldr	w9, [x0, #20]
	cmp	w9, #2
	b.lt	LBB0_1
; %bb.5:
	sdiv	w8, w8, w9
	mov	x0, x8
	ret
LBB0_6:
	mov	w0, #0
	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
