	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function h263p_encode_umotion
_h263p_encode_umotion:                  ## @h263p_encode_umotion
	.cfi_startproc
## %bb.0:
	cmpl	$-1, %esi
	je	LBB0_5
## %bb.1:
	cmpl	$1, %esi
	je	LBB0_4
## %bb.2:
	testl	%esi, %esi
	jne	LBB0_6
## %bb.3:
	movl	$1, %esi
	movl	$1, %edx
	jmp	_put_bits                       ## TAILCALL
LBB0_5:
	movl	$3, %esi
	movl	$2, %edx
	jmp	_put_bits                       ## TAILCALL
LBB0_4:
	movl	$3, %esi
	xorl	%edx, %edx
	jmp	_put_bits                       ## TAILCALL
LBB0_6:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	.cfi_offset %rbx, -24
	movl	%esi, %eax
	shll	$16, %eax
	movl	%eax, %r8d
	negl	%r8d
	testl	%esi, %esi
	cmovnsl	%eax, %r8d
	xorl	%edx, %edx
	testl	%r8d, %r8d
	je	LBB0_7
## %bb.8:
	sarl	$16, %r8d
	movw	$-1, %bx
	movl	%r8d, %eax
	movl	%r8d, %ecx
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	sarl	%ecx
	incl	%ebx
	cmpl	$1, %eax
	movl	%ecx, %eax
	ja	LBB0_9
## %bb.10:
	leal	1(%rbx), %eax
	movswl	%ax, %r9d
	testw	%bx, %bx
	jle	LBB0_18
## %bb.11:
	movzwl	%bx, %r10d
	cmpw	$1, %bx
	jne	LBB0_13
## %bb.12:
	xorl	%r11d, %r11d
                                        ## implicit-def: $edx
	testb	$1, %bl
	jne	LBB0_17
	jmp	LBB0_18
LBB0_7:
	xorl	%r9d, %r9d
	jmp	LBB0_18
LBB0_13:
	movl	%ebx, %r11d
	andl	$65534, %r11d                   ## imm = 0xFFFE
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	leal	-1(%r10), %ecx
	movl	$1, %eax
	shll	%cl, %eax
	andl	%r8d, %eax
                                        ## kill: def $cl killed $cl killed $ecx
	sarl	%cl, %eax
	shll	$3, %eax
	shll	$4, %edx
	orl	%eax, %edx
	addl	$-2, %r10d
	movl	$1, %eax
	movl	%r10d, %ecx
	shll	%cl, %eax
	andl	%r8d, %eax
	sarl	%cl, %eax
	addl	%eax, %eax
	orl	%eax, %edx
	orl	$5, %edx
	addw	$-2, %r11w
	jne	LBB0_14
## %bb.15:
	leal	(,%rdx,4), %r11d
	testb	$1, %bl
	je	LBB0_18
LBB0_17:
	decb	%r10b
	movl	$1, %edx
	movl	%r10d, %ecx
	shll	%cl, %edx
	andl	%r8d, %edx
	sarl	%cl, %edx
	addl	%edx, %edx
	orl	%r11d, %edx
	orl	$1, %edx
LBB0_18:
	shldl	$1, %esi, %edx
	addl	%edx, %edx
	leal	(%r9,%r9), %esi
	incl	%esi
                                        ## kill: def $edx killed $edx killed $rdx
	popq	%rbx
	popq	%rbp
	jmp	_put_bits                       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_h263p_encode_umotion
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function h263p_encode_umotion
_h263p_encode_umotion:                  ; @h263p_encode_umotion
	.cfi_startproc
; %bb.0:
	cmn	w1, #1
	b.eq	LBB0_4
; %bb.1:
	cmp	w1, #1
	b.eq	LBB0_5
; %bb.2:
	cbnz	w1, LBB0_6
; %bb.3:
	mov	w1, #1
	mov	w2, #1
	b	_put_bits
LBB0_4:
	mov	w1, #3
	mov	w2, #2
	b	_put_bits
LBB0_5:
	mov	w1, #3
	mov	w2, #0
	b	_put_bits
LBB0_6:
	lsl	w8, w1, #16
	cmp	w1, #0
	mov	w9, #0
	cneg	w8, w8, lt
	cbz	w8, LBB0_12
; %bb.7:
	asr	w8, w8, #16
	mov	x10, x8
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	mov	x11, x9
	asr	w12, w10, #1
	add	w9, w9, #1
	cmp	w10, #1
	mov	x10, x12
	b.hi	LBB0_8
; %bb.9:
	sxth	w9, w9
	sxth	w10, w11
	cmp	w10, #1
	b.lt	LBB0_12
; %bb.10:
	mov	w10, #0
	and	w11, w11, #0xffff
	sub	w11, w11, #1
	mov	w12, #1
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	lsl	w13, w12, w11
	and	w13, w13, w8
	asr	w13, w13, w11
	lsl	w13, w13, #1
	orr	w10, w13, w10, lsl #2
	orr	w10, w10, #0x1
	sxth	w13, w11
	sub	w11, w11, #1
	cmp	w13, #0
	b.gt	LBB0_11
	b	LBB0_13
LBB0_12:
	mov	w10, #0
LBB0_13:
	extr	w8, w10, w1, #31
	lsl	w2, w8, #1
	mov	w1, #1
	bfi	w1, w9, #1, #31
	b	_put_bits
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_h263p_encode_umotion
.subsections_via_symbols
