	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pop_greys
_pop_greys:                             ## @pop_greys
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	cmpl	$4, %edx
	jl	LBB0_1
## %bb.2:
	movl	%ecx, %ebx
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movl	%edx, %r13d
	shrl	%r13d
	shrl	$31, %ebx
	addl	%ecx, %ebx
	sarl	%ebx
	movq	%rdi, %r12
	movq	%r15, %rsi
	movl	%r13d, %edx
	movl	%ebx, %ecx
	callq	_pop_greys
	leaq	(%r15,%r13), %rsi
	movq	%r12, %rdi
	movl	%r13d, %edx
	movl	%ebx, %ecx
	callq	_pop_greys
	movq	_XFACE_WIDTH@GOTPCREL(%rip), %rax
	movslq	(%rax), %rsi
	movslq	%ebx, %r14
	imulq	%r14, %rsi
	addq	%r15, %rsi
	movq	%r12, %rdi
	movl	%r13d, %edx
	movl	%r14d, %ecx
	callq	_pop_greys
	movq	%r12, %rdi
	movq	_XFACE_WIDTH@GOTPCREL(%rip), %rax
	movslq	(%rax), %r12
	imulq	%r14, %r12
	addq	%r15, %r12
	addq	%r13, %r12
	movl	%ebx, %ecx
	movq	%r12, %r15
	cmpl	$7, -44(%rbp)                   ## 4-byte Folded Reload
	movl	%r13d, %edx
	ja	LBB0_3
	jmp	LBB0_4
LBB0_1:
	movq	%r15, %r12
LBB0_4:
	movq	_ff_xface_probranges_2x2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_pop_integer
	testb	$1, %al
	jne	LBB0_5
## %bb.6:
	testb	$2, %al
	jne	LBB0_7
LBB0_8:
	testb	$4, %al
	jne	LBB0_9
LBB0_10:
	testb	$8, %al
	je	LBB0_12
LBB0_11:
	movq	_XFACE_WIDTH@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	movb	$1, 1(%rax,%r12)
LBB0_12:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movb	$1, (%r12)
	testb	$2, %al
	je	LBB0_8
LBB0_7:
	movb	$1, 1(%r12)
	testb	$4, %al
	je	LBB0_10
LBB0_9:
	movq	_XFACE_WIDTH@GOTPCREL(%rip), %rcx
	movslq	(%rcx), %rcx
	movb	$1, (%r12,%rcx)
	testb	$8, %al
	jne	LBB0_11
	jmp	LBB0_12
	.cfi_endproc
                                        ## -- End function
	.comm	_XFACE_WIDTH,4,2                ## @XFACE_WIDTH
	.comm	_ff_xface_probranges_2x2,4,2    ## @ff_xface_probranges_2x2
	.no_dead_strip	_pop_greys
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pop_greys
_pop_greys:                             ; @pop_greys
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x24, _XFACE_WIDTH@GOTPAGE
Lloh1:
	ldr	x24, [x24, _XFACE_WIDTH@GOTPAGEOFF]
	cmp	w2, #4
	b.lt	LBB0_3
; %bb.1:
	mov	x21, x3
	mov	x22, x2
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	lsr	w23, w22, #1
	cmp	w21, #0
	cinc	w25, w21, lt
	asr	w21, w25, #1
	mov	x0, x20
	mov	x1, x19
	mov	x2, x23
	mov	x3, x21
	bl	_pop_greys
	add	x1, x19, x23
	mov	x0, x20
	mov	x2, x23
	mov	x3, x21
	bl	_pop_greys
	ldrsw	x8, [x24]
	sbfx	x25, x25, #1, #31
	madd	x1, x8, x25, x19
	mov	x0, x20
	mov	x2, x23
	mov	x3, x21
	bl	_pop_greys
	ldrsw	x8, [x24]
	madd	x8, x8, x25, x19
	add	x19, x8, x23
	cmp	w22, #7
	mov	x22, x23
	b.hi	LBB0_2
LBB0_3:
Lloh2:
	adrp	x8, _ff_xface_probranges_2x2@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ff_xface_probranges_2x2@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_pop_integer
	tbnz	w0, #0, LBB0_9
; %bb.4:
	tbnz	w0, #1, LBB0_10
LBB0_5:
	tbnz	w0, #2, LBB0_11
LBB0_6:
	tbz	w0, #3, LBB0_8
LBB0_7:
	ldrsw	x8, [x24]
	add	x8, x8, x19
	mov	w9, #1
	strb	w9, [x8, #1]
LBB0_8:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_9:
	mov	w8, #1
	strb	w8, [x19]
	tbz	w0, #1, LBB0_5
LBB0_10:
	mov	w8, #1
	strb	w8, [x19, #1]
	tbz	w0, #2, LBB0_6
LBB0_11:
	ldrsw	x8, [x24]
	mov	w9, #1
	strb	w9, [x19, x8]
	tbnz	w0, #3, LBB0_7
	b	LBB0_8
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_XFACE_WIDTH,4,2                ; @XFACE_WIDTH
	.comm	_ff_xface_probranges_2x2,4,2    ; @ff_xface_probranges_2x2
	.no_dead_strip	_pop_greys
.subsections_via_symbols
