	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_v4l2_m2m_codec_reinit       ## -- Begin function ff_v4l2_m2m_codec_reinit
	.p2align	4, 0x90
_ff_v4l2_m2m_codec_reinit:              ## @ff_v4l2_m2m_codec_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, %r15
	movq	32(%rdi), %rbx
	movq	_AV_LOG_DEBUG@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	leaq	L_.str(%rip), %rdx
	movq	%rbx, %rdi
	callq	_av_log
	leaq	16(%r15), %r12
	movq	_VIDIOC_STREAMOFF@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_ff_v4l2_context_set_status
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	movq	%rbx, %rdi
	callq	_av_log
LBB0_2:
	movl	(%r14), %esi
	leaq	L_.str.2(%rip), %rdx
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_av_log
	leaq	24(%r15), %rdi
	callq	_atomic_load
	testq	%rax, %rax
	je	LBB0_6
## %bb.3:
	leaq	20(%r15), %rbx
	movq	_errno@GOTPCREL(%rip), %r13
	movq	_EINTR@GOTPCREL(%rip), %r14
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	callq	_sem_wait
	cmpl	$-1, %eax
	jne	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	(%r14), %rax
	cmpq	%rax, (%r13)
	je	LBB0_4
LBB0_6:
	movq	%r12, %rdi
	callq	_ff_v4l2_context_release
	movq	%r12, %rdi
	xorl	%esi, %esi
	callq	_ff_v4l2_context_get_format
	testl	%eax, %eax
	je	LBB0_8
## %bb.7:
	movl	%eax, %ebx
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.3(%rip), %rdx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_av_log
	jmp	LBB0_11
LBB0_8:
	movq	%r12, %rdi
	callq	_ff_v4l2_context_set_format
	testl	%eax, %eax
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	je	LBB0_10
## %bb.9:
	movl	%eax, %ebx
	movq	_AV_LOG_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.4(%rip), %rdx
	callq	_av_log
	jmp	LBB0_11
LBB0_10:
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%r15)
	xorl	%ebx, %ebx
LBB0_11:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_LOG_DEBUG,4,2               ## @AV_LOG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"reinit context\n"

	.comm	_VIDIOC_STREAMOFF,4,2           ## @VIDIOC_STREAMOFF
	.comm	_AV_LOG_ERROR,4,2               ## @AV_LOG_ERROR
L_.str.1:                               ## @.str.1
	.asciz	"capture VIDIOC_STREAMOFF\n"

L_.str.2:                               ## @.str.2
	.asciz	"waiting for user to release AVBufferRefs\n"

	.comm	_errno,8,3                      ## @errno
	.comm	_EINTR,8,3                      ## @EINTR
L_.str.3:                               ## @.str.3
	.asciz	"query the new capture format\n"

L_.str.4:                               ## @.str.4
	.asciz	"setting capture format\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ff_v4l2_m2m_codec_reinit       ; -- Begin function ff_v4l2_m2m_codec_reinit
	.p2align	2
_ff_v4l2_m2m_codec_reinit:              ; @ff_v4l2_m2m_codec_reinit
	.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	x20, x0
	ldr	x19, [x0, #32]
Lloh0:
	adrp	x22, _AV_LOG_DEBUG@GOTPAGE
Lloh1:
	ldr	x22, [x22, _AV_LOG_DEBUG@GOTPAGEOFF]
	ldr	w1, [x22]
Lloh2:
	adrp	x2, l_.str@PAGE
Lloh3:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x19
	bl	_av_log
	add	x21, x20, #16
Lloh4:
	adrp	x8, _VIDIOC_STREAMOFF@GOTPAGE
Lloh5:
	ldr	x8, [x8, _VIDIOC_STREAMOFF@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	mov	x0, x21
	bl	_ff_v4l2_context_set_status
Lloh7:
	adrp	x23, _AV_LOG_ERROR@GOTPAGE
Lloh8:
	ldr	x23, [x23, _AV_LOG_ERROR@GOTPAGEOFF]
	cbz	w0, LBB0_2
; %bb.1:
	ldr	w1, [x23]
Lloh9:
	adrp	x2, l_.str.1@PAGE
Lloh10:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_av_log
LBB0_2:
	ldr	w1, [x22]
Lloh11:
	adrp	x2, l_.str.2@PAGE
Lloh12:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_av_log
	add	x0, x20, #24
	bl	_atomic_load
	cbz	x0, LBB0_6
; %bb.3:
	add	x22, x20, #20
Lloh13:
	adrp	x24, _errno@GOTPAGE
Lloh14:
	ldr	x24, [x24, _errno@GOTPAGEOFF]
Lloh15:
	adrp	x25, _EINTR@GOTPAGE
Lloh16:
	ldr	x25, [x25, _EINTR@GOTPAGEOFF]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x22
	bl	_sem_wait
	cmn	w0, #1
	b.ne	LBB0_6
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x24]
	ldr	x9, [x25]
	cmp	x8, x9
	b.eq	LBB0_4
LBB0_6:
	mov	x0, x21
	bl	_ff_v4l2_context_release
	mov	x0, x21
	mov	w1, #0
	bl	_ff_v4l2_context_get_format
	cbz	w0, LBB0_8
; %bb.7:
	mov	x22, x0
	ldr	w1, [x23]
Lloh17:
	adrp	x2, l_.str.3@PAGE
Lloh18:
	add	x2, x2, l_.str.3@PAGEOFF
	b	LBB0_10
LBB0_8:
	mov	x0, x21
	bl	_ff_v4l2_context_set_format
	mov	x22, x0
	cbz	w0, LBB0_12
; %bb.9:
	ldr	w1, [x23]
Lloh19:
	adrp	x2, l_.str.4@PAGE
Lloh20:
	add	x2, x2, l_.str.4@PAGEOFF
LBB0_10:
	mov	x0, x19
	bl	_av_log
LBB0_11:
	mov	x0, x22
	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
LBB0_12:
	stp	xzr, xzr, [x20]
	b	LBB0_11
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_LOG_DEBUG,4,2               ; @AV_LOG_DEBUG
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"reinit context\n"

	.comm	_VIDIOC_STREAMOFF,4,2           ; @VIDIOC_STREAMOFF
	.comm	_AV_LOG_ERROR,4,2               ; @AV_LOG_ERROR
l_.str.1:                               ; @.str.1
	.asciz	"capture VIDIOC_STREAMOFF\n"

l_.str.2:                               ; @.str.2
	.asciz	"waiting for user to release AVBufferRefs\n"

	.comm	_errno,8,3                      ; @errno
	.comm	_EINTR,8,3                      ; @EINTR
l_.str.3:                               ; @.str.3
	.asciz	"query the new capture format\n"

l_.str.4:                               ; @.str.4
	.asciz	"setting capture format\n"

.subsections_via_symbols
