	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_D3D9BaseObject_GetDevice       ## -- Begin function D3D9BaseObject_GetDevice
	.p2align	4, 0x90
_D3D9BaseObject_GetDevice:              ## @D3D9BaseObject_GetDevice
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	(%rdi), %rdi
	testq	%rdi, %rdi
	je	LBB0_1
## %bb.2:
	movq	%rsi, %rdx
	movq	_IID_IDirect3DDevice9@GOTPCREL(%rip), %rsi
	popq	%rbp
	jmp	_IUnknown_QueryInterface        ## TAILCALL
LBB0_1:
	movq	_E_NOINTERFACE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IID_IDirect3DDevice9,4,2       ## @IID_IDirect3DDevice9
	.comm	_E_NOINTERFACE,4,2              ## @E_NOINTERFACE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_D3D9BaseObject_GetDevice       ; -- Begin function D3D9BaseObject_GetDevice
	.p2align	2
_D3D9BaseObject_GetDevice:              ; @D3D9BaseObject_GetDevice
	.cfi_startproc
; %bb.0:
	ldr	x0, [x0]
	cbz	x0, LBB0_2
; %bb.1:
	mov	x2, x1
Lloh0:
	adrp	x1, _IID_IDirect3DDevice9@GOTPAGE
Lloh1:
	ldr	x1, [x1, _IID_IDirect3DDevice9@GOTPAGEOFF]
	b	_IUnknown_QueryInterface
LBB0_2:
Lloh2:
	adrp	x8, _E_NOINTERFACE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _E_NOINTERFACE@GOTPAGEOFF]
Lloh4:
	ldr	w0, [x8]
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_IID_IDirect3DDevice9,4,2       ; @IID_IDirect3DDevice9
	.comm	_E_NOINTERFACE,4,2              ; @E_NOINTERFACE
.subsections_via_symbols
