	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hpsb_alloc_packet              ## -- Begin function hpsb_alloc_packet
	.p2align	4, 0x90
_hpsb_alloc_packet:                     ## @hpsb_alloc_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	addq	$3, %r14
	andq	$-4, %r14
	leal	40(%r14), %edi
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_kzalloc
	movq	%rax, %rbx
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	_hpsb_unused@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 36(%rbx)
	movl	$-1, (%rbx)
	leaq	32(%rbx), %rdi
	callq	_INIT_LIST_HEAD
	leaq	28(%rbx), %rdi
	callq	_INIT_LIST_HEAD
	movq	%rbx, %rdi
	addq	$24, %rdi
	movl	$1, %esi
	callq	_atomic_set
	testq	%r14, %r14
	je	LBB0_3
## %bb.2:
	movl	16(%rbx), %eax
	movl	%eax, 20(%rbx)
	movq	%r14, 8(%rbx)
LBB0_3:
	movq	%rbx, %rax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_ATOMIC,4,2                 ## @GFP_ATOMIC
	.comm	_hpsb_unused,4,2                ## @hpsb_unused
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hpsb_alloc_packet              ; -- Begin function hpsb_alloc_packet
	.p2align	2
_hpsb_alloc_packet:                     ; @hpsb_alloc_packet
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	add	x8, x0, #3
	and	x20, x8, #0xfffffffffffffffc
	add	w0, w20, #40
Lloh0:
	adrp	x8, _GFP_ATOMIC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_ATOMIC@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_kzalloc
	mov	x19, x0
	cbz	x0, LBB0_3
; %bb.1:
Lloh3:
	adrp	x8, _hpsb_unused@GOTPAGE
Lloh4:
	ldr	x8, [x8, _hpsb_unused@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w8, [x19, #36]
	mov	w8, #-1
	str	w8, [x19]
	add	x0, x19, #32
	bl	_INIT_LIST_HEAD
	add	x0, x19, #28
	bl	_INIT_LIST_HEAD
	add	x0, x19, #24
	mov	w1, #1
	bl	_atomic_set
	cbz	x20, LBB0_3
; %bb.2:
	ldr	w8, [x19, #16]
	str	w8, [x19, #20]
	str	x20, [x19, #8]
LBB0_3:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_ATOMIC,4,2                 ; @GFP_ATOMIC
	.comm	_hpsb_unused,4,2                ; @hpsb_unused
.subsections_via_symbols
