	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_intrax8_decode_picture      ## -- Begin function ff_intrax8_decode_picture
	.p2align	4, 0x90
_ff_intrax8_decode_picture:             ## @ff_intrax8_decode_picture
	.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	%r8, %r14
	movq	%rcx, %r15
	movq	%rsi, %r12
	movq	%rdi, %rbx
	movl	24(%rbp), %eax
	movl	16(%rbp), %ecx
	movq	%rdx, 64(%rdi)
	movl	%r9d, (%rdi)
	sarl	%r9d
	movl	%r9d, 4(%rdi)
	movl	%ecx, 8(%rdi)
	movl	8(%rsi), %ecx
	movl	%ecx, 56(%rdi)
	movl	%eax, 12(%rdi)
	movq	%rdx, %rdi
	callq	_get_bits1
	movl	%eax, 72(%rbx)
	movl	(%r15), %eax
	movl	%eax, 16(%rbx)
	movl	(%r14), %eax
	movl	%eax, 20(%rbx)
	movl	4(%rbx), %ecx
	movl	%ecx, %eax
	sarl	%eax
	addl	$65536, %eax                    ## imm = 0x10000
	cltd
	idivl	%ecx
	movl	%eax, 24(%rbx)
	cmpl	$5, %ecx
	jl	LBB0_2
## %bb.1:
	leal	3(%rcx), %esi
	shrl	$3, %esi
	addl	%ecx, %esi
	movl	%esi, %eax
	shrl	%eax
	addl	$65536, %eax                    ## imm = 0x10000
	xorl	%edx, %edx
	divl	%esi
	movl	%esi, %ecx
LBB0_2:
	movl	%ecx, 28(%rbx)
	movl	%eax, 32(%rbx)
	movq	%rbx, %rdi
	callq	_x8_reset_vlc_tables
	movl	$0, 20(%rbx)
	cmpl	$0, 36(%rbx)
	jle	LBB0_17
LBB0_3:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_5 Depth 2
	movl	56(%rbx), %esi
	movq	%rbx, %rdi
	callq	_x8_init_block_index
	movl	20(%rbx), %r13d
	movl	40(%rbx), %eax
	movl	$0, 16(%rbx)
	testl	%eax, %eax
	jle	LBB0_14
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	incl	%eax
	sarl	%r13d
	imull	%eax, %r13d
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_5 Depth=2
	movq	48(%rbx), %rax
LBB0_12:                                ##   in Loop: Header=BB0_5 Depth=2
	addl	$8, (%rax)
	movl	16(%rbx), %eax
	movl	40(%rbx), %ecx
	incl	%eax
	movl	%eax, 16(%rbx)
	addl	%ecx, %ecx
	cmpl	%ecx, %eax
	jge	LBB0_13
LBB0_5:                                 ##   Parent Loop BB0_3 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%rbx, %rdi
	callq	_x8_get_prediction
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_x8_setup_spatial_predictor
	testq	%rax, %rax
	jne	LBB0_17
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=2
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_x8_decode_intra_mb
	testq	%rax, %rax
	jne	LBB0_17
## %bb.7:                               ##   in Loop: Header=BB0_5 Depth=2
	movl	16(%rbx), %eax
	andl	20(%rbx), %eax
	testb	$1, %al
	je	LBB0_8
## %bb.9:                               ##   in Loop: Header=BB0_5 Depth=2
	movq	%rbx, %rdi
	callq	_x8_get_prediction_chroma
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_x8_setup_spatial_predictor
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_x8_decode_intra_mb
	testq	%rax, %rax
	jne	LBB0_17
## %bb.10:                              ##   in Loop: Header=BB0_5 Depth=2
	movq	%rbx, %rdi
	movl	$2, %esi
	callq	_x8_setup_spatial_predictor
	movq	%rbx, %rdi
	movl	$2, %esi
	callq	_x8_decode_intra_mb
	testq	%rax, %rax
	jne	LBB0_17
## %bb.11:                              ##   in Loop: Header=BB0_5 Depth=2
	movq	48(%rbx), %rax
	addl	$8, 4(%rax)
	addl	$8, 8(%rax)
	movl	4(%rbx), %ecx
	movq	(%r12), %rdx
	movslq	%r13d, %r13
	movl	%ecx, (%rdx,%r13,4)
	incl	%r13d
	jmp	LBB0_12
LBB0_13:                                ##   in Loop: Header=BB0_3 Depth=1
	movl	20(%rbx), %r13d
LBB0_14:                                ##   in Loop: Header=BB0_3 Depth=1
	testb	$1, %r13b
	je	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_3 Depth=1
	movl	56(%rbx), %edx
	movl	60(%rbx), %edi
	leal	-8(,%r13,8), %ecx
	movq	_PICT_FRAME@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	movl	%edx, %esi
	movl	$16, %r8d
	movl	32(%rbp), %eax
	pushq	%rax
	pushq	$0
	callq	_ff_draw_horiz_band
	addq	$16, %rsp
	movl	20(%rbx), %r13d
LBB0_16:                                ##   in Loop: Header=BB0_3 Depth=1
	incl	%r13d
	movl	%r13d, 20(%rbx)
	movl	36(%rbx), %eax
	addl	%eax, %eax
	cmpl	%eax, %r13d
	jl	LBB0_3
LBB0_17:
	movl	16(%rbx), %eax
	movl	%eax, (%r15)
	movl	20(%rbx), %eax
	movl	%eax, (%r14)
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PICT_FRAME,4,2                 ## @PICT_FRAME
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_intrax8_decode_picture      ; -- Begin function ff_intrax8_decode_picture
	.p2align	2
_ff_intrax8_decode_picture:             ; @ff_intrax8_decode_picture
	.cfi_startproc
; %bb.0:
	stp	d9, d8, [sp, #-96]!             ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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 b8, -88
	.cfi_offset b9, -96
	mov	x19, x4
	mov	x20, x3
	mov	x22, x1
	mov	x21, x0
	str	x2, [x0, #64]
	asr	w8, w5, #1
	stp	w5, w8, [x0]
	ldr	w8, [x1, #8]
	str	w8, [x0, #56]
	stp	w6, w7, [x0, #8]
	mov	x0, x2
	bl	_get_bits1
	str	w0, [x21, #72]
	ldr	w8, [x20]
	str	w8, [x21, #16]
	ldr	w8, [x19]
	ldr	w9, [x21, #4]
	asr	w10, w9, #1
	add	w10, w10, #16, lsl #12          ; =65536
	sdiv	w10, w10, w9
	stp	w8, w10, [x21, #20]
	add	w8, w9, #3
	add	w8, w9, w8, lsr #3
	lsr	w11, w8, #1
	add	w11, w11, #16, lsl #12          ; =65536
	udiv	w11, w11, w8
	cmp	w9, #5
	csel	w8, w9, w8, lt
	csel	w9, w10, w11, lt
	stp	w8, w9, [x21, #28]
	mov	x0, x21
	bl	_x8_reset_vlc_tables
	str	wzr, [x21, #20]
	ldr	w8, [x21, #36]
	cmp	w8, #1
	b.lt	LBB0_16
; %bb.1:
	ldr	w23, [x29, #16]
	movi.2s	v8, #8
Lloh0:
	adrp	x24, _PICT_FRAME@GOTPAGE
Lloh1:
	ldr	x24, [x24, _PICT_FRAME@GOTPAGEOFF]
LBB0_2:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_6 Depth 2
	ldr	w1, [x21, #56]
	mov	x0, x21
	bl	_x8_init_block_index
	ldr	w8, [x21, #20]
	ldr	w9, [x21, #40]
	str	wzr, [x21, #16]
	cmp	w9, #1
	b.lt	LBB0_13
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	asr	w8, w8, #1
	madd	w25, w8, w9, w8
	b	LBB0_6
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=2
	ldr	x8, [x21, #48]
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=2
	ldr	w9, [x8]
	add	w9, w9, #8
	str	w9, [x8]
	ldr	w8, [x21, #16]
	add	w8, w8, #1
	str	w8, [x21, #16]
	ldr	w9, [x21, #40]
	cmp	w8, w9, lsl #1
	b.ge	LBB0_12
LBB0_6:                                 ;   Parent Loop BB0_2 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x21
	bl	_x8_get_prediction
	mov	x0, x21
	mov	w1, #0
	bl	_x8_setup_spatial_predictor
	cbnz	x0, LBB0_16
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=2
	mov	x0, x21
	mov	w1, #0
	bl	_x8_decode_intra_mb
	cbnz	x0, LBB0_16
; %bb.8:                                ;   in Loop: Header=BB0_6 Depth=2
	ldp	w8, w9, [x21, #16]
	and	w8, w8, w9
	tbz	w8, #0, LBB0_4
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=2
	mov	x0, x21
	bl	_x8_get_prediction_chroma
	mov	x0, x21
	mov	w1, #1
	bl	_x8_setup_spatial_predictor
	mov	x0, x21
	mov	w1, #1
	bl	_x8_decode_intra_mb
	cbnz	x0, LBB0_16
; %bb.10:                               ;   in Loop: Header=BB0_6 Depth=2
	mov	x0, x21
	mov	w1, #2
	bl	_x8_setup_spatial_predictor
	mov	x0, x21
	mov	w1, #2
	bl	_x8_decode_intra_mb
	cbnz	x0, LBB0_16
; %bb.11:                               ;   in Loop: Header=BB0_6 Depth=2
	ldr	x8, [x21, #48]
	ldur	d0, [x8, #4]
	add.2s	v0, v0, v8
	stur	d0, [x8, #4]
	ldr	w9, [x21, #4]
	ldr	x10, [x22]
	str	w9, [x10, w25, sxtw #2]
	add	w25, w25, #1
	b	LBB0_5
LBB0_12:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	w8, [x21, #20]
LBB0_13:                                ;   in Loop: Header=BB0_2 Depth=1
	tbz	w8, #0, LBB0_15
; %bb.14:                               ;   in Loop: Header=BB0_2 Depth=1
	ldp	w1, w0, [x21, #56]
	lsl	w8, w8, #3
	sub	w3, w8, #8
	ldr	w5, [x24]
	mov	x2, x1
	mov	w4, #16
	mov	w6, #0
	mov	x7, x23
	bl	_ff_draw_horiz_band
	ldr	w8, [x21, #20]
LBB0_15:                                ;   in Loop: Header=BB0_2 Depth=1
	add	w8, w8, #1
	str	w8, [x21, #20]
	ldr	w9, [x21, #36]
	cmp	w8, w9, lsl #1
	b.lt	LBB0_2
LBB0_16:
	ldr	w8, [x21, #16]
	str	w8, [x20]
	ldr	w8, [x21, #20]
	str	w8, [x19]
	mov	w0, #0
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	d9, d8, [sp], #96               ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_PICT_FRAME,4,2                 ; @PICT_FRAME
.subsections_via_symbols
