	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gif_parse_packet
_gif_parse_packet:                      ## @gif_parse_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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	leaq	-36(%rbp), %r14
	movq	%r14, %rdi
	callq	_bytestream2_init
	movq	_GIF_EXTENSION_INTRODUCER@GOTPCREL(%rip), %r15
	movq	_GIF_GCE_EXT_LABEL@GOTPCREL(%rip), %r12
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_1 Depth=1
	cmpl	(%r12), %ebx
	je	LBB0_9
LBB0_1:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_5 Depth 2
	movq	%r14, %rdi
	callq	_bytestream2_get_bytes_left
	xorl	%ebx, %ebx
	testq	%rax, %rax
	jle	LBB0_10
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%r14, %rdi
	callq	_bytestream2_get_byte
	cmpl	(%r15), %eax
	jne	LBB0_10
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%r14, %rdi
	callq	_bytestream2_get_byte
	cmpl	(%r12), %eax
	je	LBB0_9
## %bb.4:                               ##   in Loop: Header=BB0_1 Depth=1
	movl	%eax, %ebx
	.p2align	4, 0x90
LBB0_5:                                 ##   Parent Loop BB0_1 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%r14, %rdi
	callq	_bytestream2_get_bytes_left
	testq	%rax, %rax
	jle	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=2
	movq	%r14, %rdi
	callq	_bytestream2_get_byte
	testl	%eax, %eax
	je	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=2
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_bytestream2_skip
	cmpl	(%r12), %ebx
	jne	LBB0_5
	jmp	LBB0_8
LBB0_9:
	leaq	-36(%rbp), %rdi
	callq	_bytestream2_tell
	movl	%eax, %ebx
	addl	$2, %ebx
LBB0_10:
	movl	%ebx, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GIF_EXTENSION_INTRODUCER,4,2   ## @GIF_EXTENSION_INTRODUCER
	.comm	_GIF_GCE_EXT_LABEL,4,2          ## @GIF_GCE_EXT_LABEL
	.no_dead_strip	_gif_parse_packet
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gif_parse_packet
_gif_parse_packet:                      ; @gif_parse_packet
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	add	x0, sp, #12
	bl	_bytestream2_init
Lloh0:
	adrp	x20, _GIF_EXTENSION_INTRODUCER@GOTPAGE
Lloh1:
	ldr	x20, [x20, _GIF_EXTENSION_INTRODUCER@GOTPAGEOFF]
Lloh2:
	adrp	x21, _GIF_GCE_EXT_LABEL@GOTPAGE
Lloh3:
	ldr	x21, [x21, _GIF_GCE_EXT_LABEL@GOTPAGEOFF]
	b	LBB0_2
LBB0_1:                                 ;   in Loop: Header=BB0_2 Depth=1
	ldr	w8, [x21]
	cmp	w19, w8
	b.eq	LBB0_10
LBB0_2:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_6 Depth 2
	add	x0, sp, #12
	bl	_bytestream2_get_bytes_left
	cmp	x0, #1
	b.lt	LBB0_9
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x0, sp, #12
	bl	_bytestream2_get_byte
	ldr	w8, [x20]
	cmp	w0, w8
	b.ne	LBB0_9
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x0, sp, #12
	bl	_bytestream2_get_byte
	ldr	w8, [x21]
	cmp	w0, w8
	b.eq	LBB0_10
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x19, x0
LBB0_6:                                 ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	add	x0, sp, #12
	bl	_bytestream2_get_bytes_left
	cmp	x0, #1
	b.lt	LBB0_1
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=2
	add	x0, sp, #12
	bl	_bytestream2_get_byte
	cbz	w0, LBB0_1
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=2
	mov	x1, x0
	add	x0, sp, #12
	bl	_bytestream2_skip
	ldr	w8, [x21]
	cmp	w19, w8
	b.ne	LBB0_6
	b	LBB0_1
LBB0_9:
	mov	w0, #0
	b	LBB0_11
LBB0_10:
	add	x0, sp, #12
	bl	_bytestream2_tell
	add	w0, w0, #2
LBB0_11:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_GIF_EXTENSION_INTRODUCER,4,2   ; @GIF_EXTENSION_INTRODUCER
	.comm	_GIF_GCE_EXT_LABEL,4,2          ; @GIF_GCE_EXT_LABEL
	.no_dead_strip	_gif_parse_packet
.subsections_via_symbols
