	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sdma_v4_0_set_vm_pte_funcs
_sdma_v4_0_set_vm_pte_funcs:            ## @sdma_v4_0_set_vm_pte_funcs
	.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	_sdma_v4_0_vm_pte_funcs@GOTPCREL(%rip), %rax
	movq	%rax, 40(%rdi)
	movl	(%rdi), %r9d
	testq	%r9, %r9
	je	LBB0_7
## %bb.1:
	movq	16(%rdi), %r11
	movq	_DRM_SCHED_PRIORITY_KERNEL@GOTPCREL(%rip), %rax
	movq	(%rax), %r8
	cmpl	$1, %r9d
	jne	LBB0_3
## %bb.2:
	xorl	%esi, %esi
	jmp	LBB0_5
LBB0_3:
	movl	%r9d, %r10d
	andl	$-2, %r10d
	movl	$24, %ecx
	xorl	%esi, %esi
	leaq	(,%r8,4), %r14
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	testq	%r11, %r11
	movq	8(%rdi), %rdx
	movq	32(%rdi), %rbx
	leaq	-16(%rdx,%rcx), %rax
	leaq	-24(%rdx,%rcx), %rdx
	cmovneq	%rax, %rdx
	movq	(%rdx), %rax
	addq	%r14, %rax
	movq	%rax, (%rbx,%rsi,8)
	movq	8(%rdi), %rax
	movq	32(%rdi), %rdx
	leaq	(%rax,%rcx), %rbx
	testq	%r11, %r11
	leaq	-8(%rax,%rcx), %rax
	cmovneq	%rbx, %rax
	movq	(%rax), %rax
	addq	%r14, %rax
	movq	%rax, 8(%rdx,%rsi,8)
	addq	$2, %rsi
	addq	$32, %rcx
	cmpq	%rsi, %r10
	jne	LBB0_4
LBB0_5:
	testb	$1, %r9b
	je	LBB0_7
## %bb.6:
	movq	%rsi, %rax
	shlq	$4, %rax
	movq	8(%rdi), %rcx
	movq	32(%rdi), %rdx
	leaq	(%rcx,%rax), %rbx
	testq	%r11, %r11
	leaq	8(%rcx,%rax), %rax
	cmoveq	%rbx, %rax
	shlq	$2, %r8
	addq	(%rax), %r8
	movq	%r8, (%rdx,%rsi,8)
LBB0_7:
	movl	%r9d, 24(%rdi)
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_sdma_v4_0_vm_pte_funcs,4,2     ## @sdma_v4_0_vm_pte_funcs
	.comm	_DRM_SCHED_PRIORITY_KERNEL,8,3  ## @DRM_SCHED_PRIORITY_KERNEL
	.no_dead_strip	_sdma_v4_0_set_vm_pte_funcs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sdma_v4_0_set_vm_pte_funcs
_sdma_v4_0_set_vm_pte_funcs:            ; @sdma_v4_0_set_vm_pte_funcs
	.cfi_startproc
; %bb.0:
Lloh0:
	adrp	x8, _sdma_v4_0_vm_pte_funcs@GOTPAGE
Lloh1:
	ldr	x8, [x8, _sdma_v4_0_vm_pte_funcs@GOTPAGEOFF]
	str	x8, [x0, #40]
	ldr	w8, [x0]
	cbz	w8, LBB0_3
; %bb.1:
	mov	x9, #0
	ldr	x10, [x0, #16]
Lloh2:
	adrp	x11, _DRM_SCHED_PRIORITY_KERNEL@GOTPAGE
Lloh3:
	ldr	x11, [x11, _DRM_SCHED_PRIORITY_KERNEL@GOTPAGEOFF]
Lloh4:
	ldr	x11, [x11]
	lsl	x12, x8, #3
	mov	w13, #8
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x14, [x0, #8]
	add	x14, x14, x13
	sub	x15, x14, #8
	cmp	x10, #0
	csel	x14, x15, x14, eq
	ldr	x14, [x14]
	add	x14, x14, x11, lsl #2
	ldr	x15, [x0, #32]
	str	x14, [x15, x9]
	add	x9, x9, #8
	add	x13, x13, #16
	cmp	x12, x9
	b.ne	LBB0_2
LBB0_3:
	str	w8, [x0, #24]
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_sdma_v4_0_vm_pte_funcs,4,2     ; @sdma_v4_0_vm_pte_funcs
	.comm	_DRM_SCHED_PRIORITY_KERNEL,8,3  ; @DRM_SCHED_PRIORITY_KERNEL
	.no_dead_strip	_sdma_v4_0_set_vm_pte_funcs
.subsections_via_symbols
