	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function h261_resync
_h261_resync:                           ## @h261_resync
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	cmpq	$0, (%rdi)
	je	LBB0_2
## %bb.1:
	movq	%r14, %rdi
	callq	_h261_decode_gob_header
	movl	%eax, %ecx
	xorl	%eax, %eax
	testl	%ecx, %ecx
	jns	LBB0_12
	jmp	LBB0_11
LBB0_2:
	leaq	8(%r14), %r15
	movq	%r15, %rdi
	movl	$15, %esi
	callq	_show_bits
	testq	%rax, %rax
	je	LBB0_3
LBB0_4:
	movl	12(%r14), %eax
	movl	%eax, 8(%r14)
	movq	%r15, %rdi
	callq	_align_get_bits
	movq	%r15, %rdi
	callq	_get_bits_left
	cmpl	$26, %eax
	jl	LBB0_11
## %bb.5:
	movl	%eax, %ebx
	addl	$8, %ebx
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	%r15, %rdi
	movl	$8, %esi
	callq	_skip_bits
	addl	$-8, %ebx
	cmpl	$33, %ebx
	jle	LBB0_11
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	movl	$15, %esi
	callq	_show_bits
	testq	%rax, %rax
	jne	LBB0_10
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movl	8(%r14), %r12d
	movq	%r14, %rdi
	callq	_h261_decode_gob_header
	testl	%eax, %eax
	jns	LBB0_8
## %bb.9:                               ##   in Loop: Header=BB0_6 Depth=1
	movl	%r12d, (%r15)
	jmp	LBB0_10
LBB0_11:
	movl	$-1, %eax
LBB0_12:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	%r14, %rdi
	callq	_h261_decode_gob_header
	movl	%eax, %ecx
	xorl	%eax, %eax
	testl	%ecx, %ecx
	jns	LBB0_12
	jmp	LBB0_4
LBB0_8:
	xorl	%eax, %eax
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_h261_resync
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function h261_resync
_h261_resync:                           ; @h261_resync
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x0
	ldr	x8, [x0]
	cbz	x8, LBB0_3
; %bb.1:
	mov	x0, x19
	bl	_h261_decode_gob_header
	tbnz	w0, #31, LBB0_10
LBB0_2:
	mov	w0, #0
	b	LBB0_11
LBB0_3:
	add	x20, x19, #8
	mov	x0, x20
	mov	w1, #15
	bl	_show_bits
	cbz	x0, LBB0_12
LBB0_4:
	ldr	w8, [x19, #12]
	str	w8, [x19, #8]
	mov	x0, x20
	bl	_align_get_bits
	mov	x0, x20
	bl	_get_bits_left
	cmp	w0, #26
	b.lt	LBB0_10
; %bb.5:
	add	w21, w0, #8
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x20
	mov	w1, #8
	bl	_skip_bits
	sub	w21, w21, #8
	cmp	w21, #33
	b.le	LBB0_10
LBB0_7:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	mov	w1, #15
	bl	_show_bits
	cbnz	x0, LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	w22, [x19, #8]
	mov	x0, x19
	bl	_h261_decode_gob_header
	tbz	w0, #31, LBB0_2
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
	str	w22, [x20]
	b	LBB0_6
LBB0_10:
	mov	w0, #-1
LBB0_11:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_12:
	mov	x0, x19
	bl	_h261_decode_gob_header
	tbz	w0, #31, LBB0_2
	b	LBB0_4
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_h261_resync
.subsections_via_symbols
