	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_hevc_set_neighbour_available ## -- Begin function ff_hevc_set_neighbour_available
	.p2align	4, 0x90
_ff_hevc_set_neighbour_available:       ## @ff_hevc_set_neighbour_available
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r8d, -48(%rbp)                 ## 4-byte Spill
	movl	%ecx, %r13d
	movl	%edx, %r15d
	movl	%esi, %ecx
	movq	%rdi, %rbx
	movq	(%rdi), %rax
	movq	8(%rdi), %r14
	movl	(%rax), %esi
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	movl	%ecx, %edi
	callq	_av_mod_uintp2
	movl	%eax, %r12d
	movq	(%rbx), %rax
	movl	(%rax), %esi
	movl	%r15d, -52(%rbp)                ## 4-byte Spill
	movl	%r15d, %edi
	callq	_av_mod_uintp2
	cmpq	$0, 56(%r14)
	setne	%cl
	testl	%eax, %eax
	setne	%dl
	orb	%cl, %dl
	movzbl	%dl, %esi
	movl	%esi, 12(%r14)
	cmpq	$0, 48(%r14)
	setne	%cl
	testl	%r12d, %r12d
	setne	%dl
	orb	%cl, %dl
	movzbl	%dl, %edx
	movl	%edx, 16(%r14)
	movl	%r12d, %ecx
	orl	%eax, %ecx
	je	LBB0_1
## %bb.2:
	testl	%edx, %edx
	movl	%esi, %ecx
	cmovel	%edx, %ecx
	jmp	LBB0_3
LBB0_1:
	movl	(%r14), %ecx
LBB0_3:
	movl	%ecx, 20(%r14)
	addl	%r13d, %r12d
	movq	(%rbx), %rcx
	movb	(%rcx), %cl
	movl	$1, %edi
	shll	%cl, %edi
	cmpl	%edi, %r12d
	jne	LBB0_5
## %bb.4:
	testl	%eax, %eax
	sete	%al
	cmpq	$0, 40(%r14)
	setne	%cl
	andb	%al, %cl
	movzbl	%cl, %esi
LBB0_5:
	movl	%esi, 24(%r14)
	xorl	%eax, %eax
	movl	$0, %ecx
	testl	%esi, %esi
	je	LBB0_7
## %bb.6:
	addl	-44(%rbp), %r13d                ## 4-byte Folded Reload
	xorl	%ecx, %ecx
	cmpl	4(%r14), %r13d
	setl	%cl
LBB0_7:
	movl	%ecx, 28(%r14)
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
	addl	-52(%rbp), %ecx                 ## 4-byte Folded Reload
	cmpl	8(%r14), %ecx
	cmovll	%edx, %eax
	movl	%eax, 32(%r14)
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.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_set_neighbour_available ; -- Begin function ff_hevc_set_neighbour_available
	.p2align	2
_ff_hevc_set_neighbour_available:       ; @ff_hevc_set_neighbour_available
	.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, x4
	mov	x21, x3
	mov	x20, x2
	mov	x22, x1
	mov	x23, x0
	ldp	x8, x25, [x0]
	ldr	w1, [x8]
	mov	x0, x22
	bl	_av_mod_uintp2
	mov	x24, x0
	ldr	x8, [x23]
	ldr	w1, [x8]
	mov	x0, x20
	bl	_av_mod_uintp2
	ldp	x10, x8, [x25, #48]
	cmp	x8, #0
	ccmp	w0, #0, #0, eq
	cset	w9, ne
	cmp	x10, #0
	ccmp	w24, #0, #0, eq
	cset	w8, ne
	stp	w9, w8, [x25, #12]
	orr	w10, w24, w0
	cbz	w10, LBB0_2
; %bb.1:
	cmp	w8, #0
	csel	w10, w9, wzr, ne
	b	LBB0_3
LBB0_2:
	ldr	w10, [x25]
LBB0_3:
	str	w10, [x25, #20]
	ldr	x10, [x23]
	ldr	w10, [x10]
	mov	w11, #1
	lsl	w10, w11, w10
	add	w11, w24, w21
	cmp	w11, w10
	b.ne	LBB0_5
; %bb.4:
	ldr	x9, [x25, #40]
	cmp	x9, #0
	ccmp	w0, #0, #0, ne
	cset	w9, eq
LBB0_5:
	str	w9, [x25, #24]
	cbz	w9, LBB0_7
; %bb.6:
	ldr	w9, [x25, #4]
	add	w10, w21, w22
	cmp	w10, w9
	cset	w9, lt
LBB0_7:
	ldr	w10, [x25, #8]
	add	w11, w19, w20
	cmp	w11, w10
	csel	w8, w8, wzr, lt
	stp	w9, w8, [x25, #28]
	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
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
