	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_drm_mode_hsync                 ## -- Begin function drm_mode_hsync
	.p2align	4, 0x90
_drm_mode_hsync:                        ## @drm_mode_hsync
	.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
	je	LBB0_2
## %bb.1:
                                        ## kill: def $eax killed $eax killed $rax
	popq	%rbp
	retq
LBB0_2:
	movl	4(%rdi), %ecx
	testl	%ecx, %ecx
	js	LBB0_4
## %bb.3:
	imull	$1000, 8(%rdi), %eax            ## imm = 0x3E8
	cltd
	idivl	%ecx
                                        ## kill: def $eax killed $eax def $rax
	addl	$500, %eax                      ## imm = 0x1F4
	imulq	$274877907, %rax, %rax          ## imm = 0x10624DD3
	shrq	$38, %rax
                                        ## kill: def $eax killed $eax killed $rax
	popq	%rbp
	retq
LBB0_4:
	xorl	%eax, %eax
                                        ## kill: def $eax killed $eax killed $rax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_drm_mode_hsync                 ; -- Begin function drm_mode_hsync
	.p2align	2
_drm_mode_hsync:                        ; @drm_mode_hsync
	.cfi_startproc
; %bb.0:
	mov	x8, x0
	ldr	w0, [x0]
	cbz	w0, LBB0_2
; %bb.1:
                                        ; kill: def $w0 killed $w0 killed $x0
	ret
LBB0_2:
	ldr	w9, [x8, #4]
	tbnz	w9, #31, LBB0_4
; %bb.3:
	ldr	w8, [x8, #8]
	mov	w10, #1000
	mul	w8, w8, w10
	sdiv	w8, w8, w9
	add	w8, w8, #500
	mov	w9, #19923
	movk	w9, #4194, lsl #16
	umull	x8, w8, w9
	lsr	x0, x8, #38
                                        ; kill: def $w0 killed $w0 killed $x0
	ret
LBB0_4:
	mov	w0, #0
                                        ; kill: def $w0 killed $w0 killed $x0
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
