	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ingenic_drm_encoder_atomic_check
_ingenic_drm_encoder_atomic_check:      ## @ingenic_drm_encoder_atomic_check
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	(%rdx), %rcx
	cmpl	$1, 8(%rcx)
	jne	LBB0_3
## %bb.1:
	movq	(%rcx), %rdx
	movq	_DRM_MODE_CONNECTOR_TV@GOTPCREL(%rip), %rsi
	xorl	%eax, %eax
	cmpq	(%rsi), %rdx
	je	LBB0_4
## %bb.2:
	movq	16(%rcx), %rcx
	movl	(%rcx), %ecx
	andl	$-4, %ecx
	cmpl	$128, %ecx
	je	LBB0_4
LBB0_3:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_4:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_DRM_MODE_CONNECTOR_TV,8,3      ## @DRM_MODE_CONNECTOR_TV
	.no_dead_strip	_ingenic_drm_encoder_atomic_check
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ingenic_drm_encoder_atomic_check
_ingenic_drm_encoder_atomic_check:      ; @ingenic_drm_encoder_atomic_check
	.cfi_startproc
; %bb.0:
	ldr	x8, [x2]
	ldr	w9, [x8, #8]
	cmp	w9, #1
	b.ne	LBB0_5
; %bb.1:
	ldr	x9, [x8]
Lloh0:
	adrp	x10, _DRM_MODE_CONNECTOR_TV@GOTPAGE
Lloh1:
	ldr	x10, [x10, _DRM_MODE_CONNECTOR_TV@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_3
; %bb.2:
	mov	w0, #0
	ret
LBB0_3:
	ldr	x8, [x8, #16]
	ldr	w8, [x8]
	and	w8, w8, #0xfffffffc
	cmp	w8, #128
	b.ne	LBB0_5
; %bb.4:
	mov	w0, #0
	ret
LBB0_5:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w0, w8
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_DRM_MODE_CONNECTOR_TV,8,3      ; @DRM_MODE_CONNECTOR_TV
	.no_dead_strip	_ingenic_drm_encoder_atomic_check
.subsections_via_symbols
