	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_GetAdapterCaps                 ## -- Begin function GetAdapterCaps
	.p2align	4, 0x90
_GetAdapterCaps:                        ## @GetAdapterCaps
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movl	%esi, %r15d
	movq	%rdi, %r14
	movq	_D3DERR_INVALIDDEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	%rdx, %rdi
	movl	$16, %esi
	callq	_ZeroMemory
	leal	-128(%r15), %eax
	cmpl	$3, %eax
	jae	LBB0_1
## %bb.7:
	movq	_D3D_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	jmp	LBB0_4
LBB0_1:
	cmpl	$131, %r15d
	jne	LBB0_2
## %bb.3:
	leaq	12(%r14), %rdi
	movq	_D3D_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	%rbx, %rsi
	callq	_CopyDriverCaps
	jmp	LBB0_4
LBB0_2:
	leaq	L_.str(%rip), %rdi
	callq	_DPRINT1
LBB0_4:
	movl	%r12d, %edi
	callq	_SUCCEEDED
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movl	%r15d, (%rbx)
	movl	8(%r14), %eax
	movl	%eax, 12(%rbx)
	movl	4(%r14), %eax
	movl	%eax, 8(%rbx)
	movl	(%r14), %eax
	movl	%eax, 4(%rbx)
LBB0_6:
	movl	%r12d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_D3DERR_INVALIDDEVICE,4,2       ## @D3DERR_INVALIDDEVICE
	.comm	_D3D_OK,4,2                     ## @D3D_OK
	.comm	_UNIMPLEMENTED,4,2              ## @UNIMPLEMENTED
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Unknown DeviceType argument"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_GetAdapterCaps                 ; -- Begin function GetAdapterCaps
	.p2align	2
_GetAdapterCaps:                        ; @GetAdapterCaps
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x2
	mov	x21, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _D3DERR_INVALIDDEVICE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _D3DERR_INVALIDDEVICE@GOTPAGEOFF]
Lloh2:
	ldr	w22, [x8]
	mov	x0, x2
	mov	w1, #16
	bl	_ZeroMemory
	sub	w8, w21, #128
	cmp	w8, #3
	b.hs	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _D3D_OK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _D3D_OK@GOTPAGEOFF]
Lloh5:
	ldr	w22, [x8]
	b	LBB0_5
LBB0_2:
	cmp	w21, #131
	b.ne	LBB0_4
; %bb.3:
	add	x0, x20, #12
Lloh6:
	adrp	x8, _D3D_OK@GOTPAGE
Lloh7:
	ldr	x8, [x8, _D3D_OK@GOTPAGEOFF]
Lloh8:
	ldr	w22, [x8]
	mov	x1, x19
	bl	_CopyDriverCaps
	b	LBB0_5
LBB0_4:
Lloh9:
	adrp	x0, l_.str@PAGE
Lloh10:
	add	x0, x0, l_.str@PAGEOFF
	bl	_DPRINT1
LBB0_5:
	mov	x0, x22
	bl	_SUCCEEDED
	cbz	x0, LBB0_7
; %bb.6:
	str	w21, [x19]
	ldr	w8, [x20, #8]
	str	w8, [x19, #12]
	ldr	d0, [x20]
	stur	d0, [x19, #4]
LBB0_7:
	mov	x0, x22
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_D3DERR_INVALIDDEVICE,4,2       ; @D3DERR_INVALIDDEVICE
	.comm	_D3D_OK,4,2                     ; @D3D_OK
	.comm	_UNIMPLEMENTED,4,2              ; @UNIMPLEMENTED
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Unknown DeviceType argument"

.subsections_via_symbols
