	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_v4l2_m2m_codec_full_reinit  ## -- Begin function ff_v4l2_m2m_codec_full_reinit
	.p2align	4, 0x90
_ff_v4l2_m2m_codec_full_reinit:         ## @ff_v4l2_m2m_codec_full_reinit
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r13
	movq	8(%rdi), %r14
	movq	_AV_LOG_DEBUG@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	48(%rdi), %ecx
	leaq	L_.str(%rip), %rdx
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_av_log
	leaq	44(%r13), %rdi
	callq	_atomic_load
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	leaq	40(%r13), %rbx
	movq	_errno@GOTPCREL(%rip), %r15
	movq	_EINTR@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	callq	_sem_wait
	cmpl	$-1, %eax
	jne	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	(%r12), %rax
	cmpq	%rax, (%r15)
	je	LBB0_2
LBB0_4:
	leaq	16(%r13), %r12
	movq	_VIDIOC_STREAMOFF@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r12, %rdi
	callq	_ff_v4l2_context_set_status
	movl	%eax, %r15d
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	testl	%r15d, %r15d
	je	LBB0_6
## %bb.5:
	leaq	L_.str.1(%rip), %rdx
	jmp	LBB0_14
LBB0_6:
	movl	(%rbx), %esi
	movq	%r13, %rdi
	callq	_ff_v4l2_context_set_status
	testl	%eax, %eax
	je	LBB0_9
## %bb.7:
	movl	%eax, %r15d
	leaq	L_.str.2(%rip), %rdx
LBB0_8:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	jmp	LBB0_14
LBB0_9:
	movq	%r12, %rdi
	callq	_ff_v4l2_context_release
	movq	%r13, %rdi
	callq	_ff_v4l2_context_release
	xorps	%xmm0, %xmm0
	movups	%xmm0, 24(%r13)
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_ff_v4l2_context_get_format
	testl	%eax, %eax
	je	LBB0_11
## %bb.10:
	movl	%eax, %r15d
	leaq	L_.str.3(%rip), %rdx
	jmp	LBB0_13
LBB0_11:
	movq	%r13, %rdi
	xorl	%esi, %esi
	callq	_ff_v4l2_context_get_format
	testl	%eax, %eax
	je	LBB0_16
## %bb.12:
	movl	%eax, %r15d
	leaq	L_.str.4(%rip), %rdx
LBB0_13:
	movq	_AV_LOG_DEBUG@GOTPCREL(%rip), %rax
LBB0_14:
	movl	(%rax), %esi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_av_log
LBB0_15:
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	movq	%r12, %rdi
	callq	_ff_v4l2_context_set_format
	testl	%eax, %eax
	je	LBB0_18
## %bb.17:
	movl	%eax, %r15d
	leaq	L_.str.5(%rip), %rdx
	jmp	LBB0_8
LBB0_18:
	movq	%r13, %rdi
	callq	_ff_v4l2_context_set_format
	testl	%eax, %eax
	je	LBB0_20
## %bb.19:
	movl	%eax, %r15d
	leaq	L_.str.6(%rip), %rdx
	jmp	LBB0_8
LBB0_20:
	movq	%r12, %rdi
	callq	_ff_v4l2_context_init
	testl	%eax, %eax
	je	LBB0_22
## %bb.21:
	movl	%eax, %r15d
	leaq	L_.str.7(%rip), %rdx
	jmp	LBB0_8
LBB0_22:
	movq	8(%r13), %rax
	testq	%rax, %rax
	je	LBB0_24
## %bb.23:
	movl	(%rax), %edi
	callq	_av_codec_is_decoder
	xorl	%r15d, %r15d
	testl	%eax, %eax
	jne	LBB0_15
LBB0_24:
	movq	%r13, %rdi
	callq	_ff_v4l2_context_init
	testl	%eax, %eax
	je	LBB0_26
## %bb.25:
	movl	%eax, %r15d
	leaq	L_.str.8(%rip), %rdx
	jmp	LBB0_8
LBB0_26:
	xorl	%r15d, %r15d
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_LOG_DEBUG,4,2               ## @AV_LOG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s full reinit\n"

	.comm	_errno,8,3                      ## @errno
	.comm	_EINTR,8,3                      ## @EINTR
	.comm	_VIDIOC_STREAMOFF,4,2           ## @VIDIOC_STREAMOFF
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
L_.str.1:                               ## @.str.1
	.asciz	"output VIDIOC_STREAMOFF\n"

L_.str.2:                               ## @.str.2
	.asciz	"capture VIDIOC_STREAMOFF\n"

L_.str.3:                               ## @.str.3
	.asciz	"v4l2 output format not supported\n"

L_.str.4:                               ## @.str.4
	.asciz	"v4l2 capture format not supported\n"

L_.str.5:                               ## @.str.5
	.asciz	"can't set v4l2 output format\n"

L_.str.6:                               ## @.str.6
	.asciz	"can't to set v4l2 capture format\n"

L_.str.7:                               ## @.str.7
	.asciz	"no v4l2 output context's buffers\n"

L_.str.8:                               ## @.str.8
	.asciz	"no v4l2 capture context's buffers\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_v4l2_m2m_codec_full_reinit  ; -- Begin function ff_v4l2_m2m_codec_full_reinit
	.p2align	2
_ff_v4l2_m2m_codec_full_reinit:         ; @ff_v4l2_m2m_codec_full_reinit
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x20, x0
	ldr	x19, [x0, #8]
Lloh0:
	adrp	x8, _AV_LOG_DEBUG@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AV_LOG_DEBUG@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	ldr	w8, [x0, #48]
	str	x8, [sp]
Lloh3:
	adrp	x2, l_.str@PAGE
Lloh4:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	bl	_av_log
	add	x0, x20, #44
	bl	_atomic_load
	cbz	x0, LBB0_4
; %bb.1:
	add	x21, x20, #40
Lloh5:
	adrp	x22, _errno@GOTPAGE
Lloh6:
	ldr	x22, [x22, _errno@GOTPAGEOFF]
Lloh7:
	adrp	x23, _EINTR@GOTPAGE
Lloh8:
	ldr	x23, [x23, _EINTR@GOTPAGEOFF]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	bl	_sem_wait
	cmn	w0, #1
	b.ne	LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	ldr	x8, [x22]
	ldr	x9, [x23]
	cmp	x8, x9
	b.eq	LBB0_2
LBB0_4:
	add	x22, x20, #16
Lloh9:
	adrp	x23, _VIDIOC_STREAMOFF@GOTPAGE
Lloh10:
	ldr	x23, [x23, _VIDIOC_STREAMOFF@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	x0, x22
	bl	_ff_v4l2_context_set_status
	cbz	w0, LBB0_6
; %bb.5:
	mov	x21, x0
Lloh11:
	adrp	x2, l_.str.1@PAGE
Lloh12:
	add	x2, x2, l_.str.1@PAGEOFF
	b	LBB0_8
LBB0_6:
	ldr	w1, [x23]
	mov	x0, x20
	bl	_ff_v4l2_context_set_status
	cbz	w0, LBB0_11
; %bb.7:
	mov	x21, x0
Lloh13:
	adrp	x2, l_.str.2@PAGE
Lloh14:
	add	x2, x2, l_.str.2@PAGEOFF
LBB0_8:
Lloh15:
	adrp	x8, _AV_LOG_ERROR@GOTPAGE
Lloh16:
	ldr	x8, [x8, _AV_LOG_ERROR@GOTPAGEOFF]
LBB0_9:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_av_log
LBB0_10:
	mov	x0, x21
	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
	add	sp, sp, #80
	ret
LBB0_11:
	mov	x0, x22
	bl	_ff_v4l2_context_release
	mov	x0, x20
	bl	_ff_v4l2_context_release
	stp	xzr, xzr, [x20, #24]
	mov	x0, x22
	mov	w1, #0
	bl	_ff_v4l2_context_get_format
	cbz	w0, LBB0_13
; %bb.12:
	mov	x21, x0
Lloh17:
	adrp	x2, l_.str.3@PAGE
Lloh18:
	add	x2, x2, l_.str.3@PAGEOFF
	b	LBB0_15
LBB0_13:
	mov	x0, x20
	mov	w1, #0
	bl	_ff_v4l2_context_get_format
	cbz	w0, LBB0_16
; %bb.14:
	mov	x21, x0
Lloh19:
	adrp	x2, l_.str.4@PAGE
Lloh20:
	add	x2, x2, l_.str.4@PAGEOFF
LBB0_15:
Lloh21:
	adrp	x8, _AV_LOG_DEBUG@GOTPAGE
Lloh22:
	ldr	x8, [x8, _AV_LOG_DEBUG@GOTPAGEOFF]
	b	LBB0_9
LBB0_16:
	mov	x0, x22
	bl	_ff_v4l2_context_set_format
	cbz	w0, LBB0_18
; %bb.17:
	mov	x21, x0
Lloh23:
	adrp	x2, l_.str.5@PAGE
Lloh24:
	add	x2, x2, l_.str.5@PAGEOFF
	b	LBB0_8
LBB0_18:
	mov	x0, x20
	bl	_ff_v4l2_context_set_format
	cbz	w0, LBB0_20
; %bb.19:
	mov	x21, x0
Lloh25:
	adrp	x2, l_.str.6@PAGE
Lloh26:
	add	x2, x2, l_.str.6@PAGEOFF
	b	LBB0_8
LBB0_20:
	mov	x0, x22
	bl	_ff_v4l2_context_init
	cbz	w0, LBB0_22
; %bb.21:
	mov	x21, x0
Lloh27:
	adrp	x2, l_.str.7@PAGE
Lloh28:
	add	x2, x2, l_.str.7@PAGEOFF
	b	LBB0_8
LBB0_22:
	ldr	x8, [x20, #8]
	cbz	x8, LBB0_25
; %bb.23:
	ldr	w0, [x8]
	bl	_av_codec_is_decoder
	cbz	w0, LBB0_25
; %bb.24:
	mov	w21, #0
	b	LBB0_10
LBB0_25:
	mov	x0, x20
	bl	_ff_v4l2_context_init
	mov	x21, x0
	cbz	w0, LBB0_10
; %bb.26:
Lloh29:
	adrp	x2, l_.str.8@PAGE
Lloh30:
	add	x2, x2, l_.str.8@PAGEOFF
	b	LBB0_8
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGot	Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpAdd	Lloh29, Lloh30
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_LOG_DEBUG,4,2               ; @AV_LOG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s full reinit\n"

	.comm	_errno,8,3                      ; @errno
	.comm	_EINTR,8,3                      ; @EINTR
	.comm	_VIDIOC_STREAMOFF,4,2           ; @VIDIOC_STREAMOFF
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
l_.str.1:                               ; @.str.1
	.asciz	"output VIDIOC_STREAMOFF\n"

l_.str.2:                               ; @.str.2
	.asciz	"capture VIDIOC_STREAMOFF\n"

l_.str.3:                               ; @.str.3
	.asciz	"v4l2 output format not supported\n"

l_.str.4:                               ; @.str.4
	.asciz	"v4l2 capture format not supported\n"

l_.str.5:                               ; @.str.5
	.asciz	"can't set v4l2 output format\n"

l_.str.6:                               ; @.str.6
	.asciz	"can't to set v4l2 capture format\n"

l_.str.7:                               ; @.str.7
	.asciz	"no v4l2 output context's buffers\n"

l_.str.8:                               ; @.str.8
	.asciz	"no v4l2 capture context's buffers\n"

.subsections_via_symbols
