	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function HandleRouteMessage
_HandleRouteMessage:                    ## @HandleRouteMessage
	.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	%rsi, %r14
	movq	%rdi, %rbx
	movq	32(%rdi), %r12
	movq	_msg_add_route@GOTPCREL(%rip), %rax
	movq	(%rax), %r13
	movl	$48, %edi
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r15
	movq	%rax, %rdi
	movl	$48, %esi
	callq	_ZeroMemory
	movq	$-1, (%r15)
	movq	_MIB_IPPROTO_NETMGMT@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 44(%r15)
	movl	28(%rbx), %eax
	movl	%eax, 40(%r15)
	movl	12(%rbx), %edi
	leaq	24(%rbx), %rsi
	callq	_sockaddr_inet
	movq	%rax, 32(%r15)
	movq	16(%rbx), %rax
	movq	%rax, 24(%r15)
	movl	12(%rbx), %edi
	leaq	8(%rbx), %rsi
	callq	_sockaddr_inet
	movq	%rax, 16(%r15)
	movl	(%rbx), %eax
	cmpl	$-1, %eax
	je	LBB0_4
## %bb.3:
	movl	%eax, 8(%r15)
LBB0_7:
	movq	%r15, %rdi
	cmpq	%r13, %r12
	jne	LBB0_12
## %bb.8:
	callq	_CreateIpForwardEntry2
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_14
## %bb.9:
	movq	_route@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	shlq	$2, %rdi
	addq	(%r14), %rdi
	movq	%r15, %rsi
	callq	_AddListItem
	testq	%rax, %rax
	je	LBB0_10
## %bb.11:
	movq	%rax, %rbx
	movq	%r15, %rdi
	callq	_DeleteRoute
	jmp	LBB0_14
LBB0_1:
	movq	_ERROR_OUTOFMEMORY@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	jmp	LBB0_15
LBB0_12:
	callq	_DeleteRoute
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_14
## %bb.13:
	movq	_route@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	shlq	$2, %rdi
	addq	(%r14), %rdi
	movq	_CmpRoute@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdx
	callq	_RemoveListItem
	movq	%rax, %rdi
	callq	_free
	xorl	%ebx, %ebx
	jmp	LBB0_14
LBB0_4:
	movl	4(%rbx), %edi
	callq	_strlen
	testq	%rax, %rax
	je	LBB0_7
## %bb.5:
	movl	4(%rbx), %edi
	leaq	-44(%rbp), %rsi
	callq	_InterfaceLuid
	testq	%rax, %rax
	je	LBB0_6
## %bb.16:
	movq	%rax, %rbx
LBB0_14:
	movq	%r15, %rdi
	callq	_free
LBB0_15:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movl	-44(%rbp), %eax
	movl	%eax, 12(%r15)
	jmp	LBB0_7
LBB0_10:
	xorl	%ebx, %ebx
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.comm	_msg_add_route,8,3              ## @msg_add_route
	.comm	_ERROR_OUTOFMEMORY,8,3          ## @ERROR_OUTOFMEMORY
	.comm	_MIB_IPPROTO_NETMGMT,4,2        ## @MIB_IPPROTO_NETMGMT
	.comm	_route,8,3                      ## @route
	.comm	_CmpRoute,4,2                   ## @CmpRoute
	.no_dead_strip	_HandleRouteMessage
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function HandleRouteMessage
_HandleRouteMessage:                    ; @HandleRouteMessage
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x20, x1
	mov	x21, x0
	ldr	x22, [x0, #32]
Lloh0:
	adrp	x8, _msg_add_route@GOTPAGE
Lloh1:
	ldr	x8, [x8, _msg_add_route@GOTPAGEOFF]
Lloh2:
	ldr	x23, [x8]
	mov	w0, #48
	bl	_malloc
	cbz	x0, LBB0_7
; %bb.1:
	mov	x19, x0
	mov	w1, #48
	bl	_ZeroMemory
	movi.2d	v0, #0xffffffffffffffff
	str	d0, [x19]
Lloh3:
	adrp	x8, _MIB_IPPROTO_NETMGMT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MIB_IPPROTO_NETMGMT@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	ldr	w9, [x21, #28]
	stp	w9, w8, [x19, #40]
	ldr	w0, [x21, #12]
	add	x1, x21, #24
	bl	_sockaddr_inet
	ldr	x8, [x21, #16]
	stp	x8, x0, [x19, #24]
	ldr	w0, [x21, #12]
	add	x1, x21, #8
	bl	_sockaddr_inet
	str	x0, [x19, #16]
	ldr	w8, [x21]
	cmn	w8, #1
	b.eq	LBB0_10
; %bb.2:
	str	w8, [x19, #8]
LBB0_3:
	mov	x0, x19
	cmp	x22, x23
	b.ne	LBB0_8
; %bb.4:
	bl	_CreateIpForwardEntry2
	mov	x21, x0
	cbnz	x0, LBB0_13
; %bb.5:
	ldr	x8, [x20]
Lloh6:
	adrp	x9, _route@GOTPAGE
Lloh7:
	ldr	x9, [x9, _route@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	add	x0, x8, x9, lsl #2
	mov	x1, x19
	bl	_AddListItem
	mov	x21, x0
	cbz	x0, LBB0_14
; %bb.6:
	mov	x0, x19
	bl	_DeleteRoute
	b	LBB0_13
LBB0_7:
Lloh9:
	adrp	x8, _ERROR_OUTOFMEMORY@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ERROR_OUTOFMEMORY@GOTPAGEOFF]
Lloh11:
	ldr	x21, [x8]
	b	LBB0_14
LBB0_8:
	bl	_DeleteRoute
	mov	x21, x0
	cbnz	x0, LBB0_13
; %bb.9:
Lloh12:
	adrp	x8, _route@GOTPAGE
Lloh13:
	ldr	x8, [x8, _route@GOTPAGEOFF]
	ldr	x9, [x20]
Lloh14:
	ldr	x8, [x8]
	add	x0, x9, x8, lsl #2
Lloh15:
	adrp	x8, _CmpRoute@GOTPAGE
Lloh16:
	ldr	x8, [x8, _CmpRoute@GOTPAGEOFF]
Lloh17:
	ldr	w1, [x8]
	mov	x2, x19
	bl	_RemoveListItem
	bl	_free
	b	LBB0_13
LBB0_10:
	ldr	w0, [x21, #4]
	bl	_strlen
	cbz	x0, LBB0_3
; %bb.11:
	ldr	w0, [x21, #4]
	add	x1, sp, #12
	bl	_InterfaceLuid
	cbz	x0, LBB0_15
; %bb.12:
	mov	x21, x0
LBB0_13:
	mov	x0, x19
	bl	_free
LBB0_14:
	mov	x0, x21
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_15:
	ldr	w8, [sp, #12]
	str	w8, [x19, #12]
	b	LBB0_3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_msg_add_route,8,3              ; @msg_add_route
	.comm	_ERROR_OUTOFMEMORY,8,3          ; @ERROR_OUTOFMEMORY
	.comm	_MIB_IPPROTO_NETMGMT,4,2        ; @MIB_IPPROTO_NETMGMT
	.comm	_route,8,3                      ; @route
	.comm	_CmpRoute,4,2                   ; @CmpRoute
	.no_dead_strip	_HandleRouteMessage
.subsections_via_symbols
