	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_event_to_rpc                   ## -- Begin function event_to_rpc
	.p2align	4, 0x90
_event_to_rpc:                          ## @event_to_rpc
	.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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r13
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	8(%rdi), %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	16(%rdi), %rax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	movq	_types@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	movslq	%esi, %r12
	shlq	$4, %r12
	leaq	(%r15,%r12), %rax
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	cmpl	$0, (%r15,%r12)
	jle	LBB0_9
## %bb.1:
	xorl	%ebx, %ebx
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	$-1, %rax
	movl	%ebx, %ecx
	shlq	%cl, %rax
	addq	%rax, %r13
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%rbx
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	movslq	(%rax), %rax
	cmpq	%rax, %rbx
	jge	LBB0_9
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	btq	%rbx, %r13
	jae	LBB0_8
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	testq	%rdi, %rdi
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%ebx, %esi
	callq	_has_field
	testq	%rax, %rax
	jne	LBB0_8
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	testq	%rdi, %rdi
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%ebx, %esi
	callq	_has_field
	testq	%rax, %rax
	jne	LBB0_8
	jmp	LBB0_7
LBB0_9:
	xorl	%edi, %edi
	cmpq	$0, (%r14)
	setne	%dil
	shll	$29, %edi
	cmpq	$536870912, %r13                ## imm = 0x20000000
	movq	%r13, -120(%rbp)                ## 8-byte Spill
	jl	LBB0_11
## %bb.10:
	movl	%r13d, %eax
	andl	$536870911, %eax                ## imm = 0x1FFFFFFF
	orl	%edi, %eax
	orl	$1073741824, %eax               ## imm = 0x40000000
	movl	%eax, %edi
	callq	_tl_store_int
	movq	%r13, %rdi
	shrq	$29, %rdi
	jmp	LBB0_12
LBB0_11:
	addl	%r13d, %edi
LBB0_12:
	movq	-80(%rbp), %r14                 ## 8-byte Reload
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_tl_store_int
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	cmpl	$0, (%rax)
	jle	LBB0_54
## %bb.13:
	leaq	(%r15,%r12), %rax
	addq	$8, %rax
	movq	%rax, -112(%rbp)                ## 8-byte Spill
	xorl	%r13d, %r13d
	leaq	-104(%rbp), %r12
	movl	$0, -64(%rbp)                   ## 4-byte Folded Spill
	jmp	LBB0_14
LBB0_52:                                ##   in Loop: Header=BB0_14 Depth=1
	xorl	%edi, %edi
	callq	_assert
	.p2align	4, 0x90
LBB0_53:                                ##   in Loop: Header=BB0_14 Depth=1
	incq	%r13
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	movslq	(%rax), %rax
	cmpq	%rax, %r13
	jge	LBB0_54
LBB0_14:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_50 Depth 2
	movq	-120(%rbp), %rax                ## 8-byte Reload
	btq	%r13, %rax
	jae	LBB0_53
## %bb.15:                              ##   in Loop: Header=BB0_14 Depth=1
	testq	%r14, %r14
	je	LBB0_19
## %bb.16:                              ##   in Loop: Header=BB0_14 Depth=1
	movq	%r14, %rdi
	movl	%r13d, %esi
	callq	_has_field
	movq	%rax, %rbx
	testq	%rax, %rax
	cmovneq	%r14, %rbx
	movq	-88(%rbp), %r15                 ## 8-byte Reload
	jne	LBB0_21
## %bb.17:                              ##   in Loop: Header=BB0_14 Depth=1
	testq	%r15, %r15
	jne	LBB0_18
	jmp	LBB0_21
	.p2align	4, 0x90
LBB0_19:                                ##   in Loop: Header=BB0_14 Depth=1
	movq	-88(%rbp), %r15                 ## 8-byte Reload
	testq	%r15, %r15
	je	LBB0_20
LBB0_18:                                ##   in Loop: Header=BB0_14 Depth=1
	movq	%r15, %rdi
	movl	%r13d, %esi
	callq	_has_field
	movq	%rax, %rbx
	testq	%rax, %rax
	cmovneq	%r15, %rbx
	jmp	LBB0_21
LBB0_20:                                ##   in Loop: Header=BB0_14 Depth=1
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_21:                                ##   in Loop: Header=BB0_14 Depth=1
	movl	%ebx, %edi
	callq	_assert
	movq	-112(%rbp), %rax                ## 8-byte Reload
	movq	(%rax), %rcx
	movl	(%rcx,%r13,4), %eax
	addl	$-128, %eax
	cmpl	$4, %eax
	ja	LBB0_52
## %bb.22:                              ##   in Loop: Header=BB0_14 Depth=1
	leaq	(%rcx,%r13,4), %rsi
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_26:                                ##   in Loop: Header=BB0_14 Depth=1
	movq	%rbx, %rdi
	callq	_GET_STRING
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_strlen
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_tl_store_string
	jmp	LBB0_53
LBB0_27:                                ##   in Loop: Header=BB0_14 Depth=1
	movq	%rbx, %rdi
	callq	_GET_RAW
	movl	%eax, %edi
	callq	_RAW_DATA
	movq	%rax, %r14
	xorl	%edi, %edi
	testq	%rax, %rax
	setne	%dil
	callq	_assert
	movsbq	(%r14), %rax
	testq	%rax, %rax
	js	LBB0_29
## %bb.28:                              ##   in Loop: Header=BB0_14 Depth=1
	xorl	%ecx, %ecx
	jmp	LBB0_30
LBB0_24:                                ##   in Loop: Header=BB0_14 Depth=1
	movq	%rbx, %rdi
	callq	_GET_LONG
	movl	(%rax), %edi
	callq	_tl_store_long
	jmp	LBB0_53
LBB0_23:                                ##   in Loop: Header=BB0_14 Depth=1
	movq	%rbx, %rdi
	callq	_GET_INT
	movl	(%rax), %edi
	callq	_tl_store_int
	jmp	LBB0_53
LBB0_25:                                ##   in Loop: Header=BB0_14 Depth=1
	movq	%rbx, %rdi
	callq	_GET_DOUBLE
	movl	(%rax), %edi
	callq	_tl_store_double
	jmp	LBB0_53
LBB0_29:                                ##   in Loop: Header=BB0_14 Depth=1
	movq	_mode@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	addq	%rax, %rcx
	movq	%r14, %rax
	subq	%rcx, %rax
	movb	17(%rax), %al
	movl	$1, %ecx
LBB0_30:                                ##   in Loop: Header=BB0_14 Depth=1
	movsbl	%al, %edi
	addl	%ecx, %edi
	callq	_tl_store_int
	cmpb	$0, (%r14)
	js	LBB0_32
## %bb.31:                              ##   in Loop: Header=BB0_14 Depth=1
	movq	_mode@GOTPCREL(%rip), %rax
	jmp	LBB0_40
LBB0_32:                                ##   in Loop: Header=BB0_14 Depth=1
	movq	_mode@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	cmpl	$133, %eax
	je	LBB0_36
## %bb.33:                              ##   in Loop: Header=BB0_14 Depth=1
	cmpl	$135, %eax
	je	LBB0_37
## %bb.34:                              ##   in Loop: Header=BB0_14 Depth=1
	cmpl	$134, %eax
	jne	LBB0_38
## %bb.35:                              ##   in Loop: Header=BB0_14 Depth=1
	movq	_TL_PHOTO_PHOTO_LOCATION@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	jmp	LBB0_39
LBB0_37:                                ##   in Loop: Header=BB0_14 Depth=1
	movq	_TL_PHOTO_AUDIO_LOCATION@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	jmp	LBB0_39
LBB0_36:                                ##   in Loop: Header=BB0_14 Depth=1
	movq	_TL_PHOTO_VIDEO_LOCATION@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	jmp	LBB0_39
LBB0_38:                                ##   in Loop: Header=BB0_14 Depth=1
	xorl	%edi, %edi
	callq	_assert
	movl	-64(%rbp), %edi                 ## 4-byte Reload
LBB0_39:                                ##   in Loop: Header=BB0_14 Depth=1
	movl	%edi, -64(%rbp)                 ## 4-byte Spill
	callq	_tl_store_int
	movsbq	(%r14), %rax
	movq	_mode@GOTPCREL(%rip), %r12
	movslq	(%r12), %rbx
	addq	%rax, %rbx
	movl	%ebx, %r15d
	negl	%r15d
	leaq	1(%r14), %rdi
	movl	$16, %esi
	callq	_tl_store_raw_data
	addq	$17, %r14
	movq	%r14, %rdi
	movl	%r15d, %esi
	callq	_tl_store_string
	movq	%r12, %rax
	subq	%rbx, %r14
LBB0_40:                                ##   in Loop: Header=BB0_14 Depth=1
	movl	(%rax), %eax
	cmpl	$133, %eax
	je	LBB0_45
## %bb.41:                              ##   in Loop: Header=BB0_14 Depth=1
	cmpl	$135, %eax
	je	LBB0_46
## %bb.42:                              ##   in Loop: Header=BB0_14 Depth=1
	cmpl	$134, %eax
	jne	LBB0_47
## %bb.43:                              ##   in Loop: Header=BB0_14 Depth=1
	movq	_TL_PHOTO_PHOTO_LOCATION_STORAGE@GOTPCREL(%rip), %rax
	jmp	LBB0_44
LBB0_45:                                ##   in Loop: Header=BB0_14 Depth=1
	movq	_TL_PHOTO_VIDEO_LOCATION_STORAGE@GOTPCREL(%rip), %rax
	jmp	LBB0_44
LBB0_46:                                ##   in Loop: Header=BB0_14 Depth=1
	movq	_TL_PHOTO_AUDIO_LOCATION_STORAGE@GOTPCREL(%rip), %rax
LBB0_44:                                ##   in Loop: Header=BB0_14 Depth=1
	movl	(%rax), %eax
	movl	%eax, -64(%rbp)                 ## 4-byte Spill
	jmp	LBB0_48
LBB0_47:                                ##   in Loop: Header=BB0_14 Depth=1
	xorl	%edi, %edi
	callq	_assert
LBB0_48:                                ##   in Loop: Header=BB0_14 Depth=1
	movzbl	(%r14), %r15d
	testb	%r15b, %r15b
	leaq	-60(%rbp), %r12
	jle	LBB0_51
## %bb.49:                              ##   in Loop: Header=BB0_14 Depth=1
	incq	%r14
	incl	%r15d
	.p2align	4, 0x90
LBB0_50:                                ##   Parent Loop BB0_14 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_READ_CHAR
	xorl	%edi, %edi
	callq	_assert
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_READ_INT
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_READ_INT
	xorl	%edi, %edi
	callq	_get_server
	movl	%eax, %ebx
	movq	%r14, %rdi
	callq	_READ_INT
	movq	-104(%rbp), %rsi
	movq	%r14, %rdi
	callq	_READ_LONG
	leaq	-104(%rbp), %rdi
	movl	$8, %esi
	movq	%r12, %rdx
	movl	$12, %ecx
	callq	_base64url_encode
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_assert
	movw	$96, -66(%rbp)
	movl	-64(%rbp), %edi                 ## 4-byte Reload
	callq	_tl_store_int
	xorl	%edi, %edi
	callq	_tl_store_int
	leaq	-66(%rbp), %rdi
	movl	$1, %esi
	callq	_tl_store_string
	movl	%ebx, %edi
	callq	_tl_store_int
	xorl	%edi, %edi
	callq	_tl_store_int
	xorl	%edi, %edi
	callq	_tl_store_int
	callq	_tl_store_int
	movq	%r12, %rdi
	callq	_strlen
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_tl_store_string
	decl	%r15d
	cmpl	$1, %r15d
	ja	LBB0_50
LBB0_51:                                ##   in Loop: Header=BB0_14 Depth=1
	movq	-80(%rbp), %r14                 ## 8-byte Reload
	leaq	-104(%rbp), %r12
	jmp	LBB0_53
LBB0_54:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_56
## %bb.55:
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_56:
	callq	___stack_chk_fail
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_26, LBB0_26-LJTI0_0
.set L0_0_set_27, LBB0_27-LJTI0_0
.set L0_0_set_24, LBB0_24-LJTI0_0
.set L0_0_set_23, LBB0_23-LJTI0_0
.set L0_0_set_25, LBB0_25-LJTI0_0
LJTI0_0:
	.long	L0_0_set_26
	.long	L0_0_set_27
	.long	L0_0_set_24
	.long	L0_0_set_23
	.long	L0_0_set_25
	.end_data_region
                                        ## -- End function
	.comm	_types,8,3                      ## @types
	.comm	_mode,4,2                       ## @mode
	.comm	_TL_PHOTO_PHOTO_LOCATION,4,2    ## @TL_PHOTO_PHOTO_LOCATION
	.comm	_TL_PHOTO_VIDEO_LOCATION,4,2    ## @TL_PHOTO_VIDEO_LOCATION
	.comm	_TL_PHOTO_AUDIO_LOCATION,4,2    ## @TL_PHOTO_AUDIO_LOCATION
	.comm	_TL_PHOTO_PHOTO_LOCATION_STORAGE,4,2 ## @TL_PHOTO_PHOTO_LOCATION_STORAGE
	.comm	_TL_PHOTO_VIDEO_LOCATION_STORAGE,4,2 ## @TL_PHOTO_VIDEO_LOCATION_STORAGE
	.comm	_TL_PHOTO_AUDIO_LOCATION_STORAGE,4,2 ## @TL_PHOTO_AUDIO_LOCATION_STORAGE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_event_to_rpc                   ; -- Begin function event_to_rpc
	.p2align	2
_event_to_rpc:                          ; @event_to_rpc
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x28, x27, [sp, #64]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x2
	mov	x24, x1
	mov	x22, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #56]
	ldp	x21, x20, [x0, #8]
Lloh3:
	adrp	x8, _types@GOTPAGE
Lloh4:
	ldr	x8, [x8, _types@GOTPAGEOFF]
Lloh5:
	ldr	x25, [x8]
	add	x27, x25, w1, sxtw #4
	ldr	w8, [x27]
	cmp	w8, #1
	b.lt	LBB0_9
; %bb.1:
	mov	x23, #0
	mov	x26, #-1
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	lsl	x8, x26, x23
	add	x19, x8, x19
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x23, x23, #1
	ldrsw	x8, [x27]
	cmp	x23, x8
	b.ge	LBB0_9
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	lsr	x8, x19, x23
	tbz	w8, #0, LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	cbz	x21, LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x21
	mov	x1, x23
	bl	_has_field
	cbnz	x0, LBB0_3
LBB0_7:                                 ;   in Loop: Header=BB0_4 Depth=1
	cbz	x20, LBB0_2
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x20
	mov	x1, x23
	bl	_has_field
	cbnz	x0, LBB0_3
	b	LBB0_2
LBB0_9:
	ldr	x8, [x22]
	cmp	x8, #0
	cset	w8, ne
	lsl	w8, w8, #29
	mov	w9, #536870912
	cmp	x19, x9
	b.lt	LBB0_11
; %bb.10:
	and	w9, w19, #0x1fffffff
	orr	w8, w9, w8
	orr	w0, w8, #0x40000000
	bl	_tl_store_int
	lsr	x0, x19, #29
	b	LBB0_12
LBB0_11:
	add	w0, w8, w19
LBB0_12:
                                        ; kill: def $w0 killed $w0 killed $x0
	bl	_tl_store_int
	ldr	w8, [x27]
	cmp	w8, #1
	b.lt	LBB0_52
; %bb.13:
	mov	x22, #0
	mov	w23, #0
	sxtw	x8, w24
	add	x8, x25, x8, lsl #4
Lloh6:
	adrp	x26, _mode@GOTPAGE
Lloh7:
	ldr	x26, [x26, _mode@GOTPAGEOFF]
Lloh8:
	adrp	x25, lJTI0_0@PAGE
Lloh9:
	add	x25, x25, lJTI0_0@PAGEOFF
	add	x8, x8, #8
	str	x8, [sp, #16]                   ; 8-byte Folded Spill
	mov	w28, #96
	b	LBB0_16
LBB0_14:                                ;   in Loop: Header=BB0_16 Depth=1
	mov	w0, #0
	bl	_assert
LBB0_15:                                ;   in Loop: Header=BB0_16 Depth=1
	add	x22, x22, #1
	ldrsw	x8, [x27]
	cmp	x22, x8
	b.ge	LBB0_52
LBB0_16:                                ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_50 Depth 2
	lsr	x8, x19, x22
	tbz	w8, #0, LBB0_15
; %bb.17:                               ;   in Loop: Header=BB0_16 Depth=1
	cbz	x21, LBB0_20
; %bb.18:                               ;   in Loop: Header=BB0_16 Depth=1
	mov	x0, x21
	mov	x1, x22
	bl	_has_field
	cmp	x0, #0
	csel	x24, x21, xzr, ne
	cbnz	x0, LBB0_23
; %bb.19:                               ;   in Loop: Header=BB0_16 Depth=1
	cbnz	x20, LBB0_21
	b	LBB0_23
LBB0_20:                                ;   in Loop: Header=BB0_16 Depth=1
	cbz	x20, LBB0_22
LBB0_21:                                ;   in Loop: Header=BB0_16 Depth=1
	mov	x0, x20
	mov	x1, x22
	bl	_has_field
	cmp	x0, #0
	csel	x24, xzr, x20, eq
	b	LBB0_23
LBB0_22:                                ;   in Loop: Header=BB0_16 Depth=1
	mov	x24, #0
LBB0_23:                                ;   in Loop: Header=BB0_16 Depth=1
	mov	x0, x24
	bl	_assert
	ldr	x8, [sp, #16]                   ; 8-byte Folded Reload
	ldr	x8, [x8]
	add	x1, x8, x22, lsl #2
	ldr	w8, [x1]
	sub	w8, w8, #128
	cmp	w8, #4
	b.hi	LBB0_14
; %bb.24:                               ;   in Loop: Header=BB0_16 Depth=1
	adr	x9, LBB0_25
	ldrb	w10, [x25, x8]
	add	x9, x9, x10, lsl #2
	br	x9
LBB0_25:                                ;   in Loop: Header=BB0_16 Depth=1
	mov	x0, x24
	bl	_GET_STRING
	mov	x24, x0
	bl	_strlen
	mov	x1, x0
	mov	x0, x24
	bl	_tl_store_string
	b	LBB0_15
LBB0_26:                                ;   in Loop: Header=BB0_16 Depth=1
	mov	x0, x24
	bl	_GET_RAW
	bl	_RAW_DATA
	mov	x24, x0
	cmp	x0, #0
	cset	w0, ne
	bl	_assert
	ldrsb	x8, [x24]
	tbnz	x8, #63, LBB0_31
; %bb.27:                               ;   in Loop: Header=BB0_16 Depth=1
	mov	w9, #0
	b	LBB0_32
LBB0_28:                                ;   in Loop: Header=BB0_16 Depth=1
	mov	x0, x24
	bl	_GET_LONG
	ldr	w0, [x0]
	bl	_tl_store_long
	b	LBB0_15
LBB0_29:                                ;   in Loop: Header=BB0_16 Depth=1
	mov	x0, x24
	bl	_GET_INT
	ldr	w0, [x0]
	bl	_tl_store_int
	b	LBB0_15
LBB0_30:                                ;   in Loop: Header=BB0_16 Depth=1
	mov	x0, x24
	bl	_GET_DOUBLE
	ldr	w0, [x0]
	bl	_tl_store_double
	b	LBB0_15
LBB0_31:                                ;   in Loop: Header=BB0_16 Depth=1
	ldrsw	x9, [x26]
	add	x8, x9, x8
	sub	x8, x24, x8
	ldrb	w8, [x8, #17]
	mov	w9, #1
LBB0_32:                                ;   in Loop: Header=BB0_16 Depth=1
	add	w0, w9, w8, sxtb
	bl	_tl_store_int
	ldrsb	w8, [x24]
	tbz	w8, #31, LBB0_41
; %bb.33:                               ;   in Loop: Header=BB0_16 Depth=1
	ldr	w8, [x26]
	cmp	w8, #133
	b.eq	LBB0_38
; %bb.34:                               ;   in Loop: Header=BB0_16 Depth=1
	cmp	w8, #135
	b.eq	LBB0_37
; %bb.35:                               ;   in Loop: Header=BB0_16 Depth=1
	cmp	w8, #134
	b.ne	LBB0_39
; %bb.36:                               ;   in Loop: Header=BB0_16 Depth=1
Lloh10:
	adrp	x8, _TL_PHOTO_PHOTO_LOCATION@GOTPAGE
Lloh11:
	ldr	x8, [x8, _TL_PHOTO_PHOTO_LOCATION@GOTPAGEOFF]
Lloh12:
	ldr	w23, [x8]
	b	LBB0_40
LBB0_37:                                ;   in Loop: Header=BB0_16 Depth=1
Lloh13:
	adrp	x8, _TL_PHOTO_AUDIO_LOCATION@GOTPAGE
Lloh14:
	ldr	x8, [x8, _TL_PHOTO_AUDIO_LOCATION@GOTPAGEOFF]
Lloh15:
	ldr	w23, [x8]
	b	LBB0_40
LBB0_38:                                ;   in Loop: Header=BB0_16 Depth=1
Lloh16:
	adrp	x8, _TL_PHOTO_VIDEO_LOCATION@GOTPAGE
Lloh17:
	ldr	x8, [x8, _TL_PHOTO_VIDEO_LOCATION@GOTPAGEOFF]
Lloh18:
	ldr	w23, [x8]
	b	LBB0_40
LBB0_39:                                ;   in Loop: Header=BB0_16 Depth=1
	mov	w0, #0
	bl	_assert
LBB0_40:                                ;   in Loop: Header=BB0_16 Depth=1
	mov	x0, x23
	bl	_tl_store_int
	mov	x25, x24
	ldrsb	x8, [x25], #17
	ldrsw	x9, [x26]
	add	x26, x9, x8
	neg	w8, w26
	str	w8, [sp, #12]                   ; 4-byte Folded Spill
	add	x0, x24, #1
	mov	w1, #16
	bl	_tl_store_raw_data
	mov	x0, x25
	ldr	w1, [sp, #12]                   ; 4-byte Folded Reload
	bl	_tl_store_string
	sub	x24, x25, x26
Lloh19:
	adrp	x26, _mode@GOTPAGE
Lloh20:
	ldr	x26, [x26, _mode@GOTPAGEOFF]
LBB0_41:                                ;   in Loop: Header=BB0_16 Depth=1
	ldr	w8, [x26]
	cmp	w8, #133
	b.eq	LBB0_45
; %bb.42:                               ;   in Loop: Header=BB0_16 Depth=1
	cmp	w8, #135
	b.eq	LBB0_46
; %bb.43:                               ;   in Loop: Header=BB0_16 Depth=1
	cmp	w8, #134
	b.ne	LBB0_47
; %bb.44:                               ;   in Loop: Header=BB0_16 Depth=1
Lloh21:
	adrp	x8, _TL_PHOTO_PHOTO_LOCATION_STORAGE@GOTPAGE
Lloh22:
	ldr	x8, [x8, _TL_PHOTO_PHOTO_LOCATION_STORAGE@GOTPAGEOFF]
Lloh23:
	ldr	w23, [x8]
	b	LBB0_48
LBB0_45:                                ;   in Loop: Header=BB0_16 Depth=1
Lloh24:
	adrp	x8, _TL_PHOTO_VIDEO_LOCATION_STORAGE@GOTPAGE
Lloh25:
	ldr	x8, [x8, _TL_PHOTO_VIDEO_LOCATION_STORAGE@GOTPAGEOFF]
Lloh26:
	ldr	w23, [x8]
	b	LBB0_48
LBB0_46:                                ;   in Loop: Header=BB0_16 Depth=1
Lloh27:
	adrp	x8, _TL_PHOTO_AUDIO_LOCATION_STORAGE@GOTPAGE
Lloh28:
	ldr	x8, [x8, _TL_PHOTO_AUDIO_LOCATION_STORAGE@GOTPAGEOFF]
Lloh29:
	ldr	w23, [x8]
	b	LBB0_48
LBB0_47:                                ;   in Loop: Header=BB0_16 Depth=1
	mov	w0, #0
	bl	_assert
LBB0_48:                                ;   in Loop: Header=BB0_16 Depth=1
	ldrsb	w8, [x24], #1
	cmp	w8, #1
	b.lt	LBB0_51
; %bb.49:                               ;   in Loop: Header=BB0_16 Depth=1
	and	w8, w8, #0xff
	add	w26, w8, #1
LBB0_50:                                ;   Parent Loop BB0_16 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x24
	mov	w1, #0
	bl	_READ_CHAR
	mov	w0, #0
	bl	_assert
	mov	x0, x24
	mov	w1, #0
	bl	_READ_INT
	mov	x0, x24
	mov	w1, #0
	bl	_READ_INT
	mov	w0, #0
	bl	_get_server
	mov	x25, x0
	mov	x0, x24
	bl	_READ_INT
	ldr	x1, [sp, #32]
	mov	x0, x24
	bl	_READ_LONG
	add	x0, sp, #32
	add	x2, sp, #44
	mov	w1, #8
	mov	w3, #12
	bl	_base64url_encode
	cmp	w0, #0
	cset	w0, eq
	bl	_assert
	strh	w28, [sp, #30]
	mov	x0, x23
	bl	_tl_store_int
	mov	w0, #0
	bl	_tl_store_int
	add	x0, sp, #30
	mov	w1, #1
	bl	_tl_store_string
	mov	x0, x25
	bl	_tl_store_int
	mov	w0, #0
	bl	_tl_store_int
	mov	w0, #0
	bl	_tl_store_int
	bl	_tl_store_int
	add	x0, sp, #44
	bl	_strlen
	mov	x1, x0
	add	x0, sp, #44
	bl	_tl_store_string
	sub	w26, w26, #1
	cmp	w26, #1
	b.hi	LBB0_50
LBB0_51:                                ;   in Loop: Header=BB0_16 Depth=1
Lloh30:
	adrp	x26, _mode@GOTPAGE
Lloh31:
	ldr	x26, [x26, _mode@GOTPAGEOFF]
Lloh32:
	adrp	x25, lJTI0_0@PAGE
Lloh33:
	add	x25, x25, lJTI0_0@PAGEOFF
	b	LBB0_15
LBB0_52:
	ldr	x8, [sp, #56]
Lloh34:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh35:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh36:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_54
; %bb.53:
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
LBB0_54:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_25-LBB0_25)>>2
	.byte	(LBB0_26-LBB0_25)>>2
	.byte	(LBB0_28-LBB0_25)>>2
	.byte	(LBB0_29-LBB0_25)>>2
	.byte	(LBB0_30-LBB0_25)>>2
                                        ; -- End function
	.comm	_types,8,3                      ; @types
	.comm	_mode,4,2                       ; @mode
	.comm	_TL_PHOTO_PHOTO_LOCATION,4,2    ; @TL_PHOTO_PHOTO_LOCATION
	.comm	_TL_PHOTO_VIDEO_LOCATION,4,2    ; @TL_PHOTO_VIDEO_LOCATION
	.comm	_TL_PHOTO_AUDIO_LOCATION,4,2    ; @TL_PHOTO_AUDIO_LOCATION
	.comm	_TL_PHOTO_PHOTO_LOCATION_STORAGE,4,2 ; @TL_PHOTO_PHOTO_LOCATION_STORAGE
	.comm	_TL_PHOTO_VIDEO_LOCATION_STORAGE,4,2 ; @TL_PHOTO_VIDEO_LOCATION_STORAGE
	.comm	_TL_PHOTO_AUDIO_LOCATION_STORAGE,4,2 ; @TL_PHOTO_AUDIO_LOCATION_STORAGE
.subsections_via_symbols
