	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ttm_bo_mem_compat
_ttm_bo_mem_compat:                     ## @ttm_bo_mem_compat
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	cmpq	$0, 24(%rsi)
	je	LBB0_4
## %bb.1:
	movq	(%rdi), %rcx
	testq	%rcx, %rcx
	je	LBB0_4
## %bb.2:
	movq	(%rsi), %rdx
	movl	$-1, %eax
	cmpq	8(%rdi), %rdx
	jl	LBB0_10
## %bb.3:
	addq	8(%rsi), %rdx
	cmpq	%rcx, %rdx
	jg	LBB0_10
LBB0_4:
	movl	16(%rdi), %r8d
	movl	$-1, %eax
	testl	%r8d, %r8d
	jle	LBB0_10
## %bb.5:
	movq	24(%rdi), %r10
	movl	16(%rsi), %esi
	movq	_TTM_PL_MASK_CACHING@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movq	_TTM_PL_MASK_MEM@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r9d
	xorl	%ecx, %ecx
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_6 Depth=1
	incq	%rcx
	cmpq	%rcx, %r8
	je	LBB0_10
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r10,%rcx,4), %edx
	andl	%esi, %edx
	testl	%edi, %edx
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	andl	%r9d, %edx
	je	LBB0_8
## %bb.9:
	movl	%ecx, %eax
LBB0_10:
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TTM_PL_MASK_CACHING,4,2        ## @TTM_PL_MASK_CACHING
	.comm	_TTM_PL_MASK_MEM,4,2            ## @TTM_PL_MASK_MEM
	.no_dead_strip	_ttm_bo_mem_compat
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ttm_bo_mem_compat
_ttm_bo_mem_compat:                     ; @ttm_bo_mem_compat
	.cfi_startproc
; %bb.0:
	mov	x8, x0
	ldr	x9, [x1, #24]
	cbz	x9, LBB0_4
; %bb.1:
	ldr	x9, [x8]
	cbz	x9, LBB0_4
; %bb.2:
	ldr	x10, [x1]
	ldr	x11, [x8, #8]
	cmp	x10, x11
	b.lt	LBB0_8
; %bb.3:
	ldr	x11, [x1, #8]
	add	x10, x11, x10
	cmp	x10, x9
	b.gt	LBB0_8
LBB0_4:
	ldr	w9, [x8, #16]
	cmp	w9, #1
	b.lt	LBB0_8
; %bb.5:
	mov	x0, #0
	ldr	x8, [x8, #24]
	ldr	w10, [x1, #16]
Lloh0:
	adrp	x11, _TTM_PL_MASK_CACHING@GOTPAGE
Lloh1:
	ldr	x11, [x11, _TTM_PL_MASK_CACHING@GOTPAGEOFF]
Lloh2:
	ldr	w11, [x11]
Lloh3:
	adrp	x12, _TTM_PL_MASK_MEM@GOTPAGE
Lloh4:
	ldr	x12, [x12, _TTM_PL_MASK_MEM@GOTPAGEOFF]
Lloh5:
	ldr	w12, [x12]
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w13, [x8, x0, lsl #2]
	and	w13, w10, w13
	and	w14, w13, w11
	and	w13, w12, w13
	cmp	w14, #0
	ccmp	w13, #0, #4, ne
	b.ne	LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	add	x0, x0, #1
	cmp	x9, x0
	b.ne	LBB0_6
LBB0_8:
	mov	w0, #-1
LBB0_9:
                                        ; kill: def $w0 killed $w0 killed $x0
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_TTM_PL_MASK_CACHING,4,2        ; @TTM_PL_MASK_CACHING
	.comm	_TTM_PL_MASK_MEM,4,2            ; @TTM_PL_MASK_MEM
	.no_dead_strip	_ttm_bo_mem_compat
.subsections_via_symbols
