	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_hap_set_chunk_count         ## -- Begin function ff_hap_set_chunk_count
	.p2align	4, 0x90
_ff_hap_set_chunk_count:                ## @ff_hap_set_chunk_count
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %ebx
	movl	(%rdi), %ecx
	cmpl	$1, %edx
	jne	LBB0_5
## %bb.1:
	cmpl	%ebx, %ecx
	movl	%ebx, %ecx
	jne	LBB0_2
LBB0_5:
	xorl	%eax, %eax
	cmpl	%ebx, %ecx
	je	LBB0_7
## %bb.6:
	movq	_AVERROR_INVALIDDATA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_7
LBB0_2:
	movq	%rdi, %r14
	addq	$8, %rdi
	movl	%ebx, %esi
	movl	$4, %edx
	callq	_av_reallocp_array
	movl	%eax, %ecx
	testl	%eax, %eax
	jne	LBB0_4
## %bb.3:
	leaq	4(%r14), %rdi
	movl	%ebx, %esi
	movl	$4, %edx
	callq	_av_reallocp_array
	movl	%eax, %ecx
LBB0_4:
	xorl	%eax, %eax
	testl	%ecx, %ecx
	cmovsl	%eax, %ebx
	movl	%ebx, (%r14)
LBB0_7:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AVERROR_INVALIDDATA,4,2        ## @AVERROR_INVALIDDATA
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_hap_set_chunk_count         ; -- Begin function ff_hap_set_chunk_count
	.p2align	2
_ff_hap_set_chunk_count:                ; @ff_hap_set_chunk_count
	.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	x19, x1
	ldr	w8, [x0]
	cmp	w2, #1
	b.ne	LBB0_2
; %bb.1:
	cmp	w8, w19
	mov	x8, x19
	b.ne	LBB0_3
LBB0_2:
Lloh0:
	adrp	x9, _AVERROR_INVALIDDATA@GOTPAGE
Lloh1:
	ldr	x9, [x9, _AVERROR_INVALIDDATA@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	cmp	w8, w19
	csel	w0, wzr, w9, eq
	b	LBB0_6
LBB0_3:
	mov	x20, x0
	add	x0, x0, #8
	mov	x1, x19
	mov	w2, #4
	bl	_av_reallocp_array
	mov	x8, x0
	cbnz	w0, LBB0_5
; %bb.4:
	add	x0, x20, #4
	mov	x1, x19
	mov	w2, #4
	bl	_av_reallocp_array
	mov	x8, x0
LBB0_5:
	mov	w0, #0
	cmp	w8, #0
	csel	w8, wzr, w19, lt
	str	w8, [x20]
LBB0_6:
	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	_AVERROR_INVALIDDATA,4,2        ; @AVERROR_INVALIDDATA
.subsections_via_symbols
