	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vc4_txp_connector_atomic_commit
_vc4_txp_connector_atomic_commit:       ## @vc4_txp_connector_atomic_commit
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	callq	_connector_to_vc4_txp
	movq	%rax, %r13
	xorl	%edi, %edi
	cmpq	$0, (%r15)
	sete	%dil
	callq	_WARN_ON
	testq	%rax, %rax
	jne	LBB0_8
## %bb.1:
	movq	(%r15), %rax
	movq	8(%r15), %rcx
	movq	(%rcx), %rcx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	(%rax), %r14
	movq	_drm_fmts@GOTPCREL(%rip), %r12
	movq	(%r12), %rdi
	callq	_ARRAY_SIZE
	xorl	%ebx, %ebx
	testl	%eax, %eax
	jle	LBB0_4
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%r14), %rax
	movq	(%rax), %rax
	movq	(%r12), %rdi
	cmpq	(%rdi,%rbx,8), %rax
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	incq	%rbx
	callq	_ARRAY_SIZE
	cltq
	cmpq	%rax, %rbx
	jl	LBB0_2
LBB0_4:
	movq	(%r12), %rdi
	callq	_ARRAY_SIZE
	xorl	%edi, %edi
	cmpl	%eax, %ebx
	sete	%dil
	callq	_WARN_ON
	testq	%rax, %rax
	je	LBB0_5
LBB0_8:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	%r13, -48(%rbp)                 ## 8-byte Spill
	movq	_TXP_GO@GOTPCREL(%rip), %rax
	movq	_TXP_VSTART_AT_EOF@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r12d
	orl	(%rax), %r12d
	movq	_TXP_EI@GOTPCREL(%rip), %rax
	orl	(%rax), %r12d
	movq	_TXP_BYTE_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$15, %edi
	callq	_VC4_SET_FIELD
	movl	%eax, %r13d
	orl	%r12d, %r13d
	movq	_txp_fmts@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	%ebx, %ecx
	movl	(%rax,%rcx,4), %edi
	movq	_TXP_FORMAT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_VC4_SET_FIELD
	movl	%eax, %r12d
	orl	%r13d, %r12d
	movq	16(%r14), %rax
	cmpq	$0, 8(%rax)
	movl	$0, %eax
	je	LBB0_7
## %bb.6:
	movq	_TXP_ALPHA_ENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_7:
	orl	%eax, %r12d
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_drm_fb_cma_get_gem_obj
	movq	_TXP_DST_PTR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movq	(%r14), %rcx
	movl	(%rcx), %esi
	addl	(%rax), %esi
	callq	_TXP_WRITE
	movq	_TXP_DST_PITCH@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	8(%r14), %rax
	movl	(%rax), %esi
	callq	_TXP_WRITE
	movq	_TXP_DIM@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movl	(%r14), %edi
	movq	_TXP_WIDTH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_VC4_SET_FIELD
	movl	%eax, %ebx
	movl	4(%r14), %edi
	movq	_TXP_HEIGHT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_VC4_SET_FIELD
	orl	%eax, %ebx
	movl	%r13d, %edi
	movl	%ebx, %esi
	callq	_TXP_WRITE
	movq	_TXP_DST_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	%r12d, %esi
	callq	_TXP_WRITE
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rsi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_drm_writeback_queue_job        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_drm_fmts,8,3                   ## @drm_fmts
	.comm	_TXP_GO,4,2                     ## @TXP_GO
	.comm	_TXP_VSTART_AT_EOF,4,2          ## @TXP_VSTART_AT_EOF
	.comm	_TXP_EI,4,2                     ## @TXP_EI
	.comm	_TXP_BYTE_ENABLE,4,2            ## @TXP_BYTE_ENABLE
	.comm	_txp_fmts,8,3                   ## @txp_fmts
	.comm	_TXP_FORMAT,4,2                 ## @TXP_FORMAT
	.comm	_TXP_ALPHA_ENABLE,4,2           ## @TXP_ALPHA_ENABLE
	.comm	_TXP_DST_PTR,4,2                ## @TXP_DST_PTR
	.comm	_TXP_DST_PITCH,4,2              ## @TXP_DST_PITCH
	.comm	_TXP_DIM,4,2                    ## @TXP_DIM
	.comm	_TXP_WIDTH,4,2                  ## @TXP_WIDTH
	.comm	_TXP_HEIGHT,4,2                 ## @TXP_HEIGHT
	.comm	_TXP_DST_CTRL,4,2               ## @TXP_DST_CTRL
	.no_dead_strip	_vc4_txp_connector_atomic_commit
.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_commit
_vc4_txp_connector_atomic_commit:       ; @vc4_txp_connector_atomic_commit
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x1
	bl	_connector_to_vc4_txp
	mov	x20, x0
	ldr	x8, [x19]
	cmp	x8, #0
	cset	w0, eq
	bl	_WARN_ON
	cbnz	x0, LBB0_7
; %bb.1:
	ldp	x9, x8, [x19]
	ldr	x24, [x8]
	ldr	x21, [x9]
Lloh0:
	adrp	x23, _drm_fmts@GOTPAGE
Lloh1:
	ldr	x23, [x23, _drm_fmts@GOTPAGEOFF]
	ldr	x0, [x23]
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_5
; %bb.2:
	mov	x22, #0
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x21, #16]
	ldr	x8, [x8]
	ldr	x0, [x23]
	ldr	x9, [x0, x22, lsl #3]
	cmp	x8, x9
	b.eq	LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	add	x22, x22, #1
	bl	_ARRAY_SIZE
	cmp	x22, w0, sxtw
	b.lt	LBB0_3
	b	LBB0_6
LBB0_5:
	mov	w22, #0
LBB0_6:
	ldr	x0, [x23]
	bl	_ARRAY_SIZE
	cmp	w22, w0
	cset	w0, eq
	bl	_WARN_ON
	cbz	x0, LBB0_8
LBB0_7:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_8:
Lloh2:
	adrp	x8, _TXP_GO@GOTPAGE
Lloh3:
	ldr	x8, [x8, _TXP_GO@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x9, _TXP_VSTART_AT_EOF@GOTPAGE
Lloh6:
	ldr	x9, [x9, _TXP_VSTART_AT_EOF@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
Lloh8:
	adrp	x10, _TXP_EI@GOTPAGE
Lloh9:
	ldr	x10, [x10, _TXP_EI@GOTPAGEOFF]
	orr	w8, w9, w8
Lloh10:
	ldr	w9, [x10]
	orr	w23, w8, w9
Lloh11:
	adrp	x8, _TXP_BYTE_ENABLE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _TXP_BYTE_ENABLE@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	w0, #15
	bl	_VC4_SET_FIELD
	orr	w23, w23, w0
Lloh14:
	adrp	x8, _txp_fmts@GOTPAGE
Lloh15:
	ldr	x8, [x8, _txp_fmts@GOTPAGEOFF]
Lloh16:
	ldr	x8, [x8]
	ldr	w0, [x8, w22, uxtw #2]
Lloh17:
	adrp	x8, _TXP_FORMAT@GOTPAGE
Lloh18:
	ldr	x8, [x8, _TXP_FORMAT@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	bl	_VC4_SET_FIELD
	orr	w8, w23, w0
	ldr	x9, [x21, #16]
	ldr	x9, [x9, #8]
Lloh20:
	adrp	x10, _TXP_ALPHA_ENABLE@GOTPAGE
Lloh21:
	ldr	x10, [x10, _TXP_ALPHA_ENABLE@GOTPAGEOFF]
Lloh22:
	ldr	w10, [x10]
	cmp	x9, #0
	csel	w9, wzr, w10, eq
	orr	w22, w8, w9
	mov	x0, x21
	mov	w1, #0
	bl	_drm_fb_cma_get_gem_obj
Lloh23:
	adrp	x8, _TXP_DST_PTR@GOTPAGE
Lloh24:
	ldr	x8, [x8, _TXP_DST_PTR@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	ldr	w9, [x0]
	ldr	x10, [x21]
	ldr	w10, [x10]
	add	w1, w10, w9
	mov	x0, x8
	bl	_TXP_WRITE
Lloh26:
	adrp	x8, _TXP_DST_PITCH@GOTPAGE
Lloh27:
	ldr	x8, [x8, _TXP_DST_PITCH@GOTPAGEOFF]
Lloh28:
	ldr	w0, [x8]
	ldr	x8, [x21, #8]
	ldr	w1, [x8]
	bl	_TXP_WRITE
Lloh29:
	adrp	x8, _TXP_DIM@GOTPAGE
Lloh30:
	ldr	x8, [x8, _TXP_DIM@GOTPAGEOFF]
Lloh31:
	ldr	w21, [x8]
	ldr	w0, [x24]
Lloh32:
	adrp	x8, _TXP_WIDTH@GOTPAGE
Lloh33:
	ldr	x8, [x8, _TXP_WIDTH@GOTPAGEOFF]
Lloh34:
	ldr	w1, [x8]
	bl	_VC4_SET_FIELD
	mov	x23, x0
	ldr	w0, [x24, #4]
Lloh35:
	adrp	x8, _TXP_HEIGHT@GOTPAGE
Lloh36:
	ldr	x8, [x8, _TXP_HEIGHT@GOTPAGEOFF]
Lloh37:
	ldr	w1, [x8]
	bl	_VC4_SET_FIELD
	orr	w1, w0, w23
	mov	x0, x21
	bl	_TXP_WRITE
Lloh38:
	adrp	x8, _TXP_DST_CTRL@GOTPAGE
Lloh39:
	ldr	x8, [x8, _TXP_DST_CTRL@GOTPAGEOFF]
Lloh40:
	ldr	w0, [x8]
	mov	x1, x22
	bl	_TXP_WRITE
	mov	x0, x20
	mov	x1, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_drm_writeback_queue_job
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_drm_fmts,8,3                   ; @drm_fmts
	.comm	_TXP_GO,4,2                     ; @TXP_GO
	.comm	_TXP_VSTART_AT_EOF,4,2          ; @TXP_VSTART_AT_EOF
	.comm	_TXP_EI,4,2                     ; @TXP_EI
	.comm	_TXP_BYTE_ENABLE,4,2            ; @TXP_BYTE_ENABLE
	.comm	_txp_fmts,8,3                   ; @txp_fmts
	.comm	_TXP_FORMAT,4,2                 ; @TXP_FORMAT
	.comm	_TXP_ALPHA_ENABLE,4,2           ; @TXP_ALPHA_ENABLE
	.comm	_TXP_DST_PTR,4,2                ; @TXP_DST_PTR
	.comm	_TXP_DST_PITCH,4,2              ; @TXP_DST_PITCH
	.comm	_TXP_DIM,4,2                    ; @TXP_DIM
	.comm	_TXP_WIDTH,4,2                  ; @TXP_WIDTH
	.comm	_TXP_HEIGHT,4,2                 ; @TXP_HEIGHT
	.comm	_TXP_DST_CTRL,4,2               ; @TXP_DST_CTRL
	.no_dead_strip	_vc4_txp_connector_atomic_commit
.subsections_via_symbols
