	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function nr_release
_nr_release:                            ## @nr_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_5
## %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	_nr_sk
	movq	%rax, %r15
	movl	(%rax), %eax
	leal	-129(%rax), %ecx
	cmpl	$3, %ecx
	jae	LBB0_2
## %bb.6:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_nr_disconnect
	movq	%rbx, %rdi
	callq	_nr_destroy_socket
	jmp	LBB0_4
LBB0_2:
	cmpl	$128, %eax
	jne	LBB0_4
## %bb.3:
	movq	%rbx, %rdi
	callq	_nr_clear_queues
	movl	$0, 4(%r15)
	movq	_NR_DISCREQ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_nr_write_internal
	movq	%rbx, %rdi
	callq	_nr_start_t1timer
	movq	%rbx, %rdi
	callq	_nr_stop_t2timer
	movq	%rbx, %rdi
	callq	_nr_stop_t4timer
	movq	%rbx, %rdi
	callq	_nr_stop_idletimer
	movl	$129, (%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_DESTROY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_sock_set_flag
LBB0_4:
	movq	$0, (%r14)
	movq	%rbx, %rdi
	callq	_release_sock
	movq	%rbx, %rdi
	callq	_sock_put
LBB0_5:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NR_DISCREQ,4,2                 ## @NR_DISCREQ
	.comm	_TCP_CLOSE,4,2                  ## @TCP_CLOSE
	.comm	_SEND_SHUTDOWN,4,2              ## @SEND_SHUTDOWN
	.comm	_SOCK_DESTROY,4,2               ## @SOCK_DESTROY
	.no_dead_strip	_nr_release
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function nr_release
_nr_release:                            ; @nr_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_6
; %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	_nr_sk
	ldr	w8, [x0]
	sub	w9, w8, #129
	cmp	w9, #3
	b.hs	LBB0_3
; %bb.2:
	mov	x0, x19
	mov	w1, #0
	bl	_nr_disconnect
	mov	x0, x19
	bl	_nr_destroy_socket
	b	LBB0_5
LBB0_3:
	cmp	w8, #128
	b.ne	LBB0_5
; %bb.4:
	mov	x21, x0
	mov	x0, x19
	bl	_nr_clear_queues
	str	wzr, [x21, #4]
Lloh0:
	adrp	x8, _NR_DISCREQ@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NR_DISCREQ@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_nr_write_internal
	mov	x0, x19
	bl	_nr_start_t1timer
	mov	x0, x19
	bl	_nr_stop_t2timer
	mov	x0, x19
	bl	_nr_stop_t4timer
	mov	x0, x19
	bl	_nr_stop_idletimer
	mov	w8, #129
	str	w8, [x21]
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_DESTROY@GOTPAGE
Lloh10:
	ldr	x8, [x8, _SOCK_DESTROY@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_sock_set_flag
LBB0_5:
	str	xzr, [x20]
	mov	x0, x19
	bl	_release_sock
	mov	x0, x19
	bl	_sock_put
LBB0_6:
	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 AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_NR_DISCREQ,4,2                 ; @NR_DISCREQ
	.comm	_TCP_CLOSE,4,2                  ; @TCP_CLOSE
	.comm	_SEND_SHUTDOWN,4,2              ; @SEND_SHUTDOWN
	.comm	_SOCK_DESTROY,4,2               ; @SOCK_DESTROY
	.no_dead_strip	_nr_release
.subsections_via_symbols
