	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rds_tcp_state_change           ## -- Begin function rds_tcp_state_change
	.p2align	4, 0x90
_rds_tcp_state_change:                  ## @rds_tcp_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	leaq	12(%rdi), %r14
	movq	%r14, %rdi
	callq	_read_lock
	movq	16(%rbx), %r15
	testq	%r15, %r15
	je	LBB0_1
## %bb.2:
	movq	(%r15), %rax
	movq	(%rax), %r12
	movl	8(%rax), %esi
	movl	8(%rbx), %edx
	leaq	L_.str(%rip), %rdi
	callq	_rdsdebug
	movl	8(%rbx), %eax
	cmpl	$131, %eax
	je	LBB0_5
## %bb.3:
	cmpl	$130, %eax
	jne	LBB0_6
## %bb.4:
	movq	%r15, %rdi
	callq	_rds_connect_complete
	jmp	LBB0_6
LBB0_1:
	movq	(%rbx), %r12
	jmp	LBB0_6
LBB0_5:
	movq	%r15, %rdi
	callq	_rds_conn_drop
LBB0_6:
	movq	%r14, %rdi
	callq	_read_unlock
	movq	%rbx, %rdi
	movq	%r12, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmpq	*%rax                           ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"sock %p state_change to %d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rds_tcp_state_change           ; -- Begin function rds_tcp_state_change
	.p2align	2
_rds_tcp_state_change:                  ; @rds_tcp_state_change
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x19, x0
	add	x20, x0, #12
	mov	x0, x20
	bl	_read_lock
	ldr	x21, [x19, #16]
	cbz	x21, LBB0_4
; %bb.1:
	ldr	x8, [x21]
	ldr	x0, [x8]
	str	x0, [sp, #8]                    ; 8-byte Folded Spill
	ldr	w1, [x8, #8]
	ldr	w2, [x19, #8]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_rdsdebug
	ldr	w8, [x19, #8]
	cmp	w8, #131
	b.eq	LBB0_5
; %bb.2:
	cmp	w8, #130
	b.ne	LBB0_6
; %bb.3:
	mov	x0, x21
	bl	_rds_connect_complete
	b	LBB0_6
LBB0_4:
	ldr	x0, [x19]
	str	x0, [sp, #8]                    ; 8-byte Folded Spill
	b	LBB0_6
LBB0_5:
	mov	x0, x21
	bl	_rds_conn_drop
LBB0_6:
	mov	x0, x20
	bl	_read_unlock
	mov	x0, x19
	ldr	x1, [sp, #8]                    ; 8-byte Folded Reload
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	br	x1
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"sock %p state_change to %d\n"

.subsections_via_symbols
