	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function php_swf_get_bits
_php_swf_get_bits:                      ## @php_swf_get_bits
	.cfi_startproc
## %bb.0:
	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
                                        ## kill: def $edx killed $edx def $rdx
                                        ## kill: def $esi killed $esi def $rsi
	leal	(%rdx,%rsi), %eax
	cmpl	%esi, %eax
	jbe	LBB0_1
## %bb.2:
	cmpl	$1, %edx
	jne	LBB0_4
## %bb.3:
	xorl	%eax, %eax
	movl	%esi, %r9d
	jmp	LBB0_6
LBB0_1:
	xorl	%eax, %eax
	jmp	LBB0_8
LBB0_4:
	movl	%edx, %r10d
	andl	$-2, %r10d
	leal	-1(%rdx), %r8d
	xorl	%eax, %eax
	movl	%esi, %r9d
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	%r9d, %ecx
	shrq	$3, %rcx
	movzbl	(%rdi,%rcx), %r11d
	movl	%r9d, %ecx
	notb	%cl
	andb	$7, %cl
	movzbl	%cl, %ecx
	xorl	%ebx, %ebx
	btl	%ecx, %r11d
	setb	%bl
	movl	%r8d, %ecx
	shll	%cl, %ebx
	movslq	%ebx, %r11
	addq	%rax, %r11
	leal	1(%r9), %eax
	movq	%rax, %rcx
	shrq	$3, %rcx
	movzbl	(%rdi,%rcx), %ecx
	notb	%al
	andb	$7, %al
	movzbl	%al, %eax
	xorl	%ebx, %ebx
	btl	%eax, %ecx
	setb	%bl
	leal	-1(%r8), %ecx
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %ebx
	movslq	%ebx, %rax
	addq	%r11, %rax
	addl	$2, %r9d
	addl	$-2, %r8d
	addl	$-2, %r10d
	jne	LBB0_5
LBB0_6:
	testb	$1, %dl
	je	LBB0_8
## %bb.7:
	leal	(%rsi,%rdx), %ecx
	decl	%ecx
	movl	%r9d, %edx
	shrq	$3, %rdx
	movzbl	(%rdi,%rdx), %edx
	movl	%r9d, %ebx
	notb	%bl
	andb	$7, %bl
	movzbl	%bl, %esi
	xorl	%edi, %edi
	btl	%esi, %edx
	setb	%dil
	subl	%r9d, %ecx
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %edi
	movslq	%edi, %rcx
	addq	%rcx, %rax
LBB0_8:
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_php_swf_get_bits
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function php_swf_get_bits
_php_swf_get_bits:                      ; @php_swf_get_bits
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	.cfi_offset w19, -8
	.cfi_offset w20, -16
	.cfi_offset w21, -24
	.cfi_offset w22, -32
	add	w8, w2, w1
	cmp	w8, w1
	b.ls	LBB0_3
; %bb.1:
	cmp	w2, #4
	b.hs	LBB0_4
; %bb.2:
	mov	x8, #0
	mov	x9, x1
	b	LBB0_7
LBB0_3:
	mov	x8, #0
	b	LBB0_9
LBB0_4:
	mov	x12, #0
	mov	x13, #0
	mov	x11, #0
	mov	x8, #0
	and	w10, w2, #0xfffffffc
	add	w9, w10, w1
	mov	w14, #-2
	mov	w15, #-1
	mov	w16, #-4
	mov	w17, #-3
	mov	x3, x1
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	mov	w4, w3
	add	w5, w3, #1
	mvn	w6, w5
	mvn	w7, w3
	add	w19, w3, #2
	mvn	w20, w19
	lsr	x4, x4, #3
	lsr	x5, x5, #3
	add	w21, w3, #3
	mvn	w22, w21
	lsr	x19, x19, #3
	ldrb	w4, [x0, x4]
	ldrb	w5, [x0, x5]
	lsr	x21, x21, #3
	ldrb	w19, [x0, x19]
	ldrb	w21, [x0, x21]
	and	w7, w7, #0x7
	and	w6, w6, #0x7
	and	w20, w20, #0x7
	and	w22, w22, #0x7
	lsr	w4, w4, w7
	lsr	w5, w5, w6
	lsr	w6, w19, w20
	lsr	w7, w21, w22
	and	w4, w4, #0x1
	and	w5, w5, #0x1
	add	w19, w2, w15
	add	w20, w2, w14
	lsl	w4, w4, w19
	lsl	w5, w5, w20
	and	w6, w6, #0x1
	add	w19, w2, w17
	lsl	w6, w6, w19
	and	w7, w7, #0x1
	add	w19, w2, w16
	add	x12, x12, w4, sxtw
	lsl	w4, w7, w19
	add	x13, x13, w5, sxtw
	sub	w14, w14, #4
	add	w5, w10, w14
	add	w3, w3, #4
	sub	w15, w15, #4
	sub	w16, w16, #4
	sub	w17, w17, #4
	add	x11, x11, w6, sxtw
	add	x8, x8, w4, sxtw
	cmn	w5, #2
	b.ne	LBB0_5
; %bb.6:
	add	x12, x13, x12
	add	x11, x11, x12
	add	x8, x8, x11
	cmp	w10, w2
	b.eq	LBB0_9
LBB0_7:
	mvn	w10, w9
	add	w11, w2, w1
	add	w10, w10, w11
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	mvn	w11, w9
	mov	w12, w9
	lsr	x12, x12, #3
	ldrb	w12, [x0, x12]
	and	w11, w11, #0x7
	lsr	w11, w12, w11
	and	w11, w11, #0x1
	lsl	w11, w11, w10
	add	x8, x8, w11, sxtw
	add	w9, w9, #1
	sub	w10, w10, #1
	cmn	w10, #1
	b.ne	LBB0_8
LBB0_9:
	mov	x0, x8
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #32             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_php_swf_get_bits
.subsections_via_symbols
