	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function delete
_delete:                                ## @delete
	.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	%rdi, %rbx
	callq	_getaddr
	movq	%rax, %r12
	movl	$1, %eax
	testq	%r12, %r12
	je	LBB0_13
## %bb.1:
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	_RTF_ANNOUNCE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	movq	_flags@GOTPCREL(%rip), %r15
	andl	%eax, (%r15)
	movq	_RTM_GET@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r12, %rsi
	xorl	%edx, %edx
	callq	_rtmsg
	testq	%rax, %rax
	je	LBB0_9
## %bb.2:
	movq	%rax, %rbx
	movq	_AF_LINK@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	leaq	4(%rbx), %r13
	movq	%r13, %rdi
	callq	_SA_SIZE
	cltq
	movq	4(%rbx,%rax), %rcx
	cmpq	(%r14), %rcx
	jne	LBB0_10
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_RTF_GATEWAY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rbx)
	jne	LBB0_10
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	8(%r13,%rax), %edi
	callq	_valid_type
	testq	%rax, %rax
	jne	LBB0_6
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	(%r15), %eax
	movq	_RTF_ANNOUNCE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%eax, %ecx
	jne	LBB0_11
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	orl	%eax, %ecx
	movl	%ecx, (%r15)
	movq	_RTM_GET@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r12, %rsi
	xorl	%edx, %edx
	callq	_rtmsg
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_3
LBB0_9:
	leaq	L_.str(%rip), %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_xo_warn
	jmp	LBB0_12
LBB0_11:
	leaq	L_.str.1(%rip), %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_xo_warnx
LBB0_12:
	movl	$1, %eax
LBB0_13:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movl	(%r12), %eax
	movl	%eax, 4(%rbx)
	movq	_RTF_LLDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%rbx)
	movq	_RTM_DELETE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r12, %rsi
	xorl	%edx, %edx
	callq	_rtmsg
	testq	%rax, %rax
	movl	$1, %eax
	je	LBB0_13
## %bb.7:
	movl	(%r13), %edi
	callq	_inet_ntoa
	leaq	L_.str.2(%rip), %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movq	%rax, %rdx
	callq	_printf
	xorl	%eax, %eax
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_RTF_ANNOUNCE,4,2               ## @RTF_ANNOUNCE
	.comm	_flags,4,2                      ## @flags
	.comm	_RTM_GET,4,2                    ## @RTM_GET
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s"

	.comm	_AF_LINK,8,3                    ## @AF_LINK
	.comm	_RTF_GATEWAY,4,2                ## @RTF_GATEWAY
L_.str.1:                               ## @.str.1
	.asciz	"delete: cannot locate %s"

	.comm	_RTF_LLDATA,4,2                 ## @RTF_LLDATA
	.comm	_RTM_DELETE,4,2                 ## @RTM_DELETE
L_.str.2:                               ## @.str.2
	.asciz	"%s (%s) deleted\n"

	.no_dead_strip	_delete
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function delete
_delete:                                ; @delete
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x0
	bl	_getaddr
	cbz	x0, LBB0_10
; %bb.1:
	mov	x20, x0
Lloh0:
	adrp	x23, _RTF_ANNOUNCE@GOTPAGE
Lloh1:
	ldr	x23, [x23, _RTF_ANNOUNCE@GOTPAGEOFF]
	ldr	w8, [x23]
Lloh2:
	adrp	x24, _flags@GOTPAGE
Lloh3:
	ldr	x24, [x24, _flags@GOTPAGEOFF]
	ldr	w9, [x24]
	bic	w8, w9, w8
	str	w8, [x24]
Lloh4:
	adrp	x25, _RTM_GET@GOTPAGE
Lloh5:
	ldr	x25, [x25, _RTM_GET@GOTPAGEOFF]
	ldr	w0, [x25]
	mov	x1, x20
	mov	x2, #0
	bl	_rtmsg
	cbz	x0, LBB0_8
; %bb.2:
	mov	x21, x0
Lloh6:
	adrp	x26, _AF_LINK@GOTPAGE
Lloh7:
	ldr	x26, [x26, _AF_LINK@GOTPAGEOFF]
Lloh8:
	adrp	x27, _RTF_GATEWAY@GOTPAGE
Lloh9:
	ldr	x27, [x27, _RTF_GATEWAY@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	add	x22, x21, #4
	mov	x0, x22
	bl	_SA_SIZE
	add	x8, x22, w0, sxtw
	ldr	x9, [x8]
	ldr	x10, [x26]
	cmp	x9, x10
	b.ne	LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w9, [x21]
	ldr	w10, [x27]
	tst	w10, w9
	b.ne	LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w0, [x8, #8]
	bl	_valid_type
	cbnz	x0, LBB0_12
LBB0_6:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x24]
	ldr	w9, [x23]
	tst	w9, w8
	b.ne	LBB0_9
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	orr	w8, w9, w8
	str	w8, [x24]
	ldr	w0, [x25]
	mov	x1, x20
	mov	x2, #0
	bl	_rtmsg
	mov	x21, x0
	cbnz	x0, LBB0_3
LBB0_8:
Lloh10:
	adrp	x0, l_.str@PAGE
Lloh11:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	bl	_xo_warn
	b	LBB0_10
LBB0_9:
Lloh12:
	adrp	x0, l_.str.1@PAGE
Lloh13:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x19
	bl	_xo_warnx
LBB0_10:
	mov	w0, #1
LBB0_11:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_12:
	ldr	w8, [x20]
Lloh14:
	adrp	x9, _RTF_LLDATA@GOTPAGE
Lloh15:
	ldr	x9, [x9, _RTF_LLDATA@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	ldr	w10, [x21]
	orr	w9, w10, w9
	stp	w9, w8, [x21]
Lloh17:
	adrp	x8, _RTM_DELETE@GOTPAGE
Lloh18:
	ldr	x8, [x8, _RTM_DELETE@GOTPAGEOFF]
Lloh19:
	ldr	w0, [x8]
	mov	x1, x20
	mov	x2, #0
	bl	_rtmsg
	cbz	x0, LBB0_10
; %bb.13:
	ldr	w0, [x22]
	bl	_inet_ntoa
	mov	x2, x0
Lloh20:
	adrp	x0, l_.str.2@PAGE
Lloh21:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x19
	bl	_printf
	mov	w0, #0
	b	LBB0_11
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpAdd	Lloh20, Lloh21
	.cfi_endproc
                                        ; -- End function
	.comm	_RTF_ANNOUNCE,4,2               ; @RTF_ANNOUNCE
	.comm	_flags,4,2                      ; @flags
	.comm	_RTM_GET,4,2                    ; @RTM_GET
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s"

	.comm	_AF_LINK,8,3                    ; @AF_LINK
	.comm	_RTF_GATEWAY,4,2                ; @RTF_GATEWAY
l_.str.1:                               ; @.str.1
	.asciz	"delete: cannot locate %s"

	.comm	_RTF_LLDATA,4,2                 ; @RTF_LLDATA
	.comm	_RTM_DELETE,4,2                 ; @RTM_DELETE
l_.str.2:                               ; @.str.2
	.asciz	"%s (%s) deleted\n"

	.no_dead_strip	_delete
.subsections_via_symbols
