	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sctp_packet_bundle_sack
_sctp_packet_bundle_sack:               ## @sctp_packet_bundle_sack
	.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	%rdi, %rbx
	movq	_SCTP_XMIT_OK@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	%rsi, %rdi
	callq	_sctp_chunk_is_data
	testq	%rax, %rax
	je	LBB0_8
## %bb.1:
	cmpl	$0, 12(%rbx)
	jne	LBB0_8
## %bb.2:
	cmpl	$0, 8(%rbx)
	je	LBB0_3
LBB0_8:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	(%rbx), %rax
	movq	8(%rax), %r15
	movq	_SCTP_EVENT_TIMEOUT_SACK@GOTPCREL(%rip), %rax
	movq	(%rax), %r12
	shlq	$2, %r12
	addq	24(%r15), %r12
	movq	%r12, %rdi
	callq	_timer_pending
	testq	%rax, %rax
	je	LBB0_8
## %bb.4:
	movq	(%rbx), %rax
	movq	(%rax), %rcx
	movq	8(%rax), %rax
	cmpq	(%rax), %rcx
	jne	LBB0_8
## %bb.5:
	movl	16(%r15), %eax
	movl	%eax, 20(%r15)
	movq	%r15, %rdi
	callq	_sctp_make_sack
	testq	%rax, %rax
	je	LBB0_8
## %bb.6:
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_sctp_packet_append_chunk
	movl	%eax, %r14d
	movq	$0, 8(%r15)
	movq	%r12, %rdi
	callq	_del_timer
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movq	%r15, %rdi
	callq	_sctp_association_put
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_SCTP_XMIT_OK,4,2               ## @SCTP_XMIT_OK
	.comm	_SCTP_EVENT_TIMEOUT_SACK,8,3    ## @SCTP_EVENT_TIMEOUT_SACK
	.no_dead_strip	_sctp_packet_bundle_sack
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sctp_packet_bundle_sack
_sctp_packet_bundle_sack:               ; @sctp_packet_bundle_sack
	.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
	mov	x20, x0
Lloh0:
	adrp	x8, _SCTP_XMIT_OK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SCTP_XMIT_OK@GOTPAGEOFF]
Lloh2:
	ldr	w19, [x8]
	mov	x0, x1
	bl	_sctp_chunk_is_data
	cbz	x0, LBB0_3
; %bb.1:
	ldr	w8, [x20, #12]
	cbnz	w8, LBB0_3
; %bb.2:
	ldr	w8, [x20, #8]
	cbz	w8, LBB0_4
LBB0_3:
	mov	x0, x19
	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_4:
	ldr	x8, [x20]
	ldr	x21, [x8, #8]
	ldr	x8, [x21, #24]
Lloh3:
	adrp	x9, _SCTP_EVENT_TIMEOUT_SACK@GOTPAGE
Lloh4:
	ldr	x9, [x9, _SCTP_EVENT_TIMEOUT_SACK@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	add	x22, x8, x9, lsl #2
	mov	x0, x22
	bl	_timer_pending
	cbz	x0, LBB0_3
; %bb.5:
	ldr	x8, [x20]
	ldp	x9, x8, [x8]
	ldr	x8, [x8]
	cmp	x9, x8
	b.ne	LBB0_3
; %bb.6:
	ldr	w8, [x21, #16]
	str	w8, [x21, #20]
	mov	x0, x21
	bl	_sctp_make_sack
	cbz	x0, LBB0_3
; %bb.7:
	mov	x1, x0
	mov	x0, x20
	bl	_sctp_packet_append_chunk
	mov	x19, x0
	str	xzr, [x21, #8]
	mov	x0, x22
	bl	_del_timer
	cbz	x0, LBB0_3
; %bb.8:
	mov	x0, x21
	bl	_sctp_association_put
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_SCTP_XMIT_OK,4,2               ; @SCTP_XMIT_OK
	.comm	_SCTP_EVENT_TIMEOUT_SACK,8,3    ; @SCTP_EVENT_TIMEOUT_SACK
	.no_dead_strip	_sctp_packet_bundle_sack
.subsections_via_symbols
