	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hpsb_make_streampacket         ## -- Begin function hpsb_make_streampacket
	.p2align	4, 0x90
_hpsb_make_streampacket:                ## @hpsb_make_streampacket
	.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
	testl	%edx, %edx
	je	LBB0_7
## %bb.1:
	movl	%r8d, %r13d
	movl	%ecx, %r12d
	movl	%edx, %r14d
	movq	%rdi, %r15
	movl	%r9d, -44(%rbp)                 ## 4-byte Spill
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movl	%edx, %edi
	callq	_hpsb_alloc_packet
	testq	%rax, %rax
	je	LBB0_7
## %bb.2:
	movq	%rax, %rbx
	testb	$3, %r14b
	je	LBB0_4
## %bb.3:
	movq	8(%rbx), %rax
	movl	%r14d, %ecx
	sarl	$2, %ecx
	movslq	%ecx, %rcx
	movq	$0, (%rax,%rcx,8)
LBB0_4:
	movq	%r15, 24(%rbx)
	movq	_IEEE1394_SPEED_100@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%rbx)
	movq	_LOCAL_BUS@GOTPCREL(%rip), %rax
	movq	_ALL_NODES@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	movl	%ecx, (%rbx)
	movq	%rbx, %rdi
	callq	_hpsb_get_tlabel
	testq	%rax, %rax
	je	LBB0_8
## %bb.5:
	movq	%rbx, %rdi
	callq	_hpsb_free_packet
LBB0_7:
	xorl	%ebx, %ebx
LBB0_10:
	movq	%rbx, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_8:
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movl	%r12d, %edx
	movl	%r13d, %ecx
	movl	-44(%rbp), %r8d                 ## 4-byte Reload
	callq	_fill_async_stream_packet
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	testq	%rsi, %rsi
	je	LBB0_10
## %bb.9:
	movq	8(%rbx), %rdi
	movl	%r14d, %edx
	callq	_memcpy
	jmp	LBB0_10
	.cfi_endproc
                                        ## -- End function
	.comm	_IEEE1394_SPEED_100,4,2         ## @IEEE1394_SPEED_100
	.comm	_LOCAL_BUS,4,2                  ## @LOCAL_BUS
	.comm	_ALL_NODES,4,2                  ## @ALL_NODES
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hpsb_make_streampacket         ; -- Begin function hpsb_make_streampacket
	.p2align	2
_hpsb_make_streampacket:                ; @hpsb_make_streampacket
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	cbz	w2, LBB0_6
; %bb.1:
	mov	x22, x5
	mov	x23, x4
	mov	x24, x3
	mov	x20, x2
	mov	x21, x1
	mov	x25, x0
	mov	x0, x2
	bl	_hpsb_alloc_packet
	mov	x19, x0
	cbz	x0, LBB0_7
; %bb.2:
	tst	w20, #0x3
	b.eq	LBB0_4
; %bb.3:
	ldr	x8, [x19, #8]
	asr	w9, w20, #2
	str	xzr, [x8, w9, sxtw #3]
LBB0_4:
	str	x25, [x19, #24]
Lloh0:
	adrp	x8, _IEEE1394_SPEED_100@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IEEE1394_SPEED_100@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x19, #16]
Lloh3:
	adrp	x8, _LOCAL_BUS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _LOCAL_BUS@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _ALL_NODES@GOTPAGE
Lloh7:
	ldr	x9, [x9, _ALL_NODES@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w8, w9, w8
	str	w8, [x19]
	mov	x0, x19
	bl	_hpsb_get_tlabel
	cbz	x0, LBB0_8
; %bb.5:
	mov	x0, x19
	bl	_hpsb_free_packet
LBB0_6:
	mov	x19, #0
LBB0_7:
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_8:
	mov	x0, x19
	mov	x1, x20
	mov	x2, x24
	mov	x3, x23
	mov	x4, x22
	bl	_fill_async_stream_packet
	cbz	x21, LBB0_7
; %bb.9:
	ldr	x0, [x19, #8]
	mov	x1, x21
	mov	x2, x20
	bl	_memcpy
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_IEEE1394_SPEED_100,4,2         ; @IEEE1394_SPEED_100
	.comm	_LOCAL_BUS,4,2                  ; @LOCAL_BUS
	.comm	_ALL_NODES,4,2                  ; @ALL_NODES
.subsections_via_symbols
