	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rvu_attach_block
_rvu_attach_block:                      ## @rvu_attach_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	%ecx, %r12d
	movl	%edx, %ebx
	movq	%rdi, %r13
	movl	%esi, -48(%rbp)                 ## 4-byte Spill
	callq	_rvu_get_pfvf
	testl	%r12d, %r12d
	je	LBB0_7
## %bb.1:
	movq	%rax, %r15
	movq	(%r13), %r14
	movq	%r13, %rdi
	movl	%ebx, %esi
	xorl	%edx, %edx
	callq	_rvu_get_blkaddr
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	testl	%eax, %eax
	js	LBB0_7
## %bb.2:
	movq	(%r14), %rax
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	leaq	(%rcx,%rcx,2), %rcx
	cmpl	$0, 8(%rax,%rcx,4)
	je	LBB0_7
## %bb.3:
	testl	%r12d, %r12d
	jle	LBB0_7
## %bb.4:
	leaq	(%rax,%rcx,4), %rbx
	leaq	(%rax,%rcx,4), %rax
	addq	$8, %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movl	-48(%rbp), %eax                 ## 4-byte Reload
	shll	$8, %eax
	cltq
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movl	%r12d, %eax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	callq	_rvu_alloc_rsrc
	testl	%eax, %eax
	js	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	%eax, %r14d
	movq	%r12, %rax
	movzbl	4(%rbx), %ecx
	movl	%r14d, %edx
	shll	%cl, %edx
	orq	-64(%rbp), %rax                 ## 8-byte Folded Reload
	movabsq	$-9223372036854775808, %rcx     ## imm = 0x8000000000000000
	orq	%rcx, %rax
	orl	(%rbx), %edx
	movq	%r13, %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movq	%rax, %rcx
	callq	_rvu_write64
	movq	%r13, %rdi
	movq	%r15, %rsi
	movq	%rbx, %rdx
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	movl	%r14d, %r8d
	movl	$1, %r9d
	callq	_rvu_update_rsrc_map
	movq	%r13, %rdi
	movq	%r15, %rsi
	movq	%rbx, %rdx
	movl	%r14d, %ecx
	callq	_rvu_set_msix_offset
	incq	%r12
	cmpq	%r12, -56(%rbp)                 ## 8-byte Folded Reload
	jne	LBB0_5
LBB0_7:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_rvu_attach_block
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rvu_attach_block
_rvu_attach_block:                      ; @rvu_attach_block
	.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	x25, x3
	mov	x22, x2
	mov	x19, x1
	mov	x20, x0
	bl	_rvu_get_pfvf
	cbz	w25, LBB0_6
; %bb.1:
	mov	x21, x0
	ldr	x23, [x20]
	mov	x0, x20
	mov	x1, x22
	mov	w2, #0
	bl	_rvu_get_blkaddr
	tbnz	w0, #31, LBB0_6
; %bb.2:
	mov	x22, x0
	ldr	x8, [x23]
	mov	w9, #12
	umaddl	x23, w0, w9, x8
	mov	x24, x23
	ldr	w9, [x24, #8]!
	cmp	w9, #0
	ccmp	w25, #1, #8, ne
	b.lt	LBB0_6
; %bb.3:
	mov	x26, #0
	mov	w9, w22
	lsl	w10, w19, #8
	sxtw	x10, w10
	str	x10, [sp, #8]                   ; 8-byte Folded Spill
	mov	w10, #12
	madd	x8, x9, x10, x8
	add	x28, x8, #4
	mov	w27, w25
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x24
	bl	_rvu_alloc_rsrc
	tbnz	w0, #31, LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x25, x0
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	orr	x8, x26, x8
	orr	x3, x8, #0x8000000000000000
	ldr	w8, [x23]
	ldr	w9, [x28]
	lsl	w9, w0, w9
	orr	w2, w9, w8
	mov	x0, x20
	mov	x1, x22
	bl	_rvu_write64
	mov	x0, x20
	mov	x1, x21
	mov	x2, x23
	mov	x3, x19
	mov	x4, x25
	mov	w5, #1
	bl	_rvu_update_rsrc_map
	mov	x0, x20
	mov	x1, x21
	mov	x2, x23
	mov	x3, x25
	bl	_rvu_set_msix_offset
	add	x26, x26, #1
	cmp	x27, x26
	b.ne	LBB0_4
LBB0_6:
	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
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_rvu_attach_block
.subsections_via_symbols
