	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vmw_cmd_ctx_first_setup
_vmw_cmd_ctx_first_setup:               ## @vmw_cmd_ctx_first_setup
	.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	%rcx, %r14
	movq	%rdx, %r15
	movq	%rsi, %r13
	movq	%rdi, %r12
	callq	_vmw_resource_context_res_add
	movl	%eax, %ebx
	xorl	%edi, %edi
	testl	%eax, %eax
	setne	%dil
	callq	_unlikely
	testq	%rax, %rax
	jne	LBB0_9
## %bb.1:
	cmpq	$0, 8(%r13)
	je	LBB0_2
LBB0_4:
	cmpl	$0, (%r13)
	je	LBB0_7
## %bb.5:
	movq	%r12, %rdi
	callq	_vmw_binding_state_alloc
	movq	%rax, 16(%r14)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_8
## %bb.6:
	movq	16(%r14), %rdi
	callq	_PTR_ERR
	movq	$0, 16(%r14)
	jmp	LBB0_10
LBB0_2:
	movq	%r12, %rdi
	callq	_vmw_binding_state_alloc
	movq	%rax, 8(%r13)
	movq	%rax, %rdi
	callq	_IS_ERR
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	8(%r13), %rdi
	callq	_PTR_ERR
	movq	$0, 8(%r13)
	jmp	LBB0_10
LBB0_7:
	movq	8(%r13), %rax
	movq	%rax, 16(%r14)
	movl	$1, (%r13)
LBB0_8:
	movq	%r15, 8(%r14)
	movq	%r15, %rdi
	callq	_vmw_context_binding_state
	movl	%eax, 4(%r14)
	addq	$4, %r13
	movq	%r14, %rdi
	movq	%r13, %rsi
	callq	_list_add_tail
	xorl	%ebx, %ebx
LBB0_9:
	movl	%ebx, %eax
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_vmw_cmd_ctx_first_setup
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vmw_cmd_ctx_first_setup
_vmw_cmd_ctx_first_setup:               ; @vmw_cmd_ctx_first_setup
	.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, x3
	mov	x21, x2
	mov	x20, x1
	mov	x22, x0
	bl	_vmw_resource_context_res_add
	mov	x23, x0
	cmp	w0, #0
	cset	w0, ne
	bl	_unlikely
	cbnz	x0, LBB0_9
; %bb.1:
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_5
LBB0_2:
	ldr	w8, [x20]
	cbz	w8, LBB0_7
; %bb.3:
	mov	x0, x22
	bl	_vmw_binding_state_alloc
	str	x0, [x19, #16]
	bl	_IS_ERR
	cbz	x0, LBB0_8
; %bb.4:
	ldr	x0, [x19, #16]
	bl	_PTR_ERR
	str	xzr, [x19, #16]
	b	LBB0_10
LBB0_5:
	mov	x0, x22
	bl	_vmw_binding_state_alloc
	str	x0, [x20, #8]
	bl	_IS_ERR
	cbz	x0, LBB0_2
; %bb.6:
	ldr	x0, [x20, #8]
	bl	_PTR_ERR
	str	xzr, [x20, #8]
	b	LBB0_10
LBB0_7:
	ldr	x8, [x20, #8]
	str	x8, [x19, #16]
	mov	w8, #1
	str	w8, [x20]
LBB0_8:
	str	x21, [x19, #8]
	mov	x0, x21
	bl	_vmw_context_binding_state
	str	w0, [x19, #4]
	add	x1, x20, #4
	mov	x0, x19
	bl	_list_add_tail
	mov	w23, #0
LBB0_9:
	mov	x0, x23
LBB0_10:
	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
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_vmw_cmd_ctx_first_setup
.subsections_via_symbols
