	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hpsb_make_readpacket           ## -- Begin function hpsb_make_readpacket
	.p2align	4, 0x90
_hpsb_make_readpacket:                  ## @hpsb_make_readpacket
	.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
	testq	%rcx, %rcx
	je	LBB0_5
## %bb.1:
	movq	%rcx, %r15
	movl	%edx, %r14d
	movl	%esi, %r12d
	movq	%rdi, %r13
	movq	%rcx, %rdi
	callq	_hpsb_alloc_packet
	testq	%rax, %rax
	je	LBB0_5
## %bb.2:
	movq	%rax, %rbx
	movq	%r13, 8(%rax)
	movl	%r12d, (%rax)
	movq	%rax, %rdi
	callq	_hpsb_get_tlabel
	testq	%rax, %rax
	je	LBB0_6
## %bb.3:
	movq	%rbx, %rdi
	callq	_hpsb_free_packet
LBB0_5:
	xorl	%ebx, %ebx
LBB0_9:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	%rbx, %rdi
	movl	%r14d, %esi
	cmpq	$4, %r15
	jne	LBB0_8
## %bb.7:
	callq	_fill_async_readquad
	jmp	LBB0_9
LBB0_8:
	movq	%r15, %rdx
	callq	_fill_async_readblock
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hpsb_make_readpacket           ; -- Begin function hpsb_make_readpacket
	.p2align	2
_hpsb_make_readpacket:                  ; @hpsb_make_readpacket
	.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
	cbz	x3, LBB0_4
; %bb.1:
	mov	x21, x3
	mov	x20, x2
	mov	x22, x1
	mov	x23, x0
	mov	x0, x3
	bl	_hpsb_alloc_packet
	mov	x19, x0
	cbz	x0, LBB0_5
; %bb.2:
	str	x23, [x19, #8]
	str	w22, [x19]
	mov	x0, x19
	bl	_hpsb_get_tlabel
	cbz	x0, LBB0_6
; %bb.3:
	mov	x0, x19
	bl	_hpsb_free_packet
LBB0_4:
	mov	x19, #0
LBB0_5:
	mov	x0, x19
	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_6:
	mov	x0, x19
	mov	x1, x20
	cmp	x21, #4
	b.ne	LBB0_8
; %bb.7:
	bl	_fill_async_readquad
	b	LBB0_5
LBB0_8:
	mov	x2, x21
	bl	_fill_async_readblock
	b	LBB0_5
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
