	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rvu_detach_block
_rvu_detach_block:                      ## @rvu_detach_block
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movl	%esi, %r14d
	movq	%rdi, %r12
	callq	_rvu_get_pfvf
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	(%r12), %rbx
	movq	%r12, %rdi
	movl	%r15d, %esi
	movl	%r14d, %edx
	callq	_rvu_get_blkaddr
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	testl	%eax, %eax
	js	LBB0_6
## %bb.1:
	movq	(%rbx), %r15
	movl	-44(%rbp), %r13d                ## 4-byte Reload
	shlq	$4, %r13
	movl	12(%r15,%r13), %esi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_rvu_get_rsrc_mapcount
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	testl	%eax, %eax
	jle	LBB0_6
## %bb.2:
	leaq	(%r15,%r13), %rbx
	leaq	(%r15,%r13), %rax
	addq	$4, %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	leaq	(%r15,%r13), %rax
	addq	$8, %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	xorl	%r15d, %r15d
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	incl	%r15d
	cmpl	%r15d, -48(%rbp)                ## 4-byte Folded Reload
	je	LBB0_6
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r12, %rdi
	movq	%rbx, %rsi
	movl	%r14d, %edx
	movl	%r15d, %ecx
	callq	_rvu_lookup_rsrc
	testl	%eax, %eax
	js	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	%eax, %r13d
	movq	-80(%rbp), %rax                 ## 8-byte Reload
	movzbl	(%rax), %ecx
	movl	%r13d, %edx
	shll	%cl, %edx
	orl	(%rbx), %edx
	movq	%r12, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	xorl	%ecx, %ecx
	callq	_rvu_write64
	movq	%r12, %rdi
	movl	%r14d, %ebx
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rsi
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	movl	%ebx, %ecx
	movl	%r13d, %r8d
	xorl	%r9d, %r9d
	callq	_rvu_update_rsrc_map
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movl	%r13d, %esi
	callq	_rvu_free_rsrc
	movq	%r12, %rdi
	movq	%r14, %rsi
	movl	%ebx, %r14d
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdx
	movl	%r13d, %ecx
	callq	_rvu_clear_msix_offset
	jmp	LBB0_5
LBB0_6:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_rvu_detach_block
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rvu_detach_block
_rvu_detach_block:                      ; @rvu_detach_block
	.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	x22, x2
	mov	x19, x1
	mov	x20, x0
	bl	_rvu_get_pfvf
	mov	x21, x0
	ldr	x23, [x20]
	mov	x0, x20
	mov	x1, x22
	mov	x2, x19
	bl	_rvu_get_blkaddr
	tbnz	w0, #31, LBB0_6
; %bb.1:
	mov	x22, x0
	ldr	x26, [x23]
	add	x23, x26, w0, uxtw #4
	ldr	w1, [x23, #12]
	mov	x0, x21
	bl	_rvu_get_rsrc_mapcount
	cmp	w0, #1
	b.lt	LBB0_6
; %bb.2:
	mov	x24, x0
	mov	w25, #0
	mov	w8, w22
	add	x8, x26, x8, lsl #4
	add	x28, x8, #4
	add	x26, x8, #8
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	w25, w25, #1
	cmp	w24, w25
	b.eq	LBB0_6
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	mov	x1, x23
	mov	x2, x19
	mov	x3, x25
	bl	_rvu_lookup_rsrc
	tbnz	w0, #31, LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x27, x0
	ldr	w8, [x23]
	ldr	w9, [x28]
	lsl	w9, w0, w9
	orr	w2, w9, w8
	mov	x0, x20
	mov	x1, x22
	mov	w3, #0
	bl	_rvu_write64
	mov	x0, x20
	mov	x1, x21
	mov	x2, x23
	mov	x3, x19
	mov	x4, x27
	mov	w5, #0
	bl	_rvu_update_rsrc_map
	mov	x0, x26
	mov	x1, x27
	bl	_rvu_free_rsrc
	mov	x0, x20
	mov	x1, x21
	mov	x2, x23
	mov	x3, x27
	bl	_rvu_clear_msix_offset
	b	LBB0_3
LBB0_6:
	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
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_rvu_detach_block
.subsections_via_symbols
