	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vc4_hdmi_encoder_mode_valid
_vc4_hdmi_encoder_mode_valid:           ## @vc4_hdmi_encoder_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
	movq	_HSM_CLOCK_FREQ@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	imulq	$-222702007, %rax, %rcx         ## imm = 0xF2B9D649
	shrq	$32, %rcx
	addl	%eax, %ecx
	movl	%ecx, %eax
	shrl	$31, %eax
	sarl	$10, %ecx
	addl	%eax, %ecx
	cmpl	%ecx, (%rsi)
	jle	LBB0_1
## %bb.2:
	movq	_MODE_CLOCK_HIGH@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_MODE_OK@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HSM_CLOCK_FREQ,4,2             ## @HSM_CLOCK_FREQ
	.comm	_MODE_CLOCK_HIGH,4,2            ## @MODE_CLOCK_HIGH
	.comm	_MODE_OK,4,2                    ## @MODE_OK
	.no_dead_strip	_vc4_hdmi_encoder_mode_valid
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vc4_hdmi_encoder_mode_valid
_vc4_hdmi_encoder_mode_valid:           ; @vc4_hdmi_encoder_mode_valid
	.cfi_startproc
; %bb.0:
	ldr	w8, [x1]
Lloh0:
	adrp	x9, _HSM_CLOCK_FREQ@GOTPAGE
Lloh1:
	ldr	x9, [x9, _HSM_CLOCK_FREQ@GOTPAGEOFF]
Lloh2:
	ldrsw	x9, [x9]
	mov	x10, #-10679
	movk	x10, #62137, lsl #16
	mul	x10, x9, x10
	lsr	x10, x10, #32
	add	w9, w10, w9
	asr	w10, w9, #10
	add	w9, w10, w9, lsr #31
Lloh3:
	adrp	x10, _MODE_CLOCK_HIGH@GOTPAGE
Lloh4:
	ldr	x10, [x10, _MODE_CLOCK_HIGH@GOTPAGEOFF]
Lloh5:
	adrp	x11, _MODE_OK@GOTPAGE
Lloh6:
	ldr	x11, [x11, _MODE_OK@GOTPAGEOFF]
	cmp	w8, w9
	csel	x8, x10, x11, gt
	ldr	w0, [x8]
	ret
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_HSM_CLOCK_FREQ,4,2             ; @HSM_CLOCK_FREQ
	.comm	_MODE_CLOCK_HIGH,4,2            ; @MODE_CLOCK_HIGH
	.comm	_MODE_OK,4,2                    ; @MODE_OK
	.no_dead_strip	_vc4_hdmi_encoder_mode_valid
.subsections_via_symbols
