	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_surface
_get_surface:                           ## @get_surface
	.cfi_startproc
## %bb.0:
	cmpl	$129, %edi
	je	LBB0_3
## %bb.1:
	cmpl	$128, %edi
	jne	LBB0_4
## %bb.2:
	movq	%rsi, %rdi
	movl	%ecx, %esi
	movq	%r8, %rdx
	jmp	_IDirect3DTexture9_GetSurfaceLevel ## TAILCALL
LBB0_3:
	movq	%rsi, %rdi
	movl	%edx, %esi
	movl	%ecx, %edx
	movq	%r8, %rcx
	jmp	_IDirect3DCubeTexture9_GetCubeMapSurface ## TAILCALL
LBB0_4:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	leaq	L_.str(%rip), %rdi
	callq	_ERR
	movq	_E_NOTIMPL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unexpected texture type\n"

	.comm	_E_NOTIMPL,4,2                  ## @E_NOTIMPL
	.no_dead_strip	_get_surface
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_surface
_get_surface:                           ; @get_surface
	.cfi_startproc
; %bb.0:
	cmp	w0, #129
	b.eq	LBB0_3
; %bb.1:
	cmp	w0, #128
	b.ne	LBB0_4
; %bb.2:
	mov	x0, x1
	mov	x1, x3
	mov	x2, x4
	b	_IDirect3DTexture9_GetSurfaceLevel
LBB0_3:
	mov	x0, x1
	mov	x1, x2
	mov	x2, x3
	mov	x3, x4
	b	_IDirect3DCubeTexture9_GetCubeMapSurface
LBB0_4:
	stp	x29, x30, [sp, #-16]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 16
	mov	x29, sp
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_ERR
Lloh2:
	adrp	x8, _E_NOTIMPL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _E_NOTIMPL@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	ldp	x29, x30, [sp], #16             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unexpected texture type\n"

	.comm	_E_NOTIMPL,4,2                  ; @E_NOTIMPL
	.no_dead_strip	_get_surface
.subsections_via_symbols
