	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gru_load_mm_tracker
_gru_load_mm_tracker:                   ## @gru_load_mm_tracker
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r13
	movq	8(%rsi), %rax
	movq	16(%rax), %r14
	movq	(%rdi), %r12
	movq	%rsi, -80(%rbp)                 ## 8-byte Spill
	movb	(%rsi), %cl
	movl	$1, %ebx
	shll	%cl, %ebx
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	leaq	8(%rax), %rdi
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	callq	_spin_lock
	shlq	$4, %r12
	movl	(%r14,%r12), %r15d
	leaq	16(%r13), %rdi
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	callq	_spin_lock
	movq	%r15, -48(%rbp)                 ## 8-byte Spill
	testl	%r15d, %r15d
	movq	%r13, %r15
	je	LBB0_3
## %bb.1:
	movq	_asid_reuse@GOTPCREL(%rip), %rax
	cmpw	$0, 4(%r14,%r12)
	jne	LBB0_4
## %bb.2:
	movq	8(%r14,%r12), %rcx
	cmpq	8(%r15), %rcx
	je	LBB0_4
LBB0_3:
	leaq	(%r14,%r12), %r13
	movq	%r15, %rdi
	callq	_gru_assign_asid
                                        ## kill: def $eax killed $eax def $rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movl	%eax, (%r13)
	movq	8(%r15), %rax
	movq	%rax, 8(%r14,%r12)
	movq	_asid_new@GOTPCREL(%rip), %rax
LBB0_4:
	movl	(%rax), %edi
	callq	_STAT
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_spin_unlock
	movzwl	4(%r14,%r12), %eax
	andw	%bx, %ax
	movzwl	%ax, %edi
	callq	_BUG_ON
	orw	%bx, 4(%r14,%r12)
	movq	(%r15), %rdi
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movq	(%rbx), %rsi
	callq	_test_bit
	testl	%eax, %eax
	jne	LBB0_6
## %bb.5:
	movq	(%r15), %rdi
	movq	(%rbx), %rsi
	callq	___set_bit
LBB0_6:
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_spin_unlock
	movq	_grudev@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	(%r15), %rdx
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	movl	(%rcx), %r9d
	movq	(%rbx), %rax
	movl	(%rax), %eax
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %r8
	pushq	%rax
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	pushq	%rbx
	callq	_gru_dbg
	addq	$16, %rsp
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_asid_new,4,2                   ## @asid_new
	.comm	_asid_reuse,4,2                 ## @asid_reuse
	.comm	_grudev,4,2                     ## @grudev
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"gid %d, gts %p, gms %p, ctxnum %d, asid 0x%x, asidmap 0x%lx\n"

	.no_dead_strip	_gru_load_mm_tracker
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gru_load_mm_tracker
_gru_load_mm_tracker:                   ; @gru_load_mm_tracker
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x1
	mov	x21, x0
	ldr	x20, [x1, #8]
	ldr	x26, [x20, #16]
	mov	x24, x0
	ldr	x27, [x24], #16
	ldr	w8, [x1]
	mov	w9, #1
	lsl	w25, w9, w8
	add	x23, x20, #8
	mov	x0, x23
	bl	_spin_lock
	add	x28, x26, x27, lsl #4
	ldr	w22, [x28]
	mov	x0, x24
	bl	_spin_lock
	cbz	w22, LBB0_4
; %bb.1:
	ldrh	w8, [x28, #4]
	cbnz	w8, LBB0_3
; %bb.2:
	add	x8, x26, x27, lsl #4
	ldr	x8, [x8, #8]
	ldr	x9, [x21, #8]
	cmp	x8, x9
	b.ne	LBB0_4
LBB0_3:
Lloh0:
	adrp	x8, _asid_reuse@GOTPAGE
Lloh1:
	ldr	x8, [x8, _asid_reuse@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:
	mov	x0, x21
	bl	_gru_assign_asid
	mov	x22, x0
	str	w0, [x28]
	ldr	x8, [x21, #8]
	str	x8, [x28, #8]
Lloh2:
	adrp	x8, _asid_new@GOTPAGE
Lloh3:
	ldr	x8, [x8, _asid_new@GOTPAGEOFF]
LBB0_5:
	ldr	w0, [x8]
	bl	_STAT
	mov	x0, x24
	bl	_spin_unlock
	add	x24, x26, x27, lsl #4
	ldrh	w8, [x24, #4]
	and	w8, w8, w25
	and	w0, w8, #0xffff
	bl	_BUG_ON
	ldrh	w8, [x24, #4]
	orr	w8, w8, w25
	strh	w8, [x24, #4]
	ldr	x0, [x21]
	ldr	x1, [x20]
	bl	_test_bit
	cbnz	w0, LBB0_7
; %bb.6:
	ldr	x0, [x21]
	ldr	x1, [x20]
	bl	___set_bit
LBB0_7:
	mov	x0, x23
	bl	_spin_unlock
Lloh4:
	adrp	x8, _grudev@GOTPAGE
Lloh5:
	ldr	x8, [x8, _grudev@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
	ldr	x2, [x21]
	ldr	w5, [x19]
	ldr	x8, [x20]
	ldr	w7, [x8]
Lloh7:
	adrp	x1, l_.str@PAGE
Lloh8:
	add	x1, x1, l_.str@PAGEOFF
	mov	x3, x19
	mov	x4, x20
	mov	x6, x22
	bl	_gru_dbg
	mov	x0, x22
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_asid_new,4,2                   ; @asid_new
	.comm	_asid_reuse,4,2                 ; @asid_reuse
	.comm	_grudev,4,2                     ; @grudev
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"gid %d, gts %p, gms %p, ctxnum %d, asid 0x%x, asidmap 0x%lx\n"

	.no_dead_strip	_gru_load_mm_tracker
.subsections_via_symbols
