	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_meson_venc_hdmi_supported_mode ## -- Begin function meson_venc_hdmi_supported_mode
	.p2align	4, 0x90
_meson_venc_hdmi_supported_mode:        ## @meson_venc_hdmi_supported_mode
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	_DRM_MODE_FLAG_PHSYNC@GOTPCREL(%rip), %rax
	movq	_DRM_MODE_FLAG_NHSYNC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movq	_DRM_MODE_FLAG_PVSYNC@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movq	_DRM_MODE_FLAG_NVSYNC@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	notl	%ecx
	testl	%ecx, (%rdi)
	je	LBB0_2
## %bb.1:
	movq	_MODE_BAD@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_2:
	movl	$-1921, %eax                    ## imm = 0xF87F
	addl	4(%rdi), %eax
	cmpl	$-1281, %eax                    ## imm = 0xFAFF
	jae	LBB0_4
## %bb.3:
	movq	_MODE_BAD_HVALUE@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_4:
	movl	$-1201, %eax                    ## imm = 0xFB4F
	addl	8(%rdi), %eax
	cmpl	$-721, %eax                     ## imm = 0xFD2F
	jae	LBB0_5
## %bb.6:
	movq	_MODE_BAD_VVALUE@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_5:
	movq	_MODE_OK@GOTPCREL(%rip), %rax
LBB0_7:
	movl	(%rax), %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DRM_MODE_FLAG_PHSYNC,4,2       ## @DRM_MODE_FLAG_PHSYNC
	.comm	_DRM_MODE_FLAG_NHSYNC,4,2       ## @DRM_MODE_FLAG_NHSYNC
	.comm	_DRM_MODE_FLAG_PVSYNC,4,2       ## @DRM_MODE_FLAG_PVSYNC
	.comm	_DRM_MODE_FLAG_NVSYNC,4,2       ## @DRM_MODE_FLAG_NVSYNC
	.comm	_MODE_BAD,4,2                   ## @MODE_BAD
	.comm	_MODE_BAD_HVALUE,4,2            ## @MODE_BAD_HVALUE
	.comm	_MODE_BAD_VVALUE,4,2            ## @MODE_BAD_VVALUE
	.comm	_MODE_OK,4,2                    ## @MODE_OK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_meson_venc_hdmi_supported_mode ; -- Begin function meson_venc_hdmi_supported_mode
	.p2align	2
_meson_venc_hdmi_supported_mode:        ; @meson_venc_hdmi_supported_mode
	.cfi_startproc
; %bb.0:
	ldr	w8, [x0]
Lloh0:
	adrp	x9, _DRM_MODE_FLAG_PHSYNC@GOTPAGE
Lloh1:
	ldr	x9, [x9, _DRM_MODE_FLAG_PHSYNC@GOTPAGEOFF]
Lloh2:
	adrp	x10, _DRM_MODE_FLAG_NHSYNC@GOTPAGE
Lloh3:
	ldr	x10, [x10, _DRM_MODE_FLAG_NHSYNC@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
Lloh5:
	ldr	w10, [x10]
	orr	w9, w10, w9
Lloh6:
	adrp	x10, _DRM_MODE_FLAG_PVSYNC@GOTPAGE
Lloh7:
	ldr	x10, [x10, _DRM_MODE_FLAG_PVSYNC@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	orr	w9, w9, w10
Lloh9:
	adrp	x10, _DRM_MODE_FLAG_NVSYNC@GOTPAGE
Lloh10:
	ldr	x10, [x10, _DRM_MODE_FLAG_NVSYNC@GOTPAGEOFF]
Lloh11:
	ldr	w10, [x10]
	orr	w9, w9, w10
	bics	wzr, w8, w9
	b.eq	LBB0_2
; %bb.1:
Lloh12:
	adrp	x8, _MODE_BAD@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MODE_BAD@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	ret
LBB0_2:
	ldr	w8, [x0, #4]
	sub	w8, w8, #1921
	cmn	w8, #1281
	b.hs	LBB0_4
; %bb.3:
Lloh15:
	adrp	x8, _MODE_BAD_HVALUE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _MODE_BAD_HVALUE@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	ret
LBB0_4:
	ldr	w8, [x0, #8]
	sub	w8, w8, #1201
Lloh18:
	adrp	x9, _MODE_OK@GOTPAGE
Lloh19:
	ldr	x9, [x9, _MODE_OK@GOTPAGEOFF]
Lloh20:
	adrp	x10, _MODE_BAD_VVALUE@GOTPAGE
Lloh21:
	ldr	x10, [x10, _MODE_BAD_VVALUE@GOTPAGEOFF]
	cmn	w8, #721
	csel	x8, x10, x9, lo
	ldr	w0, [x8]
	ret
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_DRM_MODE_FLAG_PHSYNC,4,2       ; @DRM_MODE_FLAG_PHSYNC
	.comm	_DRM_MODE_FLAG_NHSYNC,4,2       ; @DRM_MODE_FLAG_NHSYNC
	.comm	_DRM_MODE_FLAG_PVSYNC,4,2       ; @DRM_MODE_FLAG_PVSYNC
	.comm	_DRM_MODE_FLAG_NVSYNC,4,2       ; @DRM_MODE_FLAG_NVSYNC
	.comm	_MODE_BAD,4,2                   ; @MODE_BAD
	.comm	_MODE_BAD_HVALUE,4,2            ; @MODE_BAD_HVALUE
	.comm	_MODE_BAD_VVALUE,4,2            ; @MODE_BAD_VVALUE
	.comm	_MODE_OK,4,2                    ; @MODE_OK
.subsections_via_symbols
