	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function oaktrail_hdmi_mode_valid
_oaktrail_hdmi_mode_valid:              ## @oaktrail_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	(%rsi), %eax
	cmpl	$165000, %eax                   ## imm = 0x28488
	jle	LBB0_2
## %bb.1:
	movq	_MODE_CLOCK_HIGH@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_2:
	cmpl	$20000, %eax                    ## imm = 0x4E20
	jge	LBB0_4
## %bb.3:
	movq	_MODE_CLOCK_LOW@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_4:
	movq	_DRM_MODE_FLAG_DBLSCAN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 4(%rsi)
	jne	LBB0_5
## %bb.6:
	movq	_MODE_OK@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_5:
	movq	_MODE_NO_DBLESCAN@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	_MODE_CLOCK_LOW,4,2             ## @MODE_CLOCK_LOW
	.comm	_DRM_MODE_FLAG_DBLSCAN,4,2      ## @DRM_MODE_FLAG_DBLSCAN
	.comm	_MODE_NO_DBLESCAN,4,2           ## @MODE_NO_DBLESCAN
	.comm	_MODE_OK,4,2                    ## @MODE_OK
	.no_dead_strip	_oaktrail_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 oaktrail_hdmi_mode_valid
_oaktrail_hdmi_mode_valid:              ; @oaktrail_hdmi_mode_valid
	.cfi_startproc
; %bb.0:
	ldr	w8, [x1]
	mov	w9, #33928
	movk	w9, #2, lsl #16
	cmp	w8, w9
	b.le	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:
	mov	w9, #20000
	cmp	w8, w9
	b.ge	LBB0_4
; %bb.3:
Lloh3:
	adrp	x8, _MODE_CLOCK_LOW@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MODE_CLOCK_LOW@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	ret
LBB0_4:
	ldr	w8, [x1, #4]
Lloh6:
	adrp	x9, _DRM_MODE_FLAG_DBLSCAN@GOTPAGE
Lloh7:
	ldr	x9, [x9, _DRM_MODE_FLAG_DBLSCAN@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
Lloh9:
	adrp	x10, _MODE_NO_DBLESCAN@GOTPAGE
Lloh10:
	ldr	x10, [x10, _MODE_NO_DBLESCAN@GOTPAGEOFF]
Lloh11:
	adrp	x11, _MODE_OK@GOTPAGE
Lloh12:
	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 AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_MODE_CLOCK_HIGH,4,2            ; @MODE_CLOCK_HIGH
	.comm	_MODE_CLOCK_LOW,4,2             ; @MODE_CLOCK_LOW
	.comm	_DRM_MODE_FLAG_DBLSCAN,4,2      ; @DRM_MODE_FLAG_DBLSCAN
	.comm	_MODE_NO_DBLESCAN,4,2           ; @MODE_NO_DBLESCAN
	.comm	_MODE_OK,4,2                    ; @MODE_OK
	.no_dead_strip	_oaktrail_hdmi_mode_valid
.subsections_via_symbols
