	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nouveau_gem_info
_nouveau_gem_info:                      ## @nouveau_gem_info
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %rbx
	callq	_nouveau_cli
	movq	%rax, %r15
	movq	%rbx, %rdi
	callq	_nouveau_gem_object
	movq	%rax, %rbx
	movq	16(%rax), %rax
	movq	_TTM_PL_TT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_1
## %bb.2:
	movq	_NOUVEAU_GEM_DOMAIN_GART@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_1:
	movq	_NOUVEAU_GEM_DOMAIN_VRAM@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %eax
	movl	%eax, 20(%r14)
	movl	32(%rbx), %eax
	movl	%eax, 16(%r14)
	movq	(%r15), %rsi
	testq	%rsi, %rsi
	je	LBB0_7
## %bb.4:
	movq	%rbx, %rdi
	callq	_nouveau_bo_vma_find
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movl	(%rax), %eax
	movl	%eax, 16(%r14)
LBB0_7:
	movl	24(%rbx), %eax
	movq	_PAGE_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %eax
	movl	%eax, (%r14)
	movl	8(%rbx), %eax
	movl	%eax, 12(%r14)
	movl	4(%rbx), %eax
	movl	%eax, 8(%r14)
	movl	(%rbx), %eax
	movl	%eax, 4(%r14)
	xorl	%eax, %eax
	jmp	LBB0_8
LBB0_5:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TTM_PL_TT,8,3                  ## @TTM_PL_TT
	.comm	_NOUVEAU_GEM_DOMAIN_GART,4,2    ## @NOUVEAU_GEM_DOMAIN_GART
	.comm	_NOUVEAU_GEM_DOMAIN_VRAM,4,2    ## @NOUVEAU_GEM_DOMAIN_VRAM
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_PAGE_SHIFT,4,2                 ## @PAGE_SHIFT
	.no_dead_strip	_nouveau_gem_info
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nouveau_gem_info
_nouveau_gem_info:                      ; @nouveau_gem_info
	.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	x20, x1
	bl	_nouveau_cli
	mov	x21, x0
	mov	x0, x20
	bl	_nouveau_gem_object
	mov	x20, x0
	ldr	x8, [x0, #16]
Lloh0:
	adrp	x9, _TTM_PL_TT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _TTM_PL_TT@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
Lloh3:
	adrp	x10, _NOUVEAU_GEM_DOMAIN_GART@GOTPAGE
Lloh4:
	ldr	x10, [x10, _NOUVEAU_GEM_DOMAIN_GART@GOTPAGEOFF]
Lloh5:
	adrp	x11, _NOUVEAU_GEM_DOMAIN_VRAM@GOTPAGE
Lloh6:
	ldr	x11, [x11, _NOUVEAU_GEM_DOMAIN_VRAM@GOTPAGEOFF]
	cmp	x8, x9
	csel	x8, x10, x11, eq
	ldr	w8, [x8]
	str	w8, [x19, #20]
	ldr	w8, [x0, #32]
	str	w8, [x19, #16]
	ldr	x1, [x21]
	cbz	x1, LBB0_3
; %bb.1:
	mov	x0, x20
	bl	_nouveau_bo_vma_find
	cbz	x0, LBB0_4
; %bb.2:
	ldr	w8, [x0]
	str	w8, [x19, #16]
LBB0_3:
	mov	w0, #0
	ldr	w8, [x20, #24]
Lloh7:
	adrp	x9, _PAGE_SHIFT@GOTPAGE
Lloh8:
	ldr	x9, [x9, _PAGE_SHIFT@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	lsl	w8, w8, w9
	str	w8, [x19]
	ldr	w8, [x20, #8]
	str	w8, [x19, #12]
	ldr	d0, [x20]
	stur	d0, [x19, #4]
	b	LBB0_5
LBB0_4:
Lloh10:
	adrp	x8, _EINVAL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_5:
	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 AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_TTM_PL_TT,8,3                  ; @TTM_PL_TT
	.comm	_NOUVEAU_GEM_DOMAIN_GART,4,2    ; @NOUVEAU_GEM_DOMAIN_GART
	.comm	_NOUVEAU_GEM_DOMAIN_VRAM,4,2    ; @NOUVEAU_GEM_DOMAIN_VRAM
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_PAGE_SHIFT,4,2                 ; @PAGE_SHIFT
	.no_dead_strip	_nouveau_gem_info
.subsections_via_symbols
