	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vc4_txp_connector_atomic_check
_vc4_txp_connector_atomic_check:        ## @vc4_txp_connector_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
	pushq	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rsi
	movq	%r14, %rdi
	callq	_drm_atomic_get_new_connector_state
	cmpq	$0, (%rax)
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movl	8(%rax), %esi
	movq	%r14, %rdi
	callq	_drm_atomic_get_new_crtc_state
	movq	%rax, %r14
	movq	(%rbx), %rax
	movq	(%rax), %r12
	movq	(%r12), %rsi
	movq	8(%r12), %rdx
	cmpq	(%r14), %rsi
	jne	LBB0_13
## %bb.3:
	cmpq	8(%r14), %rdx
	jne	LBB0_13
## %bb.4:
	movq	_drm_fmts@GOTPCREL(%rip), %r15
	movq	(%r15), %rdi
	callq	_ARRAY_SIZE
	xorl	%ebx, %ebx
	testl	%eax, %eax
	jle	LBB0_7
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	24(%r12), %rax
	movq	(%rax), %rax
	movq	(%r15), %rdi
	cmpq	(%rdi,%rbx,8), %rax
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	incq	%rbx
	callq	_ARRAY_SIZE
	cltq
	cmpq	%rax, %rbx
	jl	LBB0_5
LBB0_7:
	movq	(%r15), %rdi
	callq	_ARRAY_SIZE
	cmpl	%eax, %ebx
	je	LBB0_8
## %bb.9:
	movq	16(%r12), %rax
	movl	(%rax), %r15d
	xorl	%ebx, %ebx
	movl	$3, %edi
	xorl	%esi, %esi
	callq	_GENMASK
	testl	%r15d, %eax
	je	LBB0_11
## %bb.10:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_12
LBB0_13:
	leaq	L_.str(%rip), %rdi
	callq	_DRM_DEBUG_KMS
LBB0_8:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_12
LBB0_1:
	xorl	%ebx, %ebx
LBB0_12:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	movq	%r14, %rdi
	callq	_vc4_crtc_txp_armed
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid framebuffer size %ux%u\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_drm_fmts,8,3                   ## @drm_fmts
	.no_dead_strip	_vc4_txp_connector_atomic_check
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vc4_txp_connector_atomic_check
_vc4_txp_connector_atomic_check:        ; @vc4_txp_connector_atomic_check
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x1
	mov	x1, x0
	mov	x0, x19
	bl	_drm_atomic_get_new_connector_state
	ldr	x8, [x0]
	cbz	x8, LBB0_13
; %bb.1:
	mov	x20, x0
	ldr	w1, [x0, #8]
	mov	x0, x19
	bl	_drm_atomic_get_new_crtc_state
	ldr	x8, [x20]
	ldr	x20, [x8]
	ldr	x8, [x0]
	ldp	x1, x2, [x20]
	cmp	x1, x8
	b.ne	LBB0_7
; %bb.2:
	mov	x19, x0
	ldr	x8, [x0, #8]
	cmp	x2, x8
	b.ne	LBB0_7
; %bb.3:
Lloh0:
	adrp	x21, _drm_fmts@GOTPAGE
Lloh1:
	ldr	x21, [x21, _drm_fmts@GOTPAGEOFF]
	ldr	x0, [x21]
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_9
; %bb.4:
	mov	x22, #0
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x20, #24]
	ldr	x8, [x8]
	ldr	x0, [x21]
	ldr	x9, [x0, x22, lsl #3]
	cmp	x8, x9
	b.eq	LBB0_10
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	add	x22, x22, #1
	bl	_ARRAY_SIZE
	cmp	x22, w0, sxtw
	b.lt	LBB0_5
	b	LBB0_10
LBB0_7:
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DRM_DEBUG_KMS
LBB0_8:
Lloh4:
	adrp	x8, _EINVAL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_14
LBB0_9:
	mov	w22, #0
LBB0_10:
	ldr	x0, [x21]
	bl	_ARRAY_SIZE
	cmp	w22, w0
	b.eq	LBB0_8
; %bb.11:
	ldr	x8, [x20, #16]
	ldr	w20, [x8]
	mov	w0, #3
	mov	w1, #0
	bl	_GENMASK
	tst	w0, w20
	b.ne	LBB0_8
; %bb.12:
	mov	x0, x19
	bl	_vc4_crtc_txp_armed
LBB0_13:
	mov	w0, #0
LBB0_14:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid framebuffer size %ux%u\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_drm_fmts,8,3                   ; @drm_fmts
	.no_dead_strip	_vc4_txp_connector_atomic_check
.subsections_via_symbols
