	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vmw_view_bindings_add
_vmw_view_bindings_add:                 ## @vmw_view_bindings_add
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %r15
	movq	%r8, -64(%rbp)                  ## 8-byte Spill
	movq	%rcx, %rbx
	movl	%edx, -48(%rbp)                 ## 4-byte Spill
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	callq	_VMW_GET_CTX_NODE
	testq	%rax, %rax
	je	LBB0_10
## %bb.1:
	testq	%r15, %r15
	je	LBB0_6
## %bb.2:
	movq	%rax, %r13
	xorl	%r12d, %r12d
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_3 Depth=1
	xorl	%r14d, %r14d
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	movl	4(%r13), %eax
	movl	%eax, -80(%rbp)
	movq	%r14, -88(%rbp)
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, -96(%rbp)
	movq	%rbx, -72(%rbp)
	movq	16(%rbp), %rax
	leaq	(%rax,%r12), %rcx
	movq	%rcx, -104(%rbp)
	movl	(%r13), %edi
	leaq	-96(%rbp), %rsi
	movq	%rbx, %rdx
	callq	_vmw_binding_add
	incq	%r12
	cmpq	%r12, %r15
	je	LBB0_6
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax,%r12,8), %rdx
	movq	_SVGA3D_INVALID_ID@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdx
	je	LBB0_4
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	callq	_vmw_view_id_val_add
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_5
## %bb.8:
	leaq	L_.str(%rip), %rdi
	callq	_VMW_DEBUG_USER
	movq	%r14, %rdi
	callq	_PTR_ERR
	jmp	LBB0_9
LBB0_6:
	xorl	%eax, %eax
	jmp	LBB0_9
LBB0_10:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_9:
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_SVGA3D_INVALID_ID,8,3          ## @SVGA3D_INVALID_ID
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"View not found.\n"

	.no_dead_strip	_vmw_view_bindings_add
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vmw_view_bindings_add
_vmw_view_bindings_add:                 ; @vmw_view_bindings_add
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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	x19, x6
	mov	x20, x5
	mov	x21, x4
	mov	x22, x3
	mov	x23, x2
	mov	x24, x1
	mov	x25, x0
	bl	_VMW_GET_CTX_NODE
	cbz	x0, LBB0_9
; %bb.1:
	cbz	x20, LBB0_8
; %bb.2:
	mov	x26, x0
	add	x8, sp, #8
	add	x27, x8, #8
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x28, #0
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	w8, [x26, #4]
	str	w8, [sp, #32]
	str	x28, [sp, #24]
	str	w23, [sp, #16]
	str	x22, [sp, #40]
	str	x19, [sp, #8]
	ldr	w0, [x26]
	mov	x1, x27
	mov	x2, x22
	mov	x3, x19
	bl	_vmw_binding_add
	add	x19, x19, #1
	add	x21, x21, #8
	subs	x20, x20, #1
	b.eq	LBB0_8
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x2, [x21]
Lloh0:
	adrp	x8, _SVGA3D_INVALID_ID@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SVGA3D_INVALID_ID@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x2, x8
	b.eq	LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x25
	mov	x1, x24
	bl	_vmw_view_id_val_add
	mov	x28, x0
	bl	_IS_ERR
	cbz	x0, LBB0_4
; %bb.7:
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_VMW_DEBUG_USER
	mov	x0, x28
	bl	_PTR_ERR
	b	LBB0_10
LBB0_8:
	mov	w0, #0
	b	LBB0_10
LBB0_9:
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_10:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_SVGA3D_INVALID_ID,8,3          ; @SVGA3D_INVALID_ID
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"View not found.\n"

	.no_dead_strip	_vmw_view_bindings_add
.subsections_via_symbols
