	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xface_decode_frame
_xface_decode_frame:                    ## @xface_decode_frame
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r12
	movq	%rdx, %r14
	movq	%rdi, %rbx
	movq	(%rdi), %r15
	movl	$0, -48(%rbp)
	movq	%rsi, -80(%rbp)                 ## 8-byte Spill
	xorl	%edx, %edx
	callq	_ff_get_buffer
	testl	%eax, %eax
	js	LBB0_19
## %bb.1:
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movq	%r14, -72(%rbp)                 ## 8-byte Spill
	movl	(%r12), %eax
	testl	%eax, %eax
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	jle	LBB0_10
## %bb.2:
	xorl	%ebx, %ebx
	xorl	%r14d, %r14d
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=1
	incq	%rbx
	movslq	%eax, %rcx
	cmpq	%rcx, %rbx
	jge	LBB0_10
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r12), %rcx
	movq	(%rcx,%rbx,8), %r13
	testq	%r13, %r13
	je	LBB0_10
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_XFACE_FIRST_PRINT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %r13
	jl	LBB0_9
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_XFACE_LAST_PRINT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %r13
	jg	LBB0_9
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_XFACE_MAX_DIGITS@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r14d
	jge	LBB0_7
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	incl	%r14d
	movq	_XFACE_PRINTS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-48(%rbp), %r12
	movq	%r12, %rdi
	callq	_ff_big_mul
	movq	_XFACE_FIRST_PRINT@GOTPCREL(%rip), %rax
	subq	(%rax), %r13
	movq	%r12, %rdi
	movq	%r13, %rsi
	callq	_ff_big_add
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	movl	(%r12), %eax
	jmp	LBB0_9
LBB0_7:
	movq	_AV_LOG_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movl	%ebx, %ecx
	callq	_av_log
LBB0_10:
	movq	(%r15), %rdi
	movq	_XFACE_PIXELS@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%r13d, %r13d
	xorl	%esi, %esi
	callq	_memset
	movq	(%r15), %rbx
	leaq	-48(%rbp), %r14
	movq	%r14, %rdi
	movq	%rbx, %rsi
	movl	$16, %edx
	movl	$16, %ecx
	xorl	%r8d, %r8d
	callq	_decode_block
	leaq	16(%rbx), %rsi
	movq	%r14, %rdi
	movl	$16, %edx
	movl	$16, %ecx
	xorl	%r8d, %r8d
	callq	_decode_block
	leaq	32(%rbx), %rsi
	movq	%r14, %rdi
	movl	$16, %edx
	movl	$16, %ecx
	xorl	%r8d, %r8d
	callq	_decode_block
	movq	_XFACE_WIDTH@GOTPCREL(%rip), %r12
	movslq	(%r12), %rsi
	shlq	$4, %rsi
	addq	%rbx, %rsi
	movq	%r14, %rdi
	movl	$16, %edx
	movl	$16, %ecx
	xorl	%r8d, %r8d
	callq	_decode_block
	movslq	(%r12), %rax
	shlq	$4, %rax
	leaq	(%rbx,%rax), %rsi
	addq	$16, %rsi
	movq	%r14, %rdi
	movl	$16, %edx
	movl	$16, %ecx
	xorl	%r8d, %r8d
	callq	_decode_block
	movslq	(%r12), %rax
	shlq	$4, %rax
	leaq	(%rbx,%rax), %rsi
	addq	$32, %rsi
	movq	%r14, %rdi
	movl	$16, %edx
	movl	$16, %ecx
	xorl	%r8d, %r8d
	callq	_decode_block
	movslq	(%r12), %rsi
	shlq	$5, %rsi
	addq	%rbx, %rsi
	movq	%r14, %rdi
	movl	$16, %edx
	movl	$16, %ecx
	xorl	%r8d, %r8d
	callq	_decode_block
	movslq	(%r12), %rax
	shlq	$5, %rax
	leaq	(%rbx,%rax), %rsi
	addq	$16, %rsi
	movq	%r14, %rdi
	movl	$16, %edx
	movl	$16, %ecx
	xorl	%r8d, %r8d
	callq	_decode_block
	movslq	(%r12), %rax
	shlq	$5, %rax
	leaq	(%rbx,%rax), %rsi
	addq	$32, %rsi
	movq	%r14, %rdi
	movl	$16, %edx
	movl	$16, %ecx
	xorl	%r8d, %r8d
	callq	_decode_block
	movq	(%r15), %rdi
	movq	%rdi, %rsi
	callq	_ff_xface_generate_face
	movq	_XFACE_PIXELS@GOTPCREL(%rip), %r9
	cmpl	$0, (%r9)
	movq	-80(%rbp), %r8                  ## 8-byte Reload
	jle	LBB0_18
## %bb.11:
	movq	(%r8), %rax
	movq	(%rax), %rax
	xorl	%ecx, %ecx
	xorl	%edx, %edx
	xorl	%esi, %esi
	jmp	LBB0_12
	.p2align	4, 0x90
LBB0_17:                                ##   in Loop: Header=BB0_12 Depth=1
	incq	%rcx
	movslq	(%r9), %rdi
	cmpq	%rdi, %rcx
	jge	LBB0_18
LBB0_12:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r15), %rdi
	movzbl	(%rdi,%rcx), %edi
	addl	%r13d, %edi
	cmpl	$7, %edx
	je	LBB0_13
## %bb.14:                              ##   in Loop: Header=BB0_12 Depth=1
	incl	%edx
	addl	%edi, %edi
	movl	%edi, %r13d
	jmp	LBB0_15
	.p2align	4, 0x90
LBB0_13:                                ##   in Loop: Header=BB0_12 Depth=1
	movslq	%esi, %rdx
	incl	%esi
	movb	%dil, (%rax,%rdx)
	xorl	%edx, %edx
	xorl	%r13d, %r13d
LBB0_15:                                ##   in Loop: Header=BB0_12 Depth=1
	movl	(%r12), %edi
	leal	7(%rdi), %ebx
	testl	%edi, %edi
	cmovnsl	%edi, %ebx
	sarl	$3, %ebx
	cmpl	%ebx, %esi
	jne	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_12 Depth=1
	movq	8(%r8), %rsi
	movslq	(%rsi), %rsi
	addq	%rsi, %rax
	xorl	%esi, %esi
	jmp	LBB0_17
LBB0_18:
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movl	$1, (%rax)
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %eax
LBB0_19:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_XFACE_FIRST_PRINT,8,3          ## @XFACE_FIRST_PRINT
	.comm	_XFACE_LAST_PRINT,8,3           ## @XFACE_LAST_PRINT
	.comm	_XFACE_MAX_DIGITS,4,2           ## @XFACE_MAX_DIGITS
	.comm	_AV_LOG_WARNING,4,2             ## @AV_LOG_WARNING
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Buffer is longer than expected, truncating at byte %d\n"

	.comm	_XFACE_PRINTS,4,2               ## @XFACE_PRINTS
	.comm	_XFACE_PIXELS,4,2               ## @XFACE_PIXELS
	.comm	_XFACE_WIDTH,4,2                ## @XFACE_WIDTH
	.no_dead_strip	_xface_decode_frame
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xface_decode_frame
_xface_decode_frame:                    ; @xface_decode_frame
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x3
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
	ldr	x24, [x0]
	str	wzr, [sp, #8]
	mov	w2, #0
	bl	_ff_get_buffer
	tbnz	w0, #31, LBB0_18
; %bb.1:
	str	x20, [sp]                       ; 8-byte Folded Spill
	ldr	w8, [x19]
	cmp	w8, #1
	b.lt	LBB0_9
; %bb.2:
	mov	x23, #0
	mov	w25, #0
Lloh0:
	adrp	x26, _XFACE_FIRST_PRINT@GOTPAGE
Lloh1:
	ldr	x26, [x26, _XFACE_FIRST_PRINT@GOTPAGEOFF]
Lloh2:
	adrp	x27, _XFACE_LAST_PRINT@GOTPAGE
Lloh3:
	ldr	x27, [x27, _XFACE_LAST_PRINT@GOTPAGEOFF]
Lloh4:
	adrp	x28, _XFACE_MAX_DIGITS@GOTPAGE
Lloh5:
	ldr	x28, [x28, _XFACE_MAX_DIGITS@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x23, x23, #1
	cmp	x23, w8, sxtw
	b.ge	LBB0_9
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x9, [x19, #8]
	ldr	x20, [x9, x23, lsl #3]
	cbz	x20, LBB0_9
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x9, [x26]
	ldr	x10, [x27]
	cmp	x20, x9
	ccmp	x20, x10, #0, ge
	b.gt	LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x28]
	cmp	w25, w8
	b.ge	LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	add	w25, w25, #1
Lloh6:
	adrp	x8, _XFACE_PRINTS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _XFACE_PRINTS@GOTPAGEOFF]
Lloh8:
	ldr	w1, [x8]
	add	x0, sp, #8
	bl	_ff_big_mul
	ldr	x8, [x26]
	sub	x1, x20, x8
	add	x0, sp, #8
	bl	_ff_big_add
	ldr	w8, [x19]
	b	LBB0_3
LBB0_8:
Lloh9:
	adrp	x8, _AV_LOG_WARNING@GOTPAGE
Lloh10:
	ldr	x8, [x8, _AV_LOG_WARNING@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x8]
Lloh12:
	adrp	x2, l_.str@PAGE
Lloh13:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x22
	mov	x3, x23
	bl	_av_log
LBB0_9:
	ldr	x0, [x24]
Lloh14:
	adrp	x23, _XFACE_PIXELS@GOTPAGE
Lloh15:
	ldr	x23, [x23, _XFACE_PIXELS@GOTPAGEOFF]
	ldr	w2, [x23]
	mov	w1, #0
	bl	_memset
	ldr	x22, [x24]
	add	x0, sp, #8
	mov	x1, x22
	mov	w2, #16
	mov	w3, #16
	mov	w4, #0
	bl	_decode_block
	add	x1, x22, #16
	add	x0, sp, #8
	mov	w2, #16
	mov	w3, #16
	mov	w4, #0
	bl	_decode_block
	add	x1, x22, #32
	add	x0, sp, #8
	mov	w2, #16
	mov	w3, #16
	mov	w4, #0
	bl	_decode_block
Lloh16:
	adrp	x25, _XFACE_WIDTH@GOTPAGE
Lloh17:
	ldr	x25, [x25, _XFACE_WIDTH@GOTPAGEOFF]
	ldrsw	x8, [x25]
	add	x1, x22, x8, lsl #4
	add	x0, sp, #8
	mov	w2, #16
	mov	w3, #16
	mov	w4, #0
	bl	_decode_block
	ldrsw	x8, [x25]
	add	x8, x22, x8, lsl #4
	add	x1, x8, #16
	add	x0, sp, #8
	mov	w2, #16
	mov	w3, #16
	mov	w4, #0
	bl	_decode_block
	ldrsw	x8, [x25]
	add	x8, x22, x8, lsl #4
	add	x1, x8, #32
	add	x0, sp, #8
	mov	w2, #16
	mov	w3, #16
	mov	w4, #0
	bl	_decode_block
	ldrsw	x8, [x25]
	add	x1, x22, x8, lsl #5
	add	x0, sp, #8
	mov	w2, #16
	mov	w3, #16
	mov	w4, #0
	bl	_decode_block
	ldrsw	x8, [x25]
	add	x8, x22, x8, lsl #5
	add	x1, x8, #16
	add	x0, sp, #8
	mov	w2, #16
	mov	w3, #16
	mov	w4, #0
	bl	_decode_block
	ldrsw	x8, [x25]
	add	x8, x22, x8, lsl #5
	add	x1, x8, #32
	add	x0, sp, #8
	mov	w2, #16
	mov	w3, #16
	mov	w4, #0
	bl	_decode_block
	ldr	x0, [x24]
	mov	x1, x0
	bl	_ff_xface_generate_face
	ldr	w8, [x23]
	cmp	w8, #1
	ldr	x15, [sp]                       ; 8-byte Folded Reload
	b.lt	LBB0_17
; %bb.10:
	mov	x8, #0
	mov	w12, #0
	mov	w9, #0
	mov	w11, #0
	ldr	x10, [x21]
	ldr	x10, [x10]
	b	LBB0_12
LBB0_11:                                ;   in Loop: Header=BB0_12 Depth=1
	add	x8, x8, #1
	ldrsw	x13, [x23]
	cmp	x8, x13
	b.ge	LBB0_17
LBB0_12:                                ; =>This Inner Loop Header: Depth=1
	ldr	x13, [x24]
	ldrb	w13, [x13, x8]
	add	w13, w12, w13
	cmp	w9, #7
	b.eq	LBB0_14
; %bb.13:                               ;   in Loop: Header=BB0_12 Depth=1
	add	w9, w9, #1
	lsl	w12, w13, #1
	b	LBB0_15
LBB0_14:                                ;   in Loop: Header=BB0_12 Depth=1
	mov	w9, #0
	mov	w12, #0
	strb	w13, [x10, w11, sxtw]
	add	w11, w11, #1
LBB0_15:                                ;   in Loop: Header=BB0_12 Depth=1
	ldr	w13, [x25]
	add	w14, w13, #7
	cmp	w13, #0
	csel	w13, w14, w13, lt
	cmp	w11, w13, asr #3
	b.ne	LBB0_11
; %bb.16:                               ;   in Loop: Header=BB0_12 Depth=1
	mov	w11, #0
	ldr	x13, [x21, #8]
	ldrsw	x13, [x13]
	add	x10, x10, x13
	b	LBB0_11
LBB0_17:
	mov	w8, #1
	str	w8, [x15]
	ldr	w0, [x19]
LBB0_18:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.comm	_XFACE_FIRST_PRINT,8,3          ; @XFACE_FIRST_PRINT
	.comm	_XFACE_LAST_PRINT,8,3           ; @XFACE_LAST_PRINT
	.comm	_XFACE_MAX_DIGITS,4,2           ; @XFACE_MAX_DIGITS
	.comm	_AV_LOG_WARNING,4,2             ; @AV_LOG_WARNING
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Buffer is longer than expected, truncating at byte %d\n"

	.comm	_XFACE_PRINTS,4,2               ; @XFACE_PRINTS
	.comm	_XFACE_PIXELS,4,2               ; @XFACE_PIXELS
	.comm	_XFACE_WIDTH,4,2                ; @XFACE_WIDTH
	.no_dead_strip	_xface_decode_frame
.subsections_via_symbols
