	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_base507c_acquire               ## -- Begin function base507c_acquire
	.p2align	4, 0x90
_base507c_acquire:                      ## @base507c_acquire
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %rbx
	movq	%rdi, %r12
	movq	(%rsi), %r13
	leaq	24(%rdx), %r15
	movq	_DRM_PLANE_HELPER_NO_SCALING@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rsi, %rdi
	movq	%r15, %rsi
	movl	%ecx, %edx
	xorl	%r8d, %r8d
	movl	$1, %r9d
	callq	_drm_atomic_helper_check_plane_state
	testl	%eax, %eax
	jne	LBB0_7
## %bb.1:
	movq	(%r12), %rcx
	cmpl	$0, (%rcx)
	je	LBB0_3
## %bb.2:
	movq	8(%r13), %rdx
	movq	(%rdx), %rdi
	jmp	LBB0_5
LBB0_3:
	cmpl	$1, (%r14)
	setne	%sil
	movq	8(%r13), %rdx
	movq	(%rdx), %rdi
	cmpl	$1, (%rdi)
	setne	%cl
	cmpb	%cl, %sil
	je	LBB0_5
## %bb.4:
	movl	$1, (%r15)
LBB0_5:
	movl	8(%rdx), %edx
	movl	%edx, 4(%r14)
	movl	(%rdi), %ecx
	movl	%ecx, (%r14)
	movswl	10(%rbx), %esi
	movl	%esi, 8(%r14)
	movswl	14(%rbx), %esi
	movl	%esi, 12(%r14)
	movq	(%rbx), %rsi
	movl	4(%rsi), %edi
	movl	%edi, 20(%r14)
	movl	(%rsi), %esi
	movl	%esi, 16(%r14)
	testl	%edx, %edx
	jne	LBB0_7
## %bb.6:
	shll	$3, %ecx
	movl	%ecx, 4(%r14)
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DRM_PLANE_HELPER_NO_SCALING,4,2 ## @DRM_PLANE_HELPER_NO_SCALING
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_base507c_acquire               ; -- Begin function base507c_acquire
	.p2align	2
_base507c_acquire:                      ; @base507c_acquire
	.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, x2
	mov	x20, x1
	mov	x22, x0
	ldr	x23, [x1]
	add	x21, x2, #24
Lloh0:
	adrp	x8, _DRM_PLANE_HELPER_NO_SCALING@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DRM_PLANE_HELPER_NO_SCALING@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
	mov	x0, x1
	mov	x1, x21
	mov	x3, x2
	mov	w4, #0
	mov	w5, #1
	bl	_drm_atomic_helper_check_plane_state
	cbnz	w0, LBB0_7
; %bb.1:
	ldr	x8, [x22]
	ldr	w8, [x8]
	cbz	w8, LBB0_3
; %bb.2:
	ldr	x8, [x23, #8]
	ldr	x9, [x8]
	b	LBB0_5
LBB0_3:
	ldr	w8, [x19]
	cmp	w8, #1
	cset	w10, ne
	ldr	x8, [x23, #8]
	ldr	x9, [x8]
	ldr	w11, [x9]
	cmp	w11, #1
	cset	w11, ne
	cmp	w10, w11
	b.eq	LBB0_5
; %bb.4:
	mov	w10, #1
	str	w10, [x21]
LBB0_5:
	ldr	w10, [x8, #8]
	str	w10, [x19, #4]
	ldr	w8, [x9]
	str	w8, [x19]
	ldr	d0, [x20, #8]
	sshr.2s	v0, v0, #16
	str	d0, [x19, #8]
	ldr	x9, [x20]
	ldr	d0, [x9]
	str	d0, [x19, #16]
	cbnz	w10, LBB0_7
; %bb.6:
	lsl	w8, w8, #3
	str	w8, [x19, #4]
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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_DRM_PLANE_HELPER_NO_SCALING,4,2 ; @DRM_PLANE_HELPER_NO_SCALING
.subsections_via_symbols
