	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vm_object_shadow               ## -- Begin function vm_object_shadow
	.p2align	4, 0x90
_vm_object_shadow:                      ## @vm_object_shadow
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r12d
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	(%rdi), %rbx
	testq	%rbx, %rbx
	je	LBB0_6
## %bb.1:
	movq	%rbx, %rdi
	callq	_VM_OBJECT_RLOCK
	cmpl	$1, (%rbx)
	jne	LBB0_5
## %bb.2:
	cmpq	$0, 56(%rbx)
	jne	LBB0_5
## %bb.3:
	movq	8(%rbx), %rax
	movq	_OBJT_DEFAULT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_9
## %bb.4:
	movq	_OBJT_SWAP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_9
LBB0_5:
	movq	%rbx, %rdi
	callq	_VM_OBJECT_RUNLOCK
LBB0_6:
	movq	_OBJT_DEFAULT@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
	movl	%r12d, %edi
	callq	_atop
	movq	%r13, %rdi
	movl	%eax, %esi
	callq	_vm_object_allocate
	movq	%rax, %r12
	movq	%rbx, 48(%rax)
	movq	(%r14), %rax
	movq	%rax, 40(%r12)
	testq	%rbx, %rbx
	je	LBB0_8
## %bb.7:
	movq	%rbx, %rdi
	callq	_VM_OBJECT_WLOCK
	movl	32(%rbx), %eax
	movl	%eax, 32(%r12)
	leaq	28(%rbx), %rdi
	movq	_shadow_list@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rsi
	callq	_LIST_INSERT_HEAD
	incl	24(%rbx)
	movq	%rbx, %rdi
	callq	_VM_OBJECT_WUNLOCK
LBB0_8:
	movq	$0, (%r14)
	movq	%r12, (%r15)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_VM_OBJECT_RUNLOCK              ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_OBJT_DEFAULT,8,3               ## @OBJT_DEFAULT
	.comm	_OBJT_SWAP,8,3                  ## @OBJT_SWAP
	.comm	_shadow_list,4,2                ## @shadow_list
	.comm	_OBJ_COLORED,4,2                ## @OBJ_COLORED
	.comm	_VM_NFREEORDER,4,2              ## @VM_NFREEORDER
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vm_object_shadow               ; -- Begin function vm_object_shadow
	.p2align	2
_vm_object_shadow:                      ; @vm_object_shadow
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x22, x2
	mov	x20, x1
	mov	x19, x0
	ldr	x21, [x0]
Lloh0:
	adrp	x23, _OBJT_DEFAULT@GOTPAGE
Lloh1:
	ldr	x23, [x23, _OBJT_DEFAULT@GOTPAGEOFF]
	cbz	x21, LBB0_6
; %bb.1:
	mov	x0, x21
	bl	_VM_OBJECT_RLOCK
	ldr	w8, [x21]
	cmp	w8, #1
	b.ne	LBB0_5
; %bb.2:
	ldr	x8, [x21, #56]
	cbnz	x8, LBB0_5
; %bb.3:
	ldr	x8, [x21, #8]
	ldr	x9, [x23]
Lloh2:
	adrp	x10, _OBJT_SWAP@GOTPAGE
Lloh3:
	ldr	x10, [x10, _OBJT_SWAP@GOTPAGEOFF]
Lloh4:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_5
; %bb.4:
	mov	x0, x21
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_VM_OBJECT_RUNLOCK
LBB0_5:
	mov	x0, x21
	bl	_VM_OBJECT_RUNLOCK
LBB0_6:
	ldr	x23, [x23]
	mov	x0, x22
	bl	_atop
	mov	x1, x0
	mov	x0, x23
	bl	_vm_object_allocate
	mov	x22, x0
	ldr	x8, [x20]
	stp	x8, x21, [x0, #40]
	cbz	x21, LBB0_8
; %bb.7:
	mov	x0, x21
	bl	_VM_OBJECT_WLOCK
	ldr	w8, [x21, #32]
	str	w8, [x22, #32]
	add	x0, x21, #28
Lloh5:
	adrp	x8, _shadow_list@GOTPAGE
Lloh6:
	ldr	x8, [x8, _shadow_list@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	mov	x1, x22
	bl	_LIST_INSERT_HEAD
	ldr	w8, [x21, #24]
	add	w8, w8, #1
	str	w8, [x21, #24]
	mov	x0, x21
	bl	_VM_OBJECT_WUNLOCK
LBB0_8:
	str	xzr, [x20]
	str	x22, [x19]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_OBJT_DEFAULT,8,3               ; @OBJT_DEFAULT
	.comm	_OBJT_SWAP,8,3                  ; @OBJT_SWAP
	.comm	_shadow_list,4,2                ; @shadow_list
	.comm	_OBJ_COLORED,4,2                ; @OBJ_COLORED
	.comm	_VM_NFREEORDER,4,2              ; @VM_NFREEORDER
.subsections_via_symbols
