	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rtdelete                       ## -- Begin function rtdelete
	.p2align	4, 0x90
_rtdelete:                              ## @rtdelete
	.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
	movq	_TRACEACTIONS@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	movq	%rbx, %rsi
	callq	_trace_add_del
LBB0_2:
	movl	(%rbx), %esi
	movl	4(%rbx), %edi
	xorl	%edx, %edx
	callq	_kern_find
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	_KS_DELETE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	%ecx, (%rax)
	movq	_now@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_need_kern@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
LBB0_4:
	movl	4(%rbx), %eax
	movq	_dst_sock@GOTPCREL(%rip), %r14
	movl	%eax, (%r14)
	movl	(%rbx), %edi
	callq	_htonl
	movq	_mask_sock@GOTPCREL(%rip), %r15
	movl	%eax, (%r15)
	movq	%r15, %rdi
	callq	_masktrim
	movq	_rhead@GOTPCREL(%rip), %rax
	movq	(%rax), %rdx
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	*(%rdx)
	cmpq	%rbx, %rax
	je	LBB0_5
## %bb.6:
	leaq	L_.str.1(%rip), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_msglog                         ## TAILCALL
LBB0_5:
	movq	%rbx, %rdi
	callq	_free
	movq	_total_routes@GOTPCREL(%rip), %rax
	decl	(%rax)
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TRACEACTIONS,8,3               ## @TRACEACTIONS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Del"

	.comm	_KS_DELETE,4,2                  ## @KS_DELETE
	.comm	_now,4,2                        ## @now
	.comm	_need_kern,4,2                  ## @need_kern
	.comm	_dst_sock,4,2                   ## @dst_sock
	.comm	_mask_sock,4,2                  ## @mask_sock
	.comm	_rhead,8,3                      ## @rhead
L_.str.1:                               ## @.str.1
	.asciz	"rnh_deladdr() failed"

	.comm	_total_routes,4,2               ## @total_routes
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rtdelete                       ; -- Begin function rtdelete
	.p2align	2
_rtdelete:                              ; @rtdelete
	.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
	mov	x19, x0
Lloh0:
	adrp	x8, _TRACEACTIONS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TRACEACTIONS@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	cbz	x8, LBB0_2
; %bb.1:
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	bl	_trace_add_del
LBB0_2:
	ldp	w1, w0, [x19]
	mov	w2, #0
	bl	_kern_find
	cbz	x0, LBB0_4
; %bb.3:
Lloh5:
	adrp	x8, _KS_DELETE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _KS_DELETE@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	ldr	w9, [x0]
	orr	w8, w9, w8
	str	w8, [x0]
Lloh8:
	adrp	x8, _now@GOTPAGE
Lloh9:
	ldr	x8, [x8, _now@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
Lloh11:
	adrp	x9, _need_kern@GOTPAGE
Lloh12:
	ldr	x9, [x9, _need_kern@GOTPAGEOFF]
Lloh13:
	str	w8, [x9]
LBB0_4:
Lloh14:
	adrp	x20, _dst_sock@GOTPAGE
Lloh15:
	ldr	x20, [x20, _dst_sock@GOTPAGEOFF]
	ldp	w0, w8, [x19]
	str	w8, [x20]
	bl	_htonl
Lloh16:
	adrp	x21, _mask_sock@GOTPAGE
Lloh17:
	ldr	x21, [x21, _mask_sock@GOTPAGEOFF]
	str	w0, [x21]
	mov	x0, x21
	bl	_masktrim
Lloh18:
	adrp	x8, _rhead@GOTPAGE
Lloh19:
	ldr	x8, [x8, _rhead@GOTPAGEOFF]
Lloh20:
	ldr	x2, [x8]
	ldr	x8, [x2]
	mov	x0, x20
	mov	x1, x21
	blr	x8
	cmp	x0, x19
	b.eq	LBB0_6
; %bb.5:
Lloh21:
	adrp	x0, l_.str.1@PAGE
Lloh22:
	add	x0, x0, l_.str.1@PAGEOFF
	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
	b	_msglog
LBB0_6:
	mov	x0, x19
	bl	_free
Lloh23:
	adrp	x8, _total_routes@GOTPAGE
Lloh24:
	ldr	x8, [x8, _total_routes@GOTPAGEOFF]
	ldr	w9, [x8]
	sub	w9, w9, #1
	str	w9, [x8]
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotStr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_TRACEACTIONS,8,3               ; @TRACEACTIONS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Del"

	.comm	_KS_DELETE,4,2                  ; @KS_DELETE
	.comm	_now,4,2                        ; @now
	.comm	_need_kern,4,2                  ; @need_kern
	.comm	_dst_sock,4,2                   ; @dst_sock
	.comm	_mask_sock,4,2                  ; @mask_sock
	.comm	_rhead,8,3                      ; @rhead
l_.str.1:                               ; @.str.1
	.asciz	"rnh_deladdr() failed"

	.comm	_total_routes,4,2               ; @total_routes
.subsections_via_symbols
