	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rts_detach
_rts_detach:                            ## @rts_detach
	.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, %r14
	callq	_sotorawcb
	movq	%rax, %rbx
	xorl	%edi, %edi
	testq	%rax, %rax
	setne	%dil
	leaq	L_.str(%rip), %rsi
	callq	_KASSERT
	xorl	%eax, %eax
	callq	_RTSOCK_LOCK
	movq	_V_route_cb@GOTPCREL(%rip), %rax
	movl	(%rbx), %ecx
	cmpl	$129, %ecx
	je	LBB0_1
## %bb.2:
	cmpl	$128, %ecx
	jne	LBB0_5
## %bb.3:
	leaq	4(%rax), %rcx
	jmp	LBB0_4
LBB0_1:
	leaq	8(%rax), %rcx
LBB0_4:
	decl	(%rcx)
LBB0_5:
	decl	(%rax)
	xorl	%eax, %eax
	callq	_RTSOCK_UNLOCK
	movq	_raw_usrreqs@GOTPCREL(%rip), %rax
	movq	%r14, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmpq	*(%rax)                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"rts_detach: rp == NULL"

	.comm	_V_route_cb,12,2                ## @V_route_cb
	.comm	_raw_usrreqs,8,3                ## @raw_usrreqs
	.no_dead_strip	_rts_detach
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rts_detach
_rts_detach:                            ; @rts_detach
	.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
	mov	x19, x0
	bl	_sotorawcb
	mov	x20, x0
	cmp	x0, #0
	cset	w0, ne
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_KASSERT
	bl	_RTSOCK_LOCK
Lloh2:
	adrp	x8, _V_route_cb@GOTPAGE
Lloh3:
	ldr	x8, [x8, _V_route_cb@GOTPAGEOFF]
	ldr	w9, [x20]
	cmp	w9, #129
	b.eq	LBB0_3
; %bb.1:
	cmp	w9, #128
	b.ne	LBB0_5
; %bb.2:
	add	x9, x8, #4
	b	LBB0_4
LBB0_3:
	add	x9, x8, #8
LBB0_4:
	ldr	w10, [x9]
	sub	w10, w10, #1
	str	w10, [x9]
LBB0_5:
	ldr	w9, [x8]
	sub	w9, w9, #1
	str	w9, [x8]
	bl	_RTSOCK_UNLOCK
Lloh4:
	adrp	x8, _raw_usrreqs@GOTPAGE
Lloh5:
	ldr	x8, [x8, _raw_usrreqs@GOTPAGEOFF]
Lloh6:
	ldr	x1, [x8]
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	br	x1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"rts_detach: rp == NULL"

	.comm	_V_route_cb,12,2                ; @V_route_cb
	.comm	_raw_usrreqs,8,3                ; @raw_usrreqs
	.no_dead_strip	_rts_detach
.subsections_via_symbols
