	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hpsb_iso_xmit_queue_packet     ## -- Begin function hpsb_iso_xmit_queue_packet
	.p2align	4, 0x90
_hpsb_iso_xmit_queue_packet:            ## @hpsb_iso_xmit_queue_packet
	.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
	movq	%rcx, %r13
	movq	(%rdi), %rax
	movq	_HPSB_ISO_XMIT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_1
## %bb.3:
	movq	%rdi, %r15
	cmpq	$0, 8(%rdi)
	jle	LBB0_4
## %bb.5:
	movq	%r8, %r14
	movq	16(%r15), %rax
	movq	56(%r15), %rbx
	leaq	(%rax,%rax,2), %r12
	leaq	(%rbx,%r12,8), %rcx
	addq	$20, %rcx
	leaq	(%rbx,%r12,8), %r8
	addq	$16, %r8
	movq	%r15, %rdi
	callq	_hpsb_iso_check_offset_len
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	_EFAULT@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_4:
	movq	_EBUSY@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_15:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	leaq	(%rbx,%r12,8), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%r13, 8(%rbx,%r12,8)
	movq	%r14, (%rbx,%r12,8)
	leaq	40(%r15), %r14
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	movq	48(%r15), %rax
	movq	(%rax), %rax
	movq	_XMIT_QUEUE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	%r15, %rdi
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	callq	*(%rax)
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_8
LBB0_14:
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
	jmp	LBB0_15
LBB0_8:
	movq	16(%r15), %rax
	incq	%rax
	movslq	24(%r15), %rcx
	movq	%rax, %rdx
	orq	%rcx, %rdx
	shrq	$32, %rdx
	je	LBB0_9
## %bb.10:
	xorl	%edx, %edx
	divq	%rcx
	jmp	LBB0_11
LBB0_9:
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%ecx
                                        ## kill: def $edx killed $edx def $rdx
LBB0_11:
	movq	%rdx, 16(%r15)
	movl	28(%r15), %eax
	movl	%eax, %ecx
	incl	%ecx
	movslq	%ecx, %rcx
	imulq	$274877907, %rcx, %rcx          ## imm = 0x10624DD3
	movq	%rcx, %rdx
	shrq	$63, %rdx
	sarq	$41, %rcx
	addl	%edx, %ecx
	imull	$8000, %ecx, %ecx               ## imm = 0x1F40
	negl	%ecx
	addl	%ecx, %eax
	incl	%eax
	movl	%eax, 28(%r15)
	decq	8(%r15)
	movq	32(%r15), %rax
	xorl	%ebx, %ebx
	testq	%rax, %rax
	je	LBB0_14
## %bb.12:
	leaq	-1(%rax), %rcx
	movq	%rcx, 32(%r15)
	cmpq	$1, %rax
	jg	LBB0_14
## %bb.13:
	movq	$0, 32(%r15)
	movl	44(%r15), %esi
	movq	%r15, %rdi
	callq	_do_iso_xmit_start
	movl	%eax, %ebx
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_HPSB_ISO_XMIT,8,3              ## @HPSB_ISO_XMIT
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_EBUSY,4,2                      ## @EBUSY
	.comm	_EFAULT,4,2                     ## @EFAULT
	.comm	_XMIT_QUEUE,4,2                 ## @XMIT_QUEUE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hpsb_iso_xmit_queue_packet     ; -- Begin function hpsb_iso_xmit_queue_packet
	.p2align	2
_hpsb_iso_xmit_queue_packet:            ; @hpsb_iso_xmit_queue_packet
	.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
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _HPSB_ISO_XMIT@GOTPAGE
Lloh1:
	ldr	x9, [x9, _HPSB_ISO_XMIT@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.1:
	mov	x19, x0
	ldr	x8, [x0, #8]
	cmp	x8, #0
	b.le	LBB0_5
; %bb.2:
	mov	x20, x4
	mov	x21, x3
	ldr	x22, [x19, #56]
	ldr	x23, [x19, #16]
	mov	w8, #24
	madd	x8, x23, x8, x22
	add	x3, x8, #20
	add	x4, x8, #16
	mov	x0, x19
	bl	_hpsb_iso_check_offset_len
	cbz	x0, LBB0_8
; %bb.3:
Lloh3:
	adrp	x8, _EFAULT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EFAULT@GOTPAGEOFF]
	b	LBB0_6
LBB0_4:
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_6
LBB0_5:
Lloh7:
	adrp	x8, _EBUSY@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
LBB0_6:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_7:
	mov	x0, x21
	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
LBB0_8:
	mov	w8, #24
	madd	x22, x23, x8, x22
	stp	x20, x21, [x22]
	add	x20, x19, #40
	mov	x0, x20
	bl	_spin_lock_irqsave
	ldr	x8, [x19, #48]
	ldr	x8, [x8]
	ldr	x8, [x8]
Lloh9:
	adrp	x9, _XMIT_QUEUE@GOTPAGE
Lloh10:
	ldr	x9, [x9, _XMIT_QUEUE@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x9]
	mov	x0, x19
	mov	x2, x22
	blr	x8
	mov	x21, x0
	cbnz	w0, LBB0_13
; %bb.9:
	ldp	x9, x8, [x19, #8]
	add	x8, x8, #1
	ldp	w10, w11, [x19, #24]
                                        ; kill: def $w10 killed $w10 def $x10
	sxtw	x10, w10
	udiv	x12, x8, x10
	msub	x8, x12, x10, x8
	add	w10, w11, #1
	mov	w11, #19923
	movk	w11, #4194, lsl #16
	smull	x11, w10, w11
	lsr	x12, x11, #32
	lsr	x11, x11, #63
	add	w11, w11, w12, asr #9
	mov	w12, #8000
	msub	w10, w11, w12, w10
	str	w10, [x19, #28]
	sub	x9, x9, #1
	stp	x9, x8, [x19, #8]
	ldr	x8, [x19, #32]
	cbz	x8, LBB0_12
; %bb.10:
	subs	x8, x8, #1
	str	x8, [x19, #32]
	b.gt	LBB0_12
; %bb.11:
	str	xzr, [x19, #32]
	ldr	w1, [x19, #44]
	mov	x0, x19
	bl	_do_iso_xmit_start
	mov	x21, x0
	b	LBB0_13
LBB0_12:
	mov	w21, #0
LBB0_13:
	mov	x0, x20
	bl	_spin_unlock_irqrestore
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_HPSB_ISO_XMIT,8,3              ; @HPSB_ISO_XMIT
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_EBUSY,4,2                      ; @EBUSY
	.comm	_EFAULT,4,2                     ; @EFAULT
	.comm	_XMIT_QUEUE,4,2                 ; @XMIT_QUEUE
.subsections_via_symbols
