	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function v4l2_buf_increase_ref
_v4l2_buf_increase_ref:                 ## @v4l2_buf_increase_ref
	.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
	movq	%rdi, %rbx
	callq	_buf_to_m2mctx
	movq	%rax, %r14
	cmpl	$0, 8(%rbx)
	je	LBB0_2
## %bb.1:
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_atomic_fetch_add
	jmp	LBB0_4
LBB0_2:
	movl	4(%r14), %edi
	callq	_av_buffer_ref
	movl	%eax, 8(%rbx)
	testl	%eax, %eax
	je	LBB0_5
## %bb.3:
	movl	$1, (%rbx)
LBB0_4:
	movq	_V4L2BUF_RET_USER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%rbx)
	movq	_memory_order_relaxed@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movl	$1, %esi
	callq	_atomic_fetch_add_explicit
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_5:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_AVERROR                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_V4L2BUF_RET_USER,4,2           ## @V4L2BUF_RET_USER
	.comm	_memory_order_relaxed,4,2       ## @memory_order_relaxed
	.no_dead_strip	_v4l2_buf_increase_ref
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function v4l2_buf_increase_ref
_v4l2_buf_increase_ref:                 ; @v4l2_buf_increase_ref
	.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	x20, x0
	bl	_buf_to_m2mctx
	mov	x19, x0
	ldr	w8, [x20, #8]
	cbz	w8, LBB0_2
; %bb.1:
	mov	x0, x20
	mov	w1, #1
	bl	_atomic_fetch_add
	b	LBB0_4
LBB0_2:
	ldr	w0, [x19, #4]
	bl	_av_buffer_ref
	str	w0, [x20, #8]
	cbz	w0, LBB0_5
; %bb.3:
	mov	w8, #1
	str	w8, [x20]
LBB0_4:
Lloh0:
	adrp	x8, _V4L2BUF_RET_USER@GOTPAGE
Lloh1:
	ldr	x8, [x8, _V4L2BUF_RET_USER@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x20, #4]
Lloh3:
	adrp	x8, _memory_order_relaxed@GOTPAGE
Lloh4:
	ldr	x8, [x8, _memory_order_relaxed@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	x0, x19
	mov	w1, #1
	bl	_atomic_fetch_add_explicit
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_5:
Lloh6:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh7:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_AVERROR
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_V4L2BUF_RET_USER,4,2           ; @V4L2BUF_RET_USER
	.comm	_memory_order_relaxed,4,2       ; @memory_order_relaxed
	.no_dead_strip	_v4l2_buf_increase_ref
.subsections_via_symbols
