	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hpsb_iso_packet_sent           ## -- Begin function hpsb_iso_packet_sent
	.p2align	4, 0x90
_hpsb_iso_packet_sent:                  ## @hpsb_iso_packet_sent
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movl	%esi, %ebx
	movq	%rdi, %r12
	leaq	16(%rdi), %r14
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	movl	(%r12), %ecx
	movl	4(%r12), %esi
	addl	%ecx, %ebx
	subl	%esi, %ebx
	movslq	%ebx, %rax
	imulq	$274877907, %rax, %rdx          ## imm = 0x10624DD3
	movq	%rdx, %rdi
	shrq	$63, %rdi
	sarq	$41, %rdx
	addl	%edi, %edx
	imull	$8000, %edx, %edx               ## imm = 0x1F40
	subl	%edx, %eax
	movl	%eax, 8(%r12)
	incl	%esi
	movl	%esi, 4(%r12)
	movl	12(%r12), %eax
	incl	%eax
	cltd
	idivl	%ecx
	movl	%edx, 12(%r12)
	testl	%r15d, %r15d
	jne	LBB0_2
## %bb.1:
	cmpl	%ecx, %esi
	jne	LBB0_3
LBB0_2:
	addq	$20, %r12
	movq	%r12, %rdi
	callq	_atomic_inc
LBB0_3:
	movq	%r14, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock_irqrestore         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hpsb_iso_packet_sent           ; -- Begin function hpsb_iso_packet_sent
	.p2align	2
_hpsb_iso_packet_sent:                  ; @hpsb_iso_packet_sent
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x21, x2
	mov	x22, x1
	mov	x20, x0
	add	x19, x0, #16
	mov	x0, x19
	bl	_spin_lock_irqsave
	ldp	w8, w9, [x20]
	add	w10, w8, w22
	sub	w10, w10, w9
	mov	w11, #19923
	movk	w11, #4194, lsl #16
	smull	x11, w10, w11
	lsr	x12, x11, #63
	asr	x11, x11, #41
	add	w11, w11, w12
	mov	w12, #8000
	msub	w10, w11, w12, w10
	add	w9, w9, #1
	stp	w9, w10, [x20, #4]
	ldr	w10, [x20, #12]
	add	w10, w10, #1
	sdiv	w11, w10, w8
	msub	w10, w11, w8, w10
	str	w10, [x20, #12]
	cbnz	w21, LBB0_2
; %bb.1:
	cmp	w9, w8
	b.ne	LBB0_3
LBB0_2:
	add	x0, x20, #20
	bl	_atomic_inc
LBB0_3:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_spin_unlock_irqrestore
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
