	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dxva2_hevc_decode_slice
_dxva2_hevc_decode_slice:               ## @dxva2_hevc_decode_slice
	.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
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	(%rdi), %rax
	movq	(%rax), %rax
	movq	(%rax), %rbx
	movq	(%rbx), %rdi
	movq	_MAX_SLICES@GOTPCREL(%rip), %rcx
	movl	$-1, %eax
	cmpq	(%rcx), %rdi
	jae	LBB0_4
## %bb.1:
	movq	16(%rbx), %rax
	testq	%rax, %rax
	jne	LBB0_3
## %bb.2:
	movq	%rsi, 16(%rbx)
	movq	%rsi, %rax
LBB0_3:
	addl	%edx, 24(%rbx)
	subq	%rax, %rsi
	shrq	$2, %rsi
	shlq	$2, %rdi
	addq	8(%rbx), %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	callq	_fill_slice_short
	incq	(%rbx)
	xorl	%eax, %eax
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_SLICES,8,3                 ## @MAX_SLICES
	.no_dead_strip	_dxva2_hevc_decode_slice
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dxva2_hevc_decode_slice
_dxva2_hevc_decode_slice:               ; @dxva2_hevc_decode_slice
	.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
	ldr	x8, [x0]
	ldr	x8, [x8]
	ldr	x19, [x8]
	ldr	x8, [x19]
Lloh0:
	adrp	x9, _MAX_SLICES@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MAX_SLICES@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.hs	LBB0_4
; %bb.1:
	ldr	x9, [x19, #16]
	cbnz	x9, LBB0_3
; %bb.2:
	str	x1, [x19, #16]
	mov	x9, x1
LBB0_3:
	ldr	w10, [x19, #24]
	add	w10, w10, w2
	str	w10, [x19, #24]
	sub	x9, x1, x9
	lsr	x1, x9, #2
	ldr	x9, [x19, #8]
	add	x0, x9, x8, lsl #2
                                        ; kill: def $w1 killed $w1 killed $x1
	bl	_fill_slice_short
	mov	w0, #0
	ldr	x8, [x19]
	add	x8, x8, #1
	str	x8, [x19]
	b	LBB0_5
LBB0_4:
	mov	w0, #-1
LBB0_5:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_SLICES,8,3                 ; @MAX_SLICES
	.no_dead_strip	_dxva2_hevc_decode_slice
.subsections_via_symbols
