	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mlxbf_tmfifo_release_desc
_mlxbf_tmfifo_release_desc:             ## @mlxbf_tmfifo_release_desc
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movq	%rdi, %rbx
	movq	(%rdi), %rdi
	callq	_virtqueue_get_vring
	movq	%rax, %r13
	movq	(%rbx), %rax
	movq	(%rax), %r14
	movq	16(%r13), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	callq	_virtio16_to_cpu
	movq	%rax, %r12
	movq	(%r13), %rcx
	orq	%rcx, %rax
	shrq	$32, %rax
	je	LBB0_1
## %bb.2:
	movq	%r12, %rax
	xorl	%edx, %edx
	divq	%rcx
	movq	%rdx, %r15
	jmp	LBB0_3
LBB0_1:
	movl	%r12d, %eax
	xorl	%edx, %edx
	divl	%ecx
	movl	%edx, %r15d
LBB0_3:
	movslq	8(%r13), %rax
	shlq	$2, %rax
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	subq	%rax, %rsi
	movq	%r14, %rdi
	callq	_cpu_to_virtio32
	movq	16(%r13), %rcx
	movq	8(%rcx), %rcx
	shlq	$4, %r15
	movq	%rax, 8(%rcx,%r15)
	movq	%r14, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	_cpu_to_virtio32
	movq	16(%r13), %rcx
	movq	8(%rcx), %rcx
	movq	%rax, (%rcx,%r15)
	xorl	%eax, %eax
	callq	_mb
	incq	%r12
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_cpu_to_virtio16
	movq	16(%r13), %rcx
	movl	%eax, (%rcx)
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_mlxbf_tmfifo_release_desc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mlxbf_tmfifo_release_desc
_mlxbf_tmfifo_release_desc:             ; @mlxbf_tmfifo_release_desc
	.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	x19, x2
	mov	x20, x1
	mov	x21, x0
	ldr	x0, [x0]
	bl	_virtqueue_get_vring
	mov	x22, x0
	ldr	x8, [x21]
	ldr	x21, [x8]
	ldr	x8, [x0, #16]
	ldr	w1, [x8]
	mov	x0, x21
	bl	_virtio16_to_cpu
	mov	x23, x0
	ldr	x8, [x22]
	udiv	x9, x0, x8
	msub	x24, x9, x8, x0
	ldrsw	x8, [x22, #8]
	sub	x1, x20, x8, lsl #2
	mov	x0, x21
	bl	_cpu_to_virtio32
	ldr	x8, [x22, #16]
	ldr	x8, [x8, #8]
	lsl	x20, x24, #4
	add	x8, x8, x20
	str	x0, [x8, #8]
	mov	x0, x21
	mov	x1, x19
	bl	_cpu_to_virtio32
	ldr	x8, [x22, #16]
	ldr	x8, [x8, #8]
	str	x0, [x8, x20]
	bl	_mb
	add	x1, x23, #1
	mov	x0, x21
	bl	_cpu_to_virtio16
	ldr	x8, [x22, #16]
	str	w0, [x8]
	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
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_mlxbf_tmfifo_release_desc
.subsections_via_symbols
