	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ipxrtr_route_packet            ## -- Begin function ipxrtr_route_packet
	.p2align	4, 0x90
_ipxrtr_route_packet:                   ## @ipxrtr_route_packet
	.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
	subq	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, -56(%rbp)                 ## 4-byte Spill
	movq	%rcx, %r12
	movq	%rdx, %r15
	movq	%rsi, %rbx
	movq	%rdi, %r13
	callq	_ipx_sk
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	%rbx, -88(%rbp)                 ## 8-byte Spill
	movq	8(%rbx), %rdi
	testq	%rdi, %rdi
	jne	LBB0_3
## %bb.1:
	movq	_ipx_primary_net@GOTPCREL(%rip), %rax
	movq	(%rax), %r14
	testq	%r14, %r14
	je	LBB0_3
## %bb.2:
	movq	%r15, -96(%rbp)                 ## 8-byte Spill
	movq	24(%r14), %rax
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, 8(%rcx)
	xorl	%ebx, %ebx
	jmp	LBB0_5
LBB0_3:
	callq	_ipxrtr_lookup
	movq	%rax, %rbx
	movq	_ENETUNREACH@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	subl	(%rax), %ecx
	movl	%ecx, -44(%rbp)
	testq	%rbx, %rbx
	je	LBB0_20
## %bb.4:
	movq	%r15, -96(%rbp)                 ## 8-byte Spill
	movq	16(%rbx), %r14
LBB0_5:
	movq	%r14, %rdi
	callq	_ipxitf_hold
	movslq	(%r14), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	leaq	(%r12,%rax), %rsi
	addq	$40, %rsi
	leaq	-44(%rbp), %rcx
	movq	%r13, %rdi
	movl	-56(%rbp), %edx                 ## 4-byte Reload
	callq	_sock_alloc_send_skb
	testq	%rax, %rax
	je	LBB0_18
## %bb.6:
	movq	%rax, %r15
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movq	%r12, %r14
	addq	$40, %r12
	movq	%rax, %rdi
	movq	-72(%rbp), %rsi                 ## 8-byte Reload
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_skb_reserve
	movq	%r13, -72(%rbp)                 ## 8-byte Spill
	movq	%r13, (%r15)
	movq	%r15, %rdi
	callq	_skb_reset_network_header
	movq	%r15, %rdi
	callq	_skb_reset_transport_header
	movl	$40, %esi
	movq	%r15, %rdi
	callq	_skb_put
	movq	%r15, %rdi
	callq	_ipx_hdr
	movq	%rax, %r13
	movl	%r12d, %edi
	callq	_htons
	movq	%rax, 32(%r13)
	movq	%r15, %rdi
	callq	_IPX_SKB_CB
	movq	$0, 24(%rax)
	movq	-88(%rbp), %rax                 ## 8-byte Reload
	movl	16(%rax), %eax
	movl	%eax, 24(%r13)
	movq	%r15, %rdi
	callq	_IPX_SKB_CB
	movl	$-1, 16(%rax)
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	movl	(%rbx), %edi
	callq	_ntohs
	movl	%eax, -44(%rbp)
	andl	$-2, %eax
	cmpl	$1106, %eax                     ## imm = 0x452
	movq	%r12, -104(%rbp)                ## 8-byte Spill
	jne	LBB0_8
## %bb.7:
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	24(%rbx), %r12
	movq	%r15, %rdi
	callq	_IPX_SKB_CB
	movq	%r12, 8(%rax)
	leaq	16(%rbx), %rax
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_9
LBB0_8:
	movq	8(%rbx), %rax
	movq	8(%rax), %rbx
	movq	%r15, %rdi
	callq	_IPX_SKB_CB
	movq	%rbx, 8(%rax)
	movq	-80(%rbp), %rbx                 ## 8-byte Reload
	movq	8(%rbx), %rax
LBB0_9:
	movq	%r14, %r12
	movl	20(%r13), %edi
	movl	(%rax), %esi
	movq	_IPX_NODE_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_memcpy
	movl	(%rbx), %eax
	movl	%eax, 16(%r13)
	movq	-88(%rbp), %rbx                 ## 8-byte Reload
	movq	8(%rbx), %r14
	movq	%r15, %rdi
	callq	_IPX_SKB_CB
	movq	%r14, (%rax)
	movl	(%r13), %edi
	movl	4(%rbx), %esi
	movq	_IPX_NODE_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_memcpy
	movl	(%rbx), %eax
	movl	%eax, 4(%r13)
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_skb_put
	movl	%eax, %edi
	movq	-96(%rbp), %rsi                 ## 8-byte Reload
	movq	%r12, %rdx
	callq	_memcpy_fromiovec
	movl	%eax, -44(%rbp)
	testl	%eax, %eax
	je	LBB0_11
## %bb.10:
	movq	%r15, %rdi
	callq	_kfree_skb
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	jmp	LBB0_18
LBB0_11:
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	cmpq	$0, (%rax)
	je	LBB0_12
LBB0_13:
	movl	$65535, %edi                    ## imm = 0xFFFF
	callq	_htons
	jmp	LBB0_15
LBB0_12:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	8(%rax), %rbx
	movq	_IPX_FRAME_8023@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_htons
	cmpq	%rax, %rbx
	je	LBB0_13
## %bb.14:
	movq	%r13, %rdi
	movq	-104(%rbp), %rsi                ## 8-byte Reload
	callq	_ipx_cksum
LBB0_15:
	movq	%rax, 8(%r13)
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	testq	%rax, %rax
	je	LBB0_17
## %bb.16:
	cmpq	$0, 8(%rax)
	cmovneq	%rax, %r13
LBB0_17:
	movl	(%r13), %edx
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_ipxitf_send
	movl	%eax, -44(%rbp)
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
LBB0_18:
	movq	%r14, %rdi
	callq	_ipxitf_put
	testq	%rbx, %rbx
	je	LBB0_20
## %bb.19:
	movq	%rbx, %rdi
	callq	_ipxrtr_put
LBB0_20:
	movl	-44(%rbp), %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ipx_primary_net,8,3            ## @ipx_primary_net
	.comm	_ENETUNREACH,4,2                ## @ENETUNREACH
	.comm	_IPX_NODE_LEN,4,2               ## @IPX_NODE_LEN
	.comm	_IPX_FRAME_8023,4,2             ## @IPX_FRAME_8023
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ipxrtr_route_packet            ; -- Begin function ipxrtr_route_packet
	.p2align	2
_ipxrtr_route_packet:                   ; @ipxrtr_route_packet
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x22, x4
	mov	x23, x3
	mov	x24, x2
	mov	x25, x1
	mov	x21, x0
	bl	_ipx_sk
	mov	x27, x0
	ldr	x0, [x25, #8]
Lloh0:
	adrp	x8, _ipx_primary_net@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ipx_primary_net@GOTPAGEOFF]
Lloh2:
	ldr	x20, [x8]
	cmp	x0, #0
	ccmp	x20, #0, #4, eq
	b.ne	LBB0_3
; %bb.1:
	bl	_ipxrtr_lookup
Lloh3:
	adrp	x8, _ENETUNREACH@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENETUNREACH@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w8, w8
	str	w8, [sp, #12]
	cbz	x0, LBB0_16
; %bb.2:
	mov	x19, x0
	ldr	x20, [x0, #16]
	b	LBB0_4
LBB0_3:
	mov	x19, #0
	ldr	x8, [x20, #24]
	str	x8, [x25, #8]
LBB0_4:
	mov	x0, x20
	bl	_ipxitf_hold
	ldrsw	x28, [x20]
	add	x26, x23, #40
	add	x1, x26, x28
	add	x3, sp, #12
	mov	x0, x21
	mov	x2, x22
	bl	_sock_alloc_send_skb
	cbz	x0, LBB0_14
; %bb.5:
	mov	x22, x0
	mov	x1, x28
	bl	_skb_reserve
	str	x21, [x22]
	mov	x0, x22
	bl	_skb_reset_network_header
	mov	x0, x22
	bl	_skb_reset_transport_header
	mov	x0, x22
	mov	w1, #40
	bl	_skb_put
	mov	x0, x22
	bl	_ipx_hdr
	mov	x28, x0
	mov	x0, x26
	bl	_htons
	str	x0, [x28, #32]
	mov	x0, x22
	bl	_IPX_SKB_CB
	str	xzr, [x0, #24]
	ldr	w8, [x25, #16]
	str	w8, [x28, #24]
	mov	x0, x22
	bl	_IPX_SKB_CB
	mov	w8, #-1
	str	w8, [x0, #16]
	ldr	w0, [x27]
	bl	_ntohs
	str	w0, [sp, #12]
	and	w8, w0, #0xfffffffe
	cmp	w8, #1106
	str	x26, [sp]                       ; 8-byte Folded Spill
	mov	x26, x24
	b.ne	LBB0_7
; %bb.6:
	ldr	x24, [x20, #24]
	mov	x0, x22
	bl	_IPX_SKB_CB
	str	x24, [x0, #8]
	add	x8, x20, #16
	b	LBB0_8
LBB0_7:
	ldr	x8, [x27, #8]
	ldr	x24, [x8, #8]
	mov	x0, x22
	bl	_IPX_SKB_CB
	str	x24, [x0, #8]
	ldr	x8, [x27, #8]
LBB0_8:
	ldr	w0, [x28, #20]
	ldr	w1, [x8]
Lloh6:
	adrp	x24, _IPX_NODE_LEN@GOTPAGE
Lloh7:
	ldr	x24, [x24, _IPX_NODE_LEN@GOTPAGEOFF]
	ldr	w2, [x24]
	bl	_memcpy
	ldr	w8, [x27]
	str	w8, [x28, #16]
	ldr	x27, [x25, #8]
	mov	x0, x22
	bl	_IPX_SKB_CB
	str	x27, [x0]
	ldr	w0, [x28]
	ldr	w1, [x25, #4]
	ldr	w2, [x24]
	bl	_memcpy
	ldr	w8, [x25]
	str	w8, [x28, #4]
	mov	x0, x22
	mov	x1, x23
	bl	_skb_put
	mov	x1, x26
	mov	x2, x23
	bl	_memcpy_fromiovec
	str	w0, [sp, #12]
	cbz	w0, LBB0_10
; %bb.9:
	mov	x0, x22
	bl	_kfree_skb
	b	LBB0_14
LBB0_10:
	ldr	x8, [x21]
	cbz	x8, LBB0_17
LBB0_11:
	mov	w0, #65535
	bl	_htons
	str	x0, [x28, #8]
	cbz	x19, LBB0_13
LBB0_12:
	ldr	x8, [x19, #8]
	cmp	x8, #0
	csel	x28, x28, x19, eq
LBB0_13:
	ldr	w2, [x28]
	mov	x0, x20
	mov	x1, x22
	bl	_ipxitf_send
	str	w0, [sp, #12]
LBB0_14:
	mov	x0, x20
	bl	_ipxitf_put
	cbz	x19, LBB0_16
; %bb.15:
	mov	x0, x19
	bl	_ipxrtr_put
LBB0_16:
	ldr	w0, [sp, #12]
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_17:
	ldr	x21, [x20, #8]
Lloh8:
	adrp	x8, _IPX_FRAME_8023@GOTPAGE
Lloh9:
	ldr	x8, [x8, _IPX_FRAME_8023@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	bl	_htons
	cmp	x21, x0
	b.eq	LBB0_11
; %bb.18:
	mov	x0, x28
	ldr	x1, [sp]                        ; 8-byte Folded Reload
	bl	_ipx_cksum
	str	x0, [x28, #8]
	cbnz	x19, LBB0_12
	b	LBB0_13
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_ipx_primary_net,8,3            ; @ipx_primary_net
	.comm	_ENETUNREACH,4,2                ; @ENETUNREACH
	.comm	_IPX_NODE_LEN,4,2               ; @IPX_NODE_LEN
	.comm	_IPX_FRAME_8023,4,2             ; @IPX_FRAME_8023
.subsections_via_symbols
