	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nouveau_ttm_io_mem_free
_nouveau_ttm_io_mem_free:               ## @nouveau_ttm_io_mem_free
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	callq	_nouveau_bdev
	movq	%rax, %rbx
	movq	%r14, %rdi
	callq	_nouveau_mem
	movq	(%rbx), %rcx
	movq	(%rcx), %rcx
	movq	_NVIF_CLASS_MEM_NV50@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jl	LBB0_4
## %bb.1:
	movl	(%r14), %ecx
	cmpl	$128, %ecx
	je	LBB0_5
## %bb.2:
	cmpl	$129, %ecx
	jne	LBB0_4
## %bb.3:
	cmpl	$0, 4(%rax)
	je	LBB0_4
LBB0_5:
	movq	%rax, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_nvif_object_unmap_handle       ## TAILCALL
LBB0_4:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NVIF_CLASS_MEM_NV50,8,3        ## @NVIF_CLASS_MEM_NV50
	.no_dead_strip	_nouveau_ttm_io_mem_free
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nouveau_ttm_io_mem_free
_nouveau_ttm_io_mem_free:               ; @nouveau_ttm_io_mem_free
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	bl	_nouveau_bdev
	mov	x20, x0
	mov	x0, x19
	bl	_nouveau_mem
	ldr	x8, [x20]
	ldr	x8, [x8]
Lloh0:
	adrp	x9, _NVIF_CLASS_MEM_NV50@GOTPAGE
Lloh1:
	ldr	x9, [x9, _NVIF_CLASS_MEM_NV50@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.lt	LBB0_5
; %bb.1:
	ldr	w8, [x19]
	cmp	w8, #128
	b.eq	LBB0_4
; %bb.2:
	cmp	w8, #129
	b.ne	LBB0_5
; %bb.3:
	ldr	w8, [x0, #4]
	cbz	w8, LBB0_5
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_nvif_object_unmap_handle
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_NVIF_CLASS_MEM_NV50,8,3        ; @NVIF_CLASS_MEM_NV50
	.no_dead_strip	_nouveau_ttm_io_mem_free
.subsections_via_symbols
