	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sctp_heartbeat_timer           ## -- Begin function sctp_heartbeat_timer
	.p2align	4, 0x90
_sctp_heartbeat_timer:                  ## @sctp_heartbeat_timer
	.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
	movq	%rdx, %rbx
	movq	%rsi, %r14
	movq	%rdi, %r12
	movq	_SCTP_ADDR_PF@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	andl	(%rdx), %r13d
	cmpq	$0, 8(%rdx)
	je	LBB0_1
LBB0_4:
	cmpq	$0, 40(%rbx)
	je	LBB0_6
## %bb.5:
	movq	$0, 40(%rbx)
LBB0_6:
	cmpq	$0, (%r14)
	jle	LBB0_10
## %bb.7:
	leaq	12(%r14), %rdi
	callq	_TAILQ_EMPTY
	testq	%rax, %rax
	je	LBB0_10
## %bb.8:
	leaq	8(%r14), %rdi
	callq	_TAILQ_EMPTY
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_sctp_audit_stream_queues_for_size
LBB0_10:
	movl	(%rbx), %eax
	movq	_SCTP_ADDR_NOHB@GOTPCREL(%rip), %rcx
	xorl	%r15d, %r15d
	testl	%eax, (%rcx)
	jne	LBB0_20
## %bb.11:
	testl	%r13d, %r13d
	je	LBB0_12
LBB0_13:
	cmpq	$0, 24(%rbx)
	jg	LBB0_16
## %bb.14:
	cmpq	$0, 32(%rbx)
	jle	LBB0_15
LBB0_16:
	leaq	24(%rbx), %r12
	leaq	-48(%rbp), %r13
	movq	%r13, %rdi
	callq	_SCTP_GETTIME_TIMEVAL
	movq	%r13, %rdi
	movq	%r12, %rsi
	callq	_timevalsub
	imull	$1000, -48(%rbp), %ecx          ## imm = 0x3E8
	movslq	-44(%rbp), %rax
	imulq	$274877907, %rax, %rax          ## imm = 0x10624DD3
	movq	%rax, %rdx
	shrq	$63, %rdx
	sarq	$38, %rax
	addl	%edx, %eax
	addl	%ecx, %eax
	cmpl	16(%rbx), %eax
	jge	LBB0_19
LBB0_18:
	movq	_SCTP_ADDR_PF@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	jne	LBB0_19
	jmp	LBB0_20
LBB0_1:
	movq	56(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_3
## %bb.2:
	callq	_sctp_free_ifa
	xorps	%xmm0, %xmm0
	movups	%xmm0, 48(%rbx)
LBB0_3:
	movl	$1, %r15d
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movl	$1, %edx
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	callq	_sctp_backoff_on_timeout
	movl	16(%r14), %ecx
	movq	%r12, %rdi
	movq	%r14, %rsi
	movq	%rbx, %rdx
	callq	_sctp_threshold_management
	testq	%rax, %rax
	jne	LBB0_20
	jmp	LBB0_4
LBB0_12:
	movq	_SCTP_ADDR_PF@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_20
	jmp	LBB0_13
LBB0_15:
	movl	$-1, %eax
	cmpl	16(%rbx), %eax
	jl	LBB0_18
LBB0_19:
	movq	_SCTP_SO_NOT_LOCKED@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_sctp_send_hb
LBB0_20:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SCTP_ADDR_PF,4,2               ## @SCTP_ADDR_PF
	.comm	_SCTP_ADDR_NOHB,4,2             ## @SCTP_ADDR_NOHB
	.comm	_SCTP_SO_NOT_LOCKED,4,2         ## @SCTP_SO_NOT_LOCKED
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_sctp_heartbeat_timer           ; -- Begin function sctp_heartbeat_timer
	.p2align	2
_sctp_heartbeat_timer:                  ; @sctp_heartbeat_timer
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	ldr	w24, [x2]
Lloh0:
	adrp	x23, _SCTP_ADDR_PF@GOTPAGE
Lloh1:
	ldr	x23, [x23, _SCTP_ADDR_PF@GOTPAGEOFF]
	ldr	w25, [x23]
	ldr	x8, [x2, #8]
	cbz	x8, LBB0_15
LBB0_1:
	ldr	x8, [x19, #40]
	cbz	x8, LBB0_3
; %bb.2:
	str	xzr, [x19, #40]
LBB0_3:
	ldr	x8, [x20]
	cmp	x8, #1
	b.lt	LBB0_7
; %bb.4:
	add	x0, x20, #12
	bl	_TAILQ_EMPTY
	cbz	x0, LBB0_7
; %bb.5:
	add	x0, x20, #8
	bl	_TAILQ_EMPTY
	cbz	x0, LBB0_7
; %bb.6:
	mov	x0, x21
	mov	x1, x20
	bl	_sctp_audit_stream_queues_for_size
LBB0_7:
	ldr	w8, [x19]
Lloh2:
	adrp	x9, _SCTP_ADDR_NOHB@GOTPAGE
Lloh3:
	ldr	x9, [x9, _SCTP_ADDR_NOHB@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_19
; %bb.8:
	and	w9, w25, w24
	cbz	w9, LBB0_18
LBB0_9:
	mov	x21, x19
	ldr	x8, [x21, #24]!
	cmp	x8, #0
	b.gt	LBB0_11
; %bb.10:
	ldr	x8, [x19, #32]
	cmp	x8, #1
	b.lt	LBB0_21
LBB0_11:
	add	x0, sp, #8
	bl	_SCTP_GETTIME_TIMEVAL
	add	x0, sp, #8
	mov	x1, x21
	bl	_timevalsub
	mov	w8, #1000
	ldp	w9, w10, [sp, #8]
                                        ; kill: def $w10 killed $w10 def $x10
	sxtw	x10, w10
	mov	w11, #19923
	movk	w11, #4194, lsl #16
	mul	x10, x10, x11
	lsr	x11, x10, #63
	asr	x10, x10, #38
	add	w10, w10, w11
	madd	w8, w9, w8, w10
LBB0_12:
	ldr	w9, [x19, #16]
	cmp	w8, w9
	b.ge	LBB0_14
; %bb.13:
	ldr	w8, [x19]
	ldr	w9, [x23]
	tst	w9, w8
	b.eq	LBB0_19
LBB0_14:
Lloh5:
	adrp	x8, _SCTP_SO_NOT_LOCKED@GOTPAGE
Lloh6:
	ldr	x8, [x8, _SCTP_SO_NOT_LOCKED@GOTPAGEOFF]
Lloh7:
	ldr	w2, [x8]
	mov	x0, x20
	mov	x1, x19
	bl	_sctp_send_hb
	b	LBB0_19
LBB0_15:
	ldr	x0, [x19, #56]
	cbz	x0, LBB0_17
; %bb.16:
	bl	_sctp_free_ifa
	stp	xzr, xzr, [x19, #48]
LBB0_17:
	mov	w22, #1
	mov	x0, x20
	mov	x1, x19
	mov	w2, #1
	mov	w3, #0
	mov	w4, #0
	bl	_sctp_backoff_on_timeout
	ldr	w3, [x20, #16]
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	bl	_sctp_threshold_management
	cbnz	x0, LBB0_20
	b	LBB0_1
LBB0_18:
	ldr	w9, [x23]
	tst	w9, w8
	b.eq	LBB0_9
LBB0_19:
	mov	w22, #0
LBB0_20:
	mov	x0, x22
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_21:
	mov	w8, #-1
	b	LBB0_12
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_SCTP_ADDR_PF,4,2               ; @SCTP_ADDR_PF
	.comm	_SCTP_ADDR_NOHB,4,2             ; @SCTP_ADDR_NOHB
	.comm	_SCTP_SO_NOT_LOCKED,4,2         ; @SCTP_SO_NOT_LOCKED
.subsections_via_symbols
