	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hpsb_send_packet               ## -- Begin function hpsb_send_packet
	.p2align	4, 0x90
_hpsb_send_packet:                      ## @hpsb_send_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	96(%rdi), %r14
	cmpq	$0, 40(%r14)
	je	LBB0_3
## %bb.1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_3:
	cmpq	$0, 32(%r14)
	jne	LBB0_5
## %bb.4:
	movq	%rdi, %rbx
	movq	(%rdi), %r15
	movq	%r14, %rdi
	callq	_get_hpsb_generation
	cmpq	%rax, %r15
	jne	LBB0_5
## %bb.6:
	movq	_hpsb_queued@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 88(%rbx)
	cmpq	$0, 80(%rbx)
	je	LBB0_7
## %bb.8:
	xorl	%edi, %edi
	cmpq	$0, 48(%rbx)
	setne	%dil
	jmp	LBB0_9
LBB0_5:
	movq	_EAGAIN@GOTPCREL(%rip), %rax
LBB0_2:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_21:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	xorl	%edi, %edi
LBB0_9:
	callq	_WARN_ON
	cmpq	$0, 80(%rbx)
	je	LBB0_11
## %bb.10:
	cmpq	$0, 48(%rbx)
	je	LBB0_12
LBB0_11:
	leaq	72(%rbx), %rdi
	callq	_atomic_inc
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	_HZ@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	leaq	(%rcx,%rcx,4), %rcx
	addq	%rcx, %rcx
	addq	(%rax), %rcx
	movq	%rcx, 64(%rbx)
	movq	_pending_packets_lock@GOTPCREL(%rip), %r15
	movq	%r15, %rdi
	callq	_spin_lock_irqsave
	leaq	60(%rbx), %rdi
	leaq	24(%r14), %rsi
	callq	_list_add_tail
	movq	%r15, %rdi
	callq	_spin_unlock_irqrestore
LBB0_12:
	movq	8(%rbx), %rdi
	cmpq	(%r14), %rdi
	jne	LBB0_22
## %bb.13:
	movq	24(%rbx), %r15
	addq	16(%rbx), %r15
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_kmalloc
	testq	%rax, %rax
	je	LBB0_14
## %bb.15:
	movq	%rax, %r12
	movl	44(%rbx), %esi
	movq	24(%rbx), %rdx
	movq	%rax, %rdi
	callq	_memcpy
	movq	16(%rbx), %rdx
	testq	%rdx, %rdx
	je	LBB0_17
## %bb.16:
	movq	24(%rbx), %rax
	leaq	(%r12,%rax,4), %rdi
	movl	56(%rbx), %esi
	callq	_memcpy
LBB0_17:
	movl	24(%rbx), %edx
	movl	44(%rbx), %esi
	leaq	L_.str.1(%rip), %rdi
	movl	$-1, %ecx
	callq	_dump_packet
	cmpq	$0, 48(%rbx)
	jne	LBB0_18
## %bb.19:
	movq	_ACK_COMPLETE@GOTPCREL(%rip), %rax
	jmp	LBB0_20
LBB0_22:
	movq	32(%rbx), %rax
	movq	_hpsb_async@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_25
## %bb.23:
	callq	_NODEID_TO_NODE
	movq	_ALL_NODES@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_25
## %bb.24:
	movq	8(%r14), %r15
	movq	8(%rbx), %rdi
	callq	_NODEID_TO_NODE
	movl	(%r15,%rax,4), %eax
	movl	%eax, 40(%rbx)
LBB0_25:
	movl	44(%rbx), %esi
	movl	24(%rbx), %edx
	movl	40(%rbx), %ecx
	leaq	L_.str.2(%rip), %rdi
	callq	_dump_packet
	movq	16(%r14), %rax
	movq	(%rax), %rax
	movq	%r14, %rdi
	movq	%rbx, %rsi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmpq	*%rax                           ## TAILCALL
LBB0_14:
	leaq	L_.str(%rip), %rdi
	callq	_HPSB_ERR
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_18:
	movq	_ACK_PENDING@GOTPCREL(%rip), %rax
LBB0_20:
	movl	(%rax), %edx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_hpsb_packet_sent
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	movq	%r12, %rsi
	movq	%r15, %rdx
	xorl	%ecx, %ecx
	callq	_hpsb_packet_received
	movq	%r12, %rdi
	callq	_kfree
	jmp	LBB0_21
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_EAGAIN,4,2                     ## @EAGAIN
	.comm	_hpsb_queued,4,2                ## @hpsb_queued
	.comm	_jiffies,8,3                    ## @jiffies
	.comm	_HZ,4,2                         ## @HZ
	.comm	_pending_packets_lock,4,2       ## @pending_packets_lock
	.comm	_GFP_ATOMIC,4,2                 ## @GFP_ATOMIC
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"unable to allocate memory for concatenating header and data"

	.comm	_ENOMEM,4,2                     ## @ENOMEM
L_.str.1:                               ## @.str.1
	.asciz	"send packet local"

	.comm	_ACK_PENDING,4,2                ## @ACK_PENDING
	.comm	_ACK_COMPLETE,4,2               ## @ACK_COMPLETE
	.comm	_hpsb_async,8,3                 ## @hpsb_async
	.comm	_ALL_NODES,8,3                  ## @ALL_NODES
L_.str.2:                               ## @.str.2
	.asciz	"send packet"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_hpsb_send_packet               ; -- Begin function hpsb_send_packet
	.p2align	2
_hpsb_send_packet:                      ; @hpsb_send_packet
	.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
	ldr	x19, [x0, #96]
	ldr	x8, [x19, #40]
	cbz	x8, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_7
LBB0_2:
	ldr	x8, [x19, #32]
	cbnz	x8, LBB0_6
; %bb.3:
	mov	x20, x0
	ldr	x21, [x0]
	mov	x0, x19
	bl	_get_hpsb_generation
	cmp	x21, x0
	b.ne	LBB0_6
; %bb.4:
Lloh2:
	adrp	x8, _hpsb_queued@GOTPAGE
Lloh3:
	ldr	x8, [x8, _hpsb_queued@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	str	w8, [x20, #88]
	ldr	x8, [x20, #80]
	cbz	x8, LBB0_9
; %bb.5:
	ldr	x8, [x20, #48]
	cmp	x8, #0
	cset	w0, ne
	b	LBB0_10
LBB0_6:
Lloh5:
	adrp	x8, _EAGAIN@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EAGAIN@GOTPAGEOFF]
LBB0_7:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_8:
	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
	ret
LBB0_9:
	mov	w0, #0
LBB0_10:
	bl	_WARN_ON
	ldr	x8, [x20, #80]
	cbz	x8, LBB0_12
; %bb.11:
	ldr	x8, [x20, #48]
	cbz	x8, LBB0_13
LBB0_12:
	add	x0, x20, #72
	bl	_atomic_inc
Lloh7:
	adrp	x8, _jiffies@GOTPAGE
Lloh8:
	ldr	x8, [x8, _jiffies@GOTPAGEOFF]
Lloh9:
	ldr	x8, [x8]
Lloh10:
	adrp	x9, _HZ@GOTPAGE
Lloh11:
	ldr	x9, [x9, _HZ@GOTPAGEOFF]
Lloh12:
	ldrsw	x9, [x9]
	mov	w10, #10
	madd	x8, x9, x10, x8
	str	x8, [x20, #64]
Lloh13:
	adrp	x21, _pending_packets_lock@GOTPAGE
Lloh14:
	ldr	x21, [x21, _pending_packets_lock@GOTPAGEOFF]
	mov	x0, x21
	bl	_spin_lock_irqsave
	add	x0, x20, #60
	add	x1, x19, #24
	bl	_list_add_tail
	mov	x0, x21
	bl	_spin_unlock_irqrestore
LBB0_13:
	ldr	x0, [x20, #8]
	ldr	x8, [x19]
	cmp	x0, x8
	b.ne	LBB0_18
; %bb.14:
	ldp	x8, x9, [x20, #16]
	add	x21, x9, x8
Lloh15:
	adrp	x8, _GFP_ATOMIC@GOTPAGE
Lloh16:
	ldr	x8, [x8, _GFP_ATOMIC@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_kmalloc
	cbz	x0, LBB0_22
; %bb.15:
	mov	x22, x0
	ldr	w1, [x20, #44]
	ldr	x2, [x20, #24]
	bl	_memcpy
	ldr	x2, [x20, #16]
	cbz	x2, LBB0_17
; %bb.16:
	ldr	x8, [x20, #24]
	add	x0, x22, x8, lsl #2
	ldr	w1, [x20, #56]
	bl	_memcpy
LBB0_17:
	ldr	w1, [x20, #44]
	ldr	w2, [x20, #24]
Lloh18:
	adrp	x0, l_.str.1@PAGE
Lloh19:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	w3, #-1
	bl	_dump_packet
Lloh20:
	adrp	x8, _ACK_PENDING@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ACK_PENDING@GOTPAGEOFF]
	ldr	x9, [x20, #48]
Lloh22:
	adrp	x10, _ACK_COMPLETE@GOTPAGE
Lloh23:
	ldr	x10, [x10, _ACK_COMPLETE@GOTPAGEOFF]
	cmp	x9, #0
	csel	x8, x10, x8, eq
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, x20
	bl	_hpsb_packet_sent
	mov	x0, x19
	mov	x1, x22
	mov	x2, x21
	mov	w3, #0
	bl	_hpsb_packet_received
	mov	x0, x22
	bl	_kfree
	mov	w0, #0
	b	LBB0_8
LBB0_18:
	ldr	x8, [x20, #32]
Lloh24:
	adrp	x9, _hpsb_async@GOTPAGE
Lloh25:
	ldr	x9, [x9, _hpsb_async@GOTPAGEOFF]
Lloh26:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_21
; %bb.19:
	bl	_NODEID_TO_NODE
Lloh27:
	adrp	x8, _ALL_NODES@GOTPAGE
Lloh28:
	ldr	x8, [x8, _ALL_NODES@GOTPAGEOFF]
Lloh29:
	ldr	x8, [x8]
	cmp	x0, x8
	b.eq	LBB0_21
; %bb.20:
	ldr	x21, [x19, #8]
	ldr	x0, [x20, #8]
	bl	_NODEID_TO_NODE
	ldr	w8, [x21, x0, lsl #2]
	str	w8, [x20, #40]
LBB0_21:
	ldr	w2, [x20, #24]
	ldp	w3, w1, [x20, #40]
Lloh30:
	adrp	x0, l_.str.2@PAGE
Lloh31:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_dump_packet
	ldr	x8, [x19, #16]
	ldr	x2, [x8]
	mov	x0, x19
	mov	x1, x20
	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
	br	x2
LBB0_22:
Lloh32:
	adrp	x0, l_.str@PAGE
Lloh33:
	add	x0, x0, l_.str@PAGEOFF
	bl	_HPSB_ERR
Lloh34:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh35:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
	b	LBB0_7
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh34, Lloh35
	.loh AdrpAdd	Lloh32, Lloh33
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_EAGAIN,4,2                     ; @EAGAIN
	.comm	_hpsb_queued,4,2                ; @hpsb_queued
	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_HZ,4,2                         ; @HZ
	.comm	_pending_packets_lock,4,2       ; @pending_packets_lock
	.comm	_GFP_ATOMIC,4,2                 ; @GFP_ATOMIC
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"unable to allocate memory for concatenating header and data"

	.comm	_ENOMEM,4,2                     ; @ENOMEM
l_.str.1:                               ; @.str.1
	.asciz	"send packet local"

	.comm	_ACK_PENDING,4,2                ; @ACK_PENDING
	.comm	_ACK_COMPLETE,4,2               ; @ACK_COMPLETE
	.comm	_hpsb_async,8,3                 ; @hpsb_async
	.comm	_ALL_NODES,8,3                  ; @ALL_NODES
l_.str.2:                               ; @.str.2
	.asciz	"send packet"

.subsections_via_symbols
