	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rose_release
_rose_release:                          ## @rose_release
	.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
	movq	(%rdi), %rbx
	testq	%rbx, %rbx
	je	LBB0_7
## %bb.1:
	movq	%rdi, %r14
	movq	%rbx, %rdi
	callq	_sock_hold
	movq	%rbx, %rdi
	callq	_sock_orphan
	movq	%rbx, %rdi
	callq	_lock_sock
	movq	%rbx, %rdi
	callq	_rose_sk
	movq	%rax, %r15
	movl	(%rax), %eax
	addl	$-128, %eax
	cmpl	$5, %eax
	ja	LBB0_6
## %bb.2:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_5:
	movq	%rbx, %rdi
	callq	_rose_clear_queues
	movq	%rbx, %rdi
	callq	_rose_stop_idletimer
	movq	_ROSE_CLEAR_REQUEST@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_rose_write_internal
	movq	%rbx, %rdi
	callq	_rose_start_t3timer
	movl	$131, (%r15)
	movq	_TCP_CLOSE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%rbx)
	movq	_SEND_SHUTDOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 8(%rbx)
	movq	%rbx, %rdi
	callq	*(%rbx)
	movq	_SOCK_DEAD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_sock_set_flag
	movq	_SOCK_DESTROY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_sock_set_flag
	jmp	LBB0_6
LBB0_3:
	movq	8(%r15), %rax
	decl	(%rax)
LBB0_4:
	movq	%rbx, %rdi
	callq	_release_sock
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	$-1, %edx
	movl	$-1, %ecx
	callq	_rose_disconnect
	movq	%rbx, %rdi
	callq	_lock_sock
	movq	%rbx, %rdi
	callq	_rose_destroy_socket
LBB0_6:
	movq	$0, (%r14)
	movq	%rbx, %rdi
	callq	_release_sock
	movq	%rbx, %rdi
	callq	_sock_put
LBB0_7:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
LJTI0_0:
	.long	L0_0_set_5
	.long	L0_0_set_5
	.long	L0_0_set_5
	.long	L0_0_set_3
	.long	L0_0_set_5
	.long	L0_0_set_4
	.end_data_region
                                        ## -- End function
	.comm	_ROSE_CLEAR_REQUEST,4,2         ## @ROSE_CLEAR_REQUEST
	.comm	_TCP_CLOSE,4,2                  ## @TCP_CLOSE
	.comm	_SEND_SHUTDOWN,4,2              ## @SEND_SHUTDOWN
	.comm	_SOCK_DEAD,4,2                  ## @SOCK_DEAD
	.comm	_SOCK_DESTROY,4,2               ## @SOCK_DESTROY
	.no_dead_strip	_rose_release
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rose_release
_rose_release:                          ; @rose_release
	.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
	ldr	x19, [x0]
	cbz	x19, LBB0_7
; %bb.1:
	mov	x20, x0
	mov	x0, x19
	bl	_sock_hold
	mov	x0, x19
	bl	_sock_orphan
	mov	x0, x19
	bl	_lock_sock
	mov	x0, x19
	bl	_rose_sk
	ldr	w8, [x0]
	sub	w8, w8, #128
	cmp	w8, #5
	b.hi	LBB0_6
; %bb.2:
	mov	x21, x0
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_3
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_3:
	mov	x0, x19
	bl	_rose_clear_queues
	mov	x0, x19
	bl	_rose_stop_idletimer
Lloh2:
	adrp	x8, _ROSE_CLEAR_REQUEST@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ROSE_CLEAR_REQUEST@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_rose_write_internal
	mov	x0, x19
	bl	_rose_start_t3timer
	mov	w8, #131
	str	w8, [x21]
Lloh5:
	adrp	x8, _TCP_CLOSE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _TCP_CLOSE@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
Lloh8:
	adrp	x9, _SEND_SHUTDOWN@GOTPAGE
Lloh9:
	ldr	x9, [x9, _SEND_SHUTDOWN@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	ldr	w10, [x19, #8]
	orr	w9, w10, w9
	stp	w9, w8, [x19, #8]
	ldr	x8, [x19]
	mov	x0, x19
	blr	x8
Lloh11:
	adrp	x8, _SOCK_DEAD@GOTPAGE
Lloh12:
	ldr	x8, [x8, _SOCK_DEAD@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_sock_set_flag
Lloh14:
	adrp	x8, _SOCK_DESTROY@GOTPAGE
Lloh15:
	ldr	x8, [x8, _SOCK_DESTROY@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_sock_set_flag
	b	LBB0_6
LBB0_4:
	ldr	x8, [x21, #8]
	ldr	w9, [x8]
	sub	w9, w9, #1
	str	w9, [x8]
LBB0_5:
	mov	x0, x19
	bl	_release_sock
	mov	x0, x19
	mov	w1, #0
	mov	w2, #-1
	mov	w3, #-1
	bl	_rose_disconnect
	mov	x0, x19
	bl	_lock_sock
	mov	x0, x19
	bl	_rose_destroy_socket
LBB0_6:
	str	xzr, [x20]
	mov	x0, x19
	bl	_release_sock
	mov	x0, x19
	bl	_sock_put
LBB0_7:
	mov	w0, #0
	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
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_4-LBB0_3)>>2
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_5-LBB0_3)>>2
                                        ; -- End function
	.comm	_ROSE_CLEAR_REQUEST,4,2         ; @ROSE_CLEAR_REQUEST
	.comm	_TCP_CLOSE,4,2                  ; @TCP_CLOSE
	.comm	_SEND_SHUTDOWN,4,2              ; @SEND_SHUTDOWN
	.comm	_SOCK_DEAD,4,2                  ; @SOCK_DEAD
	.comm	_SOCK_DESTROY,4,2               ; @SOCK_DESTROY
	.no_dead_strip	_rose_release
.subsections_via_symbols
