	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bdisp_start_streaming
_bdisp_start_streaming:                 ## @bdisp_start_streaming
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	movq	8(%rdi), %rbx
	movq	8(%rbx), %rax
	movl	(%rax), %edi
	callq	_pm_runtime_get_sync
	movl	%eax, %r14d
	xorl	%eax, %eax
	testl	%r14d, %r14d
	jns	LBB0_9
## %bb.1:
	movq	8(%rbx), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
	movq	(%r15), %rax
	movq	_V4L2_BUF_TYPE_VIDEO_OUTPUT@GOTPCREL(%rip), %rcx
	movl	(%rbx), %edi
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.5:
	callq	_v4l2_m2m_src_buf_remove
	testq	%rax, %rax
	je	LBB0_8
## %bb.6:
	movq	_VB2_BUF_STATE_QUEUED@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r15), %esi
	movq	%rax, %rdi
	callq	_v4l2_m2m_buf_done
	movl	(%rbx), %edi
	callq	_v4l2_m2m_src_buf_remove
	testq	%rax, %rax
	jne	LBB0_7
	jmp	LBB0_8
LBB0_2:
	callq	_v4l2_m2m_dst_buf_remove
	testq	%rax, %rax
	je	LBB0_8
## %bb.3:
	movq	_VB2_BUF_STATE_QUEUED@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r15), %esi
	movq	%rax, %rdi
	callq	_v4l2_m2m_buf_done
	movl	(%rbx), %edi
	callq	_v4l2_m2m_dst_buf_remove
	testq	%rax, %rax
	jne	LBB0_4
LBB0_8:
	movl	%r14d, %eax
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"failed to set runtime PM\n"

	.comm	_V4L2_BUF_TYPE_VIDEO_OUTPUT,8,3 ## @V4L2_BUF_TYPE_VIDEO_OUTPUT
	.comm	_VB2_BUF_STATE_QUEUED,4,2       ## @VB2_BUF_STATE_QUEUED
	.no_dead_strip	_bdisp_start_streaming
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bdisp_start_streaming
_bdisp_start_streaming:                 ; @bdisp_start_streaming
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x20, x0
	ldr	x21, [x0, #8]
	ldr	x8, [x21, #8]
	ldr	w0, [x8]
	bl	_pm_runtime_get_sync
	tbnz	w0, #31, LBB0_3
; %bb.1:
	mov	w19, #0
LBB0_2:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_3:
	mov	x19, x0
	ldr	x8, [x21, #8]
	ldr	w0, [x8]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
	ldr	x8, [x20]
Lloh2:
	adrp	x9, _V4L2_BUF_TYPE_VIDEO_OUTPUT@GOTPAGE
Lloh3:
	ldr	x9, [x9, _V4L2_BUF_TYPE_VIDEO_OUTPUT@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	ldr	w0, [x21]
	cmp	x8, x9
	b.ne	LBB0_7
; %bb.4:
	bl	_v4l2_m2m_src_buf_remove
	cbz	x0, LBB0_2
; %bb.5:
Lloh5:
	adrp	x20, _VB2_BUF_STATE_QUEUED@GOTPAGE
Lloh6:
	ldr	x20, [x20, _VB2_BUF_STATE_QUEUED@GOTPAGEOFF]
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x20]
	bl	_v4l2_m2m_buf_done
	ldr	w0, [x21]
	bl	_v4l2_m2m_src_buf_remove
	cbnz	x0, LBB0_6
	b	LBB0_2
LBB0_7:
	bl	_v4l2_m2m_dst_buf_remove
	cbz	x0, LBB0_2
; %bb.8:
Lloh7:
	adrp	x20, _VB2_BUF_STATE_QUEUED@GOTPAGE
Lloh8:
	ldr	x20, [x20, _VB2_BUF_STATE_QUEUED@GOTPAGEOFF]
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x20]
	bl	_v4l2_m2m_buf_done
	ldr	w0, [x21]
	bl	_v4l2_m2m_dst_buf_remove
	cbnz	x0, LBB0_9
	b	LBB0_2
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"failed to set runtime PM\n"

	.comm	_V4L2_BUF_TYPE_VIDEO_OUTPUT,8,3 ; @V4L2_BUF_TYPE_VIDEO_OUTPUT
	.comm	_VB2_BUF_STATE_QUEUED,4,2       ; @VB2_BUF_STATE_QUEUED
	.no_dead_strip	_bdisp_start_streaming
.subsections_via_symbols
