	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rvu_detach_rsrcs
_rvu_detach_rsrcs:                      ## @rvu_detach_rsrcs
	.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, -44(%rbp)                 ## 4-byte Spill
	movq	%rsi, %r12
	movq	%rdi, %r15
	movq	8(%rdi), %rbx
	callq	_mutex_lock
	testq	%r12, %r12
	je	LBB0_1
## %bb.2:
	cmpq	$0, 24(%r12)
	setne	%cl
	jmp	LBB0_3
LBB0_1:
	xorl	%ecx, %ecx
LBB0_3:
	movq	_BLK_COUNT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	jle	LBB0_21
## %bb.4:
	testq	%r12, %r12
	setne	%r13b
	andb	%cl, %r13b
	xorl	%r14d, %r14d
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_19:                                ##   in Loop: Header=BB0_5 Depth=1
	movl	(%rcx,%r14,8), %edx
	movq	%r15, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	callq	_rvu_detach_block
	movq	_BLK_COUNT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_20:                                ##   in Loop: Header=BB0_5 Depth=1
	incq	%r14
	movslq	%eax, %rcx
	cmpq	%rcx, %r14
	jge	LBB0_21
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%rbx), %rcx
	cmpl	$0, 4(%rcx,%r14,8)
	je	LBB0_20
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	testb	%r13b, %r13b
	je	LBB0_19
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	_BLKADDR_NPA@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	cmpq	%rdx, %r14
	jne	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=1
	cmpl	$0, 20(%r12)
	je	LBB0_20
LBB0_9:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	_BLKADDR_NIX0@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	cmpq	%rdx, %r14
	jne	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_5 Depth=1
	cmpl	$0, 16(%r12)
	je	LBB0_20
LBB0_11:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	_BLKADDR_SSO@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	cmpq	%rdx, %r14
	jne	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_5 Depth=1
	cmpl	$0, 12(%r12)
	je	LBB0_20
LBB0_13:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	_BLKADDR_SSOW@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	cmpq	%rdx, %r14
	jne	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_5 Depth=1
	cmpl	$0, 8(%r12)
	je	LBB0_20
LBB0_15:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	_BLKADDR_TIM@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	cmpq	%rdx, %r14
	jne	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_5 Depth=1
	cmpl	$0, 4(%r12)
	je	LBB0_20
LBB0_17:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	_BLKADDR_CPT0@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	cmpq	%rdx, %r14
	jne	LBB0_19
## %bb.18:                              ##   in Loop: Header=BB0_5 Depth=1
	cmpl	$0, (%r12)
	jne	LBB0_19
	jmp	LBB0_20
LBB0_21:
	movq	%r15, %rdi
	callq	_mutex_unlock
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BLK_COUNT,4,2                  ## @BLK_COUNT
	.comm	_BLKADDR_NPA,4,2                ## @BLKADDR_NPA
	.comm	_BLKADDR_NIX0,4,2               ## @BLKADDR_NIX0
	.comm	_BLKADDR_SSO,4,2                ## @BLKADDR_SSO
	.comm	_BLKADDR_SSOW,4,2               ## @BLKADDR_SSOW
	.comm	_BLKADDR_TIM,4,2                ## @BLKADDR_TIM
	.comm	_BLKADDR_CPT0,4,2               ## @BLKADDR_CPT0
	.no_dead_strip	_rvu_detach_rsrcs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rvu_detach_rsrcs
_rvu_detach_rsrcs:                      ; @rvu_detach_rsrcs
	.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	x20, x2
	mov	x21, x1
	mov	x19, x0
	ldr	x22, [x0, #8]
	bl	_mutex_lock
	cbz	x21, LBB0_2
; %bb.1:
	ldr	x8, [x21, #24]
	cmp	x8, #0
	cset	w9, ne
	b	LBB0_3
LBB0_2:
	mov	w9, #0
LBB0_3:
Lloh0:
	adrp	x23, _BLK_COUNT@GOTPAGE
Lloh1:
	ldr	x23, [x23, _BLK_COUNT@GOTPAGEOFF]
	ldr	w8, [x23]
	cmp	w8, #1
	b.lt	LBB0_21
; %bb.4:
	mov	x24, #0
	mov	x25, #0
	cmp	x21, #0
	cset	w10, ne
	and	w26, w10, w9
Lloh2:
	adrp	x27, _BLKADDR_NPA@GOTPAGE
Lloh3:
	ldr	x27, [x27, _BLKADDR_NPA@GOTPAGEOFF]
Lloh4:
	adrp	x28, _BLKADDR_NIX0@GOTPAGE
Lloh5:
	ldr	x28, [x28, _BLKADDR_NIX0@GOTPAGEOFF]
	b	LBB0_7
LBB0_5:                                 ;   in Loop: Header=BB0_7 Depth=1
	ldr	w2, [x9, x24]
	mov	x0, x19
	mov	x1, x20
	bl	_rvu_detach_block
	ldr	w8, [x23]
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	add	x25, x25, #1
	add	x24, x24, #8
	cmp	x25, w8, sxtw
	b.ge	LBB0_21
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x22]
	add	x10, x9, x24
	ldr	w10, [x10, #4]
	cbz	w10, LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	cbz	w26, LBB0_5
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	w10, [x27]
	cmp	x25, x10
	b.ne	LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_7 Depth=1
	ldr	w10, [x21, #20]
	cbz	w10, LBB0_6
LBB0_11:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	w10, [x28]
	cmp	x25, x10
	b.ne	LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_7 Depth=1
	ldr	w10, [x21, #16]
	cbz	w10, LBB0_6
LBB0_13:                                ;   in Loop: Header=BB0_7 Depth=1
Lloh6:
	adrp	x10, _BLKADDR_SSO@GOTPAGE
Lloh7:
	ldr	x10, [x10, _BLKADDR_SSO@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	cmp	x25, x10
	b.ne	LBB0_15
; %bb.14:                               ;   in Loop: Header=BB0_7 Depth=1
	ldr	w10, [x21, #12]
	cbz	w10, LBB0_6
LBB0_15:                                ;   in Loop: Header=BB0_7 Depth=1
Lloh9:
	adrp	x10, _BLKADDR_SSOW@GOTPAGE
Lloh10:
	ldr	x10, [x10, _BLKADDR_SSOW@GOTPAGEOFF]
Lloh11:
	ldr	w10, [x10]
	cmp	x25, x10
	b.ne	LBB0_17
; %bb.16:                               ;   in Loop: Header=BB0_7 Depth=1
	ldr	w10, [x21, #8]
	cbz	w10, LBB0_6
LBB0_17:                                ;   in Loop: Header=BB0_7 Depth=1
Lloh12:
	adrp	x10, _BLKADDR_TIM@GOTPAGE
Lloh13:
	ldr	x10, [x10, _BLKADDR_TIM@GOTPAGEOFF]
Lloh14:
	ldr	w10, [x10]
	cmp	x25, x10
	b.ne	LBB0_19
; %bb.18:                               ;   in Loop: Header=BB0_7 Depth=1
	ldr	w10, [x21, #4]
	cbz	w10, LBB0_6
LBB0_19:                                ;   in Loop: Header=BB0_7 Depth=1
Lloh15:
	adrp	x10, _BLKADDR_CPT0@GOTPAGE
Lloh16:
	ldr	x10, [x10, _BLKADDR_CPT0@GOTPAGEOFF]
Lloh17:
	ldr	w10, [x10]
	cmp	x25, x10
	b.ne	LBB0_5
; %bb.20:                               ;   in Loop: Header=BB0_7 Depth=1
	ldr	w10, [x21]
	cbnz	w10, LBB0_5
	b	LBB0_6
LBB0_21:
	mov	x0, x19
	bl	_mutex_unlock
	mov	w0, #0
	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	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_BLK_COUNT,4,2                  ; @BLK_COUNT
	.comm	_BLKADDR_NPA,4,2                ; @BLKADDR_NPA
	.comm	_BLKADDR_NIX0,4,2               ; @BLKADDR_NIX0
	.comm	_BLKADDR_SSO,4,2                ; @BLKADDR_SSO
	.comm	_BLKADDR_SSOW,4,2               ; @BLKADDR_SSOW
	.comm	_BLKADDR_TIM,4,2                ; @BLKADDR_TIM
	.comm	_BLKADDR_CPT0,4,2               ; @BLKADDR_CPT0
	.no_dead_strip	_rvu_detach_rsrcs
.subsections_via_symbols
