	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_x25_disconnect                 ## -- Begin function x25_disconnect
	.p2align	4, 0x90
_x25_disconnect:                        ## @x25_disconnect
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r14d
	movl	%edx, %r15d
	movl	%esi, %r12d
	movq	%rdi, %rbx
	callq	_x25_sk
	movq	%rax, %r13
	movq	%rbx, %rdi
	callq	_x25_clear_queues
	movq	%rbx, %rdi
	callq	_x25_stop_timer
	movq	$0, 8(%r13)
	movq	_X25_STATE_0@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%r13)
	movb	%r15b, (%r13)
	movb	%r14b, 1(%r13)
	movq	_TCP_CLOSE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 20(%rbx)
	movl	%r12d, (%rbx)
	movq	_SEND_SHUTDOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 16(%rbx)
	movq	_SOCK_DEAD@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	%rbx, %rdi
	callq	_sock_flag
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movq	%rbx, %rdi
	callq	*8(%rbx)
	movl	(%r14), %esi
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_sock_set_flag                  ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_X25_STATE_0,4,2                ## @X25_STATE_0
	.comm	_TCP_CLOSE,4,2                  ## @TCP_CLOSE
	.comm	_SEND_SHUTDOWN,4,2              ## @SEND_SHUTDOWN
	.comm	_SOCK_DEAD,4,2                  ## @SOCK_DEAD
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_x25_disconnect                 ; -- Begin function x25_disconnect
	.p2align	2
_x25_disconnect:                        ; @x25_disconnect
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x3
	mov	x21, x2
	mov	x22, x1
	mov	x19, x0
	bl	_x25_sk
	mov	x23, x0
	mov	x0, x19
	bl	_x25_clear_queues
	mov	x0, x19
	bl	_x25_stop_timer
	str	xzr, [x23, #8]
Lloh0:
	adrp	x8, _X25_STATE_0@GOTPAGE
Lloh1:
	ldr	x8, [x8, _X25_STATE_0@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x23, #4]
	strb	w21, [x23]
	strb	w20, [x23, #1]
Lloh3:
	adrp	x8, _TCP_CLOSE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _TCP_CLOSE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	str	w22, [x19]
Lloh6:
	adrp	x9, _SEND_SHUTDOWN@GOTPAGE
Lloh7:
	ldr	x9, [x9, _SEND_SHUTDOWN@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	ldr	w10, [x19, #16]
	orr	w9, w10, w9
	stp	w9, w8, [x19, #16]
Lloh9:
	adrp	x20, _SOCK_DEAD@GOTPAGE
Lloh10:
	ldr	x20, [x20, _SOCK_DEAD@GOTPAGEOFF]
	ldr	w1, [x20]
	mov	x0, x19
	bl	_sock_flag
	cbz	w0, LBB0_2
; %bb.1:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_2:
	ldr	x8, [x19, #8]
	mov	x0, x19
	blr	x8
	ldr	w1, [x20]
	mov	x0, x19
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_sock_set_flag
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_X25_STATE_0,4,2                ; @X25_STATE_0
	.comm	_TCP_CLOSE,4,2                  ; @TCP_CLOSE
	.comm	_SEND_SHUTDOWN,4,2              ; @SEND_SHUTDOWN
	.comm	_SOCK_DEAD,4,2                  ; @SOCK_DEAD
.subsections_via_symbols
