	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function unpack_packet
_unpack_packet:                         ## @unpack_packet
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r13
	movl	%esi, %ebx
	movq	$0, (%rdx)
	movl	$0, (%rcx)
	leal	3(%rbx), %r15d
	testl	%esi, %esi
	cmovnsl	%esi, %r15d
	movl	$-1, %eax
	cmpl	$28, %esi
	jl	LBB0_18
## %bb.1:
	movq	%rdi, %rdx
	sarl	$2, %r15d
	leal	-6(%r15), %r14d
	movq	_P@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	40(%rdi), %rax
	movq	_GZIP_PACKED@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rax
	jne	LBB0_2
## %bb.3:
	movq	%rcx, -88(%rbp)                 ## 8-byte Spill
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	addq	$48, %rdi
	leal	-7(%r15), %esi
	leaq	-72(%rbp), %rdx
	leaq	-44(%rbp), %rcx
	movl	%esi, -76(%rbp)                 ## 4-byte Spill
	xorl	%r8d, %r8d
	callq	_tl_fetch_string
	movl	%eax, %r12d
	movl	-44(%rbp), %ecx
	leaq	L_.str(%rip), %rsi
	movl	$4, %edi
	movl	%r14d, %edx
	callq	_vkprintf
	testl	%r12d, %r12d
	js	LBB0_4
## %bb.5:
	movl	-76(%rbp), %edx                 ## 4-byte Reload
	subl	%r12d, %edx
	jne	LBB0_6
## %bb.8:
	movslq	-44(%rbp), %rax
	addq	-72(%rbp), %rax
	movslq	%r15d, %r12
	shlq	$3, %r12
	movq	_P@GOTPCREL(%rip), %r14
	movq	(%r14), %rcx
	addq	%r12, %rcx
	xorl	%edi, %edi
	cmpq	%rcx, %rax
	setbe	%dil
	callq	_assert
	movq	_PACKET_BUFFER_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	subl	%ebx, %r15d
	movl	%r15d, -60(%rbp)
	movq	(%r14), %rdi
	addq	%r12, %rdi
	movq	-72(%rbp), %rdx
	movl	-44(%rbp), %ecx
	leaq	-60(%rbp), %rsi
	callq	_gzdecode
	movq	_Z_OK@GOTPCREL(%rip), %rcx
	cmpl	%eax, (%rcx)
	jne	LBB0_9
## %bb.15:
	movl	-60(%rbp), %edx
	testb	$3, %dl
	je	LBB0_17
## %bb.16:
	leaq	L_.str.8(%rip), %rsi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
                                        ## kill: def $edx killed $edx killed $rdx
	jmp	LBB0_7
LBB0_2:
	addq	$40, %rdi
	movq	%rdi, (%r13)
	movl	%r14d, (%rcx)
	xorl	%eax, %eax
	jmp	LBB0_18
LBB0_4:
	leaq	L_.str.1(%rip), %rsi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	xorl	%eax, %eax
	callq	_tl_failf
	jmp	LBB0_18
LBB0_6:
	leaq	L_.str.2(%rip), %rsi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
LBB0_7:
	xorl	%eax, %eax
	callq	_tl_failf
	jmp	LBB0_18
LBB0_9:
	addq	(%r14), %r12
	movq	-72(%rbp), %r8
	movl	-44(%rbp), %r9d
	movq	_Z_MEM_ERROR@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_11
## %bb.10:
	leaq	L_.str.4(%rip), %rax
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	jmp	LBB0_14
LBB0_11:
	movq	_Z_BUF_ERROR@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	jne	LBB0_13
## %bb.12:
	leaq	L_.str.5(%rip), %rax
	jmp	LBB0_14
LBB0_17:
	movq	_P@GOTPCREL(%rip), %rax
	addq	(%rax), %r12
	leal	3(%rdx), %eax
	testl	%edx, %edx
	cmovnsl	%edx, %eax
	movq	%r12, (%r13)
	sarl	$2, %eax
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	movl	$1, %eax
	jmp	LBB0_18
LBB0_13:
	movq	_Z_DATA_ERROR@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	leaq	L_.str.6(%rip), %rcx
	leaq	L_.str.7(%rip), %rax
	cmoveq	%rcx, %rax
LBB0_14:
	movq	%rax, (%rsp)
	leaq	L_.str.3(%rip), %rsi
	movq	%r12, %rdx
	movl	%r15d, %ecx
	xorl	%eax, %eax
	callq	_tl_failf
LBB0_18:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_P,8,3                          ## @P
	.comm	_GZIP_PACKED,8,3                ## @GZIP_PACKED
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ilen: %d, slen: %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"tl_fetch_string fail"

L_.str.2:                               ## @.str.2
	.asciz	"packet contains extra %d ints"

	.comm	_PACKET_BUFFER_SIZE,4,2         ## @PACKET_BUFFER_SIZE
	.comm	_Z_OK,4,2                       ## @Z_OK
L_.str.3:                               ## @.str.3
	.asciz	"uncompress (%p, %d, %p, %d) returns %s"

	.comm	_Z_MEM_ERROR,4,2                ## @Z_MEM_ERROR
L_.str.4:                               ## @.str.4
	.asciz	"Z_MEM_ERROR"

	.comm	_Z_BUF_ERROR,4,2                ## @Z_BUF_ERROR
L_.str.5:                               ## @.str.5
	.asciz	"Z_BUF_ERROR"

	.comm	_Z_DATA_ERROR,4,2               ## @Z_DATA_ERROR
L_.str.6:                               ## @.str.6
	.asciz	"Z_DATA_ERROR"

L_.str.7:                               ## @.str.7
	.asciz	"???"

L_.str.8:                               ## @.str.8
	.asciz	"destLen(%d) isn't multiple of 4"

	.no_dead_strip	_unpack_packet
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function unpack_packet
_unpack_packet:                         ; @unpack_packet
	.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
	str	xzr, [x2]
	str	wzr, [x3]
	add	w8, w1, #3
	cmp	w1, #0
	csel	w8, w8, w1, lt
	cmp	w1, #28
	b.ge	LBB0_2
; %bb.1:
	mov	w0, #-1
	b	LBB0_19
LBB0_2:
	mov	x20, x3
	mov	x21, x2
	asr	w27, w8, #2
	sub	w23, w27, #6
Lloh0:
	adrp	x26, _P@GOTPAGE
Lloh1:
	ldr	x26, [x26, _P@GOTPAGEOFF]
	ldr	x8, [x26]
	mov	x9, x8
	ldr	x10, [x9, #40]!
Lloh2:
	adrp	x11, _GZIP_PACKED@GOTPAGE
Lloh3:
	ldr	x11, [x11, _GZIP_PACKED@GOTPAGEOFF]
Lloh4:
	ldr	x11, [x11]
	cmp	x10, x11
	b.ne	LBB0_8
; %bb.3:
	mov	x22, x1
	mov	x19, x0
	add	x0, x8, #48
	sub	w24, w27, #7
	add	x2, sp, #56
	add	x3, sp, #52
	mov	x1, x24
	mov	w4, #0
	bl	_tl_fetch_string
	mov	x25, x0
	ldr	w3, [sp, #52]
Lloh5:
	adrp	x1, l_.str@PAGE
Lloh6:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #4
	mov	x2, x23
	bl	_vkprintf
	tbnz	w25, #31, LBB0_9
; %bb.4:
	subs	w8, w24, w25
	b.ne	LBB0_10
; %bb.5:
	ldr	x8, [sp, #56]
	ldrsw	x9, [sp, #52]
	add	x8, x8, x9
	ldr	x9, [x26]
	sxtw	x23, w27
	sbfiz	x24, x27, #3, #32
	add	x9, x9, x24
	cmp	x8, x9
	cset	w0, ls
	bl	_assert
Lloh7:
	adrp	x8, _PACKET_BUFFER_SIZE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _PACKET_BUFFER_SIZE@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	sub	w22, w8, w22
	str	w22, [sp, #48]
	ldr	x8, [x26]
	add	x0, x8, x24
	ldr	x2, [sp, #56]
	ldr	w3, [sp, #52]
	add	x1, sp, #48
	bl	_gzdecode
Lloh10:
	adrp	x8, _Z_OK@GOTPAGE
Lloh11:
	ldr	x8, [x8, _Z_OK@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	cmp	w8, w0
	b.ne	LBB0_11
; %bb.6:
	ldr	w8, [sp, #48]
	tst	w8, #0x3
	b.eq	LBB0_15
; %bb.7:
	str	x8, [sp]
Lloh13:
	adrp	x1, l_.str.8@PAGE
Lloh14:
	add	x1, x1, l_.str.8@PAGEOFF
	b	LBB0_18
LBB0_8:
	mov	w0, #0
	str	x9, [x21]
	str	w23, [x20]
	b	LBB0_19
LBB0_9:
Lloh15:
	adrp	x1, l_.str.1@PAGE
Lloh16:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_18
LBB0_10:
	str	x8, [sp]
Lloh17:
	adrp	x1, l_.str.2@PAGE
Lloh18:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_18
LBB0_11:
	ldr	x8, [x26]
	add	x8, x8, x23, lsl #3
	ldr	x9, [sp, #56]
	ldr	w10, [sp, #52]
Lloh19:
	adrp	x11, _Z_MEM_ERROR@GOTPAGE
Lloh20:
	ldr	x11, [x11, _Z_MEM_ERROR@GOTPAGEOFF]
Lloh21:
	ldr	w11, [x11]
	cmp	w0, w11
	b.ne	LBB0_13
; %bb.12:
Lloh22:
	adrp	x11, l_.str.4@PAGE
Lloh23:
	add	x11, x11, l_.str.4@PAGEOFF
	b	LBB0_17
LBB0_13:
Lloh24:
	adrp	x11, _Z_BUF_ERROR@GOTPAGE
Lloh25:
	ldr	x11, [x11, _Z_BUF_ERROR@GOTPAGEOFF]
Lloh26:
	ldr	w11, [x11]
	cmp	w0, w11
	b.ne	LBB0_16
; %bb.14:
Lloh27:
	adrp	x11, l_.str.5@PAGE
Lloh28:
	add	x11, x11, l_.str.5@PAGEOFF
	b	LBB0_17
LBB0_15:
	ldr	x9, [x26]
	add	x9, x9, x23, lsl #3
	str	x9, [x21]
	add	w9, w8, #3
	cmp	w8, #0
	csel	w8, w9, w8, lt
	asr	w8, w8, #2
	str	w8, [x20]
	mov	w0, #1
	b	LBB0_19
LBB0_16:
Lloh29:
	adrp	x11, _Z_DATA_ERROR@GOTPAGE
Lloh30:
	ldr	x11, [x11, _Z_DATA_ERROR@GOTPAGEOFF]
Lloh31:
	ldr	w11, [x11]
Lloh32:
	adrp	x12, l_.str.7@PAGE
Lloh33:
	add	x12, x12, l_.str.7@PAGEOFF
Lloh34:
	adrp	x13, l_.str.6@PAGE
Lloh35:
	add	x13, x13, l_.str.6@PAGEOFF
	cmp	w0, w11
	csel	x11, x13, x12, eq
LBB0_17:
	stp	x10, x11, [sp, #24]
	stp	x22, x9, [sp, #8]
	str	x8, [sp]
Lloh36:
	adrp	x1, l_.str.3@PAGE
Lloh37:
	add	x1, x1, l_.str.3@PAGEOFF
LBB0_18:
	mov	x0, x19
	bl	_tl_failf
LBB0_19:
	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
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpAdd	Lloh36, Lloh37
	.cfi_endproc
                                        ; -- End function
	.comm	_P,8,3                          ; @P
	.comm	_GZIP_PACKED,8,3                ; @GZIP_PACKED
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ilen: %d, slen: %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"tl_fetch_string fail"

l_.str.2:                               ; @.str.2
	.asciz	"packet contains extra %d ints"

	.comm	_PACKET_BUFFER_SIZE,4,2         ; @PACKET_BUFFER_SIZE
	.comm	_Z_OK,4,2                       ; @Z_OK
l_.str.3:                               ; @.str.3
	.asciz	"uncompress (%p, %d, %p, %d) returns %s"

	.comm	_Z_MEM_ERROR,4,2                ; @Z_MEM_ERROR
l_.str.4:                               ; @.str.4
	.asciz	"Z_MEM_ERROR"

	.comm	_Z_BUF_ERROR,4,2                ; @Z_BUF_ERROR
l_.str.5:                               ; @.str.5
	.asciz	"Z_BUF_ERROR"

	.comm	_Z_DATA_ERROR,4,2               ; @Z_DATA_ERROR
l_.str.6:                               ; @.str.6
	.asciz	"Z_DATA_ERROR"

l_.str.7:                               ; @.str.7
	.asciz	"???"

l_.str.8:                               ; @.str.8
	.asciz	"destLen(%d) isn't multiple of 4"

	.no_dead_strip	_unpack_packet
.subsections_via_symbols
