	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rt_unlinkrte
_rt_unlinkrte:                          ## @rt_unlinkrte
	.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
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	movq	%rsi, %rbx
	movq	%rdi, %r13
	movq	16(%rsi), %rax
	movq	_RTAX_DST@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rax,%rcx,8), %r15
	movq	_RTAX_NETMASK@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movq	(%rax,%rcx,8), %r12
	movq	%r15, %rdi
	movq	%r12, %rsi
	movq	%r13, %rdx
	callq	*16(%r13)
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	%rax, %r14
	movq	_RTF_PINNED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	je	LBB0_4
LBB0_6:
	movq	8(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_10
## %bb.7:
	movl	24(%rbx), %esi
	movq	%r14, %rdi
	callq	*%rax
	testq	%rax, %rax
	je	LBB0_8
## %bb.9:
	movq	8(%r14), %rax
	movq	16(%rbx), %rcx
	movq	_RTAX_GATEWAY@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movq	%rax, (%rcx,%rdx,8)
LBB0_10:
	movq	_ESRCH@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movl	%eax, (%r14)
	movq	%r15, %rdi
	movq	%r12, %rsi
	movq	%r13, %rdx
	callq	*8(%r13)
	testq	%rax, %rax
	je	LBB0_11
## %bb.12:
	movq	%rax, %rbx
	movq	_RNF_ACTIVE@GOTPCREL(%rip), %rax
	movq	_RNF_ROOT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	testl	%ecx, (%rbx)
	je	LBB0_14
## %bb.13:
	leaq	L_.str(%rip), %rdi
	callq	_panic
LBB0_14:
	movq	%rbx, %rdi
	callq	_RNTORT
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_RT_LOCK
	movq	%rbx, %rdi
	callq	_RT_ADDREF
	movq	_RTF_UP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, (%rbx)
	xorl	%eax, %eax
	jmp	LBB0_15
LBB0_1:
	movq	_ESRCH@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_4:
	testl	%eax, (%r14)
	je	LBB0_6
## %bb.5:
	movq	_EADDRINUSE@GOTPCREL(%rip), %rax
	jmp	LBB0_2
LBB0_11:
	xorl	%ebx, %ebx
	jmp	LBB0_16
LBB0_8:
	movq	_ENOENT@GOTPCREL(%rip), %rax
LBB0_2:
	movl	(%rax), %eax
	xorl	%ebx, %ebx
	movq	-48(%rbp), %r14                 ## 8-byte Reload
LBB0_15:
	movl	%eax, (%r14)
LBB0_16:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RTAX_DST,8,3                   ## @RTAX_DST
	.comm	_RTAX_NETMASK,8,3               ## @RTAX_NETMASK
	.comm	_ESRCH,4,2                      ## @ESRCH
	.comm	_RTF_PINNED,4,2                 ## @RTF_PINNED
	.comm	_EADDRINUSE,4,2                 ## @EADDRINUSE
	.comm	_ENOENT,4,2                     ## @ENOENT
	.comm	_RTAX_GATEWAY,8,3               ## @RTAX_GATEWAY
	.comm	_RNF_ACTIVE,4,2                 ## @RNF_ACTIVE
	.comm	_RNF_ROOT,4,2                   ## @RNF_ROOT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"rtrequest delete"

	.comm	_RTF_UP,4,2                     ## @RTF_UP
	.no_dead_strip	_rt_unlinkrte
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rt_unlinkrte
_rt_unlinkrte:                          ; @rt_unlinkrte
	.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	x19, x2
	mov	x23, x1
	mov	x20, x0
	ldr	x8, [x1, #16]
Lloh0:
	adrp	x9, _RTAX_DST@GOTPAGE
Lloh1:
	ldr	x9, [x9, _RTAX_DST@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	ldr	x21, [x8, x9, lsl #3]
Lloh3:
	adrp	x9, _RTAX_NETMASK@GOTPAGE
Lloh4:
	ldr	x9, [x9, _RTAX_NETMASK@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	ldr	x22, [x8, x9, lsl #3]
	ldr	x8, [x0, #16]
	mov	x0, x21
	mov	x1, x22
	mov	x2, x20
	blr	x8
	cbz	x0, LBB0_9
; %bb.1:
	mov	x24, x0
	ldr	w9, [x23]
Lloh6:
	adrp	x8, _RTF_PINNED@GOTPAGE
Lloh7:
	ldr	x8, [x8, _RTF_PINNED@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	tst	w8, w9
	b.eq	LBB0_10
LBB0_2:
	ldr	x8, [x23, #8]
	cbz	x8, LBB0_5
; %bb.3:
	ldr	w1, [x23, #24]
	mov	x0, x24
	blr	x8
	cbz	x0, LBB0_12
; %bb.4:
	ldr	x8, [x24, #8]
	ldr	x9, [x23, #16]
Lloh9:
	adrp	x10, _RTAX_GATEWAY@GOTPAGE
Lloh10:
	ldr	x10, [x10, _RTAX_GATEWAY@GOTPAGEOFF]
Lloh11:
	ldr	x10, [x10]
	str	x8, [x9, x10, lsl #3]
LBB0_5:
Lloh12:
	adrp	x8, _ESRCH@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ESRCH@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	str	w8, [x19]
	ldr	x8, [x20, #8]
	mov	x0, x21
	mov	x1, x22
	mov	x2, x20
	blr	x8
	mov	x20, x0
	cbz	x0, LBB0_15
; %bb.6:
	ldr	w8, [x20]
Lloh15:
	adrp	x9, _RNF_ACTIVE@GOTPAGE
Lloh16:
	ldr	x9, [x9, _RNF_ACTIVE@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
Lloh18:
	adrp	x10, _RNF_ROOT@GOTPAGE
Lloh19:
	ldr	x10, [x10, _RNF_ROOT@GOTPAGEOFF]
Lloh20:
	ldr	w10, [x10]
	orr	w9, w10, w9
	tst	w9, w8
	b.eq	LBB0_8
; %bb.7:
Lloh21:
	adrp	x0, l_.str@PAGE
Lloh22:
	add	x0, x0, l_.str@PAGEOFF
	bl	_panic
LBB0_8:
	mov	x0, x20
	bl	_RNTORT
	mov	x20, x0
	bl	_RT_LOCK
	mov	x0, x20
	bl	_RT_ADDREF
	mov	w8, #0
Lloh23:
	adrp	x9, _RTF_UP@GOTPAGE
Lloh24:
	ldr	x9, [x9, _RTF_UP@GOTPAGEOFF]
Lloh25:
	ldr	w9, [x9]
	ldr	w10, [x20]
	bic	w9, w10, w9
	str	w9, [x20]
	b	LBB0_14
LBB0_9:
	mov	x20, #0
Lloh26:
	adrp	x8, _ESRCH@GOTPAGE
Lloh27:
	ldr	x8, [x8, _ESRCH@GOTPAGEOFF]
	b	LBB0_13
LBB0_10:
	ldr	w9, [x24]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.11:
	mov	x20, #0
Lloh28:
	adrp	x8, _EADDRINUSE@GOTPAGE
Lloh29:
	ldr	x8, [x8, _EADDRINUSE@GOTPAGEOFF]
	b	LBB0_13
LBB0_12:
	mov	x20, #0
Lloh30:
	adrp	x8, _ENOENT@GOTPAGE
Lloh31:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
LBB0_13:
	ldr	w8, [x8]
LBB0_14:
	str	w8, [x19]
LBB0_15:
	mov	x0, x20
	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
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.comm	_RTAX_DST,8,3                   ; @RTAX_DST
	.comm	_RTAX_NETMASK,8,3               ; @RTAX_NETMASK
	.comm	_ESRCH,4,2                      ; @ESRCH
	.comm	_RTF_PINNED,4,2                 ; @RTF_PINNED
	.comm	_EADDRINUSE,4,2                 ; @EADDRINUSE
	.comm	_ENOENT,4,2                     ; @ENOENT
	.comm	_RTAX_GATEWAY,8,3               ; @RTAX_GATEWAY
	.comm	_RNF_ACTIVE,4,2                 ; @RNF_ACTIVE
	.comm	_RNF_ROOT,4,2                   ; @RNF_ROOT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"rtrequest delete"

	.comm	_RTF_UP,4,2                     ; @RTF_UP
	.no_dead_strip	_rt_unlinkrte
.subsections_via_symbols
