	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function x25_release
_x25_release:                           ## @x25_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	(%rdi), %rbx
	testq	%rbx, %rbx
	je	LBB0_6
## %bb.1:
	movq	%rbx, %rdi
	callq	_x25_sk
	movq	%rax, %r14
	movl	(%rax), %eax
	addl	$-128, %eax
	cmpl	$4, %eax
	ja	LBB0_5
## %bb.2:
	movl	$11, %ecx
	movq	%rbx, %rdi
	btl	%eax, %ecx
	jae	LBB0_3
## %bb.4:
	callq	_x25_clear_queues
	movq	_X25_CLEAR_REQUEST@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_x25_write_internal
	movq	%rbx, %rdi
	callq	_x25_start_t23timer
	movl	$130, (%r14)
	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
LBB0_5:
	movq	%rbx, %rdi
	callq	_sock_orphan
	jmp	LBB0_6
LBB0_3:
	xorl	%esi, %esi
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	callq	_x25_disconnect
	movq	%rbx, %rdi
	callq	_x25_destroy_socket
LBB0_6:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_X25_CLEAR_REQUEST,4,2          ## @X25_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	_x25_release
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function x25_release
_x25_release:                           ; @x25_release
	.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
	ldr	x19, [x0]
	cbz	x19, LBB0_6
; %bb.1:
	mov	x0, x19
	bl	_x25_sk
	ldr	w8, [x0]
	sub	w8, w8, #128
	cmp	w8, #4
	b.hi	LBB0_4
; %bb.2:
	mov	w9, #1
	lsl	w8, w9, w8
	mov	w9, #11
	tst	w8, w9
	b.eq	LBB0_5
; %bb.3:
	mov	x20, x0
	mov	x0, x19
	bl	_x25_clear_queues
Lloh0:
	adrp	x8, _X25_CLEAR_REQUEST@GOTPAGE
Lloh1:
	ldr	x8, [x8, _X25_CLEAR_REQUEST@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_x25_write_internal
	mov	x0, x19
	bl	_x25_start_t23timer
	mov	w8, #130
	str	w8, [x20]
Lloh3:
	adrp	x8, _TCP_CLOSE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _TCP_CLOSE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _SEND_SHUTDOWN@GOTPAGE
Lloh7:
	ldr	x9, [x9, _SEND_SHUTDOWN@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	ldr	w10, [x19, #8]
	orr	w9, w10, w9
	stp	w9, w8, [x19, #8]
	ldr	x8, [x19]
	mov	x0, x19
	blr	x8
Lloh9:
	adrp	x8, _SOCK_DEAD@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SOCK_DEAD@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_sock_set_flag
Lloh12:
	adrp	x8, _SOCK_DESTROY@GOTPAGE
Lloh13:
	ldr	x8, [x8, _SOCK_DESTROY@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_sock_set_flag
LBB0_4:
	mov	x0, x19
	bl	_sock_orphan
	b	LBB0_6
LBB0_5:
	mov	x0, x19
	mov	w1, #0
	mov	w2, #0
	mov	w3, #0
	bl	_x25_disconnect
	mov	x0, x19
	bl	_x25_destroy_socket
LBB0_6:
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_X25_CLEAR_REQUEST,4,2          ; @X25_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	_x25_release
.subsections_via_symbols
