	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nouveau_gem_pushbuf_validate
_nouveau_gem_pushbuf_validate:          ## @nouveau_gem_pushbuf_validate
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %r15
	movl	%r8d, %r14d
	movl	%ecx, -60(%rbp)                 ## 4-byte Spill
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r12
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movq	%rsi, %rdi
	callq	_nouveau_cli
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	leaq	8(%r15), %r13
	movq	%r13, %rdi
	callq	_INIT_LIST_HEAD
	leaq	4(%r15), %rdi
	movq	%rdi, -80(%rbp)                 ## 8-byte Spill
	callq	_INIT_LIST_HEAD
	movq	%r15, %rdi
	callq	_INIT_LIST_HEAD
	xorl	%ebx, %ebx
	testl	%r14d, %r14d
	je	LBB0_17
## %bb.1:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r12, %rsi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movl	%r14d, %ecx
	movq	%r15, %r8
	callq	_validate_init
	movl	%eax, %ebx
	movl	%eax, %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	movq	_ERESTARTSYS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%ebx, %eax
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	je	LBB0_17
## %bb.3:
	leaq	L_.str(%rip), %rsi
	callq	_NV_ERROR
	jmp	LBB0_17
LBB0_4:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	-72(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rsi
	movq	%r13, %rdx
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	-60(%rbp), %r14d                ## 4-byte Reload
	movl	%r14d, %r8d
	callq	_validate_list
	movl	%eax, %ebx
	movl	%eax, %edi
	shrl	$31, %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_8
## %bb.5:
	movq	_ERESTARTSYS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%ebx, %eax
	je	LBB0_7
## %bb.6:
	leaq	L_.str.1(%rip), %rsi
	movq	%r12, %rdi
	callq	_NV_ERROR
LBB0_7:
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_validate_fini
	jmp	LBB0_17
LBB0_8:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r12, %rsi
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	%r14d, %r8d
	callq	_validate_list
	movl	%eax, %r13d
	movl	%eax, %edi
	shrl	$31, %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_12
## %bb.9:
	movq	_ERESTARTSYS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%r13d, %eax
	je	LBB0_11
## %bb.10:
	leaq	L_.str.2(%rip), %rsi
	movq	%r12, %rdi
	callq	_NV_ERROR
LBB0_11:
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_validate_fini
	movl	%r13d, %ebx
	jmp	LBB0_17
LBB0_12:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r12, %rsi
	movq	%r15, %rdx
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	%r14d, %r8d
	callq	_validate_list
	movl	%eax, %r14d
	movl	%eax, %edi
	shrl	$31, %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_16
## %bb.13:
	movq	_ERESTARTSYS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%r14d, %eax
	je	LBB0_15
## %bb.14:
	leaq	L_.str.3(%rip), %rsi
	movq	%r12, %rdi
	callq	_NV_ERROR
LBB0_15:
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_validate_fini
	movl	%r14d, %ebx
	jmp	LBB0_17
LBB0_16:
	movq	16(%rbp), %rax
	addl	%ebx, %r13d
	addl	%r14d, %r13d
	movl	%r13d, (%rax)
	xorl	%ebx, %ebx
LBB0_17:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ERESTARTSYS,4,2                ## @ERESTARTSYS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"validate_init\n"

L_.str.1:                               ## @.str.1
	.asciz	"validate vram_list\n"

L_.str.2:                               ## @.str.2
	.asciz	"validate gart_list\n"

L_.str.3:                               ## @.str.3
	.asciz	"validate both_list\n"

	.no_dead_strip	_nouveau_gem_pushbuf_validate
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nouveau_gem_pushbuf_validate
_nouveau_gem_pushbuf_validate:          ; @nouveau_gem_pushbuf_validate
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x22, x6
	mov	x19, x5
	mov	x21, x4
	mov	x23, x3
	mov	x24, x2
	mov	x28, x1
	mov	x25, x0
	mov	x0, x1
	bl	_nouveau_cli
	mov	x20, x0
	add	x27, x19, #8
	mov	x0, x27
	bl	_INIT_LIST_HEAD
	add	x26, x19, #4
	mov	x0, x26
	bl	_INIT_LIST_HEAD
	mov	x0, x19
	bl	_INIT_LIST_HEAD
	cbz	w21, LBB0_17
; %bb.1:
	mov	x0, x25
	mov	x1, x28
	mov	x2, x24
	mov	x3, x21
	mov	x4, x19
	bl	_validate_init
	mov	x21, x0
	bl	_unlikely
	cbz	x0, LBB0_4
; %bb.2:
Lloh0:
	adrp	x8, _ERESTARTSYS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ERESTARTSYS@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmn	w21, w8
	b.eq	LBB0_17
; %bb.3:
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_NV_ERROR
	b	LBB0_17
LBB0_4:
	mov	x0, x25
	mov	x1, x20
	mov	x2, x27
	mov	x3, x24
	mov	x4, x23
	bl	_validate_list
	mov	x21, x0
	lsr	w0, w0, #31
	bl	_unlikely
	cbz	x0, LBB0_8
; %bb.5:
Lloh5:
	adrp	x8, _ERESTARTSYS@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ERESTARTSYS@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	cmn	w21, w8
	b.eq	LBB0_7
; %bb.6:
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_NV_ERROR
LBB0_7:
	mov	x0, x19
	mov	x1, #0
	bl	_validate_fini
	b	LBB0_17
LBB0_8:
	mov	x0, x25
	mov	x1, x20
	mov	x2, x26
	mov	x3, x24
	mov	x4, x23
	bl	_validate_list
	mov	x26, x0
	lsr	w0, w0, #31
	bl	_unlikely
	cbz	x0, LBB0_12
; %bb.9:
Lloh10:
	adrp	x8, _ERESTARTSYS@GOTPAGE
Lloh11:
	ldr	x8, [x8, _ERESTARTSYS@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	cmn	w26, w8
	b.eq	LBB0_11
; %bb.10:
Lloh13:
	adrp	x1, l_.str.2@PAGE
Lloh14:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_NV_ERROR
LBB0_11:
	mov	x0, x19
	mov	x1, #0
	bl	_validate_fini
	mov	x21, x26
	b	LBB0_17
LBB0_12:
	mov	x0, x25
	mov	x1, x20
	mov	x2, x19
	mov	x3, x24
	mov	x4, x23
	bl	_validate_list
	mov	x23, x0
	lsr	w0, w0, #31
	bl	_unlikely
	cbz	x0, LBB0_16
; %bb.13:
Lloh15:
	adrp	x8, _ERESTARTSYS@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ERESTARTSYS@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
	cmn	w23, w8
	b.eq	LBB0_15
; %bb.14:
Lloh18:
	adrp	x1, l_.str.3@PAGE
Lloh19:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x20
	bl	_NV_ERROR
LBB0_15:
	mov	x0, x19
	mov	x1, #0
	bl	_validate_fini
	mov	x21, x23
	b	LBB0_17
LBB0_16:
	add	w8, w26, w21
	mov	w21, #0
	add	w8, w8, w23
	str	w8, [x22]
LBB0_17:
	mov	x0, x21
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_ERESTARTSYS,4,2                ; @ERESTARTSYS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"validate_init\n"

l_.str.1:                               ; @.str.1
	.asciz	"validate vram_list\n"

l_.str.2:                               ; @.str.2
	.asciz	"validate gart_list\n"

l_.str.3:                               ; @.str.3
	.asciz	"validate both_list\n"

	.no_dead_strip	_nouveau_gem_pushbuf_validate
.subsections_via_symbols
