	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gru_check_context_placement    ## -- Begin function gru_check_context_placement
	.p2align	4, 0x90
_gru_check_context_placement:           ## @gru_check_context_placement
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	movq	8(%rdi), %rdi
	testq	%rdi, %rdi
	je	LBB0_4
## %bb.1:
	movq	(%rbx), %rax
	movq	_current@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.2:
	movq	%rbx, %rsi
	callq	_gru_check_chiplet_assignment
	testl	%eax, %eax
	je	LBB0_5
## %bb.3:
	movq	%rbx, %rdi
	callq	_gru_retarget_intr
	testq	%rax, %rax
	je	LBB0_4
## %bb.6:
	movq	_check_context_retarget_intr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_STAT                           ## TAILCALL
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_5:
	movq	_check_context_unload@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_STAT
	movq	%rbx, %rdi
	movl	$1, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_gru_unload_context             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_current,8,3                    ## @current
	.comm	_check_context_unload,4,2       ## @check_context_unload
	.comm	_check_context_retarget_intr,4,2 ## @check_context_retarget_intr
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_gru_check_context_placement    ; -- Begin function gru_check_context_placement
	.p2align	2
_gru_check_context_placement:           ; @gru_check_context_placement
	.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	x19, x0
	ldr	x0, [x0, #8]
	cbz	x0, LBB0_5
; %bb.1:
	ldr	x8, [x19]
Lloh0:
	adrp	x9, _current@GOTPAGE
Lloh1:
	ldr	x9, [x9, _current@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.2:
	mov	x1, x19
	bl	_gru_check_chiplet_assignment
	cbz	w0, LBB0_6
; %bb.3:
	mov	x0, x19
	bl	_gru_retarget_intr
	cbz	x0, LBB0_5
; %bb.4:
Lloh3:
	adrp	x8, _check_context_retarget_intr@GOTPAGE
Lloh4:
	ldr	x8, [x8, _check_context_retarget_intr@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_STAT
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_6:
Lloh6:
	adrp	x8, _check_context_unload@GOTPAGE
Lloh7:
	ldr	x8, [x8, _check_context_unload@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	bl	_STAT
	mov	x0, x19
	mov	w1, #1
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_gru_unload_context
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_current,8,3                    ; @current
	.comm	_check_context_unload,4,2       ; @check_context_unload
	.comm	_check_context_retarget_intr,4,2 ; @check_context_retarget_intr
.subsections_via_symbols
