Source/sources/com/google/appinventor/components/runtime/util/WebRTCNativeMgr.java
public void Poller() {
        /*
            r28 = this;
            r0 = r28
            boolean r0 = r0.keepPolling     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            r24 = r0
            if (r24 != 0) goto L_0x0009
        L_0x0008:
            return
        L_0x0009:
            java.lang.String r24 = "AppInvWebRTC"
            java.lang.String r25 = "Poller() Called"
            android.util.Log.d(r24, r25)     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            java.lang.String r24 = "AppInvWebRTC"
            java.lang.StringBuilder r25 = new java.lang.StringBuilder     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            r25.<init>()     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            java.lang.String r26 = "Poller: rendezvousServer2 = "
            java.lang.StringBuilder r25 = r25.append(r26)     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            r0 = r28
            java.lang.String r0 = r0.rendezvousServer2     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            r26 = r0
            java.lang.StringBuilder r25 = r25.append(r26)     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            java.lang.String r25 = r25.toString()     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            android.util.Log.d(r24, r25)     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            org.apache.http.impl.client.DefaultHttpClient r4 = new org.apache.http.impl.client.DefaultHttpClient     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            r4.<init>()     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            org.apache.http.client.methods.HttpGet r15 = new org.apache.http.client.methods.HttpGet     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            java.lang.StringBuilder r24 = new java.lang.StringBuilder     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            r24.<init>()     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            java.lang.String r25 = "http://"
            java.lang.StringBuilder r24 = r24.append(r25)     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            r0 = r28
            java.lang.String r0 = r0.rendezvousServer2     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            r25 = r0
            java.lang.StringBuilder r24 = r24.append(r25)     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            java.lang.String r25 = "/rendezvous2/"
            java.lang.StringBuilder r24 = r24.append(r25)     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            r0 = r28
            java.lang.String r0 = r0.rCode     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            r25 = r0
            java.lang.StringBuilder r24 = r24.append(r25)     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            java.lang.String r25 = "-s"
            java.lang.StringBuilder r24 = r24.append(r25)     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            java.lang.String r24 = r24.toString()     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            r0 = r24
            r15.<init>(r0)     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            org.apache.http.HttpResponse r16 = r4.execute(r15)     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            java.lang.StringBuilder r18 = new java.lang.StringBuilder     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            r18.<init>()     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            r13 = 0
            java.io.BufferedReader r14 = new java.io.BufferedReader     // Catch:{ all -> 0x033e }
            java.io.InputStreamReader r24 = new java.io.InputStreamReader     // Catch:{ all -> 0x033e }
            org.apache.http.HttpEntity r25 = r16.getEntity()     // Catch:{ all -> 0x033e }
            java.io.InputStream r25 = r25.getContent()     // Catch:{ all -> 0x033e }
            r24.<init>(r25)     // Catch:{ all -> 0x033e }
            r0 = r24
            r14.<init>(r0)     // Catch:{ all -> 0x033e }
            java.lang.String r10 = ""
        L_0x0089:
            java.lang.String r10 = r14.readLine()     // Catch:{ all -> 0x0095 }
            if (r10 == 0) goto L_0x00c0
            r0 = r18
            r0.append(r10)     // Catch:{ all -> 0x0095 }
            goto L_0x0089
        L_0x0095:
            r24 = move-exception
            r13 = r14
        L_0x0097:
            if (r13 == 0) goto L_0x009c
            r13.close()     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
        L_0x009c:
            throw r24     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
        L_0x009d:
            r5 = move-exception
            java.lang.String r24 = "AppInvWebRTC"
            java.lang.StringBuilder r25 = new java.lang.StringBuilder
            r25.<init>()
            java.lang.String r26 = "Caught IOException: "
            java.lang.StringBuilder r25 = r25.append(r26)
            java.lang.String r26 = r5.toString()
            java.lang.StringBuilder r25 = r25.append(r26)
            java.lang.String r25 = r25.toString()
            r0 = r24
            r1 = r25
            android.util.Log.e(r0, r1, r5)
            goto L_0x0008
        L_0x00c0:
            if (r14 == 0) goto L_0x00c5
            r14.close()     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
        L_0x00c5:
            r0 = r28
            boolean r0 = r0.keepPolling     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            r24 = r0
            if (r24 != 0) goto L_0x00f9
            java.lang.String r24 = "AppInvWebRTC"
            java.lang.String r25 = "keepPolling is false, we're done!"
            android.util.Log.d(r24, r25)     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            goto L_0x0008
        L_0x00d6:
            r5 = move-exception
            java.lang.String r24 = "AppInvWebRTC"
            java.lang.StringBuilder r25 = new java.lang.StringBuilder
            r25.<init>()
            java.lang.String r26 = "Caught JSONException: "
            java.lang.StringBuilder r25 = r25.append(r26)
            java.lang.String r26 = r5.toString()
            java.lang.StringBuilder r25 = r25.append(r26)
            java.lang.String r25 = r25.toString()
            r0 = r24
            r1 = r25
            android.util.Log.e(r0, r1, r5)
            goto L_0x0008
        L_0x00f9:
            java.lang.String r17 = r18.toString()     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            java.lang.String r24 = "AppInvWebRTC"
            java.lang.StringBuilder r25 = new java.lang.StringBuilder     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            r25.<init>()     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            java.lang.String r26 = "response = "
            java.lang.StringBuilder r25 = r25.append(r26)     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            r0 = r25
            r1 = r17
            java.lang.StringBuilder r25 = r0.append(r1)     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            java.lang.String r25 = r25.toString()     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            android.util.Log.d(r24, r25)     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            java.lang.String r24 = ""
            r0 = r17
            r1 = r24
            boolean r24 = r0.equals(r1)     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            if (r24 == 0) goto L_0x0151
            java.lang.String r24 = "AppInvWebRTC"
            java.lang.String r25 = "Received an empty response"
            android.util.Log.d(r24, r25)     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            goto L_0x0008
        L_0x012e:
            r5 = move-exception
            java.lang.String r24 = "AppInvWebRTC"
            java.lang.StringBuilder r25 = new java.lang.StringBuilder
            r25.<init>()
            java.lang.String r26 = "Caught Exception: "
            java.lang.StringBuilder r25 = r25.append(r26)
            java.lang.String r26 = r5.toString()
            java.lang.StringBuilder r25 = r25.append(r26)
            java.lang.String r25 = r25.toString()
            r0 = r24
            r1 = r25
            android.util.Log.e(r0, r1, r5)
            goto L_0x0008
        L_0x0151:
            org.json.JSONArray r9 = new org.json.JSONArray     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            r0 = r17
            r9.<init>(r0)     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            java.lang.String r24 = "AppInvWebRTC"
            java.lang.StringBuilder r25 = new java.lang.StringBuilder     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            r25.<init>()     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            java.lang.String r26 = "jsonArray.length() = "
            java.lang.StringBuilder r25 = r25.append(r26)     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            int r26 = r9.length()     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            java.lang.StringBuilder r25 = r25.append(r26)     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            java.lang.String r25 = r25.toString()     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            android.util.Log.d(r24, r25)     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            r7 = 0
        L_0x0175:
            int r24 = r9.length()     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            r0 = r24
            if (r7 >= r0) goto L_0x0335
            java.lang.String r24 = "AppInvWebRTC"
            java.lang.StringBuilder r25 = new java.lang.StringBuilder     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            r25.<init>()     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            java.lang.String r26 = "i = "
            java.lang.StringBuilder r25 = r25.append(r26)     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            r0 = r25
            java.lang.StringBuilder r25 = r0.append(r7)     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            java.lang.String r25 = r25.toString()     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            android.util.Log.d(r24, r25)     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            java.lang.String r24 = "AppInvWebRTC"
            java.lang.StringBuilder r25 = new java.lang.StringBuilder     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            r25.<init>()     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            java.lang.String r26 = "element = "
            java.lang.StringBuilder r25 = r25.append(r26)     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            java.lang.String r26 = r9.optString(r7)     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            java.lang.StringBuilder r25 = r25.append(r26)     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            java.lang.String r25 = r25.toString()     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            android.util.Log.d(r24, r25)     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            java.lang.Object r6 = r9.get(r7)     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            org.json.JSONObject r6 = (org.json.JSONObject) r6     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            r0 = r28
            boolean r0 = r0.haveOffer     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            r24 = r0
            if (r24 != 0) goto L_0x0272
            java.lang.String r24 = "offer"
            r0 = r24
            boolean r24 = r6.has(r0)     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            if (r24 != 0) goto L_0x01ce
            int r7 = r7 + 1
            goto L_0x0175
        L_0x01ce:
            java.lang.String r24 = "offer"
            r0 = r24
            java.lang.Object r12 = r6.get(r0)     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            org.json.JSONObject r12 = (org.json.JSONObject) r12     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            java.lang.String r24 = "sdp"
            r0 = r24
            java.lang.String r19 = r12.optString(r0)     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            java.lang.String r24 = "type"
            r0 = r24
            java.lang.String r23 = r12.optString(r0)     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            r24 = 1
            r0 = r24
            r1 = r28
            r1.haveOffer = r0     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            java.lang.String r24 = "AppInvWebRTC"
            java.lang.StringBuilder r25 = new java.lang.StringBuilder     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            r25.<init>()     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            java.lang.String r26 = "sdb = "
            java.lang.StringBuilder r25 = r25.append(r26)     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            r0 = r25
            r1 = r19
            java.lang.StringBuilder r25 = r0.append(r1)     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            java.lang.String r25 = r25.toString()     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            android.util.Log.d(r24, r25)     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            java.lang.String r24 = "AppInvWebRTC"
            java.lang.StringBuilder r25 = new java.lang.StringBuilder     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            r25.<init>()     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            java.lang.String r26 = "type = "
            java.lang.StringBuilder r25 = r25.append(r26)     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            r0 = r25
            r1 = r23
            java.lang.StringBuilder r25 = r0.append(r1)     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            java.lang.String r25 = r25.toString()     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            android.util.Log.d(r24, r25)     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            java.lang.String r24 = "AppInvWebRTC"
            java.lang.String r25 = "About to set remote offer"
            android.util.Log.d(r24, r25)     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            java.lang.String r24 = "AppInvWebRTC"
            java.lang.String r25 = "Got offer, about to set remote description (maincode)"
            android.util.Log.d(r24, r25)     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            r0 = r28
            org.webrtc.PeerConnection r0 = r0.peerConnection     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            r24 = r0
            r0 = r28
            org.webrtc.SdpObserver r0 = r0.sdpObserver     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            r25 = r0
            org.webrtc.SessionDescription r26 = new org.webrtc.SessionDescription     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            org.webrtc.SessionDescription$Type r27 = org.webrtc.SessionDescription.Type.OFFER     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            r0 = r26
            r1 = r27
            r2 = r19
            r0.<init>(r1, r2)     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            r24.setRemoteDescription(r25, r26)     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            r0 = r28
            org.webrtc.PeerConnection r0 = r0.peerConnection     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            r24 = r0
            r0 = r28
            org.webrtc.SdpObserver r0 = r0.sdpObserver     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            r25 = r0
            org.webrtc.MediaConstraints r26 = new org.webrtc.MediaConstraints     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            r26.<init>()     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            r24.createAnswer(r25, r26)     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            java.lang.String r24 = "AppInvWebRTC"
            java.lang.String r25 = "createAnswer returned"
            android.util.Log.d(r24, r25)     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            r7 = -1
        L_0x026e:
            int r7 = r7 + 1
            goto L_0x0175
        L_0x0272:
            java.lang.String r24 = "nonce"
            r0 = r24
            boolean r24 = r6.has(r0)     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            if (r24 == 0) goto L_0x026e
            r0 = r28
            boolean r0 = r0.haveLocalDescription     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            r24 = r0
            if (r24 != 0) goto L_0x028d
            java.lang.String r24 = "AppInvWebRTC"
            java.lang.String r25 = "Incoming candidate before local description set, punting"
            android.util.Log.d(r24, r25)     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            goto L_0x0008
        L_0x028d:
            java.lang.String r24 = "offer"
            r0 = r24
            boolean r24 = r6.has(r0)     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            if (r24 == 0) goto L_0x02a2
            int r7 = r7 + 1
            java.lang.String r24 = "AppInvWebRTC"
            java.lang.String r25 = "skipping offer, already processed"
            android.util.Log.d(r24, r25)     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            goto L_0x0175
        L_0x02a2:
            java.lang.String r24 = "candidate"
            r0 = r24
            boolean r24 = r6.isNull(r0)     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            if (r24 == 0) goto L_0x02b0
            int r7 = r7 + 1
            goto L_0x0175
        L_0x02b0:
            java.lang.String r24 = "nonce"
            r0 = r24
            java.lang.String r11 = r6.optString(r0)     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            java.lang.String r24 = "candidate"
            r0 = r24
            java.lang.Object r3 = r6.get(r0)     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            org.json.JSONObject r3 = (org.json.JSONObject) r3     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            java.lang.String r24 = "candidate"
            r0 = r24
            java.lang.String r22 = r3.optString(r0)     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            java.lang.String r24 = "sdpMid"
            r0 = r24
            java.lang.String r21 = r3.optString(r0)     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            java.lang.String r24 = "sdpMLineIndex"
            r0 = r24
            int r20 = r3.optInt(r0)     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            r0 = r28
            java.util.TreeSet<java.lang.String> r0 = r0.seenNonces     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            r24 = r0
            r0 = r24
            boolean r24 = r0.contains(r11)     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            if (r24 != 0) goto L_0x026e
            r0 = r28
            java.util.TreeSet<java.lang.String> r0 = r0.seenNonces     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            r24 = r0
            r0 = r24
            r0.add(r11)     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            java.lang.String r24 = "AppInvWebRTC"
            java.lang.String r25 = "new nonce, about to add candidate!"
            android.util.Log.d(r24, r25)     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            java.lang.String r24 = "AppInvWebRTC"
            java.lang.StringBuilder r25 = new java.lang.StringBuilder     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            r25.<init>()     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            java.lang.String r26 = "candidate = "
            java.lang.StringBuilder r25 = r25.append(r26)     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            r0 = r25
            r1 = r22
            java.lang.StringBuilder r25 = r0.append(r1)     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            java.lang.String r25 = r25.toString()     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            android.util.Log.d(r24, r25)     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            org.webrtc.IceCandidate r8 = new org.webrtc.IceCandidate     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            r0 = r21
            r1 = r20
            r2 = r22
            r8.<init>(r0, r1, r2)     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            r0 = r28
            org.webrtc.PeerConnection r0 = r0.peerConnection     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            r24 = r0
            r0 = r24
            r0.addIceCandidate(r8)     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            java.lang.String r24 = "AppInvWebRTC"
            java.lang.String r25 = "addIceCandidate returned"
            android.util.Log.d(r24, r25)     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            goto L_0x026e
        L_0x0335:
            java.lang.String r24 = "AppInvWebRTC"
            java.lang.String r25 = "exited loop"
            android.util.Log.d(r24, r25)     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            goto L_0x0008
        L_0x033e:
            r24 = move-exception
            goto L_0x0097
        */
        throw new UnsupportedOperationException("Method not decompiled: com.google.appinventor.components.runtime.util.WebRTCNativeMgr.Poller():void");
    }
/* Code decompiled incorrectly, please refer to instructions dump. */
Code decompiled incorrectly, please refer to instructions dump.
Code decompiled incorrectly please refer to instructions dump .
public void Poller() {
        /*
            r28 = this;
            r0 = r28
            boolean r0 = r0.keepPolling     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            r24 = r0
            if (r24 != 0) goto L_0x0009
        L_0x0008:
            return
        L_0x0009:
            java.lang.String r24 = "AppInvWebRTC"
            java.lang.String r25 = "Poller() Called"
            android.util.Log.d(r24, r25)     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            java.lang.String r24 = "AppInvWebRTC"
            java.lang.StringBuilder r25 = new java.lang.StringBuilder     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            r25.<init>()     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            java.lang.String r26 = "Poller: rendezvousServer2 = "
            java.lang.StringBuilder r25 = r25.append(r26)     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            r0 = r28
            java.lang.String r0 = r0.rendezvousServer2     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            r26 = r0
            java.lang.StringBuilder r25 = r25.append(r26)     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            java.lang.String r25 = r25.toString()     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            android.util.Log.d(r24, r25)     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            org.apache.http.impl.client.DefaultHttpClient r4 = new org.apache.http.impl.client.DefaultHttpClient     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            r4.<init>()     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            org.apache.http.client.methods.HttpGet r15 = new org.apache.http.client.methods.HttpGet     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            java.lang.StringBuilder r24 = new java.lang.StringBuilder     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            r24.<init>()     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            java.lang.String r25 = "http://"
            java.lang.StringBuilder r24 = r24.append(r25)     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            r0 = r28
            java.lang.String r0 = r0.rendezvousServer2     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            r25 = r0
            java.lang.StringBuilder r24 = r24.append(r25)     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            java.lang.String r25 = "/rendezvous2/"
            java.lang.StringBuilder r24 = r24.append(r25)     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            r0 = r28
            java.lang.String r0 = r0.rCode     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            r25 = r0
            java.lang.StringBuilder r24 = r24.append(r25)     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            java.lang.String r25 = "-s"
            java.lang.StringBuilder r24 = r24.append(r25)     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            java.lang.String r24 = r24.toString()     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            r0 = r24
            r15.<init>(r0)     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            org.apache.http.HttpResponse r16 = r4.execute(r15)     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            java.lang.StringBuilder r18 = new java.lang.StringBuilder     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            r18.<init>()     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            r13 = 0
            java.io.BufferedReader r14 = new java.io.BufferedReader     // Catch:{ all -> 0x033e }
            java.io.InputStreamReader r24 = new java.io.InputStreamReader     // Catch:{ all -> 0x033e }
            org.apache.http.HttpEntity r25 = r16.getEntity()     // Catch:{ all -> 0x033e }
            java.io.InputStream r25 = r25.getContent()     // Catch:{ all -> 0x033e }
            r24.<init>(r25)     // Catch:{ all -> 0x033e }
            r0 = r24
            r14.<init>(r0)     // Catch:{ all -> 0x033e }
            java.lang.String r10 = ""
        L_0x0089:
            java.lang.String r10 = r14.readLine()     // Catch:{ all -> 0x0095 }
            if (r10 == 0) goto L_0x00c0
            r0 = r18
            r0.append(r10)     // Catch:{ all -> 0x0095 }
            goto L_0x0089
        L_0x0095:
            r24 = move-exception
            r13 = r14
        L_0x0097:
            if (r13 == 0) goto L_0x009c
            r13.close()     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
        L_0x009c:
            throw r24     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
        L_0x009d:
            r5 = move-exception
            java.lang.String r24 = "AppInvWebRTC"
            java.lang.StringBuilder r25 = new java.lang.StringBuilder
            r25.<init>()
            java.lang.String r26 = "Caught IOException: "
            java.lang.StringBuilder r25 = r25.append(r26)
            java.lang.String r26 = r5.toString()
            java.lang.StringBuilder r25 = r25.append(r26)
            java.lang.String r25 = r25.toString()
            r0 = r24
            r1 = r25
            android.util.Log.e(r0, r1, r5)
            goto L_0x0008
        L_0x00c0:
            if (r14 == 0) goto L_0x00c5
            r14.close()     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
        L_0x00c5:
            r0 = r28
            boolean r0 = r0.keepPolling     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            r24 = r0
            if (r24 != 0) goto L_0x00f9
            java.lang.String r24 = "AppInvWebRTC"
            java.lang.String r25 = "keepPolling is false, we're done!"
            android.util.Log.d(r24, r25)     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            goto L_0x0008
        L_0x00d6:
            r5 = move-exception
            java.lang.String r24 = "AppInvWebRTC"
            java.lang.StringBuilder r25 = new java.lang.StringBuilder
            r25.<init>()
            java.lang.String r26 = "Caught JSONException: "
            java.lang.StringBuilder r25 = r25.append(r26)
            java.lang.String r26 = r5.toString()
            java.lang.StringBuilder r25 = r25.append(r26)
            java.lang.String r25 = r25.toString()
            r0 = r24
            r1 = r25
            android.util.Log.e(r0, r1, r5)
            goto L_0x0008
        L_0x00f9:
            java.lang.String r17 = r18.toString()     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            java.lang.String r24 = "AppInvWebRTC"
            java.lang.StringBuilder r25 = new java.lang.StringBuilder     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            r25.<init>()     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            java.lang.String r26 = "response = "
            java.lang.StringBuilder r25 = r25.append(r26)     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            r0 = r25
            r1 = r17
            java.lang.StringBuilder r25 = r0.append(r1)     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            java.lang.String r25 = r25.toString()     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            android.util.Log.d(r24, r25)     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            java.lang.String r24 = ""
            r0 = r17
            r1 = r24
            boolean r24 = r0.equals(r1)     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            if (r24 == 0) goto L_0x0151
            java.lang.String r24 = "AppInvWebRTC"
            java.lang.String r25 = "Received an empty response"
            android.util.Log.d(r24, r25)     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            goto L_0x0008
        L_0x012e:
            r5 = move-exception
            java.lang.String r24 = "AppInvWebRTC"
            java.lang.StringBuilder r25 = new java.lang.StringBuilder
            r25.<init>()
            java.lang.String r26 = "Caught Exception: "
            java.lang.StringBuilder r25 = r25.append(r26)
            java.lang.String r26 = r5.toString()
            java.lang.StringBuilder r25 = r25.append(r26)
            java.lang.String r25 = r25.toString()
            r0 = r24
            r1 = r25
            android.util.Log.e(r0, r1, r5)
            goto L_0x0008
        L_0x0151:
            org.json.JSONArray r9 = new org.json.JSONArray     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            r0 = r17
            r9.<init>(r0)     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            java.lang.String r24 = "AppInvWebRTC"
            java.lang.StringBuilder r25 = new java.lang.StringBuilder     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            r25.<init>()     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            java.lang.String r26 = "jsonArray.length() = "
            java.lang.StringBuilder r25 = r25.append(r26)     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            int r26 = r9.length()     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            java.lang.StringBuilder r25 = r25.append(r26)     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            java.lang.String r25 = r25.toString()     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            android.util.Log.d(r24, r25)     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            r7 = 0
        L_0x0175:
            int r24 = r9.length()     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            r0 = r24
            if (r7 >= r0) goto L_0x0335
            java.lang.String r24 = "AppInvWebRTC"
            java.lang.StringBuilder r25 = new java.lang.StringBuilder     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            r25.<init>()     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            java.lang.String r26 = "i = "
            java.lang.StringBuilder r25 = r25.append(r26)     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            r0 = r25
            java.lang.StringBuilder r25 = r0.append(r7)     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            java.lang.String r25 = r25.toString()     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            android.util.Log.d(r24, r25)     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            java.lang.String r24 = "AppInvWebRTC"
            java.lang.StringBuilder r25 = new java.lang.StringBuilder     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            r25.<init>()     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            java.lang.String r26 = "element = "
            java.lang.StringBuilder r25 = r25.append(r26)     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            java.lang.String r26 = r9.optString(r7)     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            java.lang.StringBuilder r25 = r25.append(r26)     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            java.lang.String r25 = r25.toString()     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            android.util.Log.d(r24, r25)     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            java.lang.Object r6 = r9.get(r7)     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            org.json.JSONObject r6 = (org.json.JSONObject) r6     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            r0 = r28
            boolean r0 = r0.haveOffer     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            r24 = r0
            if (r24 != 0) goto L_0x0272
            java.lang.String r24 = "offer"
            r0 = r24
            boolean r24 = r6.has(r0)     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            if (r24 != 0) goto L_0x01ce
            int r7 = r7 + 1
            goto L_0x0175
        L_0x01ce:
            java.lang.String r24 = "offer"
            r0 = r24
            java.lang.Object r12 = r6.get(r0)     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            org.json.JSONObject r12 = (org.json.JSONObject) r12     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            java.lang.String r24 = "sdp"
            r0 = r24
            java.lang.String r19 = r12.optString(r0)     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            java.lang.String r24 = "type"
            r0 = r24
            java.lang.String r23 = r12.optString(r0)     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            r24 = 1
            r0 = r24
            r1 = r28
            r1.haveOffer = r0     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            java.lang.String r24 = "AppInvWebRTC"
            java.lang.StringBuilder r25 = new java.lang.StringBuilder     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            r25.<init>()     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            java.lang.String r26 = "sdb = "
            java.lang.StringBuilder r25 = r25.append(r26)     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            r0 = r25
            r1 = r19
            java.lang.StringBuilder r25 = r0.append(r1)     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            java.lang.String r25 = r25.toString()     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            android.util.Log.d(r24, r25)     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            java.lang.String r24 = "AppInvWebRTC"
            java.lang.StringBuilder r25 = new java.lang.StringBuilder     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            r25.<init>()     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            java.lang.String r26 = "type = "
            java.lang.StringBuilder r25 = r25.append(r26)     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            r0 = r25
            r1 = r23
            java.lang.StringBuilder r25 = r0.append(r1)     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            java.lang.String r25 = r25.toString()     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            android.util.Log.d(r24, r25)     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            java.lang.String r24 = "AppInvWebRTC"
            java.lang.String r25 = "About to set remote offer"
            android.util.Log.d(r24, r25)     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            java.lang.String r24 = "AppInvWebRTC"
            java.lang.String r25 = "Got offer, about to set remote description (maincode)"
            android.util.Log.d(r24, r25)     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            r0 = r28
            org.webrtc.PeerConnection r0 = r0.peerConnection     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            r24 = r0
            r0 = r28
            org.webrtc.SdpObserver r0 = r0.sdpObserver     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            r25 = r0
            org.webrtc.SessionDescription r26 = new org.webrtc.SessionDescription     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            org.webrtc.SessionDescription$Type r27 = org.webrtc.SessionDescription.Type.OFFER     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            r0 = r26
            r1 = r27
            r2 = r19
            r0.<init>(r1, r2)     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            r24.setRemoteDescription(r25, r26)     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            r0 = r28
            org.webrtc.PeerConnection r0 = r0.peerConnection     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            r24 = r0
            r0 = r28
            org.webrtc.SdpObserver r0 = r0.sdpObserver     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            r25 = r0
            org.webrtc.MediaConstraints r26 = new org.webrtc.MediaConstraints     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            r26.<init>()     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            r24.createAnswer(r25, r26)     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            java.lang.String r24 = "AppInvWebRTC"
            java.lang.String r25 = "createAnswer returned"
            android.util.Log.d(r24, r25)     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            r7 = -1
        L_0x026e:
            int r7 = r7 + 1
            goto L_0x0175
        L_0x0272:
            java.lang.String r24 = "nonce"
            r0 = r24
            boolean r24 = r6.has(r0)     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            if (r24 == 0) goto L_0x026e
            r0 = r28
            boolean r0 = r0.haveLocalDescription     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            r24 = r0
            if (r24 != 0) goto L_0x028d
            java.lang.String r24 = "AppInvWebRTC"
            java.lang.String r25 = "Incoming candidate before local description set, punting"
            android.util.Log.d(r24, r25)     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            goto L_0x0008
        L_0x028d:
            java.lang.String r24 = "offer"
            r0 = r24
            boolean r24 = r6.has(r0)     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            if (r24 == 0) goto L_0x02a2
            int r7 = r7 + 1
            java.lang.String r24 = "AppInvWebRTC"
            java.lang.String r25 = "skipping offer, already processed"
            android.util.Log.d(r24, r25)     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            goto L_0x0175
        L_0x02a2:
            java.lang.String r24 = "candidate"
            r0 = r24
            boolean r24 = r6.isNull(r0)     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            if (r24 == 0) goto L_0x02b0
            int r7 = r7 + 1
            goto L_0x0175
        L_0x02b0:
            java.lang.String r24 = "nonce"
            r0 = r24
            java.lang.String r11 = r6.optString(r0)     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            java.lang.String r24 = "candidate"
            r0 = r24
            java.lang.Object r3 = r6.get(r0)     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            org.json.JSONObject r3 = (org.json.JSONObject) r3     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            java.lang.String r24 = "candidate"
            r0 = r24
            java.lang.String r22 = r3.optString(r0)     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            java.lang.String r24 = "sdpMid"
            r0 = r24
            java.lang.String r21 = r3.optString(r0)     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            java.lang.String r24 = "sdpMLineIndex"
            r0 = r24
            int r20 = r3.optInt(r0)     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            r0 = r28
            java.util.TreeSet<java.lang.String> r0 = r0.seenNonces     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            r24 = r0
            r0 = r24
            boolean r24 = r0.contains(r11)     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            if (r24 != 0) goto L_0x026e
            r0 = r28
            java.util.TreeSet<java.lang.String> r0 = r0.seenNonces     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            r24 = r0
            r0 = r24
            r0.add(r11)     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            java.lang.String r24 = "AppInvWebRTC"
            java.lang.String r25 = "new nonce, about to add candidate!"
            android.util.Log.d(r24, r25)     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            java.lang.String r24 = "AppInvWebRTC"
            java.lang.StringBuilder r25 = new java.lang.StringBuilder     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            r25.<init>()     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            java.lang.String r26 = "candidate = "
            java.lang.StringBuilder r25 = r25.append(r26)     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            r0 = r25
            r1 = r22
            java.lang.StringBuilder r25 = r0.append(r1)     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            java.lang.String r25 = r25.toString()     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            android.util.Log.d(r24, r25)     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            org.webrtc.IceCandidate r8 = new org.webrtc.IceCandidate     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            r0 = r21
            r1 = r20
            r2 = r22
            r8.<init>(r0, r1, r2)     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            r0 = r28
            org.webrtc.PeerConnection r0 = r0.peerConnection     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            r24 = r0
            r0 = r24
            r0.addIceCandidate(r8)     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            java.lang.String r24 = "AppInvWebRTC"
            java.lang.String r25 = "addIceCandidate returned"
            android.util.Log.d(r24, r25)     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            goto L_0x026e
        L_0x0335:
            java.lang.String r24 = "AppInvWebRTC"
            java.lang.String r25 = "exited loop"
            android.util.Log.d(r24, r25)     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            goto L_0x0008
        L_0x033e:
            r24 = move-exception
            goto L_0x0097
        */
        throw new UnsupportedOperationException("Method not decompiled: com.google.appinventor.components.runtime.util.WebRTCNativeMgr.Poller():void");
    }
public void Poller ( ) { /*
            r28 = this;
            r0 = r28
            boolean r0 = r0.keepPolling     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            r24 = r0
            if (r24 != 0) goto L_0x0009
        L_0x0008:
            return
        L_0x0009:
            java.lang.String r24 = "AppInvWebRTC"
            java.lang.String r25 = "Poller() Called"
            android.util.Log.d(r24, r25)     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            java.lang.String r24 = "AppInvWebRTC"
            java.lang.StringBuilder r25 = new java.lang.StringBuilder     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            r25.<init>()     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            java.lang.String r26 = "Poller: rendezvousServer2 = "
            java.lang.StringBuilder r25 = r25.append(r26)     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            r0 = r28
            java.lang.String r0 = r0.rendezvousServer2     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            r26 = r0
            java.lang.StringBuilder r25 = r25.append(r26)     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            java.lang.String r25 = r25.toString()     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            android.util.Log.d(r24, r25)     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            org.apache.http.impl.client.DefaultHttpClient r4 = new org.apache.http.impl.client.DefaultHttpClient     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            r4.<init>()     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            org.apache.http.client.methods.HttpGet r15 = new org.apache.http.client.methods.HttpGet     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            java.lang.StringBuilder r24 = new java.lang.StringBuilder     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            r24.<init>()     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            java.lang.String r25 = "http://"
            java.lang.StringBuilder r24 = r24.append(r25)     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            r0 = r28
            java.lang.String r0 = r0.rendezvousServer2     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            r25 = r0
            java.lang.StringBuilder r24 = r24.append(r25)     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            java.lang.String r25 = "/rendezvous2/"
            java.lang.StringBuilder r24 = r24.append(r25)     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            r0 = r28
            java.lang.String r0 = r0.rCode     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            r25 = r0
            java.lang.StringBuilder r24 = r24.append(r25)     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            java.lang.String r25 = "-s"
            java.lang.StringBuilder r24 = r24.append(r25)     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            java.lang.String r24 = r24.toString()     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            r0 = r24
            r15.<init>(r0)     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            org.apache.http.HttpResponse r16 = r4.execute(r15)     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            java.lang.StringBuilder r18 = new java.lang.StringBuilder     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            r18.<init>()     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            r13 = 0
            java.io.BufferedReader r14 = new java.io.BufferedReader     // Catch:{ all -> 0x033e }
            java.io.InputStreamReader r24 = new java.io.InputStreamReader     // Catch:{ all -> 0x033e }
            org.apache.http.HttpEntity r25 = r16.getEntity()     // Catch:{ all -> 0x033e }
            java.io.InputStream r25 = r25.getContent()     // Catch:{ all -> 0x033e }
            r24.<init>(r25)     // Catch:{ all -> 0x033e }
            r0 = r24
            r14.<init>(r0)     // Catch:{ all -> 0x033e }
            java.lang.String r10 = ""
        L_0x0089:
            java.lang.String r10 = r14.readLine()     // Catch:{ all -> 0x0095 }
            if (r10 == 0) goto L_0x00c0
            r0 = r18
            r0.append(r10)     // Catch:{ all -> 0x0095 }
            goto L_0x0089
        L_0x0095:
            r24 = move-exception
            r13 = r14
        L_0x0097:
            if (r13 == 0) goto L_0x009c
            r13.close()     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
        L_0x009c:
            throw r24     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
        L_0x009d:
            r5 = move-exception
            java.lang.String r24 = "AppInvWebRTC"
            java.lang.StringBuilder r25 = new java.lang.StringBuilder
            r25.<init>()
            java.lang.String r26 = "Caught IOException: "
            java.lang.StringBuilder r25 = r25.append(r26)
            java.lang.String r26 = r5.toString()
            java.lang.StringBuilder r25 = r25.append(r26)
            java.lang.String r25 = r25.toString()
            r0 = r24
            r1 = r25
            android.util.Log.e(r0, r1, r5)
            goto L_0x0008
        L_0x00c0:
            if (r14 == 0) goto L_0x00c5
            r14.close()     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
        L_0x00c5:
            r0 = r28
            boolean r0 = r0.keepPolling     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            r24 = r0
            if (r24 != 0) goto L_0x00f9
            java.lang.String r24 = "AppInvWebRTC"
            java.lang.String r25 = "keepPolling is false, we're done!"
            android.util.Log.d(r24, r25)     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            goto L_0x0008
        L_0x00d6:
            r5 = move-exception
            java.lang.String r24 = "AppInvWebRTC"
            java.lang.StringBuilder r25 = new java.lang.StringBuilder
            r25.<init>()
            java.lang.String r26 = "Caught JSONException: "
            java.lang.StringBuilder r25 = r25.append(r26)
            java.lang.String r26 = r5.toString()
            java.lang.StringBuilder r25 = r25.append(r26)
            java.lang.String r25 = r25.toString()
            r0 = r24
            r1 = r25
            android.util.Log.e(r0, r1, r5)
            goto L_0x0008
        L_0x00f9:
            java.lang.String r17 = r18.toString()     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            java.lang.String r24 = "AppInvWebRTC"
            java.lang.StringBuilder r25 = new java.lang.StringBuilder     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            r25.<init>()     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            java.lang.String r26 = "response = "
            java.lang.StringBuilder r25 = r25.append(r26)     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            r0 = r25
            r1 = r17
            java.lang.StringBuilder r25 = r0.append(r1)     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            java.lang.String r25 = r25.toString()     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            android.util.Log.d(r24, r25)     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            java.lang.String r24 = ""
            r0 = r17
            r1 = r24
            boolean r24 = r0.equals(r1)     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            if (r24 == 0) goto L_0x0151
            java.lang.String r24 = "AppInvWebRTC"
            java.lang.String r25 = "Received an empty response"
            android.util.Log.d(r24, r25)     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            goto L_0x0008
        L_0x012e:
            r5 = move-exception
            java.lang.String r24 = "AppInvWebRTC"
            java.lang.StringBuilder r25 = new java.lang.StringBuilder
            r25.<init>()
            java.lang.String r26 = "Caught Exception: "
            java.lang.StringBuilder r25 = r25.append(r26)
            java.lang.String r26 = r5.toString()
            java.lang.StringBuilder r25 = r25.append(r26)
            java.lang.String r25 = r25.toString()
            r0 = r24
            r1 = r25
            android.util.Log.e(r0, r1, r5)
            goto L_0x0008
        L_0x0151:
            org.json.JSONArray r9 = new org.json.JSONArray     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            r0 = r17
            r9.<init>(r0)     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            java.lang.String r24 = "AppInvWebRTC"
            java.lang.StringBuilder r25 = new java.lang.StringBuilder     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            r25.<init>()     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            java.lang.String r26 = "jsonArray.length() = "
            java.lang.StringBuilder r25 = r25.append(r26)     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            int r26 = r9.length()     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            java.lang.StringBuilder r25 = r25.append(r26)     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            java.lang.String r25 = r25.toString()     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            android.util.Log.d(r24, r25)     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            r7 = 0
        L_0x0175:
            int r24 = r9.length()     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            r0 = r24
            if (r7 >= r0) goto L_0x0335
            java.lang.String r24 = "AppInvWebRTC"
            java.lang.StringBuilder r25 = new java.lang.StringBuilder     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            r25.<init>()     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            java.lang.String r26 = "i = "
            java.lang.StringBuilder r25 = r25.append(r26)     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            r0 = r25
            java.lang.StringBuilder r25 = r0.append(r7)     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            java.lang.String r25 = r25.toString()     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            android.util.Log.d(r24, r25)     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            java.lang.String r24 = "AppInvWebRTC"
            java.lang.StringBuilder r25 = new java.lang.StringBuilder     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            r25.<init>()     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            java.lang.String r26 = "element = "
            java.lang.StringBuilder r25 = r25.append(r26)     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            java.lang.String r26 = r9.optString(r7)     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            java.lang.StringBuilder r25 = r25.append(r26)     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            java.lang.String r25 = r25.toString()     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            android.util.Log.d(r24, r25)     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            java.lang.Object r6 = r9.get(r7)     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            org.json.JSONObject r6 = (org.json.JSONObject) r6     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            r0 = r28
            boolean r0 = r0.haveOffer     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            r24 = r0
            if (r24 != 0) goto L_0x0272
            java.lang.String r24 = "offer"
            r0 = r24
            boolean r24 = r6.has(r0)     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            if (r24 != 0) goto L_0x01ce
            int r7 = r7 + 1
            goto L_0x0175
        L_0x01ce:
            java.lang.String r24 = "offer"
            r0 = r24
            java.lang.Object r12 = r6.get(r0)     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            org.json.JSONObject r12 = (org.json.JSONObject) r12     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            java.lang.String r24 = "sdp"
            r0 = r24
            java.lang.String r19 = r12.optString(r0)     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            java.lang.String r24 = "type"
            r0 = r24
            java.lang.String r23 = r12.optString(r0)     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            r24 = 1
            r0 = r24
            r1 = r28
            r1.haveOffer = r0     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            java.lang.String r24 = "AppInvWebRTC"
            java.lang.StringBuilder r25 = new java.lang.StringBuilder     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            r25.<init>()     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            java.lang.String r26 = "sdb = "
            java.lang.StringBuilder r25 = r25.append(r26)     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            r0 = r25
            r1 = r19
            java.lang.StringBuilder r25 = r0.append(r1)     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            java.lang.String r25 = r25.toString()     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            android.util.Log.d(r24, r25)     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            java.lang.String r24 = "AppInvWebRTC"
            java.lang.StringBuilder r25 = new java.lang.StringBuilder     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            r25.<init>()     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            java.lang.String r26 = "type = "
            java.lang.StringBuilder r25 = r25.append(r26)     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            r0 = r25
            r1 = r23
            java.lang.StringBuilder r25 = r0.append(r1)     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            java.lang.String r25 = r25.toString()     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            android.util.Log.d(r24, r25)     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            java.lang.String r24 = "AppInvWebRTC"
            java.lang.String r25 = "About to set remote offer"
            android.util.Log.d(r24, r25)     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            java.lang.String r24 = "AppInvWebRTC"
            java.lang.String r25 = "Got offer, about to set remote description (maincode)"
            android.util.Log.d(r24, r25)     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            r0 = r28
            org.webrtc.PeerConnection r0 = r0.peerConnection     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            r24 = r0
            r0 = r28
            org.webrtc.SdpObserver r0 = r0.sdpObserver     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            r25 = r0
            org.webrtc.SessionDescription r26 = new org.webrtc.SessionDescription     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            org.webrtc.SessionDescription$Type r27 = org.webrtc.SessionDescription.Type.OFFER     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            r0 = r26
            r1 = r27
            r2 = r19
            r0.<init>(r1, r2)     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            r24.setRemoteDescription(r25, r26)     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            r0 = r28
            org.webrtc.PeerConnection r0 = r0.peerConnection     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            r24 = r0
            r0 = r28
            org.webrtc.SdpObserver r0 = r0.sdpObserver     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            r25 = r0
            org.webrtc.MediaConstraints r26 = new org.webrtc.MediaConstraints     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            r26.<init>()     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            r24.createAnswer(r25, r26)     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            java.lang.String r24 = "AppInvWebRTC"
            java.lang.String r25 = "createAnswer returned"
            android.util.Log.d(r24, r25)     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            r7 = -1
        L_0x026e:
            int r7 = r7 + 1
            goto L_0x0175
        L_0x0272:
            java.lang.String r24 = "nonce"
            r0 = r24
            boolean r24 = r6.has(r0)     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            if (r24 == 0) goto L_0x026e
            r0 = r28
            boolean r0 = r0.haveLocalDescription     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            r24 = r0
            if (r24 != 0) goto L_0x028d
            java.lang.String r24 = "AppInvWebRTC"
            java.lang.String r25 = "Incoming candidate before local description set, punting"
            android.util.Log.d(r24, r25)     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            goto L_0x0008
        L_0x028d:
            java.lang.String r24 = "offer"
            r0 = r24
            boolean r24 = r6.has(r0)     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            if (r24 == 0) goto L_0x02a2
            int r7 = r7 + 1
            java.lang.String r24 = "AppInvWebRTC"
            java.lang.String r25 = "skipping offer, already processed"
            android.util.Log.d(r24, r25)     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            goto L_0x0175
        L_0x02a2:
            java.lang.String r24 = "candidate"
            r0 = r24
            boolean r24 = r6.isNull(r0)     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            if (r24 == 0) goto L_0x02b0
            int r7 = r7 + 1
            goto L_0x0175
        L_0x02b0:
            java.lang.String r24 = "nonce"
            r0 = r24
            java.lang.String r11 = r6.optString(r0)     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            java.lang.String r24 = "candidate"
            r0 = r24
            java.lang.Object r3 = r6.get(r0)     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            org.json.JSONObject r3 = (org.json.JSONObject) r3     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            java.lang.String r24 = "candidate"
            r0 = r24
            java.lang.String r22 = r3.optString(r0)     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            java.lang.String r24 = "sdpMid"
            r0 = r24
            java.lang.String r21 = r3.optString(r0)     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            java.lang.String r24 = "sdpMLineIndex"
            r0 = r24
            int r20 = r3.optInt(r0)     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            r0 = r28
            java.util.TreeSet<java.lang.String> r0 = r0.seenNonces     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            r24 = r0
            r0 = r24
            boolean r24 = r0.contains(r11)     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            if (r24 != 0) goto L_0x026e
            r0 = r28
            java.util.TreeSet<java.lang.String> r0 = r0.seenNonces     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            r24 = r0
            r0 = r24
            r0.add(r11)     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            java.lang.String r24 = "AppInvWebRTC"
            java.lang.String r25 = "new nonce, about to add candidate!"
            android.util.Log.d(r24, r25)     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            java.lang.String r24 = "AppInvWebRTC"
            java.lang.StringBuilder r25 = new java.lang.StringBuilder     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            r25.<init>()     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            java.lang.String r26 = "candidate = "
            java.lang.StringBuilder r25 = r25.append(r26)     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            r0 = r25
            r1 = r22
            java.lang.StringBuilder r25 = r0.append(r1)     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            java.lang.String r25 = r25.toString()     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            android.util.Log.d(r24, r25)     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            org.webrtc.IceCandidate r8 = new org.webrtc.IceCandidate     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            r0 = r21
            r1 = r20
            r2 = r22
            r8.<init>(r0, r1, r2)     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            r0 = r28
            org.webrtc.PeerConnection r0 = r0.peerConnection     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            r24 = r0
            r0 = r24
            r0.addIceCandidate(r8)     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            java.lang.String r24 = "AppInvWebRTC"
            java.lang.String r25 = "addIceCandidate returned"
            android.util.Log.d(r24, r25)     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            goto L_0x026e
        L_0x0335:
            java.lang.String r24 = "AppInvWebRTC"
            java.lang.String r25 = "exited loop"
            android.util.Log.d(r24, r25)     // Catch:{ IOException -> 0x009d, JSONException -> 0x00d6, Exception -> 0x012e }
            goto L_0x0008
        L_0x033e:
            r24 = move-exception
            goto L_0x0097
        */ throw new UnsupportedOperationException ( "Method not decompiled: com.google.appinventor.components.runtime.util.WebRTCNativeMgr.Poller():void" ) ; }
Code decompiled incorrectly, please refer to instructions dump.
Code decompiled incorrectly please refer to instructions dump .