	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tcp_log_expandlogbuf
_tcp_log_expandlogbuf:                  ## @tcp_log_expandlogbuf
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movl	(%rdi), %ebx
	leal	32(,%rbx,8), %edi
	movq	_M_TCPLOGDEV@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	_M_NOWAIT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	%rax, %r13
	shll	$3, %ebx
	addq	$32, %rax
	movq	%rax, -56(%rbp)
	movl	%ebx, -72(%rbp)
	movq	$0, -64(%rbp)
	leaq	20(%r14), %r15
	movl	(%r14), %ecx
	leaq	-72(%rbp), %rdi
	leaq	-48(%rbp), %rdx
	movq	%r15, %rsi
	callq	_tcp_log_logs_to_buf
	testl	%eax, %eax
	je	LBB0_4
## %bb.2:
	movl	(%r12), %esi
	movq	%r13, %rdi
	callq	_free
LBB0_3:
	xorl	%r13d, %r13d
	jmp	LBB0_5
LBB0_4:
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_tcp_log_free_entries
	movl	$0, (%r14)
	movq	%r13, %rdi
	xorl	%esi, %esi
	movl	$32, %edx
	callq	_memset
	movq	_TCP_LOG_BUF_VER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 28(%r13)
	movq	_TCP_LOG_DEV_TYPE_BBR@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%r13)
	movq	-48(%rbp), %rax
	subq	%r13, %rax
	shrq	$2, %rax
	movl	%eax, (%r13)
	movl	16(%r14), %eax
	movl	%eax, 20(%r13)
	movl	12(%r14), %eax
	movl	%eax, 16(%r13)
	movq	%r13, %rdi
	addq	$12, %rdi
	callq	_getboottime
	movl	8(%r13), %edi
	movl	8(%r14), %esi
	movq	_TCP_LOG_ID_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_strlcpy
	movl	4(%r13), %edi
	movl	4(%r14), %esi
	movq	_TCP_LOG_REASON_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_strlcpy
LBB0_5:
	movq	%r13, %rax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_M_TCPLOGDEV,4,2                ## @M_TCPLOGDEV
	.comm	_M_NOWAIT,4,2                   ## @M_NOWAIT
	.comm	_TCP_LOG_BUF_VER,4,2            ## @TCP_LOG_BUF_VER
	.comm	_TCP_LOG_DEV_TYPE_BBR,4,2       ## @TCP_LOG_DEV_TYPE_BBR
	.comm	_TCP_LOG_ID_LEN,4,2             ## @TCP_LOG_ID_LEN
	.comm	_TCP_LOG_REASON_LEN,4,2         ## @TCP_LOG_REASON_LEN
	.comm	_tcp_log_que_fail5,4,2          ## @tcp_log_que_fail5
	.no_dead_strip	_tcp_log_expandlogbuf
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tcp_log_expandlogbuf
_tcp_log_expandlogbuf:                  ; @tcp_log_expandlogbuf
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	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
	mov	x20, x0
	ldr	w8, [x0]
	lsl	w21, w8, #3
	add	w0, w21, #32
Lloh0:
	adrp	x22, _M_TCPLOGDEV@GOTPAGE
Lloh1:
	ldr	x22, [x22, _M_TCPLOGDEV@GOTPAGEOFF]
	ldr	w1, [x22]
Lloh2:
	adrp	x8, _M_NOWAIT@GOTPAGE
Lloh3:
	ldr	x8, [x8, _M_NOWAIT@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x8]
	bl	_malloc
	mov	x19, x0
	cbz	x0, LBB0_4
; %bb.1:
	add	x8, x19, #32
	str	w21, [sp]
	stp	xzr, x8, [sp, #8]
	mov	x21, x20
	ldr	w3, [x21], #20
	mov	x0, sp
	add	x2, sp, #24
	mov	x1, x21
	bl	_tcp_log_logs_to_buf
	cbz	w0, LBB0_3
; %bb.2:
	ldr	w1, [x22]
	mov	x0, x19
	bl	_free
	mov	x19, #0
	b	LBB0_4
LBB0_3:
	mov	x0, x21
	mov	x1, x20
	bl	_tcp_log_free_entries
	str	wzr, [x20]
	mov	x0, x19
	mov	w1, #0
	mov	w2, #32
	bl	_memset
Lloh5:
	adrp	x8, _TCP_LOG_BUF_VER@GOTPAGE
Lloh6:
	ldr	x8, [x8, _TCP_LOG_BUF_VER@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
Lloh8:
	adrp	x9, _TCP_LOG_DEV_TYPE_BBR@GOTPAGE
Lloh9:
	ldr	x9, [x9, _TCP_LOG_DEV_TYPE_BBR@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	stp	w9, w8, [x19, #24]
	ldr	x8, [sp, #24]
	sub	x8, x8, x19
	lsr	x8, x8, #2
	str	w8, [x19]
	ldur	d0, [x20, #12]
	str	d0, [x19, #16]
	add	x0, x19, #12
	bl	_getboottime
	ldr	w0, [x19, #8]
	ldr	w1, [x20, #8]
Lloh11:
	adrp	x8, _TCP_LOG_ID_LEN@GOTPAGE
Lloh12:
	ldr	x8, [x8, _TCP_LOG_ID_LEN@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
	bl	_strlcpy
	ldr	w0, [x19, #4]
	ldr	w1, [x20, #4]
Lloh14:
	adrp	x8, _TCP_LOG_REASON_LEN@GOTPAGE
Lloh15:
	ldr	x8, [x8, _TCP_LOG_REASON_LEN@GOTPAGEOFF]
Lloh16:
	ldr	w2, [x8]
	bl	_strlcpy
LBB0_4:
	mov	x0, x19
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_M_TCPLOGDEV,4,2                ; @M_TCPLOGDEV
	.comm	_M_NOWAIT,4,2                   ; @M_NOWAIT
	.comm	_TCP_LOG_BUF_VER,4,2            ; @TCP_LOG_BUF_VER
	.comm	_TCP_LOG_DEV_TYPE_BBR,4,2       ; @TCP_LOG_DEV_TYPE_BBR
	.comm	_TCP_LOG_ID_LEN,4,2             ; @TCP_LOG_ID_LEN
	.comm	_TCP_LOG_REASON_LEN,4,2         ; @TCP_LOG_REASON_LEN
	.comm	_tcp_log_que_fail5,4,2          ; @tcp_log_que_fail5
	.no_dead_strip	_tcp_log_expandlogbuf
.subsections_via_symbols
