	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cdv_hdmi_mode_valid
_cdv_hdmi_mode_valid:                   ## @cdv_hdmi_mode_valid
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movl	$-165001, %eax                  ## imm = 0xFFFD7B77
	addl	(%rsi), %eax
	cmpl	$-145001, %eax                  ## imm = 0xFFFDC997
	jae	LBB0_2
## %bb.1:
	movq	_MODE_CLOCK_HIGH@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_2:
	movl	4(%rsi), %eax
	movq	_DRM_MODE_FLAG_DBLSCAN@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_4
## %bb.3:
	movq	_MODE_NO_DBLESCAN@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_4:
	movq	_DRM_MODE_FLAG_INTERLACE@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_5
## %bb.6:
	movq	_MODE_OK@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_5:
	movq	_MODE_NO_INTERLACE@GOTPCREL(%rip), %rax
LBB0_7:
	movl	(%rax), %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MODE_CLOCK_HIGH,4,2            ## @MODE_CLOCK_HIGH
	.comm	_DRM_MODE_FLAG_DBLSCAN,4,2      ## @DRM_MODE_FLAG_DBLSCAN
	.comm	_MODE_NO_DBLESCAN,4,2           ## @MODE_NO_DBLESCAN
	.comm	_DRM_MODE_FLAG_INTERLACE,4,2    ## @DRM_MODE_FLAG_INTERLACE
	.comm	_MODE_NO_INTERLACE,4,2          ## @MODE_NO_INTERLACE
	.comm	_MODE_OK,4,2                    ## @MODE_OK
	.no_dead_strip	_cdv_hdmi_mode_valid
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cdv_hdmi_mode_valid
_cdv_hdmi_mode_valid:                   ; @cdv_hdmi_mode_valid
	.cfi_startproc
; %bb.0:
	ldr	w8, [x1]
	sub	w8, w8, #40, lsl #12            ; =163840
	sub	w8, w8, #1161
	mov	w9, #51607
	movk	w9, #65533, lsl #16
	cmp	w8, w9
	b.hs	LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _MODE_CLOCK_HIGH@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MODE_CLOCK_HIGH@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	ret
LBB0_2:
	ldr	w8, [x1, #4]
Lloh3:
	adrp	x9, _DRM_MODE_FLAG_DBLSCAN@GOTPAGE
Lloh4:
	ldr	x9, [x9, _DRM_MODE_FLAG_DBLSCAN@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.3:
Lloh6:
	adrp	x8, _MODE_NO_DBLESCAN@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MODE_NO_DBLESCAN@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	ret
LBB0_4:
Lloh9:
	adrp	x9, _DRM_MODE_FLAG_INTERLACE@GOTPAGE
Lloh10:
	ldr	x9, [x9, _DRM_MODE_FLAG_INTERLACE@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
Lloh12:
	adrp	x10, _MODE_NO_INTERLACE@GOTPAGE
Lloh13:
	ldr	x10, [x10, _MODE_NO_INTERLACE@GOTPAGEOFF]
Lloh14:
	adrp	x11, _MODE_OK@GOTPAGE
Lloh15:
	ldr	x11, [x11, _MODE_OK@GOTPAGEOFF]
	tst	w9, w8
	csel	x8, x11, x10, eq
	ldr	w0, [x8]
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_MODE_CLOCK_HIGH,4,2            ; @MODE_CLOCK_HIGH
	.comm	_DRM_MODE_FLAG_DBLSCAN,4,2      ; @DRM_MODE_FLAG_DBLSCAN
	.comm	_MODE_NO_DBLESCAN,4,2           ; @MODE_NO_DBLESCAN
	.comm	_DRM_MODE_FLAG_INTERLACE,4,2    ; @DRM_MODE_FLAG_INTERLACE
	.comm	_MODE_NO_INTERLACE,4,2          ; @MODE_NO_INTERLACE
	.comm	_MODE_OK,4,2                    ; @MODE_OK
	.no_dead_strip	_cdv_hdmi_mode_valid
.subsections_via_symbols
