	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_MemoryContextSetParent         ## -- Begin function MemoryContextSetParent
	.p2align	4, 0x90
_MemoryContextSetParent:                ## @MemoryContextSetParent
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	callq	_MemoryContextIsValid
	movl	%eax, %edi
	callq	_AssertArg
	xorl	%edi, %edi
	cmpq	%r14, %rbx
	setne	%dil
	callq	_AssertArg
	movq	16(%rbx), %r15
	cmpq	%r14, %r15
	je	LBB0_12
## %bb.1:
	testq	%r15, %r15
	je	LBB0_7
## %bb.2:
	movq	8(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	(%rbx), %rcx
	movq	%rcx, (%rax)
	movq	(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_7
LBB0_6:
	movq	8(%rbx), %rcx
	movq	%rcx, 8(%rax)
LBB0_7:
	testq	%r14, %r14
	je	LBB0_11
## %bb.8:
	movq	%r14, %rdi
	callq	_MemoryContextIsValid
	movl	%eax, %edi
	callq	_AssertArg
	movq	%r14, 16(%rbx)
	movq	$0, 8(%rbx)
	movq	24(%r14), %rax
	movq	%rax, (%rbx)
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	movq	%rbx, 8(%rax)
LBB0_10:
	movq	%rbx, 24(%r14)
	jmp	LBB0_12
LBB0_11:
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%rbx)
	movq	$0, 16(%rbx)
LBB0_12:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	xorl	%edi, %edi
	cmpq	%rbx, 24(%r15)
	sete	%dil
	callq	_Assert
	movq	(%rbx), %rax
	movq	%rax, 24(%r15)
	testq	%rax, %rax
	jne	LBB0_6
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_MemoryContextSetParent         ; -- Begin function MemoryContextSetParent
	.p2align	2
_MemoryContextSetParent:                ; @MemoryContextSetParent
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x1
	mov	x19, x0
	bl	_MemoryContextIsValid
	bl	_AssertArg
	cmp	x19, x20
	cset	w0, ne
	bl	_AssertArg
	ldr	x21, [x19, #16]
	cmp	x21, x20
	b.eq	LBB0_10
; %bb.1:
	cbz	x21, LBB0_5
; %bb.2:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_11
; %bb.3:
	ldr	x9, [x19]
	str	x9, [x8]
	ldr	x8, [x19]
	cbz	x8, LBB0_5
LBB0_4:
	ldr	x9, [x19, #8]
	str	x9, [x8, #8]
LBB0_5:
	cbz	x20, LBB0_9
; %bb.6:
	mov	x0, x20
	bl	_MemoryContextIsValid
	bl	_AssertArg
	str	x20, [x19, #16]
	ldr	x8, [x20, #24]
	stp	x8, xzr, [x19]
	cbz	x8, LBB0_8
; %bb.7:
	str	x19, [x8, #8]
LBB0_8:
	str	x19, [x20, #24]
	b	LBB0_10
LBB0_9:
	stp	xzr, xzr, [x19]
	str	xzr, [x19, #16]
LBB0_10:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_11:
	ldr	x8, [x21, #24]
	cmp	x8, x19
	cset	w0, eq
	bl	_Assert
	ldr	x8, [x19]
	str	x8, [x21, #24]
	cbnz	x8, LBB0_4
	b	LBB0_5
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
