	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vc4_plane_atomic_async_check
_vc4_plane_atomic_async_check:          ## @vc4_plane_atomic_async_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, %r12
	movq	%rdi, %rbx
	callq	_vc4_plane_mode_set
	testl	%eax, %eax
	jne	LBB0_17
## %bb.1:
	movq	(%rbx), %rdi
	callq	_to_vc4_plane_state
	movq	%rax, %r14
	movq	%r12, %rdi
	callq	_to_vc4_plane_state
	movq	%rax, %r15
	movq	(%r14), %rax
	cmpq	(%r15), %rax
	jne	LBB0_15
## %bb.2:
	movq	8(%r14), %rax
	cmpq	8(%r15), %rax
	jne	LBB0_15
## %bb.3:
	movq	16(%r14), %rax
	cmpq	16(%r15), %rax
	jne	LBB0_15
## %bb.4:
	movq	24(%r14), %rax
	cmpq	24(%r15), %rax
	jne	LBB0_15
## %bb.5:
	movq	(%rbx), %rdi
	callq	_vc4_lbm_size
	movq	%rax, %rbx
	movq	%r12, %rdi
	callq	_vc4_lbm_size
	cmpq	%rax, %rbx
	jne	LBB0_15
## %bb.6:
	movq	(%r15), %rcx
	testq	%rcx, %rcx
	je	LBB0_7
## %bb.8:
	movq	8(%r15), %rdx
	xorl	%esi, %esi
	jmp	LBB0_9
LBB0_14:                                ##   in Loop: Header=BB0_9 Depth=1
	movq	40(%r15), %rax
	movq	(%rax,%rsi,8), %rax
	movq	40(%r14), %rdi
	cmpq	(%rdi,%rsi,8), %rax
	jne	LBB0_15
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_9 Depth=1
	incq	%rsi
	xorl	%eax, %eax
	cmpq	%rsi, %rcx
	je	LBB0_17
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%rsi, %rdx
	je	LBB0_16
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	cmpq	16(%r15), %rsi
	je	LBB0_16
## %bb.11:                              ##   in Loop: Header=BB0_9 Depth=1
	cmpq	24(%r15), %rsi
	je	LBB0_16
## %bb.12:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	32(%r15), %rax
	testq	%rax, %rax
	je	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_9 Depth=1
	cmpq	%rax, %rsi
	je	LBB0_16
	jmp	LBB0_14
LBB0_15:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_17:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	xorl	%eax, %eax
	jmp	LBB0_17
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_vc4_plane_atomic_async_check
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vc4_plane_atomic_async_check
_vc4_plane_atomic_async_check:          ; @vc4_plane_atomic_async_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	x21, x1
	mov	x22, x0
	bl	_vc4_plane_mode_set
	cbnz	w0, LBB0_16
; %bb.1:
	ldr	x0, [x22]
	bl	_to_vc4_plane_state
	mov	x19, x0
	mov	x0, x21
	bl	_to_vc4_plane_state
	ldr	x8, [x19]
	ldr	x9, [x0]
	cmp	x8, x9
	b.ne	LBB0_15
; %bb.2:
	mov	x20, x0
	ldr	x8, [x19, #8]
	ldr	x9, [x0, #8]
	cmp	x8, x9
	b.ne	LBB0_15
; %bb.3:
	ldr	x8, [x19, #16]
	ldr	x9, [x20, #16]
	cmp	x8, x9
	b.ne	LBB0_15
; %bb.4:
	ldr	x8, [x19, #24]
	ldr	x9, [x20, #24]
	cmp	x8, x9
	b.ne	LBB0_15
; %bb.5:
	ldr	x0, [x22]
	bl	_vc4_lbm_size
	mov	x22, x0
	mov	x0, x21
	bl	_vc4_lbm_size
	cmp	x22, x0
	b.ne	LBB0_15
; %bb.6:
	ldr	x8, [x20]
	cbz	x8, LBB0_17
; %bb.7:
	mov	x9, #0
	ldr	x10, [x20, #8]
	b	LBB0_10
LBB0_8:                                 ;   in Loop: Header=BB0_10 Depth=1
	ldr	x11, [x20, #40]
	lsl	x12, x9, #3
	ldr	x11, [x11, x12]
	ldr	x13, [x19, #40]
	ldr	x12, [x13, x12]
	cmp	x11, x12
	b.ne	LBB0_15
LBB0_9:                                 ;   in Loop: Header=BB0_10 Depth=1
	mov	w0, #0
	add	x9, x9, #1
	cmp	x8, x9
	b.eq	LBB0_16
LBB0_10:                                ; =>This Inner Loop Header: Depth=1
	cmp	x10, x9
	b.eq	LBB0_9
; %bb.11:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	x11, [x20, #16]
	cmp	x9, x11
	b.eq	LBB0_9
; %bb.12:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	x11, [x20, #24]
	cmp	x9, x11
	b.eq	LBB0_9
; %bb.13:                               ;   in Loop: Header=BB0_10 Depth=1
	ldr	x11, [x20, #32]
	cbz	x11, LBB0_8
; %bb.14:                               ;   in Loop: Header=BB0_10 Depth=1
	cmp	x9, x11
	b.eq	LBB0_9
	b	LBB0_8
LBB0_15:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_16:
	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
LBB0_17:
	mov	w0, #0
	b	LBB0_16
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_vc4_plane_atomic_async_check
.subsections_via_symbols
