	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vmw_dx_shader_commit_notify
_vmw_dx_shader_commit_notify:           ## @vmw_dx_shader_commit_notify
	.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
	movl	%esi, %r12d
	movq	%rdi, %r15
	callq	_vmw_res_to_dx_shader
	movq	%rax, %rbx
	movq	8(%r15), %r14
	movq	_VMW_CMDBUF_RES_ADD@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	movq	%r14, %rdi
	callq	_mutex_lock
	cmpl	%r12d, %r13d
	jne	LBB0_2
## %bb.1:
	movl	12(%rbx), %edi
	movq	%rbx, %rsi
	addq	$8, %rsi
	callq	_vmw_cotable_add_resource
	movl	$1, (%rbx)
	movl	4(%rbx), %eax
	jmp	LBB0_3
LBB0_2:
	movq	%rbx, %rdi
	addq	$8, %rdi
	callq	_list_del_init
	movl	$0, (%rbx)
	movl	$-1, %eax
LBB0_3:
	movl	%eax, (%r15)
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mutex_unlock                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_VMW_CMDBUF_RES_ADD,4,2         ## @VMW_CMDBUF_RES_ADD
	.no_dead_strip	_vmw_dx_shader_commit_notify
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vmw_dx_shader_commit_notify
_vmw_dx_shader_commit_notify:           ; @vmw_dx_shader_commit_notify
	.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	x22, x1
	mov	x19, x0
	bl	_vmw_res_to_dx_shader
	mov	x21, x0
	ldr	x20, [x19, #8]
Lloh0:
	adrp	x8, _VMW_CMDBUF_RES_ADD@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VMW_CMDBUF_RES_ADD@GOTPAGEOFF]
Lloh2:
	ldr	w23, [x8]
	mov	x0, x20
	bl	_mutex_lock
	cmp	w23, w22
	b.ne	LBB0_2
; %bb.1:
	ldr	w0, [x21, #12]
	add	x1, x21, #8
	bl	_vmw_cotable_add_resource
	mov	w8, #1
	str	w8, [x21]
	ldr	w8, [x21, #4]
	b	LBB0_3
LBB0_2:
	add	x0, x21, #8
	bl	_list_del_init
	str	wzr, [x21]
	mov	w8, #-1
LBB0_3:
	str	w8, [x19]
	mov	x0, x20
	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
	b	_mutex_unlock
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_VMW_CMDBUF_RES_ADD,4,2         ; @VMW_CMDBUF_RES_ADD
	.no_dead_strip	_vmw_dx_shader_commit_notify
.subsections_via_symbols
