	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_L3RecvIp                       ## -- Begin function L3RecvIp
	.p2align	4, 0x90
_L3RecvIp:                              ## @L3RecvIp
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	$0, -60(%rbp)
	testq	%rdi, %rdi
	je	LBB0_20
## %bb.1:
	movq	%rsi, %r12
	testq	%rsi, %rsi
	je	LBB0_20
## %bb.2:
	movl	%edx, %ebx
	movq	%rdi, %r14
	movq	24(%r12), %r15
	movq	%r15, %rdi
	callq	_IPV4_GET_HEADER_LEN
	movl	%eax, %r13d
	movq	%r15, %rdi
	callq	_IpCheckChecksum
	testl	%eax, %eax
	je	LBB0_13
## %bb.3:
	movq	(%r15), %rsi
	movl	48(%r12), %edx
	movq	%r14, %rdi
	callq	_L3KnownArp
	cmpq	$0, 40(%r12)
	je	LBB0_4
LBB0_13:
	movq	16(%r12), %rdi
	callq	_Free
	movq	%r12, %rdi
	callq	_FreePacket
LBB0_20:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	shll	$2, %r13d
	movl	8(%r15), %ecx
	leal	-1(%rcx), %edx
	xorl	%eax, %eax
	testl	%ecx, %ecx
	cmovgl	%edx, %eax
	movq	16(%r15), %rsi
	testl	%eax, %eax
	jne	LBB0_9
## %bb.5:
	cmpq	(%r14), %rsi
	jne	LBB0_6
LBB0_9:
	movq	24(%r12), %rcx
	movl	%eax, 8(%rcx)
	movl	8(%r14), %edi
	leaq	-60(%rbp), %rdx
	callq	_L3GetNextIf
	testl	%ebx, %ebx
	jne	LBB0_14
## %bb.10:
	testq	%rax, %rax
	jne	LBB0_14
## %bb.11:
	movl	(%r12), %edi
	movq	%r13, %rbx
	addl	$144, %r13d
	movl	%r13d, -56(%rbp)                ## 4-byte Spill
	subl	%ebx, %edi
	leal	8(%rbx), %esi
	callq	_MIN
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movl	%r13d, %edi
	callq	_ZeroMalloc
	movq	%rax, %r13
	leaq	16(%rax), %rdi
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	addq	$272, %rax                      ## imm = 0x110
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	leaq	544(%r13), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movl	$4, %esi
	callq	_IPV4_SET_VERSION
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	$16, %esi
	callq	_IPV4_SET_HEADER_LEN
	addl	$140, %ebx
	movl	%ebx, %edi
	callq	_Endian16
	movq	%rax, 72(%r13)
	movl	$255, 24(%r13)
	movq	_IP_PROTO_ICMPV4@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 64(%r13)
	movq	(%r14), %rax
	movq	%rax, 16(%r13)
	movq	(%r15), %rax
	movq	%rax, 32(%r13)
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	$64, %esi
	callq	_IpChecksum
	movq	%rax, 48(%r13)
	movl	$3, 296(%r13)
	jmp	LBB0_7
LBB0_14:
	testq	%rax, %rax
	je	LBB0_13
## %bb.15:
	movq	16(%r15), %rcx
	cmpq	(%rax), %rcx
	jne	LBB0_19
## %bb.16:
	movq	8(%r12), %rax
	movq	_L4_ICMPV4@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_13
## %bb.17:
	movq	32(%r12), %rbx
	movslq	24(%rbx), %rax
	movq	_ICMP_TYPE_ECHO_REQUEST@GOTPCREL(%rip), %rcx
	cmpq	%rax, (%rcx)
	jne	LBB0_13
## %bb.18:
	movq	24(%r12), %rax
	movslq	16(%rax), %rcx
	movslq	(%rax), %rdx
	movq	%rdx, 16(%rax)
	movq	%rcx, (%rax)
	movl	$255, 8(%r15)
	movq	40(%r15), %rax
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%rax)
	movq	$0, 32(%rbx)
	movq	_ICMP_TYPE_ECHO_RESPONSE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 24(%rbx)
	movl	(%r12), %esi
	subl	%r13d, %esi
	addl	$-4, %esi
	movq	%rbx, %rdi
	callq	_IpChecksum
	movq	%rax, 32(%rbx)
	movl	8(%r14), %edi
	movq	16(%r15), %rsi
	leaq	-60(%rbp), %rdx
	callq	_L3GetNextIf
	testq	%rax, %rax
	je	LBB0_13
LBB0_19:
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	$0, 32(%r15)
	movq	%r15, %rdi
	movl	%r13d, %esi
	callq	_IpChecksum
	movq	%rax, 32(%r15)
	movl	$24, %edi
	callq	_ZeroMalloc
	movq	%rax, %rbx
	xorl	%eax, %eax
	callq	_Tick64
	movq	_IP_WAIT_FOR_ARP_TIMEOUT@GOTPCREL(%rip), %rcx
	addq	(%rcx), %rax
	movq	%rax, 16(%rbx)
	movl	-60(%rbp), %eax
	movl	%eax, (%rbx)
	movq	%r12, 8(%rbx)
	movq	%r14, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movq	%rbx, %rdx
	callq	_L3StoreIpPacketToIf
	jmp	LBB0_20
LBB0_6:
	movl	(%r12), %edi
	movq	%r13, %rbx
	addl	$144, %r13d
	movl	%r13d, -56(%rbp)                ## 4-byte Spill
	subl	%ebx, %edi
	leal	8(%rbx), %esi
	callq	_MIN
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movl	%r13d, %edi
	callq	_ZeroMalloc
	movq	%rax, %r13
	leaq	16(%rax), %rdi
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	addq	$272, %rax                      ## imm = 0x110
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	leaq	544(%r13), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movl	$4, %esi
	callq	_IPV4_SET_VERSION
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	$16, %esi
	callq	_IPV4_SET_HEADER_LEN
	addl	$140, %ebx
	movl	%ebx, %edi
	callq	_Endian16
	movq	%rax, 72(%r13)
	movl	$255, 24(%r13)
	movq	_IP_PROTO_ICMPV4@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 64(%r13)
	movq	(%r14), %rax
	movq	%rax, 16(%r13)
	movq	(%r15), %rax
	movq	%rax, 32(%r13)
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	$64, %esi
	callq	_IpChecksum
	movq	%rax, 48(%r13)
	movl	$11, 296(%r13)
LBB0_7:
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movq	%r15, %rsi
	movl	-52(%rbp), %ebx                 ## 4-byte Reload
	movl	%ebx, %edx
	callq	_Copy
	addl	$68, %ebx
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	movl	%ebx, %esi
	callq	_IpChecksum
	movq	%rax, 304(%r13)
	movq	$8, 48(%r13)
	movq	%r13, %rdi
	movl	-56(%rbp), %esi                 ## 4-byte Reload
	callq	_ParsePacket
	testq	%rax, %rax
	je	LBB0_8
## %bb.12:
	movq	%r14, %rdi
	movq	%rax, %rsi
	movl	$1, %edx
	callq	_L3RecvIp
	jmp	LBB0_13
LBB0_8:
	movq	%r13, %rdi
	callq	_Free
	jmp	LBB0_13
	.cfi_endproc
                                        ## -- End function
	.comm	_IP_PROTO_ICMPV4,8,3            ## @IP_PROTO_ICMPV4
	.comm	_L4_ICMPV4,8,3                  ## @L4_ICMPV4
	.comm	_ICMP_TYPE_ECHO_REQUEST,8,3     ## @ICMP_TYPE_ECHO_REQUEST
	.comm	_ICMP_TYPE_ECHO_RESPONSE,8,3    ## @ICMP_TYPE_ECHO_RESPONSE
	.comm	_IP_WAIT_FOR_ARP_TIMEOUT,8,3    ## @IP_WAIT_FOR_ARP_TIMEOUT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function L3RecvIp
lCPI0_0:
	.long	8                               ; 0x8
	.long	0                               ; 0x0
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_L3RecvIp
	.p2align	2
_L3RecvIp:                              ; @L3RecvIp
	.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
	str	wzr, [sp, #12]
	cbz	x0, LBB0_5
; %bb.1:
	mov	x19, x1
	cbz	x1, LBB0_5
; %bb.2:
	mov	x23, x2
	mov	x20, x0
	ldr	x21, [x19, #24]
	mov	x0, x21
	bl	_IPV4_GET_HEADER_LEN
	mov	x22, x0
	mov	x0, x21
	bl	_IpCheckChecksum
	cbz	w0, LBB0_4
; %bb.3:
	ldr	x1, [x21]
	ldr	w2, [x19, #48]
	mov	x0, x20
	bl	_L3KnownArp
	ldr	x8, [x19, #40]
	cbz	x8, LBB0_6
LBB0_4:
	ldr	x0, [x19, #16]
	bl	_Free
	mov	x0, x19
	bl	_FreePacket
LBB0_5:
	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_6:
	lsl	w22, w22, #2
	ldr	w8, [x21, #8]
	sub	w9, w8, #1
	cmp	w8, #0
	csel	w8, w9, wzr, gt
	ldr	x1, [x21, #16]
	cbnz	w8, LBB0_8
; %bb.7:
	ldr	x9, [x20]
	cmp	x1, x9
	b.ne	LBB0_17
LBB0_8:
	ldr	x9, [x19, #24]
	str	w8, [x9, #8]
	ldr	w0, [x20, #8]
	add	x2, sp, #12
	bl	_L3GetNextIf
	mov	x24, x0
	cbnz	w23, LBB0_11
; %bb.9:
	cbnz	x24, LBB0_11
; %bb.10:
	ldr	w8, [x19]
	add	w23, w22, #144
	sub	w0, w8, w22
	add	w1, w22, #8
	bl	_MIN
	mov	x25, x0
	mov	x0, x23
	bl	_ZeroMalloc
	mov	x24, x0
	add	x26, x0, #16
	add	x27, x0, #272
	add	x28, x0, #544
	mov	x0, x26
	mov	w1, #4
	bl	_IPV4_SET_VERSION
	mov	x0, x26
	mov	w1, #16
	bl	_IPV4_SET_HEADER_LEN
	add	w0, w22, #140
	bl	_Endian16
	mov	w8, #255
	str	w8, [x24, #24]
Lloh0:
	adrp	x8, _IP_PROTO_ICMPV4@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IP_PROTO_ICMPV4@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stp	x8, x0, [x24, #64]
	ldr	x8, [x20]
	str	x8, [x24, #16]
	ldr	x8, [x21]
	str	x8, [x24, #32]
	mov	x0, x26
	mov	w1, #64
	bl	_IpChecksum
	str	x0, [x24, #48]
	mov	w8, #3
	b	LBB0_18
LBB0_11:
	cbz	x24, LBB0_4
; %bb.12:
	ldr	x8, [x21, #16]
	ldr	x9, [x24]
	cmp	x8, x9
	b.ne	LBB0_16
; %bb.13:
	ldr	x8, [x19, #8]
Lloh3:
	adrp	x9, _L4_ICMPV4@GOTPAGE
Lloh4:
	ldr	x9, [x9, _L4_ICMPV4@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.14:
	ldr	x23, [x19, #32]
	ldrsw	x8, [x23, #24]
Lloh6:
	adrp	x9, _ICMP_TYPE_ECHO_REQUEST@GOTPAGE
Lloh7:
	ldr	x9, [x9, _ICMP_TYPE_ECHO_REQUEST@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_4
; %bb.15:
	ldr	x8, [x19, #24]
	ldrsw	x9, [x8, #16]
	ldrsw	x10, [x8]
	str	x10, [x8, #16]
	str	x9, [x8]
	mov	w8, #255
	str	w8, [x21, #8]
	ldr	x8, [x21, #40]
	stp	xzr, xzr, [x8]
Lloh9:
	adrp	x8, _ICMP_TYPE_ECHO_RESPONSE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ICMP_TYPE_ECHO_RESPONSE@GOTPAGEOFF]
	str	xzr, [x23, #32]
Lloh11:
	ldr	x8, [x8]
	str	w8, [x23, #24]
	ldr	w8, [x19]
	sub	w8, w8, w22
	sub	w1, w8, #4
	mov	x0, x23
	bl	_IpChecksum
	str	x0, [x23, #32]
	ldr	w0, [x20, #8]
	ldr	x1, [x21, #16]
	add	x2, sp, #12
	bl	_L3GetNextIf
	mov	x24, x0
	cbz	x0, LBB0_4
LBB0_16:
	str	xzr, [x21, #32]
	mov	x0, x21
	mov	x1, x22
	bl	_IpChecksum
	str	x0, [x21, #32]
	mov	w0, #24
	bl	_ZeroMalloc
	mov	x21, x0
	bl	_Tick64
Lloh12:
	adrp	x8, _IP_WAIT_FOR_ARP_TIMEOUT@GOTPAGE
Lloh13:
	ldr	x8, [x8, _IP_WAIT_FOR_ARP_TIMEOUT@GOTPAGEOFF]
Lloh14:
	ldr	x8, [x8]
	add	x8, x8, x0
	ldr	w9, [sp, #12]
	str	w9, [x21]
	stp	x19, x8, [x21, #8]
	mov	x0, x20
	mov	x1, x24
	mov	x2, x21
	bl	_L3StoreIpPacketToIf
	b	LBB0_5
LBB0_17:
	ldr	w8, [x19]
	add	w23, w22, #144
	sub	w0, w8, w22
	add	w1, w22, #8
	bl	_MIN
	mov	x25, x0
	mov	x0, x23
	bl	_ZeroMalloc
	mov	x24, x0
	add	x26, x0, #16
	add	x27, x0, #272
	add	x28, x0, #544
	mov	x0, x26
	mov	w1, #4
	bl	_IPV4_SET_VERSION
	mov	x0, x26
	mov	w1, #16
	bl	_IPV4_SET_HEADER_LEN
	add	w0, w22, #140
	bl	_Endian16
	mov	w8, #255
	str	w8, [x24, #24]
Lloh15:
	adrp	x8, _IP_PROTO_ICMPV4@GOTPAGE
Lloh16:
	ldr	x8, [x8, _IP_PROTO_ICMPV4@GOTPAGEOFF]
Lloh17:
	ldr	x8, [x8]
	stp	x8, x0, [x24, #64]
	ldr	x8, [x20]
	str	x8, [x24, #16]
	ldr	x8, [x21]
	str	x8, [x24, #32]
	mov	x0, x26
	mov	w1, #64
	bl	_IpChecksum
	str	x0, [x24, #48]
	mov	w8, #11
LBB0_18:
	str	w8, [x24, #296]
	mov	x0, x28
	mov	x1, x21
	mov	x2, x25
	bl	_Copy
	add	w1, w25, #68
	mov	x0, x27
	bl	_IpChecksum
	str	x0, [x24, #304]
Lloh18:
	adrp	x8, lCPI0_0@PAGE
Lloh19:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	str	d0, [x24, #48]
	mov	x0, x24
	mov	x1, x23
	bl	_ParsePacket
	cbz	x0, LBB0_20
; %bb.19:
	mov	x1, x0
	mov	x0, x20
	mov	w2, #1
	bl	_L3RecvIp
	b	LBB0_4
LBB0_20:
	mov	x0, x24
	bl	_Free
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdr	Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_IP_PROTO_ICMPV4,8,3            ; @IP_PROTO_ICMPV4
	.comm	_L4_ICMPV4,8,3                  ; @L4_ICMPV4
	.comm	_ICMP_TYPE_ECHO_REQUEST,8,3     ; @ICMP_TYPE_ECHO_REQUEST
	.comm	_ICMP_TYPE_ECHO_RESPONSE,8,3    ; @ICMP_TYPE_ECHO_RESPONSE
	.comm	_IP_WAIT_FOR_ARP_TIMEOUT,8,3    ; @IP_WAIT_FOR_ARP_TIMEOUT
.subsections_via_symbols
