	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ResourceOwnerDelete            ## -- Begin function ResourceOwnerDelete
	.p2align	4, 0x90
_ResourceOwnerDelete:                   ## @ResourceOwnerDelete
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	_CurrentResourceOwner@GOTPCREL(%rip), %rax
	xorl	%edi, %edi
	cmpq	%rbx, (%rax)
	setne	%dil
	callq	_Assert
	leaq	80(%rbx), %rax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	xorl	%edi, %edi
	cmpq	$0, 80(%rbx)
	sete	%dil
	callq	_Assert
	leaq	72(%rbx), %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	xorl	%edi, %edi
	cmpq	$0, 72(%rbx)
	sete	%dil
	callq	_Assert
	leaq	64(%rbx), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	xorl	%edi, %edi
	cmpq	$0, 64(%rbx)
	sete	%dil
	callq	_Assert
	leaq	56(%rbx), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	xorl	%edi, %edi
	cmpq	$0, 56(%rbx)
	sete	%dil
	callq	_Assert
	leaq	48(%rbx), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	xorl	%edi, %edi
	cmpq	$0, 48(%rbx)
	sete	%dil
	callq	_Assert
	leaq	40(%rbx), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	xorl	%edi, %edi
	cmpq	$0, 40(%rbx)
	sete	%dil
	callq	_Assert
	leaq	32(%rbx), %r12
	xorl	%edi, %edi
	cmpq	$0, 32(%rbx)
	sete	%dil
	callq	_Assert
	leaq	24(%rbx), %r13
	xorl	%edi, %edi
	cmpq	$0, 24(%rbx)
	sete	%dil
	callq	_Assert
	leaq	16(%rbx), %r14
	xorl	%edi, %edi
	cmpq	$0, 16(%rbx)
	sete	%dil
	callq	_Assert
	leaq	8(%rbx), %r15
	xorl	%edi, %edi
	cmpq	$0, 8(%rbx)
	sete	%dil
	callq	_Assert
	movq	(%rbx), %rax
	testq	%rax, %rax
	sete	%cl
	movq	_MAX_RESOWNER_LOCKS@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	incq	%rdx
	cmpq	%rdx, %rax
	sete	%al
	orb	%cl, %al
	movzbl	%al, %edi
	callq	_Assert
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	88(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_3
## %bb.1:                               ##   in Loop: Header=BB0_2 Depth=1
	callq	_ResourceOwnerDelete
	jmp	LBB0_2
LBB0_3:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_ResourceOwnerNewParent
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	callq	_ResourceArrayFree
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	callq	_ResourceArrayFree
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	callq	_ResourceArrayFree
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	callq	_ResourceArrayFree
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_ResourceArrayFree
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_ResourceArrayFree
	movq	%r12, %rdi
	callq	_ResourceArrayFree
	movq	%r13, %rdi
	callq	_ResourceArrayFree
	movq	%r14, %rdi
	callq	_ResourceArrayFree
	movq	%r15, %rdi
	callq	_ResourceArrayFree
	movq	%rbx, %rdi
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_pfree                          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_CurrentResourceOwner,8,3       ## @CurrentResourceOwner
	.comm	_MAX_RESOWNER_LOCKS,8,3         ## @MAX_RESOWNER_LOCKS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ResourceOwnerDelete            ; -- Begin function ResourceOwnerDelete
	.p2align	2
_ResourceOwnerDelete:                   ; @ResourceOwnerDelete
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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, x0
Lloh0:
	adrp	x8, _CurrentResourceOwner@GOTPAGE
Lloh1:
	ldr	x8, [x8, _CurrentResourceOwner@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cmp	x8, x0
	cset	w0, ne
	bl	_Assert
	mov	x9, x19
	ldr	x8, [x9, #80]!
	str	x9, [sp, #8]                    ; 8-byte Folded Spill
	cmp	x8, #0
	cset	w0, eq
	bl	_Assert
	mov	x21, x19
	ldr	x8, [x21, #72]!
	cmp	x8, #0
	cset	w0, eq
	bl	_Assert
	mov	x22, x19
	ldr	x8, [x22, #64]!
	cmp	x8, #0
	cset	w0, eq
	bl	_Assert
	mov	x23, x19
	ldr	x8, [x23, #56]!
	cmp	x8, #0
	cset	w0, eq
	bl	_Assert
	mov	x24, x19
	ldr	x8, [x24, #48]!
	cmp	x8, #0
	cset	w0, eq
	bl	_Assert
	mov	x25, x19
	ldr	x8, [x25, #40]!
	cmp	x8, #0
	cset	w0, eq
	bl	_Assert
	mov	x26, x19
	ldr	x8, [x26, #32]!
	cmp	x8, #0
	cset	w0, eq
	bl	_Assert
	mov	x27, x19
	ldr	x8, [x27, #24]!
	cmp	x8, #0
	cset	w0, eq
	bl	_Assert
	mov	x28, x19
	ldr	x8, [x28, #16]!
	cmp	x8, #0
	cset	w0, eq
	bl	_Assert
	mov	x20, x19
	ldr	x8, [x20, #8]!
	cmp	x8, #0
	cset	w0, eq
	bl	_Assert
	ldr	x8, [x19]
	cmp	x8, #0
Lloh3:
	adrp	x9, _MAX_RESOWNER_LOCKS@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MAX_RESOWNER_LOCKS@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	add	x9, x9, #1
	ccmp	x8, x9, #4, ne
	cset	w0, eq
	bl	_Assert
	ldr	x0, [x19, #88]
	cbz	x0, LBB0_2
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	bl	_ResourceOwnerDelete
	ldr	x0, [x19, #88]
	cbnz	x0, LBB0_1
LBB0_2:
	mov	x0, x19
	mov	x1, #0
	bl	_ResourceOwnerNewParent
	ldr	x0, [sp, #8]                    ; 8-byte Folded Reload
	bl	_ResourceArrayFree
	mov	x0, x21
	bl	_ResourceArrayFree
	mov	x0, x22
	bl	_ResourceArrayFree
	mov	x0, x23
	bl	_ResourceArrayFree
	mov	x0, x24
	bl	_ResourceArrayFree
	mov	x0, x25
	bl	_ResourceArrayFree
	mov	x0, x26
	bl	_ResourceArrayFree
	mov	x0, x27
	bl	_ResourceArrayFree
	mov	x0, x28
	bl	_ResourceArrayFree
	mov	x0, x20
	bl	_ResourceArrayFree
	mov	x0, x19
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_pfree
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_CurrentResourceOwner,8,3       ; @CurrentResourceOwner
	.comm	_MAX_RESOWNER_LOCKS,8,3         ; @MAX_RESOWNER_LOCKS
.subsections_via_symbols
