	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tcp_log_state_change           ## -- Begin function tcp_log_state_change
	.p2align	4, 0x90
_tcp_log_state_change:                  ## @tcp_log_state_change
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movl	12(%rdi), %edi
	callq	_INP_WLOCK_ASSERT
	leal	-128(%r14), %eax
	cmpl	$6, %eax
	jae	LBB0_1
LBB0_5:
	movl	%r14d, (%rbx)
	movq	_TF2_LOG_AUTO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, 4(%rbx)
	xorl	%eax, %eax
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	cmpl	$134, %r14d
	jne	LBB0_7
## %bb.2:
	leaq	8(%rbx), %r15
	movq	%r15, %rdi
	callq	_STAILQ_FIRST
	movl	$130, %r14d
	testq	%rax, %rax
	je	LBB0_5
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	movq	%rax, %rsi
	callq	_tcp_log_remove_log_head
	movq	%r15, %rdi
	callq	_STAILQ_FIRST
	testq	%rax, %rax
	jne	LBB0_3
	jmp	LBB0_5
LBB0_7:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_TF2_LOG_AUTO,4,2               ## @TF2_LOG_AUTO
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_tcp_log_state_change           ; -- Begin function tcp_log_state_change
	.p2align	2
_tcp_log_state_change:                  ; @tcp_log_state_change
	.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
	mov	x20, x1
	mov	x19, x0
	ldr	w0, [x0, #12]
	bl	_INP_WLOCK_ASSERT
	sub	w8, w20, #128
	cmp	w8, #6
	b.hs	LBB0_3
LBB0_1:
	mov	w0, #0
	str	w20, [x19]
Lloh0:
	adrp	x8, _TF2_LOG_AUTO@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TF2_LOG_AUTO@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	ldr	w9, [x19, #4]
	bic	w8, w9, w8
	str	w8, [x19, #4]
LBB0_2:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_3:
	cmp	w20, #134
	b.ne	LBB0_8
; %bb.4:
	add	x20, x19, #8
	mov	x0, x20
	bl	_STAILQ_FIRST
	cbz	x0, LBB0_7
; %bb.5:
	mov	x1, x0
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x19
	bl	_tcp_log_remove_log_head
	mov	x0, x20
	bl	_STAILQ_FIRST
	mov	x1, x0
	cbnz	x0, LBB0_6
LBB0_7:
	mov	w20, #130
	b	LBB0_1
LBB0_8:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_TF2_LOG_AUTO,4,2               ; @TF2_LOG_AUTO
.subsections_via_symbols
