	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ipmr_get_route                 ## -- Begin function ipmr_get_route
	.p2align	4, 0x90
_ipmr_get_route:                        ## @ipmr_get_route
	.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
	movl	%ecx, %r13d
	movq	%rdx, %r12
	movq	%rsi, %r15
	movq	%rdi, %rbx
	movq	%rsi, %rdi
	callq	_skb_rtable
	movq	%rax, %r14
	movq	_RT_TABLE_DEFAULT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_ipmr_get_table
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	%rax, %rbx
	movq	_mrt_lock@GOTPCREL(%rip), %rdi
	callq	_read_lock
	movl	(%r14), %edx
	movl	4(%r14), %esi
	movq	%rbx, %rdi
	callq	_ipmr_cache_find
	testq	%rax, %rax
	je	LBB0_4
## %bb.12:
	testl	%r13d, %r13d
	jne	LBB0_15
## %bb.13:
	movq	_RTM_F_NOTIFY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%r12)
	je	LBB0_15
## %bb.14:
	movq	_MFC_NOTIFY@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	%ecx, (%rax)
LBB0_15:
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movq	%rax, %rdx
	movq	%r12, %rcx
	callq	___ipmr_fill_mroute
LBB0_16:
	movl	%eax, %ebx
	movq	_mrt_lock@GOTPCREL(%rip), %rdi
	callq	_read_unlock
	movl	%ebx, %eax
	jmp	LBB0_17
LBB0_1:
	movq	_ENOENT@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
LBB0_4:
	testl	%r13d, %r13d
	je	LBB0_6
## %bb.5:
	movq	_mrt_lock@GOTPCREL(%rip), %rdi
	callq	_read_unlock
	movq	_EAGAIN@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
LBB0_6:
	movq	(%r15), %rsi
	testq	%rsi, %rsi
	je	LBB0_8
## %bb.7:
	movq	%rbx, %rdi
	callq	_ipmr_find_vif
	testl	%eax, %eax
	js	LBB0_8
## %bb.9:
	movl	%eax, %r12d
	movq	_GFP_ATOMIC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_skb_clone
	testq	%rax, %rax
	je	LBB0_10
## %bb.11:
	movq	%rax, %r15
	movq	%rax, %rdi
	movl	$24, %esi
	callq	_skb_push
	movq	%r15, %rdi
	callq	_skb_reset_network_header
	movq	%r15, %rdi
	callq	_ip_hdr
	movl	$6, (%rax)
	movl	4(%r14), %ecx
	movl	%ecx, 20(%rax)
	movl	(%r14), %ecx
	movl	%ecx, 16(%rax)
	movq	$0, 8(%rax)
	movq	%rbx, %rdi
	movl	%r12d, %esi
	movq	%r15, %rdx
	callq	_ipmr_cache_unresolved
	jmp	LBB0_16
LBB0_8:
	movq	_mrt_lock@GOTPCREL(%rip), %rdi
	callq	_read_unlock
	movq	_ENODEV@GOTPCREL(%rip), %rcx
	jmp	LBB0_2
LBB0_10:
	movq	_mrt_lock@GOTPCREL(%rip), %rdi
	callq	_read_unlock
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
LBB0_2:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_17:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RT_TABLE_DEFAULT,4,2           ## @RT_TABLE_DEFAULT
	.comm	_ENOENT,4,2                     ## @ENOENT
	.comm	_mrt_lock,4,2                   ## @mrt_lock
	.comm	_EAGAIN,4,2                     ## @EAGAIN
	.comm	_ENODEV,4,2                     ## @ENODEV
	.comm	_GFP_ATOMIC,4,2                 ## @GFP_ATOMIC
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_RTM_F_NOTIFY,4,2               ## @RTM_F_NOTIFY
	.comm	_MFC_NOTIFY,4,2                 ## @MFC_NOTIFY
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ipmr_get_route                 ; -- Begin function ipmr_get_route
	.p2align	2
_ipmr_get_route:                        ; @ipmr_get_route
	.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	x23, x3
	mov	x22, x2
	mov	x21, x1
	mov	x19, x0
	mov	x0, x1
	bl	_skb_rtable
	mov	x20, x0
Lloh0:
	adrp	x8, _RT_TABLE_DEFAULT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RT_TABLE_DEFAULT@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_ipmr_get_table
	cbz	x0, LBB0_7
; %bb.1:
	mov	x19, x0
Lloh3:
	adrp	x0, _mrt_lock@GOTPAGE
Lloh4:
	ldr	x0, [x0, _mrt_lock@GOTPAGEOFF]
	bl	_read_lock
	ldp	w2, w1, [x20]
	mov	x0, x19
	bl	_ipmr_cache_find
	cbz	x0, LBB0_8
; %bb.2:
	mov	x2, x0
	cbnz	w23, LBB0_5
; %bb.3:
	ldr	w8, [x22]
Lloh5:
	adrp	x9, _RTM_F_NOTIFY@GOTPAGE
Lloh6:
	ldr	x9, [x9, _RTM_F_NOTIFY@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_5
; %bb.4:
Lloh8:
	adrp	x8, _MFC_NOTIFY@GOTPAGE
Lloh9:
	ldr	x8, [x8, _MFC_NOTIFY@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	ldr	w9, [x2]
	orr	w8, w9, w8
	str	w8, [x2]
LBB0_5:
	mov	x0, x19
	mov	x1, x21
	mov	x3, x22
	bl	___ipmr_fill_mroute
LBB0_6:
	mov	x19, x0
Lloh11:
	adrp	x0, _mrt_lock@GOTPAGE
Lloh12:
	ldr	x0, [x0, _mrt_lock@GOTPAGEOFF]
	bl	_read_unlock
	mov	x0, x19
	b	LBB0_17
LBB0_7:
Lloh13:
	adrp	x8, _ENOENT@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
	b	LBB0_16
LBB0_8:
	cbz	w23, LBB0_10
; %bb.9:
Lloh15:
	adrp	x0, _mrt_lock@GOTPAGE
Lloh16:
	ldr	x0, [x0, _mrt_lock@GOTPAGEOFF]
	bl	_read_unlock
Lloh17:
	adrp	x8, _EAGAIN@GOTPAGE
Lloh18:
	ldr	x8, [x8, _EAGAIN@GOTPAGEOFF]
	b	LBB0_16
LBB0_10:
	ldr	x1, [x21]
	cbz	x1, LBB0_14
; %bb.11:
	mov	x0, x19
	bl	_ipmr_find_vif
	tbnz	w0, #31, LBB0_14
; %bb.12:
	mov	x22, x0
Lloh19:
	adrp	x8, _GFP_ATOMIC@GOTPAGE
Lloh20:
	ldr	x8, [x8, _GFP_ATOMIC@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_skb_clone
	cbz	x0, LBB0_15
; %bb.13:
	mov	x21, x0
	mov	w1, #24
	bl	_skb_push
	mov	x0, x21
	bl	_skb_reset_network_header
	mov	x0, x21
	bl	_ip_hdr
	mov	w8, #6
	str	w8, [x0]
	ldr	d0, [x20]
	str	d0, [x0, #16]
	str	xzr, [x0, #8]
	mov	x0, x19
	mov	x1, x22
	mov	x2, x21
	bl	_ipmr_cache_unresolved
	b	LBB0_6
LBB0_14:
Lloh22:
	adrp	x0, _mrt_lock@GOTPAGE
Lloh23:
	ldr	x0, [x0, _mrt_lock@GOTPAGEOFF]
	bl	_read_unlock
Lloh24:
	adrp	x8, _ENODEV@GOTPAGE
Lloh25:
	ldr	x8, [x8, _ENODEV@GOTPAGEOFF]
	b	LBB0_16
LBB0_15:
Lloh26:
	adrp	x0, _mrt_lock@GOTPAGE
Lloh27:
	ldr	x0, [x0, _mrt_lock@GOTPAGEOFF]
	bl	_read_unlock
Lloh28:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh29:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_16:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_17:
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh24, Lloh25
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_RT_TABLE_DEFAULT,4,2           ; @RT_TABLE_DEFAULT
	.comm	_ENOENT,4,2                     ; @ENOENT
	.comm	_mrt_lock,4,2                   ; @mrt_lock
	.comm	_EAGAIN,4,2                     ; @EAGAIN
	.comm	_ENODEV,4,2                     ; @ENODEV
	.comm	_GFP_ATOMIC,4,2                 ; @GFP_ATOMIC
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_RTM_F_NOTIFY,4,2               ; @RTM_F_NOTIFY
	.comm	_MFC_NOTIFY,4,2                 ; @MFC_NOTIFY
.subsections_via_symbols
