	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function phonet_rcv
_phonet_rcv:                            ## @phonet_rcv
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	%rsi, %rdi
	callq	_dev_net
	movq	%rax, %r14
	movq	%rbx, %rdi
	movl	$4, %esi
	callq	_pskb_pull
	testl	%eax, %eax
	je	LBB0_8
## %bb.1:
	movq	%rbx, %rdi
	callq	_pn_hdr
	movq	%rax, %rdi
	callq	_get_unaligned_be16
	cmpl	$2, %eax
	jl	LBB0_8
## %bb.2:
	addl	$-2, %eax
	cmpl	(%rbx), %eax
	jg	LBB0_8
## %bb.3:
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_pskb_trim
	testq	%rax, %rax
	jne	LBB0_8
## %bb.4:
	movq	%rbx, %rdi
	callq	_skb_reset_transport_header
	leaq	-32(%rbp), %r15
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_pn_skb_get_dst_sockaddr
	movq	%r15, %rdi
	callq	_pn_sockaddr_get_addr
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_phonet_address_lookup
	testq	%rax, %rax
	je	LBB0_5
LBB0_8:
	movq	%rbx, %rdi
	callq	_kfree_skb
	movq	_NET_RX_DROP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	leaq	-32(%rbp), %rsi
	movq	%r14, %rdi
	callq	_pn_find_sock_by_sa
	testq	%rax, %rax
	je	LBB0_6
## %bb.10:
	movq	%rax, %rdi
	movq	%rbx, %rsi
	xorl	%edx, %edx
	callq	_sk_receive_skb
	jmp	LBB0_9
LBB0_6:
	movq	%rbx, %rdi
	callq	_can_respond
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movq	%rbx, %rdi
	callq	_send_obj_unreachable
	movq	%rbx, %rdi
	callq	_send_reset_indications
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_NET_RX_DROP,4,2                ## @NET_RX_DROP
	.no_dead_strip	_phonet_rcv
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function phonet_rcv
_phonet_rcv:                            ; @phonet_rcv
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #48
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	mov	x0, x1
	bl	_dev_net
	mov	x20, x0
	mov	x0, x19
	mov	w1, #4
	bl	_pskb_pull
	cbz	w0, LBB0_5
; %bb.1:
	mov	x0, x19
	bl	_pn_hdr
	bl	_get_unaligned_be16
	subs	w1, w0, #2
	b.lt	LBB0_5
; %bb.2:
	ldr	w8, [x19]
	cmp	w1, w8
	b.gt	LBB0_5
; %bb.3:
	mov	x0, x19
	bl	_pskb_trim
	cbnz	x0, LBB0_5
; %bb.4:
	mov	x0, x19
	bl	_skb_reset_transport_header
	add	x1, sp, #8
	mov	x0, x19
	bl	_pn_skb_get_dst_sockaddr
	add	x0, sp, #8
	bl	_pn_sockaddr_get_addr
	mov	x1, x0
	mov	x0, x20
	bl	_phonet_address_lookup
	cbz	x0, LBB0_7
LBB0_5:
	mov	x0, x19
	bl	_kfree_skb
Lloh0:
	adrp	x8, _NET_RX_DROP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NET_RX_DROP@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
LBB0_6:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #48
	ret
LBB0_7:
	add	x1, sp, #8
	mov	x0, x20
	bl	_pn_find_sock_by_sa
	cbz	x0, LBB0_9
; %bb.8:
	mov	x1, x19
	mov	w2, #0
	bl	_sk_receive_skb
	b	LBB0_6
LBB0_9:
	mov	x0, x19
	bl	_can_respond
	cbz	x0, LBB0_5
; %bb.10:
	mov	x0, x19
	bl	_send_obj_unreachable
	mov	x0, x19
	bl	_send_reset_indications
	b	LBB0_5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_NET_RX_DROP,4,2                ; @NET_RX_DROP
	.no_dead_strip	_phonet_rcv
.subsections_via_symbols
