	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function keepalive_send
_keepalive_send:                        ## @keepalive_send
	.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	_adist_remote_lock@GOTPCREL(%rip), %r14
	movq	%r14, %rdi
	callq	_rw_rlock
	movq	_adhost@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax), %rbx
	movq	%r14, %rdi
	callq	_rw_unlock
	testq	%rbx, %rbx
	je	LBB0_3
## %bb.1:
	movq	_adist_free_list_lock@GOTPCREL(%rip), %rdi
	callq	_mtx_lock
	movq	_adist_free_list@GOTPCREL(%rip), %rdi
	callq	_TAILQ_FIRST
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:
	movq	%rax, %rbx
	movq	_adr_next@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_adist_free_list@GOTPCREL(%rip), %rdi
	movq	%rbx, %rsi
	callq	_TAILQ_REMOVE
	movq	_adist_free_list_lock@GOTPCREL(%rip), %rdi
	callq	_mtx_unlock
	movq	_ADIST_CMD_KEEPALIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_adreq_fill
	movq	_adist_send_list@GOTPCREL(%rip), %rsi
	movq	%rbx, %rdi
	callq	_QUEUE_INSERT
	leaq	L_.str(%rip), %rsi
	movl	$3, %edi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_pjdlog_debug                   ## TAILCALL
LBB0_3:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_4:
	movq	_adist_free_list_lock@GOTPCREL(%rip), %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_mtx_unlock                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_adist_remote_lock,4,2          ## @adist_remote_lock
	.comm	_adhost,8,3                     ## @adhost
	.comm	_adist_free_list_lock,4,2       ## @adist_free_list_lock
	.comm	_adist_free_list,4,2            ## @adist_free_list
	.comm	_adr_next,4,2                   ## @adr_next
	.comm	_ADIST_CMD_KEEPALIVE,4,2        ## @ADIST_CMD_KEEPALIVE
	.comm	_adist_send_list,4,2            ## @adist_send_list
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"keepalive_send: Request sent."

	.no_dead_strip	_keepalive_send
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function keepalive_send
_keepalive_send:                        ; @keepalive_send
	.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
Lloh0:
	adrp	x19, _adist_remote_lock@GOTPAGE
Lloh1:
	ldr	x19, [x19, _adist_remote_lock@GOTPAGEOFF]
	mov	x0, x19
	bl	_rw_rlock
Lloh2:
	adrp	x8, _adhost@GOTPAGE
Lloh3:
	ldr	x8, [x8, _adhost@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	ldr	x20, [x8]
	mov	x0, x19
	bl	_rw_unlock
	cbz	x20, LBB0_3
; %bb.1:
Lloh5:
	adrp	x0, _adist_free_list_lock@GOTPAGE
Lloh6:
	ldr	x0, [x0, _adist_free_list_lock@GOTPAGEOFF]
	bl	_mtx_lock
Lloh7:
	adrp	x0, _adist_free_list@GOTPAGE
Lloh8:
	ldr	x0, [x0, _adist_free_list@GOTPAGEOFF]
	bl	_TAILQ_FIRST
	cbz	x0, LBB0_4
; %bb.2:
	mov	x19, x0
Lloh9:
	adrp	x8, _adr_next@GOTPAGE
Lloh10:
	ldr	x8, [x8, _adr_next@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
Lloh12:
	adrp	x0, _adist_free_list@GOTPAGE
Lloh13:
	ldr	x0, [x0, _adist_free_list@GOTPAGEOFF]
	mov	x1, x19
	bl	_TAILQ_REMOVE
Lloh14:
	adrp	x0, _adist_free_list_lock@GOTPAGE
Lloh15:
	ldr	x0, [x0, _adist_free_list_lock@GOTPAGEOFF]
	bl	_mtx_unlock
Lloh16:
	adrp	x8, _ADIST_CMD_KEEPALIVE@GOTPAGE
Lloh17:
	ldr	x8, [x8, _ADIST_CMD_KEEPALIVE@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	mov	x0, x19
	mov	x2, #0
	mov	w3, #0
	bl	_adreq_fill
Lloh19:
	adrp	x1, _adist_send_list@GOTPAGE
Lloh20:
	ldr	x1, [x1, _adist_send_list@GOTPAGEOFF]
	mov	x0, x19
	bl	_QUEUE_INSERT
Lloh21:
	adrp	x1, l_.str@PAGE
Lloh22:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #3
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_pjdlog_debug
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_4:
Lloh23:
	adrp	x0, _adist_free_list_lock@GOTPAGE
Lloh24:
	ldr	x0, [x0, _adist_free_list_lock@GOTPAGEOFF]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_mtx_unlock
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_adist_remote_lock,4,2          ; @adist_remote_lock
	.comm	_adhost,8,3                     ; @adhost
	.comm	_adist_free_list_lock,4,2       ; @adist_free_list_lock
	.comm	_adist_free_list,4,2            ; @adist_free_list
	.comm	_adr_next,4,2                   ; @adr_next
	.comm	_ADIST_CMD_KEEPALIVE,4,2        ; @ADIST_CMD_KEEPALIVE
	.comm	_adist_send_list,4,2            ; @adist_send_list
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"keepalive_send: Request sent."

	.no_dead_strip	_keepalive_send
.subsections_via_symbols
