	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dcn10_validate_global
_dcn10_validate_global:                 ## @dcn10_validate_global
	.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
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	(%rsi), %r13d
	testl	%r13d, %r13d
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	jle	LBB0_1
## %bb.2:
	movq	8(%rsi), %rdx
	movq	_SURFACE_PIXEL_FORMAT_VIDEO_BEGIN@GOTPCREL(%rip), %rax
	movq	(%rax), %r10
	shlq	$4, %r13
	xorl	%ebx, %ebx
	movl	$1, %r14d
	xorl	%r11d, %r11d
	xorl	%r15d, %r15d
	xorl	%r12d, %r12d
	xorl	%r9d, %r9d
	jmp	LBB0_3
LBB0_19:                                ##   in Loop: Header=BB0_3 Depth=1
	cmpl	$3840, %eax                     ## imm = 0xF00
	cmovgel	%r14d, %r15d
	cmpl	$0, 8(%rcx)
	cmovel	%r14d, %r11d
	.p2align	4, 0x90
LBB0_20:                                ##   in Loop: Header=BB0_3 Depth=1
	addq	$16, %rbx
	cmpq	%rbx, %r13
	je	LBB0_21
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rdx,%rbx), %esi
	testl	%esi, %esi
	je	LBB0_20
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpl	$2, %esi
	jg	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	testl	%esi, %esi
	jle	LBB0_20
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	8(%rdx,%rbx), %rax
	movq	(%rax), %r8
	movl	16(%r8), %ecx
	cmpq	%r10, (%r8)
	jge	LBB0_8
## %bb.12:                              ##   in Loop: Header=BB0_3 Depth=1
	cmpl	$3840, %ecx                     ## imm = 0xF00
	cmovgel	%r14d, %r15d
	cmpl	$0, 8(%r8)
	cmovel	%r14d, %r11d
	cmpl	$1, %esi
	je	LBB0_20
	jmp	LBB0_14
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	cmpl	32(%r8), %ecx
	jg	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	24(%r8), %rdi
	cmpq	40(%r8), %rdi
	jle	LBB0_11
LBB0_10:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	$1, %r9d
LBB0_11:                                ##   in Loop: Header=BB0_3 Depth=1
	cmpl	$3840, %ecx                     ## imm = 0xF00
	cmovgel	%r14d, %r12d
	cmpl	$1, %esi
	je	LBB0_20
LBB0_14:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	8(%rax), %rcx
	movl	16(%rcx), %eax
	cmpq	%r10, (%rcx)
	jl	LBB0_19
## %bb.15:                              ##   in Loop: Header=BB0_3 Depth=1
	cmpl	32(%rcx), %eax
	jg	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	24(%rcx), %rsi
	cmpq	40(%rcx), %rsi
	jle	LBB0_18
LBB0_17:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	$1, %r9d
LBB0_18:                                ##   in Loop: Header=BB0_3 Depth=1
	cmpl	$3840, %eax                     ## imm = 0xF00
	cmovgel	%r14d, %r12d
	jmp	LBB0_20
LBB0_1:
	xorl	%r9d, %r9d
	xorl	%r12d, %r12d
	xorl	%r15d, %r15d
	xorl	%r11d, %r11d
LBB0_21:
	testl	%r12d, %r12d
	je	LBB0_27
## %bb.22:
	testl	%r15d, %r15d
	je	LBB0_27
## %bb.23:
	testl	%r9d, %r9d
	je	LBB0_27
## %bb.24:
	testl	%r11d, %r11d
	je	LBB0_27
## %bb.25:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	cmpl	$1, (%rax)
	jne	LBB0_27
## %bb.26:
	movq	_DC_FAIL_SURFACE_VALIDATE@GOTPCREL(%rip), %rax
	jmp	LBB0_28
LBB0_27:
	movq	_DC_OK@GOTPCREL(%rip), %rax
	jmp	LBB0_28
LBB0_5:
	movq	_DC_FAIL_UNSUPPORTED_1@GOTPCREL(%rip), %rax
LBB0_28:
	movl	(%rax), %eax
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DC_FAIL_UNSUPPORTED_1,4,2      ## @DC_FAIL_UNSUPPORTED_1
	.comm	_SURFACE_PIXEL_FORMAT_VIDEO_BEGIN,8,3 ## @SURFACE_PIXEL_FORMAT_VIDEO_BEGIN
	.comm	_DC_FAIL_SURFACE_VALIDATE,4,2   ## @DC_FAIL_SURFACE_VALIDATE
	.comm	_DC_OK,4,2                      ## @DC_OK
	.no_dead_strip	_dcn10_validate_global
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dcn10_validate_global
_dcn10_validate_global:                 ; @dcn10_validate_global
	.cfi_startproc
; %bb.0:
	ldr	w12, [x1]
	cmp	w12, #1
	b.lt	LBB0_18
; %bb.1:
	mov	w8, #0
	mov	w10, #0
	mov	w11, #0
	mov	w9, #0
	ldr	x13, [x1, #8]
Lloh0:
	adrp	x14, _SURFACE_PIXEL_FORMAT_VIDEO_BEGIN@GOTPAGE
Lloh1:
	ldr	x14, [x14, _SURFACE_PIXEL_FORMAT_VIDEO_BEGIN@GOTPAGEOFF]
Lloh2:
	ldr	x14, [x14]
	add	x15, x13, #8
Lloh3:
	adrp	x13, _DC_FAIL_UNSUPPORTED_1@GOTPAGE
Lloh4:
	ldr	x13, [x13, _DC_FAIL_UNSUPPORTED_1@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	cmp	w16, #3839
	csinc	w10, w10, wzr, le
	ldr	w16, [x17, #8]
	cmp	w16, #0
	csinc	w8, w8, wzr, ne
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x15, x15, #16
	subs	x12, x12, #1
	b.eq	LBB0_19
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldur	w16, [x15, #-8]
	cbz	w16, LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	w16, #2
	b.gt	LBB0_26
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	w16, #1
	b.lt	LBB0_3
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x17, [x15]
	ldr	x2, [x17]
	ldr	x3, [x2]
	ldr	w1, [x2, #16]
	cmp	x3, x14
	b.ge	LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	w1, #3839
	csinc	w10, w10, wzr, le
	ldr	w1, [x2, #8]
	cmp	w1, #0
	csinc	w8, w8, wzr, ne
	cmp	w16, #1
	b.eq	LBB0_3
	b	LBB0_13
LBB0_9:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w3, [x2, #32]
	cmp	w1, w3
	b.gt	LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	x3, [x2, #24]
	ldr	x2, [x2, #40]
	cmp	x3, x2
	b.le	LBB0_12
LBB0_11:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	w9, #1
LBB0_12:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	w1, #3839
	csinc	w11, w11, wzr, le
	cmp	w16, #1
	b.eq	LBB0_3
LBB0_13:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x17, [x17, #8]
	ldr	x1, [x17]
	ldr	w16, [x17, #16]
	cmp	x1, x14
	b.lt	LBB0_2
; %bb.14:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	w1, [x17, #32]
	cmp	w16, w1
	b.gt	LBB0_16
; %bb.15:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	x1, [x17, #24]
	ldr	x17, [x17, #40]
	cmp	x1, x17
	b.le	LBB0_17
LBB0_16:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	w9, #1
LBB0_17:                                ;   in Loop: Header=BB0_4 Depth=1
	cmp	w16, #3839
	csinc	w11, w11, wzr, le
	b	LBB0_3
LBB0_18:
	mov	w9, #0
	mov	w11, #0
	mov	w10, #0
	mov	w8, #0
LBB0_19:
	cbz	w11, LBB0_25
; %bb.20:
	cbz	w10, LBB0_25
; %bb.21:
	cbz	w9, LBB0_25
; %bb.22:
	cbz	w8, LBB0_25
; %bb.23:
	ldr	x8, [x0]
	ldr	w8, [x8]
	cmp	w8, #1
	b.ne	LBB0_25
; %bb.24:
Lloh5:
	adrp	x13, _DC_FAIL_SURFACE_VALIDATE@GOTPAGE
Lloh6:
	ldr	x13, [x13, _DC_FAIL_SURFACE_VALIDATE@GOTPAGEOFF]
Lloh7:
	ldr	w0, [x13]
	ret
LBB0_25:
Lloh8:
	adrp	x13, _DC_OK@GOTPAGE
Lloh9:
	ldr	x13, [x13, _DC_OK@GOTPAGEOFF]
LBB0_26:
	ldr	w0, [x13]
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_DC_FAIL_UNSUPPORTED_1,4,2      ; @DC_FAIL_UNSUPPORTED_1
	.comm	_SURFACE_PIXEL_FORMAT_VIDEO_BEGIN,8,3 ; @SURFACE_PIXEL_FORMAT_VIDEO_BEGIN
	.comm	_DC_FAIL_SURFACE_VALIDATE,4,2   ; @DC_FAIL_SURFACE_VALIDATE
	.comm	_DC_OK,4,2                      ; @DC_OK
	.no_dead_strip	_dcn10_validate_global
.subsections_via_symbols
