	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function validate_lease
_validate_lease:                        ## @validate_lease
	.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	%rbx
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	testl	%esi, %esi
	jle	LBB0_13
## %bb.1:
	movq	_DRM_MODE_OBJECT_CRTC@GOTPCREL(%rip), %rax
	movq	(%rax), %r8
	movq	_DRM_MODE_OBJECT_CONNECTOR@GOTPCREL(%rip), %rax
	movq	(%rax), %r9
	movq	_DRM_MODE_OBJECT_PLANE@GOTPCREL(%rip), %rax
	movq	(%rax), %r10
	movl	%esi, %r11d
	movl	$-1, %ebx
	xorl	%edi, %edi
	movl	$-1, %r14d
	movl	$-1, %r15d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	cmpq	%r10, %rax
	cmovnel	%ebx, %esi
	testl	%ecx, %ecx
	cmovnel	%esi, %ebx
	incq	%rdi
	cmpq	%rdi, %r11
	je	LBB0_9
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	%edi, %esi
	cmpl	$-1, %r15d
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%r15d, %esi
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	(%rdx,%rdi,8), %rax
	movq	(%rax), %rax
	cmpq	%r8, %rax
	cmovel	%esi, %r15d
	movl	%edi, %esi
	cmpl	$-1, %r14d
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%r14d, %esi
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	cmpq	%r9, %rax
	cmovel	%esi, %r14d
	movl	%edi, %esi
	cmpl	$-1, %ebx
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%ebx, %esi
	jmp	LBB0_8
LBB0_9:
	cmpl	$-1, %r15d
	je	LBB0_13
## %bb.10:
	cmpl	$-1, %r14d
	je	LBB0_13
## %bb.11:
	xorl	%eax, %eax
	testl	%ecx, %ecx
	je	LBB0_14
## %bb.12:
	cmpl	$-1, %ebx
	jne	LBB0_14
LBB0_13:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_14:
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DRM_MODE_OBJECT_CRTC,8,3       ## @DRM_MODE_OBJECT_CRTC
	.comm	_DRM_MODE_OBJECT_CONNECTOR,8,3  ## @DRM_MODE_OBJECT_CONNECTOR
	.comm	_DRM_MODE_OBJECT_PLANE,8,3      ## @DRM_MODE_OBJECT_PLANE
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_validate_lease
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function validate_lease
_validate_lease:                        ; @validate_lease
	.cfi_startproc
; %bb.0:
	cmp	w1, #1
	b.lt	LBB0_6
; %bb.1:
	mov	x9, #0
Lloh0:
	adrp	x8, _DRM_MODE_OBJECT_CRTC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DRM_MODE_OBJECT_CRTC@GOTPAGEOFF]
Lloh2:
	ldr	x10, [x8]
Lloh3:
	adrp	x8, _DRM_MODE_OBJECT_CONNECTOR@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DRM_MODE_OBJECT_CONNECTOR@GOTPAGEOFF]
Lloh5:
	adrp	x12, _DRM_MODE_OBJECT_PLANE@GOTPAGE
Lloh6:
	ldr	x12, [x12, _DRM_MODE_OBJECT_PLANE@GOTPAGEOFF]
Lloh7:
	ldr	x11, [x8]
Lloh8:
	ldr	x12, [x12]
	mov	w13, w1
	mov	w8, #-1
	mov	w14, #-1
	mov	w15, #-1
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x16, [x2, x9, lsl #3]
	ldr	x16, [x16]
	cmn	w15, #1
	ccmp	x16, x10, #0, eq
	csel	w15, w9, w15, eq
	cmn	w14, #1
	ccmp	x16, x11, #0, eq
	csel	w14, w9, w14, eq
	cmn	w8, #1
	ccmp	x16, x12, #0, eq
	csel	w16, w9, w8, eq
	cmp	w3, #0
	csel	w8, w8, w16, eq
	add	x9, x9, #1
	cmp	x13, x9
	b.ne	LBB0_2
; %bb.3:
	cmn	w15, #1
	ccmn	w14, #1, #4, ne
	b.eq	LBB0_6
; %bb.4:
	mov	w0, #0
	cbz	w3, LBB0_7
; %bb.5:
	cmn	w8, #1
	b.ne	LBB0_7
LBB0_6:
Lloh9:
	adrp	x8, _EINVAL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_7:
	ret
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_DRM_MODE_OBJECT_CRTC,8,3       ; @DRM_MODE_OBJECT_CRTC
	.comm	_DRM_MODE_OBJECT_CONNECTOR,8,3  ; @DRM_MODE_OBJECT_CONNECTOR
	.comm	_DRM_MODE_OBJECT_PLANE,8,3      ; @DRM_MODE_OBJECT_PLANE
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_validate_lease
.subsections_via_symbols
