	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_hevc_cabac_init             ## -- Begin function ff_hevc_cabac_init
	.p2align	4, 0x90
_ff_hevc_cabac_init:                    ## @ff_hevc_cabac_init
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movq	16(%rdi), %rax
	movq	32(%rdi), %rcx
	movq	(%rax), %rdx
	cmpl	%esi, (%rdx,%rcx,4)
	jne	LBB0_14
## %bb.1:
	movq	%rbx, %rdi
	callq	_cabac_init_decoder
	testl	%eax, %eax
	js	LBB0_2
## %bb.3:
	cmpq	$0, 40(%rbx)
	je	LBB0_6
## %bb.4:
	movq	16(%rbx), %rax
	cmpq	$0, 24(%rax)
	je	LBB0_7
## %bb.5:
	movq	8(%rax), %rax
	movslq	%r14d, %rcx
	movq	(%rax,%rcx,8), %rdx
	cmpq	-8(%rax,%rcx,8), %rdx
	je	LBB0_7
LBB0_6:
	movq	%rbx, %rdi
	callq	_cabac_init_state
LBB0_7:
	xorl	%r15d, %r15d
	cmpl	$0, 48(%rbx)
	jne	LBB0_31
## %bb.8:
	movq	16(%rbx), %rax
	cmpq	$0, 16(%rax)
	je	LBB0_31
## %bb.9:
	movq	8(%rbx), %rax
	movl	(%rax), %ecx
	movl	%r14d, %eax
	cltd
	idivl	%ecx
	testl	%edx, %edx
	jne	LBB0_31
## %bb.10:
	cmpl	$1, %ecx
	jne	LBB0_12
## %bb.11:
	movq	%rbx, %rdi
	callq	_cabac_init_state
	jmp	LBB0_31
LBB0_14:
	cmpq	$0, 24(%rax)
	je	LBB0_21
## %bb.15:
	movq	8(%rax), %rcx
	movslq	%r14d, %rdx
	movq	(%rcx,%rdx,8), %rsi
	cmpq	-8(%rcx,%rdx,8), %rsi
	je	LBB0_21
## %bb.16:
	cmpl	$1, (%rbx)
	jne	LBB0_18
## %bb.17:
	movq	24(%rbx), %rdi
	callq	_cabac_reinit
	jmp	LBB0_19
LBB0_2:
	movl	%eax, %r15d
	jmp	LBB0_31
LBB0_18:
	movq	%rbx, %rdi
	callq	_cabac_init_decoder
LBB0_19:
	movl	%eax, %r15d
	testl	%eax, %eax
	js	LBB0_31
## %bb.20:
	movq	%rbx, %rdi
	callq	_cabac_init_state
	movq	16(%rbx), %rax
LBB0_21:
	xorl	%r15d, %r15d
	cmpq	$0, 16(%rax)
	je	LBB0_31
## %bb.22:
	movq	8(%rbx), %rcx
	movl	%r14d, %eax
	cltd
	idivl	(%rcx)
	testl	%edx, %edx
	jne	LBB0_31
## %bb.23:
	movq	24(%rbx), %rdi
	callq	_get_cabac_terminate
	cmpl	$1, (%rbx)
	jne	LBB0_25
## %bb.24:
	movq	24(%rbx), %rdi
	callq	_cabac_reinit
	jmp	LBB0_26
LBB0_25:
	movq	%rbx, %rdi
	callq	_cabac_init_decoder
LBB0_26:
	movl	%eax, %r15d
	testl	%eax, %eax
	js	LBB0_31
## %bb.27:
	movq	8(%rbx), %rax
	cmpl	$1, (%rax)
	jne	LBB0_29
## %bb.28:
	movq	%rbx, %rdi
	callq	_cabac_init_state
	jmp	LBB0_30
LBB0_29:
	movq	%rbx, %rdi
	callq	_load_states
LBB0_30:
	xorl	%r15d, %r15d
LBB0_31:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	cmpq	$1, 40(%rbx)
	jne	LBB0_31
## %bb.13:
	movq	%rbx, %rdi
	callq	_load_states
	jmp	LBB0_31
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_hevc_cabac_init             ; -- Begin function ff_hevc_cabac_init
	.p2align	2
_ff_hevc_cabac_init:                    ; @ff_hevc_cabac_init
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x1
	mov	x19, x0
	ldr	x8, [x0, #16]
	ldr	x9, [x8]
	ldr	x10, [x0, #32]
	ldr	w9, [x9, x10, lsl #2]
	cmp	w9, w1
	b.ne	LBB0_11
; %bb.1:
	mov	x0, x19
	bl	_cabac_init_decoder
	tbnz	w0, #31, LBB0_27
; %bb.2:
	ldr	x8, [x19, #40]
	cbz	x8, LBB0_5
; %bb.3:
	ldr	x8, [x19, #16]
	ldr	x9, [x8, #24]
	cbz	x9, LBB0_6
; %bb.4:
	ldr	x8, [x8, #8]
	add	x8, x8, w20, sxtw #3
	ldp	x8, x9, [x8, #-8]
	cmp	x9, x8
	b.eq	LBB0_6
LBB0_5:
	mov	x0, x19
	bl	_cabac_init_state
LBB0_6:
	ldr	w8, [x19, #48]
	cbnz	w8, LBB0_26
; %bb.7:
	ldr	x8, [x19, #16]
	ldr	x8, [x8, #16]
	cbz	x8, LBB0_26
; %bb.8:
	ldr	x8, [x19, #8]
	ldr	w8, [x8]
	sdiv	w9, w20, w8
	msub	w9, w9, w8, w20
	cbnz	w9, LBB0_26
; %bb.9:
	cmp	w8, #1
	b.eq	LBB0_24
; %bb.10:
	ldr	x8, [x19, #40]
	cmp	x8, #1
	b.eq	LBB0_25
	b	LBB0_26
LBB0_11:
	ldr	x9, [x8, #24]
	cbz	x9, LBB0_17
; %bb.12:
	ldr	x9, [x8, #8]
	add	x9, x9, w20, sxtw #3
	ldp	x9, x10, [x9, #-8]
	cmp	x10, x9
	b.eq	LBB0_17
; %bb.13:
	ldr	w8, [x19]
	cmp	w8, #1
	b.ne	LBB0_15
; %bb.14:
	ldr	x0, [x19, #24]
	bl	_cabac_reinit
	tbz	w0, #31, LBB0_16
	b	LBB0_27
LBB0_15:
	mov	x0, x19
	bl	_cabac_init_decoder
	tbnz	w0, #31, LBB0_27
LBB0_16:
	mov	x0, x19
	bl	_cabac_init_state
	ldr	x8, [x19, #16]
LBB0_17:
	ldr	x8, [x8, #16]
	cbz	x8, LBB0_26
; %bb.18:
	ldr	x8, [x19, #8]
	ldr	w8, [x8]
	sdiv	w9, w20, w8
	msub	w8, w9, w8, w20
	cbnz	w8, LBB0_26
; %bb.19:
	ldr	x0, [x19, #24]
	bl	_get_cabac_terminate
	ldr	w8, [x19]
	cmp	w8, #1
	b.ne	LBB0_21
; %bb.20:
	ldr	x0, [x19, #24]
	bl	_cabac_reinit
	b	LBB0_22
LBB0_21:
	mov	x0, x19
	bl	_cabac_init_decoder
LBB0_22:
	tbnz	w0, #31, LBB0_27
; %bb.23:
	ldr	x8, [x19, #8]
	ldr	w8, [x8]
	cmp	w8, #1
	b.ne	LBB0_25
LBB0_24:
	mov	x0, x19
	bl	_cabac_init_state
	b	LBB0_26
LBB0_25:
	mov	x0, x19
	bl	_load_states
LBB0_26:
	mov	w0, #0
LBB0_27:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
