	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function set_placement_range
_set_placement_range:                   ## @set_placement_range
	.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
	movl	%esi, %ebx
	movq	%rdi, %r14
	movl	36(%rdi), %edi
	callq	_nouveau_bdev
	movl	(%rax), %edx
	movq	_PAGE_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	sarl	%cl, %edx
	movq	8(%rax), %rax
	movq	_NV_DEVICE_INFO_V0_CELSIUS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_26
## %bb.1:
	cmpq	$0, 40(%r14)
	je	LBB0_26
## %bb.2:
	movq	_TTM_PL_FLAG_VRAM@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_26
## %bb.3:
	leal	3(%rdx), %eax
	testl	%edx, %edx
	cmovnsl	%edx, %eax
	sarl	$2, %eax
	cmpl	%eax, 32(%r14)
	jge	LBB0_26
## %bb.4:
	movq	24(%r14), %rcx
	movl	%edx, %esi
	shrl	$31, %esi
	addl	%edx, %esi
	sarl	%esi
	xorl	%eax, %eax
	testq	%rcx, %rcx
	movl	%esi, %r8d
	cmovel	%eax, %r8d
	negq	%rcx
	sbbl	%eax, %eax
	orl	%esi, %eax
	movl	8(%r14), %r9d
	testq	%r9, %r9
	je	LBB0_15
## %bb.5:
	movq	16(%r14), %rsi
	cmpl	$4, %r9d
	jae	LBB0_8
## %bb.6:
	xorl	%edi, %edi
	jmp	LBB0_7
LBB0_8:
	movl	%r9d, %edi
	andl	$-4, %edi
	movd	%r8d, %xmm0
	pshufd	$80, %xmm0, %xmm0               ## xmm0 = xmm0[0,0,1,1]
	movd	%eax, %xmm1
	pshufd	$80, %xmm1, %xmm1               ## xmm1 = xmm1[0,0,1,1]
	punpckldq	%xmm1, %xmm0            ## xmm0 = xmm0[0],xmm1[0],xmm0[1],xmm1[1]
	leaq	-4(%rdi), %rcx
	movq	%rcx, %rbx
	shrq	$2, %rbx
	incq	%rbx
	movl	%ebx, %edx
	andl	$3, %edx
	cmpq	$12, %rcx
	jae	LBB0_10
## %bb.9:
	xorl	%ecx, %ecx
	jmp	LBB0_12
LBB0_10:
	andq	$-4, %rbx
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_11:                                ## =>This Inner Loop Header: Depth=1
	movdqu	%xmm0, (%rsi,%rcx,8)
	movdqu	%xmm0, 16(%rsi,%rcx,8)
	movdqu	%xmm0, 32(%rsi,%rcx,8)
	movdqu	%xmm0, 48(%rsi,%rcx,8)
	movdqu	%xmm0, 64(%rsi,%rcx,8)
	movdqu	%xmm0, 80(%rsi,%rcx,8)
	movdqu	%xmm0, 96(%rsi,%rcx,8)
	movdqu	%xmm0, 112(%rsi,%rcx,8)
	addq	$16, %rcx
	addq	$-4, %rbx
	jne	LBB0_11
LBB0_12:
	testq	%rdx, %rdx
	je	LBB0_14
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	leaq	(,%rcx,8), %rbx
	orq	$16, %rbx
	movdqu	%xmm0, (%rsi,%rcx,8)
	movdqu	%xmm0, (%rsi,%rbx)
	addq	$4, %rcx
	decq	%rdx
	jne	LBB0_13
LBB0_14:
	cmpq	%r9, %rdi
	je	LBB0_15
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r8d, (%rsi,%rdi,8)
	movl	%eax, 4(%rsi,%rdi,8)
	incq	%rdi
	cmpq	%rdi, %r9
	jne	LBB0_7
LBB0_15:
	movl	12(%r14), %r9d
	testq	%r9, %r9
	je	LBB0_26
## %bb.16:
	movq	(%r14), %rsi
	cmpl	$4, %r9d
	jae	LBB0_18
## %bb.17:
	xorl	%edi, %edi
	jmp	LBB0_25
LBB0_18:
	movl	%r9d, %edi
	andl	$-4, %edi
	movd	%r8d, %xmm0
	pshufd	$80, %xmm0, %xmm0               ## xmm0 = xmm0[0,0,1,1]
	movd	%eax, %xmm1
	pshufd	$80, %xmm1, %xmm1               ## xmm1 = xmm1[0,0,1,1]
	punpckldq	%xmm1, %xmm0            ## xmm0 = xmm0[0],xmm1[0],xmm0[1],xmm1[1]
	leaq	-4(%rdi), %rcx
	movq	%rcx, %rbx
	shrq	$2, %rbx
	incq	%rbx
	movl	%ebx, %edx
	andl	$3, %edx
	cmpq	$12, %rcx
	jae	LBB0_20
## %bb.19:
	xorl	%ecx, %ecx
	jmp	LBB0_22
LBB0_20:
	andq	$-4, %rbx
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_21:                                ## =>This Inner Loop Header: Depth=1
	movdqu	%xmm0, (%rsi,%rcx,8)
	movdqu	%xmm0, 16(%rsi,%rcx,8)
	movdqu	%xmm0, 32(%rsi,%rcx,8)
	movdqu	%xmm0, 48(%rsi,%rcx,8)
	movdqu	%xmm0, 64(%rsi,%rcx,8)
	movdqu	%xmm0, 80(%rsi,%rcx,8)
	movdqu	%xmm0, 96(%rsi,%rcx,8)
	movdqu	%xmm0, 112(%rsi,%rcx,8)
	addq	$16, %rcx
	addq	$-4, %rbx
	jne	LBB0_21
LBB0_22:
	testq	%rdx, %rdx
	je	LBB0_24
	.p2align	4, 0x90
LBB0_23:                                ## =>This Inner Loop Header: Depth=1
	leaq	(,%rcx,8), %rbx
	orq	$16, %rbx
	movdqu	%xmm0, (%rsi,%rcx,8)
	movdqu	%xmm0, (%rsi,%rbx)
	addq	$4, %rcx
	decq	%rdx
	jne	LBB0_23
LBB0_24:
	cmpq	%r9, %rdi
	je	LBB0_26
	.p2align	4, 0x90
LBB0_25:                                ## =>This Inner Loop Header: Depth=1
	movl	%r8d, (%rsi,%rdi,8)
	movl	%eax, 4(%rsi,%rdi,8)
	incq	%rdi
	cmpq	%rdi, %r9
	jne	LBB0_25
LBB0_26:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PAGE_SHIFT,4,2                 ## @PAGE_SHIFT
	.comm	_NV_DEVICE_INFO_V0_CELSIUS,8,3  ## @NV_DEVICE_INFO_V0_CELSIUS
	.comm	_TTM_PL_FLAG_VRAM,4,2           ## @TTM_PL_FLAG_VRAM
	.no_dead_strip	_set_placement_range
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function set_placement_range
_set_placement_range:                   ; @set_placement_range
	.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	x20, x1
	mov	x19, x0
	ldr	w0, [x0, #36]
	bl	_nouveau_bdev
	ldr	x8, [x0, #8]
Lloh0:
	adrp	x9, _NV_DEVICE_INFO_V0_CELSIUS@GOTPAGE
Lloh1:
	ldr	x9, [x9, _NV_DEVICE_INFO_V0_CELSIUS@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_20
; %bb.1:
	ldr	x8, [x19, #40]
	cbz	x8, LBB0_20
; %bb.2:
Lloh3:
	adrp	x8, _TTM_PL_FLAG_VRAM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _TTM_PL_FLAG_VRAM@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_20
; %bb.3:
	ldr	w8, [x0]
Lloh6:
	adrp	x9, _PAGE_SHIFT@GOTPAGE
Lloh7:
	ldr	x9, [x9, _PAGE_SHIFT@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	asr	w8, w8, w9
	ldr	w9, [x19, #32]
	add	w10, w8, #3
	cmp	w8, #0
	csel	w10, w10, w8, lt
	cmp	w9, w10, asr #2
	b.ge	LBB0_20
; %bb.4:
	ldr	x9, [x19, #24]
	cmp	w8, #0
	cinc	w8, w8, lt
	asr	w10, w8, #1
	cmp	x9, #0
	csel	w8, wzr, w10, eq
	csinv	w9, w10, wzr, eq
	ldr	w10, [x19, #8]
	cbz	w10, LBB0_12
; %bb.5:
	ldr	x11, [x19, #16]
	cmp	w10, #16
	b.hs	LBB0_7
; %bb.6:
	mov	x12, #0
	b	LBB0_10
LBB0_7:
	and	x12, x10, #0xfffffff0
	dup.4s	v0, w8
	dup.4s	v1, w9
	add	x14, x11, #64
	mov	x13, x12
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	sub	x15, x14, #64
	st2.4s	{ v0, v1 }, [x15]
	sub	x15, x14, #32
	st2.4s	{ v0, v1 }, [x15]
	add	x15, x14, #128
	st2.4s	{ v0, v1 }, [x14], #32
	st2.4s	{ v0, v1 }, [x14]
	mov	x14, x15
	subs	x13, x13, #16
	b.ne	LBB0_8
; %bb.9:
	cmp	x12, x10
	b.eq	LBB0_12
LBB0_10:
	add	x11, x11, x12, lsl #3
	add	x11, x11, #4
	sub	x10, x10, x12
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	stp	w8, w9, [x11, #-4]
	add	x11, x11, #8
	subs	x10, x10, #1
	b.ne	LBB0_11
LBB0_12:
	ldr	w10, [x19, #12]
	cbz	w10, LBB0_20
; %bb.13:
	ldr	x11, [x19]
	cmp	w10, #16
	b.hs	LBB0_15
; %bb.14:
	mov	x12, #0
	b	LBB0_18
LBB0_15:
	and	x12, x10, #0xfffffff0
	dup.4s	v0, w8
	dup.4s	v1, w9
	add	x14, x11, #64
	mov	x13, x12
LBB0_16:                                ; =>This Inner Loop Header: Depth=1
	sub	x15, x14, #64
	st2.4s	{ v0, v1 }, [x15]
	sub	x15, x14, #32
	st2.4s	{ v0, v1 }, [x15]
	add	x15, x14, #128
	st2.4s	{ v0, v1 }, [x14], #32
	st2.4s	{ v0, v1 }, [x14]
	mov	x14, x15
	subs	x13, x13, #16
	b.ne	LBB0_16
; %bb.17:
	cmp	x12, x10
	b.eq	LBB0_20
LBB0_18:
	add	x11, x11, x12, lsl #3
	add	x11, x11, #4
	sub	x10, x10, x12
LBB0_19:                                ; =>This Inner Loop Header: Depth=1
	stp	w8, w9, [x11, #-4]
	add	x11, x11, #8
	subs	x10, x10, #1
	b.ne	LBB0_19
LBB0_20:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_PAGE_SHIFT,4,2                 ; @PAGE_SHIFT
	.comm	_NV_DEVICE_INFO_V0_CELSIUS,8,3  ; @NV_DEVICE_INFO_V0_CELSIUS
	.comm	_TTM_PL_FLAG_VRAM,4,2           ; @TTM_PL_FLAG_VRAM
	.no_dead_strip	_set_placement_range
.subsections_via_symbols
