	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function validate_thread_parameters
_validate_thread_parameters:            ## @validate_thread_parameters
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	24(%rdi), %rax
	movl	(%rax), %edx
	movq	_AV_CODEC_CAP_FRAME_THREADS@GOTPCREL(%rip), %rax
	xorl	%r8d, %r8d
	testl	%edx, (%rax)
	je	LBB0_3
## %bb.1:
	movl	(%rdi), %eax
	movq	_AV_CODEC_FLAG_TRUNCATED@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	jne	LBB0_3
## %bb.4:
	movq	_AV_CODEC_FLAG_LOW_DELAY@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_6
LBB0_3:
	xorl	%eax, %eax
LBB0_7:
	movl	8(%rdi), %ecx
	movl	$1, %esi
	cmpl	$1, %ecx
	je	LBB0_15
## %bb.8:
	testb	%al, %al
	je	LBB0_10
## %bb.9:
	movq	_FF_THREAD_FRAME@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 16(%rdi)
	jne	LBB0_12
LBB0_10:
	movq	_AV_CODEC_CAP_SLICE_THREADS@GOTPCREL(%rip), %rax
	testl	%edx, (%rax)
	je	LBB0_13
## %bb.11:
	movq	_FF_THREAD_SLICE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 16(%rdi)
	je	LBB0_13
LBB0_12:
	movl	%eax, %r8d
	movl	%ecx, %esi
	jmp	LBB0_15
LBB0_13:
	movq	_AV_CODEC_CAP_AUTO_THREADS@GOTPCREL(%rip), %rax
	testl	%edx, (%rax)
	jne	LBB0_16
## %bb.14:
	movl	$1, 8(%rdi)
LBB0_15:
	movl	%r8d, 12(%rdi)
	movl	%esi, %ecx
LBB0_16:
	movq	_MAX_AUTO_THREADS@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	cmpl	%r8d, %ecx
	jle	LBB0_18
## %bb.17:
	movq	_AV_LOG_WARNING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	popq	%rbp
	jmp	_av_log                         ## TAILCALL
LBB0_18:
	popq	%rbp
	retq
LBB0_6:
	movq	_AV_CODEC_FLAG2_CHUNKS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 4(%rdi)
	sete	%al
	jmp	LBB0_7
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_CODEC_CAP_FRAME_THREADS,4,2 ## @AV_CODEC_CAP_FRAME_THREADS
	.comm	_AV_CODEC_FLAG_TRUNCATED,4,2    ## @AV_CODEC_FLAG_TRUNCATED
	.comm	_AV_CODEC_FLAG_LOW_DELAY,4,2    ## @AV_CODEC_FLAG_LOW_DELAY
	.comm	_AV_CODEC_FLAG2_CHUNKS,4,2      ## @AV_CODEC_FLAG2_CHUNKS
	.comm	_FF_THREAD_FRAME,4,2            ## @FF_THREAD_FRAME
	.comm	_AV_CODEC_CAP_SLICE_THREADS,4,2 ## @AV_CODEC_CAP_SLICE_THREADS
	.comm	_FF_THREAD_SLICE,4,2            ## @FF_THREAD_SLICE
	.comm	_AV_CODEC_CAP_AUTO_THREADS,4,2  ## @AV_CODEC_CAP_AUTO_THREADS
	.comm	_MAX_AUTO_THREADS,4,2           ## @MAX_AUTO_THREADS
	.comm	_AV_LOG_WARNING,4,2             ## @AV_LOG_WARNING
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Application has requested %d threads. Using a thread count greater than %d is not recommended.\n"

	.no_dead_strip	_validate_thread_parameters
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function validate_thread_parameters
_validate_thread_parameters:            ; @validate_thread_parameters
	.cfi_startproc
; %bb.0:
	ldr	x8, [x0, #24]
	ldr	w8, [x8]
Lloh0:
	adrp	x9, _AV_CODEC_CAP_FRAME_THREADS@GOTPAGE
Lloh1:
	ldr	x9, [x9, _AV_CODEC_CAP_FRAME_THREADS@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_3
; %bb.1:
	ldr	w9, [x0]
Lloh3:
	adrp	x10, _AV_CODEC_FLAG_TRUNCATED@GOTPAGE
Lloh4:
	ldr	x10, [x10, _AV_CODEC_FLAG_TRUNCATED@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	tst	w10, w9
	b.ne	LBB0_3
; %bb.2:
Lloh6:
	adrp	x10, _AV_CODEC_FLAG_LOW_DELAY@GOTPAGE
Lloh7:
	ldr	x10, [x10, _AV_CODEC_FLAG_LOW_DELAY@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	tst	w10, w9
	b.eq	LBB0_16
LBB0_3:
	mov	w9, #0
LBB0_4:
	ldr	w3, [x0, #8]
	cmp	w3, #1
	b.ne	LBB0_6
; %bb.5:
	mov	w9, #0
	b	LBB0_12
LBB0_6:
	cbz	w9, LBB0_8
; %bb.7:
	ldr	w10, [x0, #16]
Lloh9:
	adrp	x9, _FF_THREAD_FRAME@GOTPAGE
Lloh10:
	ldr	x9, [x9, _FF_THREAD_FRAME@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	tst	w9, w10
	b.ne	LBB0_12
LBB0_8:
Lloh12:
	adrp	x9, _AV_CODEC_CAP_SLICE_THREADS@GOTPAGE
Lloh13:
	ldr	x9, [x9, _AV_CODEC_CAP_SLICE_THREADS@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_10
; %bb.9:
	ldr	w10, [x0, #16]
Lloh15:
	adrp	x9, _FF_THREAD_SLICE@GOTPAGE
Lloh16:
	ldr	x9, [x9, _FF_THREAD_SLICE@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	tst	w9, w10
	b.ne	LBB0_12
LBB0_10:
Lloh18:
	adrp	x9, _AV_CODEC_CAP_AUTO_THREADS@GOTPAGE
Lloh19:
	ldr	x9, [x9, _AV_CODEC_CAP_AUTO_THREADS@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_13
; %bb.11:
	mov	w9, #0
	mov	w3, #1
	str	w3, [x0, #8]
LBB0_12:
	str	w9, [x0, #12]
LBB0_13:
Lloh21:
	adrp	x8, _MAX_AUTO_THREADS@GOTPAGE
Lloh22:
	ldr	x8, [x8, _MAX_AUTO_THREADS@GOTPAGEOFF]
Lloh23:
	ldr	w4, [x8]
	cmp	w3, w4
	b.le	LBB0_15
; %bb.14:
Lloh24:
	adrp	x8, _AV_LOG_WARNING@GOTPAGE
Lloh25:
	ldr	x8, [x8, _AV_LOG_WARNING@GOTPAGEOFF]
Lloh26:
	adrp	x2, l_.str@PAGE
Lloh27:
	add	x2, x2, l_.str@PAGEOFF
Lloh28:
	ldr	w1, [x8]
	b	_av_log
LBB0_15:
	ret
LBB0_16:
	ldr	w9, [x0, #4]
Lloh29:
	adrp	x10, _AV_CODEC_FLAG2_CHUNKS@GOTPAGE
Lloh30:
	ldr	x10, [x10, _AV_CODEC_FLAG2_CHUNKS@GOTPAGEOFF]
Lloh31:
	ldr	w10, [x10]
	tst	w10, w9
	cset	w9, eq
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh28
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_CODEC_CAP_FRAME_THREADS,4,2 ; @AV_CODEC_CAP_FRAME_THREADS
	.comm	_AV_CODEC_FLAG_TRUNCATED,4,2    ; @AV_CODEC_FLAG_TRUNCATED
	.comm	_AV_CODEC_FLAG_LOW_DELAY,4,2    ; @AV_CODEC_FLAG_LOW_DELAY
	.comm	_AV_CODEC_FLAG2_CHUNKS,4,2      ; @AV_CODEC_FLAG2_CHUNKS
	.comm	_FF_THREAD_FRAME,4,2            ; @FF_THREAD_FRAME
	.comm	_AV_CODEC_CAP_SLICE_THREADS,4,2 ; @AV_CODEC_CAP_SLICE_THREADS
	.comm	_FF_THREAD_SLICE,4,2            ; @FF_THREAD_SLICE
	.comm	_AV_CODEC_CAP_AUTO_THREADS,4,2  ; @AV_CODEC_CAP_AUTO_THREADS
	.comm	_MAX_AUTO_THREADS,4,2           ; @MAX_AUTO_THREADS
	.comm	_AV_LOG_WARNING,4,2             ; @AV_LOG_WARNING
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Application has requested %d threads. Using a thread count greater than %d is not recommended.\n"

	.no_dead_strip	_validate_thread_parameters
.subsections_via_symbols
