	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vmw_gb_shader_init
_vmw_gb_shader_init:                    ## @vmw_gb_shader_init
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, -56(%rbp)                  ## 8-byte Spill
	movl	%r8d, -48(%rbp)                 ## 4-byte Spill
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movq	%rdx, %r14
	movq	%rsi, %r12
	movq	%rdi, %rbx
	movq	32(%rbp), %r15
	movq	%rsi, %rdi
	callq	_vmw_res_to_shader
	movq	%rax, %r13
	movq	_vmw_gb_shader_func@GOTPCREL(%rip), %r8
	movq	%rbx, %rdi
	movq	%r15, %rbx
	movq	%r12, %rsi
	movl	$1, %edx
	movq	%r15, %rcx
	callq	_vmw_resource_init
	movl	%eax, %r15d
	xorl	%edi, %edi
	testl	%eax, %eax
	setne	%dil
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	movq	%r12, %rdi
	testq	%rbx, %rbx
	je	LBB0_3
## %bb.2:
	callq	*%rbx
	jmp	LBB0_7
LBB0_4:
	movl	-48(%rbp), %ebx                 ## 4-byte Reload
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movq	24(%rbp), %rdi
	movq	16(%rbp), %rax
	movq	%r14, 16(%r12)
	testq	%rdi, %rdi
	je	LBB0_6
## %bb.5:
	callq	_vmw_bo_reference
	movl	%eax, 8(%r12)
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, 4(%r12)
	movq	16(%rbp), %rax
LBB0_6:
	movq	%r14, 24(%r13)
	movl	%ebx, 16(%r13)
	movq	%r15, 8(%r13)
	movq	%rax, (%r13)
	movq	_vmw_hw_shader_destroy@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r12)
	xorl	%r15d, %r15d
	jmp	LBB0_7
LBB0_3:
	callq	_kfree
LBB0_7:
	movl	%r15d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_vmw_gb_shader_func,4,2         ## @vmw_gb_shader_func
	.comm	_vmw_hw_shader_destroy,4,2      ## @vmw_hw_shader_destroy
	.no_dead_strip	_vmw_gb_shader_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vmw_gb_shader_init
_vmw_gb_shader_init:                    ; @vmw_gb_shader_init
	.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	x26, x7
	mov	x20, x6
	mov	x21, x5
	mov	x22, x4
	mov	x24, x3
	mov	x23, x2
	mov	x19, x1
	mov	x25, x0
	ldr	x28, [x29, #16]
	mov	x0, x1
	bl	_vmw_res_to_shader
	mov	x27, x0
Lloh0:
	adrp	x4, _vmw_gb_shader_func@GOTPAGE
Lloh1:
	ldr	x4, [x4, _vmw_gb_shader_func@GOTPAGEOFF]
	mov	x0, x25
	mov	x1, x19
	mov	w2, #1
	mov	x3, x28
	bl	_vmw_resource_init
	mov	x25, x0
	cmp	w0, #0
	cset	w0, ne
	bl	_unlikely
	cbz	x0, LBB0_3
; %bb.1:
	mov	x0, x19
	cbz	x28, LBB0_6
; %bb.2:
	blr	x28
	b	LBB0_7
LBB0_3:
	str	x23, [x19, #16]
	cbz	x26, LBB0_5
; %bb.4:
	mov	x0, x26
	bl	_vmw_bo_reference
	stp	w24, w0, [x19, #4]
LBB0_5:
	mov	w25, #0
	str	x23, [x27, #24]
	str	w22, [x27, #16]
	stp	x20, x21, [x27]
Lloh2:
	adrp	x8, _vmw_hw_shader_destroy@GOTPAGE
Lloh3:
	ldr	x8, [x8, _vmw_hw_shader_destroy@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	str	w8, [x19]
	b	LBB0_7
LBB0_6:
	bl	_kfree
LBB0_7:
	mov	x0, x25
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_vmw_gb_shader_func,4,2         ; @vmw_gb_shader_func
	.comm	_vmw_hw_shader_destroy,4,2      ; @vmw_hw_shader_destroy
	.no_dead_strip	_vmw_gb_shader_init
.subsections_via_symbols
