	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ttm_bo_places_compat
_ttm_bo_places_compat:                  ## @ttm_bo_places_compat
	.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
	testl	%esi, %esi
	je	LBB0_11
## %bb.1:
	movq	24(%rdx), %r8
	movl	%esi, %eax
	shlq	$3, %rax
	leaq	(%rax,%rax,2), %r9
	xorl	%esi, %esi
	movq	_TTM_PL_MASK_CACHING@GOTPCREL(%rip), %r10
	movq	_TTM_PL_MASK_MEM@GOTPCREL(%rip), %r11
	movq	_TTM_PL_FLAG_CONTIGUOUS@GOTPCREL(%rip), %r14
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_2 Depth=1
	addq	$24, %rsi
	cmpq	%rsi, %r9
	je	LBB0_11
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	testq	%r8, %r8
	je	LBB0_6
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	(%rdx), %rax
	cmpq	(%rdi,%rsi), %rax
	jl	LBB0_10
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	8(%rdi,%rsi), %rbx
	testq	%rbx, %rbx
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	addq	8(%rdx), %rax
	cmpq	%rbx, %rax
	jg	LBB0_10
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	16(%rdi,%rsi), %ebx
	movl	%ebx, (%rcx)
	movl	16(%rdx), %r15d
	movl	%r15d, %eax
	andl	%ebx, %eax
	testl	%eax, (%r10)
	je	LBB0_10
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	testl	%eax, (%r11)
	je	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r14), %r12d
	movl	$1, %eax
	testl	%ebx, %r12d
	je	LBB0_12
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	andl	%r15d, %r12d
	je	LBB0_10
	jmp	LBB0_12
LBB0_11:
	xorl	%eax, %eax
LBB0_12:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	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
	.comm	_TTM_PL_FLAG_CONTIGUOUS,4,2     ## @TTM_PL_FLAG_CONTIGUOUS
	.no_dead_strip	_ttm_bo_places_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_places_compat
_ttm_bo_places_compat:                  ; @ttm_bo_places_compat
	.cfi_startproc
; %bb.0:
	cbz	w1, LBB0_11
; %bb.1:
	ldr	x8, [x2, #24]
	mov	w9, w1
	add	x10, x0, #16
Lloh0:
	adrp	x11, _TTM_PL_MASK_CACHING@GOTPAGE
Lloh1:
	ldr	x11, [x11, _TTM_PL_MASK_CACHING@GOTPAGEOFF]
Lloh2:
	adrp	x12, _TTM_PL_MASK_MEM@GOTPAGE
Lloh3:
	ldr	x12, [x12, _TTM_PL_MASK_MEM@GOTPAGEOFF]
Lloh4:
	adrp	x13, _TTM_PL_FLAG_CONTIGUOUS@GOTPAGE
Lloh5:
	ldr	x13, [x13, _TTM_PL_FLAG_CONTIGUOUS@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x10, x10, #24
	subs	x9, x9, #1
	b.eq	LBB0_11
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	cbz	x8, LBB0_7
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x14, [x2]
	ldur	x15, [x10, #-16]
	cmp	x14, x15
	b.lt	LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldur	x15, [x10, #-8]
	cbz	x15, LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x16, [x2, #8]
	add	x14, x16, x14
	cmp	x14, x15
	b.gt	LBB0_2
LBB0_7:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	w14, [x10]
	str	w14, [x3]
	ldr	w15, [x2, #16]
	and	w16, w15, w14
	ldr	w17, [x11]
	tst	w16, w17
	b.eq	LBB0_2
; %bb.8:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w17, [x12]
	tst	w17, w16
	b.eq	LBB0_2
; %bb.9:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w16, [x13]
	and	w14, w16, w14
	and	w15, w16, w15
	cmp	w14, #0
	ccmp	w15, #0, #0, ne
	b.eq	LBB0_2
; %bb.10:
	mov	w0, #1
	ret
LBB0_11:
	mov	w0, #0
	ret
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.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
	.comm	_TTM_PL_FLAG_CONTIGUOUS,4,2     ; @TTM_PL_FLAG_CONTIGUOUS
	.no_dead_strip	_ttm_bo_places_compat
.subsections_via_symbols
