	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function queue_packet_complete
_queue_packet_complete:                 ## @queue_packet_complete
	.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, %rbx
	cmpq	$0, 16(%rdi)
	je	LBB0_1
## %bb.3:
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_hpsb_free_packet               ## TAILCALL
LBB0_1:
	cmpq	$0, 8(%rbx)
	je	LBB0_2
## %bb.4:
	movq	_pending_packets_lock@GOTPCREL(%rip), %r14
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	movq	_hpsbpkt_queue@GOTPCREL(%rip), %rsi
	movq	%rbx, %rdi
	callq	_list_add_tail
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
	movq	_khpsbpkt_thread@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_wake_up_process                ## TAILCALL
LBB0_2:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_pending_packets_lock,4,2       ## @pending_packets_lock
	.comm	_hpsbpkt_queue,4,2              ## @hpsbpkt_queue
	.comm	_khpsbpkt_thread,4,2            ## @khpsbpkt_thread
	.no_dead_strip	_queue_packet_complete
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function queue_packet_complete
_queue_packet_complete:                 ; @queue_packet_complete
	.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
	mov	x19, x0
	ldr	x8, [x0, #16]
	cbz	x8, LBB0_2
; %bb.1:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_hpsb_free_packet
LBB0_2:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_4
; %bb.3:
Lloh0:
	adrp	x20, _pending_packets_lock@GOTPAGE
Lloh1:
	ldr	x20, [x20, _pending_packets_lock@GOTPAGEOFF]
	mov	x0, x20
	bl	_spin_lock_irqsave
Lloh2:
	adrp	x1, _hpsbpkt_queue@GOTPAGE
Lloh3:
	ldr	x1, [x1, _hpsbpkt_queue@GOTPAGEOFF]
	mov	x0, x19
	bl	_list_add_tail
	mov	x0, x20
	bl	_spin_unlock_irqrestore
Lloh4:
	adrp	x8, _khpsbpkt_thread@GOTPAGE
Lloh5:
	ldr	x8, [x8, _khpsbpkt_thread@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_wake_up_process
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_pending_packets_lock,4,2       ; @pending_packets_lock
	.comm	_hpsbpkt_queue,4,2              ; @hpsbpkt_queue
	.comm	_khpsbpkt_thread,4,2            ; @khpsbpkt_thread
	.no_dead_strip	_queue_packet_complete
.subsections_via_symbols
