	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function link_check_defragm_bufs
_link_check_defragm_bufs:               ## @link_check_defragm_bufs
	.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	(%rdi), %rbx
	testq	%rbx, %rbx
	je	LBB0_7
## %bb.1:
	movq	%rdi, %r14
	callq	_link_working_working
	testl	%eax, %eax
	je	LBB0_7
## %bb.2:
	xorl	%r12d, %r12d
	leaq	L_.str.3(%rip), %r15
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	leaq	L_.str(%rip), %rdi
	callq	_dbg
	movq	%rbx, %rdi
	callq	_buf_msg
	movl	%eax, %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_msg_dbg
	movq	%r14, %rdi
	leaq	L_.str.2(%rip), %rsi
	callq	_dbg_print_link
	movq	%r15, %rdi
	callq	_dbg
	movq	(%r14), %rdi
	callq	_dbg_print_buf_chain
	testq	%r12, %r12
	movq	(%rbx), %rax
	movq	%r12, %rcx
	cmoveq	%r14, %rcx
	movq	%rax, (%rcx)
	movq	%rbx, %rdi
	callq	_buf_discard
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	%r13, %rbx
	testq	%r13, %r13
	je	LBB0_7
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	callq	_get_timer_cnt
	movq	(%rbx), %r13
	cmpl	$3, %eax
	jg	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%rbx, %rdi
	callq	_incr_timer_cnt
	movq	%rbx, %r12
	jmp	LBB0_6
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	" Discarding incomplete long buffer\n"

L_.str.1:                               ## @.str.1
	.asciz	"LONG:"

L_.str.2:                               ## @.str.2
	.asciz	"curr:"

L_.str.3:                               ## @.str.3
	.asciz	"Pending long buffers:\n"

	.no_dead_strip	_link_check_defragm_bufs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function link_check_defragm_bufs
_link_check_defragm_bufs:               ; @link_check_defragm_bufs
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	ldr	x20, [x0]
	cbz	x20, LBB0_6
; %bb.1:
	mov	x19, x0
	bl	_link_working_working
	cbz	w0, LBB0_6
; %bb.2:
	mov	x25, #0
Lloh0:
	adrp	x21, l_.str@PAGE
Lloh1:
	add	x21, x21, l_.str@PAGEOFF
Lloh2:
	adrp	x22, l_.str.1@PAGE
Lloh3:
	add	x22, x22, l_.str.1@PAGEOFF
Lloh4:
	adrp	x23, l_.str.2@PAGE
Lloh5:
	add	x23, x23, l_.str.2@PAGEOFF
Lloh6:
	adrp	x24, l_.str.3@PAGE
Lloh7:
	add	x24, x24, l_.str.3@PAGEOFF
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x21
	bl	_dbg
	mov	x0, x20
	bl	_buf_msg
	mov	x1, x22
	bl	_msg_dbg
	mov	x0, x19
	mov	x1, x23
	bl	_dbg_print_link
	mov	x0, x24
	bl	_dbg
	ldr	x0, [x19]
	bl	_dbg_print_buf_chain
	ldr	x8, [x20]
	cmp	x25, #0
	csel	x9, x19, x25, eq
	str	x8, [x9]
	mov	x0, x20
	bl	_buf_discard
	mov	x20, x26
	cbz	x26, LBB0_6
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	bl	_get_timer_cnt
	ldr	x26, [x20]
	cmp	w0, #3
	b.gt	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x20
	bl	_incr_timer_cnt
	mov	x25, x20
	mov	x20, x26
	cbnz	x26, LBB0_4
LBB0_6:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	" Discarding incomplete long buffer\n"

l_.str.1:                               ; @.str.1
	.asciz	"LONG:"

l_.str.2:                               ; @.str.2
	.asciz	"curr:"

l_.str.3:                               ; @.str.3
	.asciz	"Pending long buffers:\n"

	.no_dead_strip	_link_check_defragm_bufs
.subsections_via_symbols
